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 .