Adding support for .java extension.