private String createPortAttribute(final int[] ports){
  final StringBuffer portValue=new StringBuffer();
  for (int i=0, len=ports.length; i < len; i++) {
    if (i > 0) {
      portValue.append(",");
    }
    portValue.append(ports[i]);
  }
  return portValue.toString();
}

private String createPortAttribute ( final int [ ] ports ) { final StringBuffer portValue = new StringBuffer ( ) ; for ( int i = 0 , len = ports . length ; i < len ; i ++ ) { if ( i > 0 ) { portValue . append ( "," ) ; } portValue . append ( ports [ i ] ) ; } return portValue . toString ( ) ; }
retrieves valid port attribute value for the given ports array . e . g . " 8000 , 8001 , 8002 "
