* @throws NullPointerException if one of the parameters is <code>null</code>
*/
public static void setEnvironment(Object obj, Environment env) throws NullPointerException {
// test parameters
if (obj == null) {
throw new ExtNullPointerException("No object given.");
} else if (env == null) {
throw new ExtNullPointerException("No environment given.");
}
// create hashtable for the environments
synchronized(_syncMonitor) {
if (_environmentMap == null) {