Index: core/src/com/intellij/spring/model/xml/lang/GroovyScript.java
===================================================================
--- core/src/com/intellij/spring/model/xml/lang/GroovyScript.java	(revision 11463)
+++ core/src/com/intellij/spring/model/xml/lang/GroovyScript.java	Mon Oct 08 17:14:52 CEST 2007
@@ -6,5 +6,5 @@
 /**
  * @author peter
  */
-public interface GroovyScript extends SimpleScript, LangBean {
+public interface GroovyScript extends CustomizableScript, LangBean {
 }
Index: core/src/com/intellij/spring/model/xml/lang/DynamicScript.java
===================================================================
--- core/src/com/intellij/spring/model/xml/lang/DynamicScript.java	(revision 11463)
+++ core/src/com/intellij/spring/model/xml/lang/DynamicScript.java	Mon Oct 08 17:15:59 CEST 2007
@@ -3,14 +3,13 @@
 
 package com.intellij.spring.model.xml.lang;
 
+import com.intellij.spring.model.values.converters.ClassArrayConverter;
 import com.intellij.util.xml.DomElement;
 import com.intellij.util.xml.GenericAttributeValue;
-import com.intellij.util.xml.GenericDomValue;
+import com.intellij.util.xml.Referencing;
 import com.intellij.util.xml.Required;
 import org.jetbrains.annotations.NotNull;
 
-import java.util.List;
-
 /**
  * http://www.springframework.org/schema/lang:dynamicScriptType interface.
  */
@@ -27,70 +26,7 @@
 	 */
 	@NotNull
 	@Required
+  @Referencing(value = ClassArrayConverter.class)
-	GenericAttributeValue<String> getScriptInterfaces();
+  GenericAttributeValue<String> getScriptInterfaces();
 
-
-	/**
-	 * Returns the value of the refresh-check-delay child.
-	 * <pre>
-	 * <h3>Attribute null:refresh-check-delay documentation</h3>
-	 * 	The delay (in milliseconds) between checks for updated sources when
-	 * 	using the refreshable beans feature.
-	 * 						
-	 * </pre>
-	 * @return the value of the refresh-check-delay child.
-	 */
-	@NotNull
-	GenericAttributeValue<Integer> getRefreshCheckDelay();
-
-
-	/**
-	 * Returns the value of the script-source child.
-	 * <pre>
-	 * <h3>Attribute null:script-source documentation</h3>
-	 * 	The resource containing the script for the dynamic language-backed bean.
-	 * 	
-	 * 	Examples might be '/WEB-INF/scripts/Anais.groovy', 'classpath:Nin.bsh', etc.
-	 * 						
-	 * </pre>
-	 * @return the value of the script-source child.
-	 */
-	@NotNull
-	GenericAttributeValue<String> getScriptSource();
-
-
-	/**
-	 * Returns the value of the inline-script child.
-	 * <pre>
-	 * <h3>Element http://www.springframework.org/schema/lang:inline-script documentation</h3>
-	 * 	The source code for the dynamic language-backed bean.
-	 * 							
-	 * </pre>
-	 * @return the value of the inline-script child.
-	 */
-	@NotNull
-	GenericDomValue<String> getInlineScript();
-
-
-	/**
-	 * Returns the list of property children.
-	 * <pre>
-	 * <h3>Element http://www.springframework.org/schema/lang:property documentation</h3>
-	 * 	Dynamic language-backed bean definitions can have zero or more properties.
-	 * 	Property elements correspond to JavaBean setter methods exposed
-	 * 	by the bean classes. Spring supports primitives, references to other
-	 * 	beans in the same or related factories, lists, maps and properties.
-	 * 							
-	 * </pre>
-	 * @return the list of property children.
-	 */
-	@NotNull
-	List<LangProperty> getProperties();
-	/**
-	 * Adds new child to the list of property children.
-	 * @return created child
-	 */
-	LangProperty addProperty();
-
-
 }
Index: core/src/com/intellij/spring/model/xml/lang/CustomizableScript.java
===================================================================
--- core/src/com/intellij/spring/model/xml/lang/CustomizableScript.java	Mon Oct 08 18:00:13 CEST 2007
+++ core/src/com/intellij/spring/model/xml/lang/CustomizableScript.java	Mon Oct 08 18:00:13 CEST 2007
@@ -0,0 +1,27 @@
+// Generated on Thu Nov 09 17:15:14 MSK 2006
+// DTD/Schema  :    http://www.springframework.org/schema/lang
+
+package com.intellij.spring.model.xml.lang;
+
+import com.intellij.util.xml.DomElement;
+import com.intellij.util.xml.GenericAttributeValue;
+import org.jetbrains.annotations.NotNull;
+
+/**
+ * http://www.springframework.org/schema/lang:dynamicScriptType interface.
+ */
+public interface CustomizableScript extends DomElement, SimpleScript {
+
+	/**
+	 * Returns the value of the customizer-ref child.
+	 * <pre>
+	 * <h3>Attribute null:customizer-ref documentation</h3>
+	 * 	Reference to a GroovyObjectCustomizer or similar customizer bean.
+	 *
+	 * </pre>
+	 * @return the value of the customizer-ref child.
+	 */
+	@NotNull
+  GenericAttributeValue<String> getCustomizerRef();
+
+}
\ No newline at end of file
Index: core/src/com/intellij/spring/model/xml/lang/SimpleScript.java
===================================================================
--- core/src/com/intellij/spring/model/xml/lang/SimpleScript.java	(revision 11463)
+++ core/src/com/intellij/spring/model/xml/lang/SimpleScript.java	Mon Oct 08 18:03:03 CEST 2007
@@ -5,10 +5,9 @@
 
 import com.intellij.spring.SpringConstants;
 import com.intellij.spring.model.xml.beans.Identified;
-import com.intellij.util.xml.DomElement;
-import com.intellij.util.xml.GenericAttributeValue;
-import com.intellij.util.xml.GenericDomValue;
-import com.intellij.util.xml.Namespace;
+import com.intellij.spring.model.xml.beans.ScopedElement;
+import com.intellij.spring.model.values.converters.ResourceValueConverter;
+import com.intellij.util.xml.*;
 import org.jetbrains.annotations.NotNull;
 
 import java.util.List;
@@ -17,7 +16,7 @@
  * http://www.springframework.org/schema/lang:simpleScriptType interface.
  */
 @Namespace(SpringConstants.LANG_NAMESPACE_KEY)
-public interface SimpleScript extends DomElement, Identified {
+public interface SimpleScript extends DomElement, ScopedElement, Identified {
 
 	/**
 	 * Returns the value of the refresh-check-delay child.
@@ -45,7 +44,8 @@
 	 * @return the value of the script-source child.
 	 */
 	@NotNull
+  @Referencing(value = ResourceValueConverter.class)
-	GenericAttributeValue<String> getScriptSource();
+  GenericAttributeValue<String> getScriptSource();
 
 
 	/**

