Update FocusOnFile to work with java and groovy