Added correct recognition of different java resource types