import org.fusesource.ide.sap.ui.Messages;
public class ModelUtil {
public static SapConnectionConfiguration getModel(ResourceSet resourceSet) {
SapConnectionConfiguration sapConnectionConfiguration = null;
String path = SAPEditPlugin.getPlugin().getStateLocation().append("resource.spi").toOSString(); //$NON-NLS-1$
URI resourceURI = URI.createFileURI(path);
Resource resource;
try {
resource = resourceSet.getResource(resourceURI, true);