An example of reading resources in java