public static contractTypes intToContractType(int type) {
        for (contractTypes tmpType : contractTypes.values()) {
            if (tmpType.ordinal() == type) {
                return tmpType;
            }
        }
        return contractTypes.CALLWORKER;
    }