Update MaterialFactory.java