protected void checkType(String type) { if (!type.matches(alphaNumericDotted)) { throw new ApiUsageException( "Type argument to getCollectionCount may ONLY be " + "alpha-numeric with dots (" + alphaNumericDotted + ")"); } if (!iQuery.checkType(type)) { throw new ApiUsageException(type + " is an unknown type."); } }