Teradata and Java server Connection

I am trying to connect to JAVA server using Teradata UDF, here is my code below.It uses HOST as “localhost” and PORT(integer) as “9091” and all the parameters such as PEM file location etc have been …