return PartyType.valueOf(src);
return PartyTypeEnum.valueOf(src);
    public Object sqlToJava(Object source) throws ConversionException {          if(source == null || source.equals("")){              return null;          }                      else if (source instanceof String) {                        String src = (String) source;                        return PartyType.valueOf(src);        }        return source;    }