finally working with new implementation of Resourcs.java