post java resource