Code example for SimpleTypeConverter

    private Object convertId(String idString, Class<?> clazz) {
        Object id;
            id = Formatters.conversion.convert(idString, modelInfo.getId().getFieldClass());
        }catch (Exception e) {
            id = new SimpleTypeConverter().convertIfNecessary(idString, modelInfo.getId().getFieldClass());
        return id;
    public Object getId() {
        String idString = form.field(modelInfo.getId().getField().getName()).value();
        return convertId(idString, modelInfo.getId().getFieldClass());
    public String getUrlId() {
        return Formatters.print(getId()); 
    public String getRowId() {
Connect your IDE to all the code out there  Get Codota for Java