my java resource utils