Fixed Java 6 incompatibility in ECS module.