src/org/ohmage/service/UserImageServices.java
public void verifyPhotoPromptResponseExistsForUserAndImage(
			final String username, final UUID imageId) 
			throws ServiceException {
		
		try {
			if(! userImageQueries.responseExistsForUserWithImage(username, imageId)) {
				throw new ServiceException(
						ErrorCode.IMAGE_INVALID_ID, 
						"No such photo prompt response exists with the given image ID.");
			}
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
/**
	 * Verifies that some photo prompt response exists and the image ID for
	 * the response is the same as the given image ID.
	 * 
	 * @param username The username of the user.
	 * 
	 * @param imageId The unique identifier for the image.
	 * 
	 * @throws ServiceException Thrown if no such photo prompt response exists
	 * 							or if there is an error.
	 */
Verifies that some photo prompt response exists and the image ID for
the response is the same as the given image ID.

@param username The username of the user.

@param imageId The unique identifier for the image.

@throws ServiceException Thrown if no such photo prompt response exists
or if there is an error.
Verifies that some photo prompt response exists and the image ID for the response is the same as the given image ID . @param username The username of the user . @param imageId The unique identifier for the image . @throws ServiceException Thrown if no such photo prompt response exists or if there is an error .
public void verifyPhotoPromptResponseExistsForUserAndImage(
			final String username, final UUID imageId) 
			throws ServiceException {
		try {
			if(! userImageQueries.responseExistsForUserWithImage(username, imageId)) {
				throw new ServiceException(
						ErrorCode.IMAGE_INVALID_ID, 
						"No such photo prompt response exists with the given image ID.");
			}
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
public void verifyPhotoPromptResponseExistsForUserAndImage ( final String username , final UUID imageId ) throws ServiceException { try { if ( ! userImageQueries . responseExistsForUserWithImage ( username , imageId ) ) { throw new ServiceException ( ErrorCode . IMAGE_INVALID_ID , "No such photo prompt response exists with the given image ID." ) ; } } catch ( DataAccessException e ) { throw new ServiceException ( e ) ; } }
Verifies that some photo prompt response exists and the image ID for
 the response is the same as the given image ID.
Verifies that some photo prompt response exists and the image ID for the response is the same as the given image ID .