I cannot get ID number of the object layer (it always return null), while other custom properties work well
String id = properties.get("id",String.class);
This may be a problem with the library that you're using. Which one is it?