Added support for Java6 and javaeeapi.jar