src/main/java/gov/usgs/cida/pubs/utility/PubsUtils.java
public static ValidatorResult validateIdsMatch(final String intString, final BaseDomain<?> domainObject) {
		ValidatorResult result = new ValidatorResult("id", "The id in the URL does not match the id in the request.", SeverityLevel.FATAL, intString);
		Integer id = parseInteger(intString);
		Integer objId = domainObject.getId();
		if (null != id && null != objId && id.intValue() == objId.intValue()) {
			result = null;
		}
		return result;
	}
/**
	 * @param intString
	 * @param domainObject
	 * @return null if intString matches the id in domainObject and they're not null, otherwise a ValidatorResult
	 */
@param intString
@param domainObject
@return null if intString matches the id in domainObject and they're not null, otherwise a ValidatorResult
@param intString @param domainObject @return null if intString matches the id in domainObject and they ' re not null otherwise a ValidatorResult
public static ValidatorResult validateIdsMatch(final String intString, final BaseDomain<?> domainObject) {
		ValidatorResult result = new ValidatorResult("id", "The id in the URL does not match the id in the request.", SeverityLevel.FATAL, intString);
		Integer id = parseInteger(intString);
		Integer objId = domainObject.getId();
		if (null != id && null != objId && id.intValue() == objId.intValue()) {
			result = null;
		}
		return result;
	}
public static ValidatorResult validateIdsMatch ( final String intString , final BaseDomain < ? > domainObject ) { ValidatorResult result = new ValidatorResult ( "id" , "The id in the URL does not match the id in the request." , SeverityLevel . FATAL , intString ) ; Integer id = parseInteger ( intString ) ; Integer objId = domainObject . getId ( ) ; if ( null != id && null != objId && id . intValue ( ) == objId . intValue ( ) ) { result = null ; } return result ; }
@param intString
 @param domainObject
 @return null if intString matches the id in domainObject and they're not null, otherwise a ValidatorResult
@param intString @param domainObject @return null if intString matches the id in domainObject and they ' re not null otherwise a ValidatorResult