private Long getIntegerValue(Map<String, Object> map, String key) {
		try {
			return Long.valueOf(String.valueOf(map.get(key))); // normalize to String before creating integer value;			
		} catch (NumberFormatException e) {
			return null;
		}
	}
private Long getIntegerValue ( Map < String , Object > map , String key ) { try { return Long . valueOf ( String . valueOf ( map . get ( key ) ) ) ; } catch ( NumberFormatException e ) { return null ; } }
Retrieves object from map into an Integer, regardless of the object's actual type. Allows for flexibility in object type (eg, "3600" vs 3600).