made Gp modelToResource declarative