public static boolean checkLength(long length, WSDLColType colType) {
        switch (colType) {
            case DESCRIPTION:
                if (length < 10000) {
                    return true;
                } else {
                    return false;
                }
            case TITLE:
                if (length < 1000) {
                    return true;
                } else {
                    return false;
                }
            case URL:
                if (length < 1000) {
                    return true;
                } else {
                    return false;
                }
            case SEARCHED_QUERY:
                if (length < 1000) {
                    return true;
                } else {
                    return false;
                }

            default:
                if (length < 255) {
                    return true;
                } else {
                    return false;
                }
        }
    }