line = null;
if (typeString.startsWith(EnvironmentConstants.COLOR_RESOURCE)) {
colorString = typeString.split("@");
if (colorString.length == 1) {
resource = new ColorResource();
} else if (colorString.length > 1) {
resource = new ColorResource(colorString[1]);
}
} else if (typeString.startsWith(EnvironmentConstants.TRACE_RESOURCE)) {
resource = new TraceResource();
}
localGrid[x][y] = new Cell(x, y, resource, params);