Generate beans compatible with java7