class RejectionReasonFormatter implements Formatter<RejectionReasonResource> {

    @Override
    public RejectionReasonResource parse(String text, Locale locale) throws ParseException {
        RejectionReasonResource rejectionReasonResource = new RejectionReasonResource();
        rejectionReasonResource.setId(Long.valueOf(text));
        return rejectionReasonResource;
    }

}