Implementing Conditional Java Resources