private String updateRemoteHost ( String remoteHost ) { String [ ] splitStr = remoteHost . split ( "\\." ) ; remoteHost = new StringBuilder ( remoteHost ) . insert ( splitStr [ 0 ] . length ( ) , "-all" ) . toString ( ) ; return remoteHost ; }
Update the remoteHost parameter with the suffix - all within the subdomain name