Author: dgeraskov
Date: 2011-11-16 18:07:19 -0500 (Wed, 16 Nov 2011)
New Revision: 36387
Added:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/log4j-1.2.15.jar
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/slf4j-api-1.5.8.jar
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/slf4j-log4j12-1.5.8.jar
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/tools/freemarker.jar
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/tools/jtidy-r8-20060801.jar
Modified:
branches/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java
branches/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/HibernateExtension.java
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.classpath
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/META-INF/MANIFEST.MF
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/build.properties
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0.java
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/console/ConsoleExtension4_0.java
Log:
Fix Query exporter problem
Modified:
branches/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/HibernateExtension.java
===================================================================
---
branches/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/HibernateExtension.java 2011-11-16
22:35:21 UTC (rev 36386)
+++
branches/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/HibernateExtension.java 2011-11-16
23:07:19 UTC (rev 36387)
@@ -11,6 +11,7 @@
package org.hibernate.console.ext;
import org.hibernate.console.QueryInputModel;
+import org.hibernate.console.execution.ExecutionContext.Command;
import org.hibernate.console.preferences.ConsoleConfigurationPreferences;
/**
@@ -44,6 +45,8 @@
public Object getSessionFactory();
//FIXME remove this method
*/
+
+ public Object execute(Command command);
Modified:
branches/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java
===================================================================
---
branches/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java 2011-11-16
22:35:21 UTC (rev 36386)
+++
branches/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java 2011-11-16
23:07:19 UTC (rev 36387)
@@ -27,9 +27,6 @@
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Constructor;
import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
@@ -58,10 +55,8 @@
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.core.model.IProcess;
import org.eclipse.debug.internal.core.LaunchConfiguration;
import org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.RefreshTab;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.ToolFactory;
@@ -84,6 +79,8 @@
import org.hibernate.console.execution.ExecutionContext.Command;
import org.hibernate.eclipse.console.HibernateConsoleMessages;
import org.hibernate.eclipse.console.HibernateConsolePlugin;
+import org.hibernate.eclipse.console.ext.ConsoleExtension;
+import org.hibernate.eclipse.console.ext.ConsoleExtensionManager;
import org.hibernate.eclipse.console.model.impl.ExporterFactory;
import org.hibernate.tool.hbm2x.ArtifactCollector;
import org.hibernate.tool.hbm2x.Exporter;
@@ -266,6 +263,12 @@
Assert.isNotNull(configuration);
Assert.isNotNull(monitor);
ExporterAttributes attributes = new ExporterAttributes(configuration);
+ ConsoleConfiguration cc =
KnownConfigurations.getInstance().find(attributes.getConsoleConfigurationName());
+ ConsoleExtension consoleExtension =
ConsoleExtensionManager.getConsoleExtension(cc.getHibernateExtension());
+ consoleExtension.launchExporters(configuration, mode, launch, monitor);
+
+ /* The code is moved to consoleExtension and delegated method is called instead.
+
List<ExporterFactory> exporterFactories = attributes.getExporterFactories();
for (Iterator<ExporterFactory> iter = exporterFactories.iterator();
iter.hasNext();) {
ExporterFactory exFactory = iter.next();
@@ -327,7 +330,7 @@
throw new CoreException(HibernateConsolePlugin.throwableToStatus(new
HibernateConsoleRuntimeException(HibernateConsoleMessages.CodeGenerationLaunchDelegate_received_noclassdeffounderror,e),
666));
} finally {
monitor.done();
- }
+ }*/
}
Modified:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.classpath
===================================================================
---
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.classpath 2011-11-16
22:35:21 UTC (rev 36386)
+++
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/.classpath 2011-11-16
23:07:19 UTC (rev 36387)
@@ -1,35 +1,40 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry exported="true" kind="lib"
path="lib/bsh-core-2.0b4.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/ehcache/ehcache-core-2.4.3.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/ehcache/hibernate-ehcache-4.0.0.CR3.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/hibernate-infinispan-4.0.0.CR3.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/i18nlog-1.0.10.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/infinispan-core-5.0.0.CR4.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jboss-marshalling-1.3.0.CR9.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jboss-marshalling-river-1.3.0.CR9.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jboss-transaction-api-1.0.1.GA.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jgroups-2.12.0.Final.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/rhq-pluginAnnotations-3.0.1.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/proxool/hibernate-proxool-4.0.0.CR3.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/proxool/proxool-0.8.3.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/jpa/hibernate-entitymanager-4.0.0.CR3.jar"
sourcepath="C:/Documents and
Settings/dgeraskov/.m2/repository/org/hibernate/hibernate-entitymanager/4.0.0.CR3/hibernate-entitymanager-4.0.0.CR3-sources.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/c3p0/c3p0-0.9.1.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/optional/c3p0/hibernate-c3p0-4.0.0.CR3.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/required/antlr-2.7.7.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/required/classmate-0.5.4.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/required/commons-collections-3.1.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/required/dom4j-1.6.1.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/required/hibernate-commons-annotations-4.0.0.CR2.jar"
sourcepath="C:/Documents and
Settings/dgeraskov/.m2/repository/org/hibernate/common/hibernate-commons-annotations/4.0.0.CR2/hibernate-commons-annotations-4.0.0.CR2-sources.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/required/hibernate-core-4.0.0.CR3.jar" sourcepath="C:/Documents
and
Settings/dgeraskov/.m2/repository/org/hibernate/hibernate-core/4.0.0.CR3/hibernate-core-4.0.0.CR3-sources.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/required/hibernate-jpa-2.0-api-1.0.1.Final.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/required/jandex-1.0.3.Final.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/required/javassist-3.12.0.GA.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/required/jboss-logging-3.0.0.GA.jar" sourcepath="C:/Documents and
Settings/dgeraskov/.m2/repository/org/jboss/logging/jboss-logging/3.0.0.GA/jboss-logging-3.0.0.GA-sources.jar"/>
- <classpathentry exported="true" kind="lib"
path="lib/required/jta-1.1.jar"/>
- <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="lib"
path="lib/tools/hibernate-tools-3.5.0.Alpha.jar"
sourcepath="C:/dev/workspaces/RedHat/_Git/dgeraskov/hibernate-tools/target/hibernate-tools-3.5.0.Alpha-SNAPSHOT-sources.jar"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry exported="true" kind="lib"
path="lib/tools/freemarker.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/tools/jtidy-r8-20060801.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/log4j-1.2.15.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/slf4j-api-1.5.8.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/slf4j-log4j12-1.5.8.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/bsh-core-2.0b4.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/ehcache/ehcache-core-2.4.3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/ehcache/hibernate-ehcache-4.0.0.CR3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/hibernate-infinispan-4.0.0.CR3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/i18nlog-1.0.10.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/infinispan-core-5.0.0.CR4.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jboss-marshalling-1.3.0.CR9.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jboss-marshalling-river-1.3.0.CR9.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jboss-transaction-api-1.0.1.GA.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/jgroups-2.12.0.Final.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/infinispan/rhq-pluginAnnotations-3.0.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/proxool/hibernate-proxool-4.0.0.CR3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/proxool/proxool-0.8.3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/jpa/hibernate-entitymanager-4.0.0.CR3.jar"
sourcepath="C:/Documents and
Settings/dgeraskov/.m2/repository/org/hibernate/hibernate-entitymanager/4.0.0.CR3/hibernate-entitymanager-4.0.0.CR3-sources.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/c3p0/c3p0-0.9.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/optional/c3p0/hibernate-c3p0-4.0.0.CR3.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/antlr-2.7.7.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/classmate-0.5.4.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/commons-collections-3.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/dom4j-1.6.1.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/hibernate-commons-annotations-4.0.0.CR2.jar"
sourcepath="C:/Documents and
Settings/dgeraskov/.m2/repository/org/hibernate/common/hibernate-commons-annotations/4.0.0.CR2/hibernate-commons-annotations-4.0.0.CR2-sources.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/hibernate-core-4.0.0.CR3.jar" sourcepath="C:/Documents
and
Settings/dgeraskov/.m2/repository/org/hibernate/hibernate-core/4.0.0.CR3/hibernate-core-4.0.0.CR3-sources.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/hibernate-jpa-2.0-api-1.0.1.Final.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/jandex-1.0.3.Final.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/javassist-3.12.0.GA.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/jboss-logging-3.0.0.GA.jar" sourcepath="C:/Documents and
Settings/dgeraskov/.m2/repository/org/jboss/logging/jboss-logging/3.0.0.GA/jboss-logging-3.0.0.GA-sources.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/required/jta-1.1.jar"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="lib"
path="lib/tools/hibernate-tools-3.5.0.Alpha.jar"
sourcepath="C:/dev/workspaces/RedHat/_Git/dgeraskov/hibernate-tools/target/hibernate-tools-3.5.0.Alpha-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Modified:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/META-INF/MANIFEST.MF
===================================================================
---
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/META-INF/MANIFEST.MF 2011-11-16
22:35:21 UTC (rev 36386)
+++
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/META-INF/MANIFEST.MF 2011-11-16
23:07:19 UTC (rev 36387)
@@ -32,4 +32,9 @@
lib/jpa/hibernate-entitymanager-4.0.0.CR3.jar,
lib/bsh-core-2.0b4.jar,
lib/tools/hibernate-tools-3.5.0.Alpha.jar,
+ lib/tools/freemarker.jar,
+ lib/tools/jtidy-r8-20060801.jar,
+ lib/log4j-1.2.15.jar,
+ lib/slf4j-api-1.5.8.jar,
+ lib/slf4j-log4j12-1.5.8.jar,
.
Modified:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/build.properties
===================================================================
---
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/build.properties 2011-11-16
22:35:21 UTC (rev 36386)
+++
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/build.properties 2011-11-16
23:07:19 UTC (rev 36387)
@@ -31,4 +31,9 @@
lib/optional/proxool/proxool-0.8.3.jar,\
lib/bsh-core-2.0b4.jar,\
lib/tools/hibernate-tools-3.5.0.Alpha.jar,\
- plugin.properties
+ plugin.properties,\
+ lib/tools/freemarker.jar,\
+ lib/tools/jtidy-r8-20060801.jar,\
+ lib/log4j-1.2.15.jar,\
+ lib/slf4j-api-1.5.8.jar,\
+ lib/slf4j-log4j12-1.5.8.jar
Added:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/log4j-1.2.15.jar
===================================================================
(Binary files differ)
Property changes on:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/log4j-1.2.15.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/slf4j-api-1.5.8.jar
===================================================================
(Binary files differ)
Property changes on:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/slf4j-api-1.5.8.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/slf4j-log4j12-1.5.8.jar
===================================================================
(Binary files differ)
Property changes on:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/slf4j-log4j12-1.5.8.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/tools/freemarker.jar
===================================================================
(Binary files differ)
Property changes on:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/tools/freemarker.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/tools/jtidy-r8-20060801.jar
===================================================================
(Binary files differ)
Property changes on:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/lib/tools/jtidy-r8-20060801.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0.java
===================================================================
---
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0.java 2011-11-16
22:35:21 UTC (rev 36386)
+++
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HibernateExtension4_0.java 2011-11-16
23:07:19 UTC (rev 36387)
@@ -35,12 +35,9 @@
import org.hibernate.console.ext.QueryResultImpl;
import org.hibernate.console.preferences.ConsoleConfigurationPreferences;
import org.hibernate.console.preferences.PreferencesClassPathUtils;
-import org.hibernate.eclipse.console.ext.CompletionProposalsResult;
import org.hibernate.service.BasicServiceRegistry;
import org.hibernate.service.ServiceRegistryBuilder;
import org.hibernate.service.internal.BasicServiceRegistryImpl;
-import org.hibernate.tool.ide.completion.HQLCodeAssist;
-import org.hibernate.tool.ide.completion.IHQLCodeAssist;
/**
*
@@ -72,8 +69,8 @@
}
@Override
- public QueryResult executeHQLQuery(String hql,
- QueryInputModel queryParameters) {
+ public QueryResult executeHQLQuery(final String hql,
+ final QueryInputModel queryParameters) {
Session session = null;
try {
try {
Modified:
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/console/ConsoleExtension4_0.java
===================================================================
---
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/console/ConsoleExtension4_0.java 2011-11-16
22:35:21 UTC (rev 36386)
+++
branches/hibernatetools-multiversion2/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/console/ConsoleExtension4_0.java 2011-11-16
23:07:19 UTC (rev 36387)
@@ -151,14 +151,14 @@
if (attributes.isReverseEngineer()) {
monitor.subTask(HibernateConsoleMessages.CodeGenerationLaunchDelegate_reading_jdbc_metadata);
}
- final Configuration cfg = buildConfiguration(attributes, cc,
ResourcesPlugin.getWorkspace().getRoot());
+ final Configuration cfg = buildConfiguration(attributes, (HibernateExtension4_0)
cc.getHibernateExtension(), ResourcesPlugin.getWorkspace().getRoot());
monitor.worked(1);
if (monitor.isCanceled())
return null;
- return (ArtifactCollector) cc.execute(new Command() {
+ return (ArtifactCollector) hibernateExtension.execute(new Command() {
public Object execute() {
ArtifactCollector artifactCollector = new ArtifactCollector();
@@ -200,7 +200,7 @@
}
- private Configuration buildConfiguration(final ExporterAttributes attributes,
ConsoleConfiguration cc, IWorkspaceRoot root) {
+ private Configuration buildConfiguration(final ExporterAttributes attributes,
HibernateExtension4_0 cc, IWorkspaceRoot root) {
final boolean reveng = attributes.isReverseEngineer();
final String reverseEngineeringStrategy = attributes.getRevengStrategy();
final boolean preferBasicCompositeids = attributes.isPreferBasicCompositeIds();
@@ -262,7 +262,7 @@
return cfg;
} else {
cc.build();
- final Configuration configuration =
((HibernateExtension4_0)cc.getHibernateExtension()).getConfiguration();
+ final Configuration configuration = cc.getConfiguration();
cc.execute(new Command() {
public Object execute() {