// Path: src/main/java/org/grouchotools/jsrules/exception/ClassHandlerException.java
// public class ClassHandlerException extends JsRulesException {
// 
//     public ClassHandlerException() {
//     }
// 
//     public ClassHandlerException(String message) {
//         super(message);
//     }
// 
//     public ClassHandlerException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ClassHandlerException(Throwable cause) {
//         super(cause);
//     }
// 
//     public ClassHandlerException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
//         super(message, cause, enableSuppression, writableStackTrace);
//     }
//     
// }


import com.fasterxml.jackson.databind.ObjectMapper;
import org.grouchotools.jsrules.exception.ClassHandlerException;
import org.joda.time.DateTime;
import java.io.IOException;
import java.util.Set;
        public Long convertString(String string) {
            return Long.parseLong(string);
        }
    },
    STRING {
        @Override
        public Class getMyClass() {
            return String.class;
        }

        @Override
        @SuppressWarnings("unchecked")
        public String convertString(String string) {
            return string;
        }
    },
    NUMBERSET {
        @Override
        public Class getMyClass() {
            return Set.class;
        }

        @Override
        @SuppressWarnings("unchecked")
        public Set<Number> convertString(String string) throws ClassHandlerException {
            Set<Number> numberSet;
                    
            try {
                numberSet = MAPPER.readValue(string, Set.class);
            } catch (IOException ex) {
// Path: src/main/java/org/grouchotools/jsrules/exception/ClassHandlerException.java
// public class ClassHandlerException extends JsRulesException {
// 
//     public ClassHandlerException() {
//     }
// 
//     public ClassHandlerException(String message) {
//         super(message);
//     }
// 
//     public ClassHandlerException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ClassHandlerException(Throwable cause) {
//         super(cause);
//     }
// 
//     public ClassHandlerException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
//         super(message, cause, enableSuppression, writableStackTrace);
//     }
//     
// }


// Path: src/main/java/org/grouchotools/jsrules/util/ClassHandler.java
import com.fasterxml.jackson.databind.ObjectMapper;
import org.grouchotools.jsrules.exception.ClassHandlerException;
import org.joda.time.DateTime;
import java.io.IOException;
import java.util.Set;

        public Long convertString(String string) {
            return Long.parseLong(string);
        }
    },
    STRING {
        @Override
        public Class getMyClass() {
            return String.class;
        }

        @Override
        @SuppressWarnings("unchecked")
        public String convertString(String string) {
            return string;
        }
    },
    NUMBERSET {
        @Override
        public Class getMyClass() {
            return Set.class;
        }

        @Override
        @SuppressWarnings("unchecked")
        public Set<Number> convertString(String string) throws ClassHandlerException {
            Set<Number> numberSet;
                    
            try {
                numberSet = MAPPER.readValue(string, Set.class);
            } catch (IOException ex) {
                throw new ClassHandlerException("Unable to convert " + string + " into a Set of Numbers", ex);