private static CustomInfoType convertCustomInfo(Map<String, String> customInfo) {
        if (customInfo == null) {
            return null;
        }

        CustomInfoType ciType = new CustomInfoType();
        for (Entry<String, String> entry : customInfo.entrySet()) {
            CustomInfoType.Item cItem = new CustomInfoType.Item();
            cItem.setKey(entry.getKey());
            cItem.setValue(entry.getValue());
            ciType.getItem().add(cItem);
        }

        return ciType;
    }
private static CustomInfoType convertCustomInfo ( Map < String , String > customInfo ) { if ( customInfo == null ) { return null ; } CustomInfoType ciType = new CustomInfoType ( ) ; for ( Entry < String , String > entry : customInfo . entrySet ( ) ) { CustomInfoType . Item cItem = new CustomInfoType . Item ( ) ; cItem . setKey ( entry . getKey ( ) ) ; cItem . setValue ( entry . getValue ( ) ) ; ciType . getItem ( ) . add ( cItem ) ; } return ciType ; }
Convert custom info.

@param customInfo the custom info map
@return the custom info type