Some updates to JavaFSAdaptor

Grouping some smaller code updates to JavaFSAdaptor like generics.