public static PathwayElement createState(
			double relX, double relY, double width, double height,
			Color color, int lineStyle, int lnThickness,
			Color fillColor, IShape shapeType, int zOrder,
			DataSource database, String ID, List<String> bioPaxRefs,
			String graphId, String graphRef, String textLabel, String stateType) {
		
		// create pathwayElement State
		PathwayElement pwElt = PathwayElement.createPathwayElement(ObjectType.STATE);
		
		// for better definition of identifier and database
		Xref ref = new Xref(ID, database);
		
		pwElt.setRelX(relX);
		pwElt.setRelY(relY);
		pwElt.setMWidth(width);
		pwElt.setMHeight(height);
		pwElt.setColor(color);
		pwElt.setLineStyle(lineStyle);
		pwElt.setLineThickness(lnThickness);
		pwElt.setFillColor(fillColor);
		pwElt.setShapeType(shapeType);
		pwElt.setZOrder(zOrder);
		pwElt.setDataSource(ref.getDataSource());
		pwElt.setElementID(ref.getId());
		pwElt.setGraphId(graphId);
		pwElt.setGraphRef(graphRef);
		pwElt.setTextLabel(textLabel);
		
		if (stateType == "unknown") {} else {}
				
		if (bioPaxRefs.size() > 0) {
			for (int i = 0; i < bioPaxRefs.size(); i++) {
				pwElt.addBiopaxRef(bioPaxRefs.get(i));
			}
		}
			return pwElt;
	}