public static String createContainerPresentName(String hostName,String containerName){
  if (hostName == null)   hostName="";
 else   hostName+=":";
  return hostName + containerName;
}

public static String createContainerPresentName ( String hostName , String containerName ) { if ( hostName == null ) hostName = "" ; else hostName += ":" ; return hostName + containerName ; }
this method constructs name for container representation . actually it concatenates host name with container name .
