class ResourceAttributeUtil {

    public String toJSON(ResourceAttribute attribute) throws EntitlementException {
        try {
            String className = attribute.getClass().getName();
            return className + SEP + mapper.writeValueAsString(attribute);
        } catch (IOException e) {
            throw new EntitlementException(JSON_PARSE_ERROR, e);
        }
    }

    public  ResourceAttributeUtil();
      ResourceAttributeUtil(ObjectMapper mapper);

}