59606162636465
public Object coerce(Object value, Class type) throws CoercionException { if (value.getClass().equals(String.class)) { return coerce((String)value); } throw new NotCoercibleException(value); }
57585960616263
7475767778798081
public Object coerce(String value) { try { return Class.forName(value); } catch (ClassNotFoundException e) { throw new NotCoercibleException(value, e); } }