public static String getPrefixFromValue ( String value ) { if ( value == null ) { return null ; } else if ( value . contains ( DELIMITER ) ) { String [ ] list = value . split ( DELIMITER ) ; if ( list != null && list . length > 0 ) { return list [ 0 ] . replaceAll ( "\u0000" , "" ) ; } else { return null ; } } else { return value . replaceAll ( "\u0000" , "" ) ; } }
Gets the prefix from value .