@SuppressWarnings("unchecked")
public List<Object> getListOfSBMLElementsToWrite(Object sbase) {
ArrayList<Object> listOfElementsToWrite = null;
if (sbase instanceof SBase) {
if (sbase instanceof SBMLDocument) {
SBMLDocument sbmlDocument = (SBMLDocument) sbase;
if (sbmlDocument.isSetModel()) {
listOfElementsToWrite = new ArrayList<Object>();
listOfElementsToWrite.add(sbmlDocument.getModel());
}
} else if (sbase instanceof Model) {
Model model = (Model) sbase;
listOfElementsToWrite = new ArrayList<Object>();