public static ImageObject getImageObject(IImageMetadata imageMetadata) {
		ImageObject imageObject = new ImageObject();
		if (imageMetadata == null) {
			return imageObject;
		}
			
		String metadata = imageMetadata.toString(); 

		/* New Feature in java 1.7 - closes stream automatically */
		try (BufferedReader br = new BufferedReader( new StringReader(metadata) )) {
			String line;
			while((line = br.readLine()) != null) {		
				if (containsTargetMetadata(line)) {
					setPropertyFromString(imageObject, line);
				}
			}
		} catch (IOException e) {
			Log.getLogger().log(Level.SEVERE, "IOException", e);
		} 

		return imageObject;
	}