src/org/ohmage/domain/AccessRequest.java
public static String validateRequestId(
			final String requestId) 
			throws ValidationException {
		
		if(StringUtils.isEmptyOrWhitespaceOnly(requestId)) {
			return null;
		}
		
		try {
			return UUID.fromString(requestId).toString();
		}
		catch(IllegalArgumentException e) {
			throw new ValidationException(
					ErrorCode.USER_ACCESS_REQUEST_INVALID_PRAMETER, 
					"The request ID is not a valid UUID: " + requestId);
		}
	}
/**
	 *  Validate that the request id is a proper UUID. If the request id is inappropriate,
	 * a null is returned.  
	 * 
	 * @param requestId The request Id string to be validated. 
	 * 
	 * @return the request id if the supplied argument is valid, otherwise, returns null.
	 */
Validate that the request id is a proper UUID. If the request id is inappropriate,
a null is returned.

@param requestId The request Id string to be validated.

@return the request id if the supplied argument is valid, otherwise, returns null.
Validate that the request id is a proper UUID . If the request id is inappropriate a null is returned . @param requestId The request Id string to be validated . @return the request id if the supplied argument is valid otherwise returns null .
public static String validateRequestId(
			final String requestId) 
			throws ValidationException {
		if(StringUtils.isEmptyOrWhitespaceOnly(requestId)) {
			return null;
		}
		try {
			return UUID.fromString(requestId).toString();
		}
		catch(IllegalArgumentException e) {
			throw new ValidationException(
					ErrorCode.USER_ACCESS_REQUEST_INVALID_PRAMETER, 
					"The request ID is not a valid UUID: " + requestId);
		}
	}
public static String validateRequestId ( final String requestId ) throws ValidationException { if ( StringUtils . isEmptyOrWhitespaceOnly ( requestId ) ) { return null ; } try { return UUID . fromString ( requestId ) . toString ( ) ; } catch ( IllegalArgumentException e ) { throw new ValidationException ( ErrorCode . USER_ACCESS_REQUEST_INVALID_PRAMETER , "The request ID is not a valid UUID: " + requestId ) ; } }
Validate that the request id is a proper UUID.
Validate that the request id is a proper UUID .