Fix compatibility of blueprints-core with java 5