A method, apparatus and computer-usable medium aid in the writing of Java code that contains Java Naming Directory Interface (JNDI) names that refer to code artifacts in a JNDI tree structure that is stored on a server. A local copy of the JNDI tree structure is downloaded from the server to a developer workstation. JNDI names in the Java code are then validated before deployment by confirming that the JNDI names are in the local copy of the JNDI tree structure.