add a new post about the java factory pattern