You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2013/07/31 13:16:42 UTC

[01/51] [partial] applying patch related to JIRA STRATOS-12

Updated Branches:
  refs/heads/master 981916d11 -> ffe2e466f


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.js
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.js b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.js
deleted file mode 100755
index 6ecf0fa..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(jQuery,undefined){jQuery.ui=jQuery.ui||{};if(jQuery.ui.version){return}jQuery.extend(jQuery.ui,{version:"1.8.14",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});jQuery.fn.extend({_focus:jQuery.fn.focus,focus:function(delay,fn){return typeof delay==="number"?this.each(function(){var elem=this;setTimeout(function(){jQuery(elem).focus();if(fn){fn.call(elem)}},delay)}):this._focus.apply(this,arguments)},scrollParent:function(){var scrollParent;if((jQuery.browser.msie&&(/(static|relative)/).test(this.css('position')))||(/absolute/).test(this.css('position'))){scrollParent=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(jQuery
 .curCSS(this,'position',1))&&(/(auto|scroll)/).test(jQuery.curCSS(this,'overflow',1)+jQuery.curCSS(this,'overflow-y',1)+jQuery.curCSS(this,'overflow-x',1))}).eq(0)}else{scrollParent=this.parents().filter(function(){return(/(auto|scroll)/).test(jQuery.curCSS(this,'overflow',1)+jQuery.curCSS(this,'overflow-y',1)+jQuery.curCSS(this,'overflow-x',1))}).eq(0)}return(/fixed/).test(this.css('position'))||!scrollParent.length?jQuery(document):scrollParent},zIndex:function(zIndex){if(zIndex!==undefined){return this.css("zIndex",zIndex)}if(this.length){var elem=jQuery(this[0]),position,value;while(elem.length&&elem[0]!==document){position=elem.css("position");if(position==="absolute"||position==="relative"||position==="fixed"){value=parseInt(elem.css("zIndex"),10);if(!isNaN(value)&&value!==0){return value}}elem=elem.parent()}}return 0},disableSelection:function(){return this.bind((jQuery.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(event){event.preventDefault(
 )})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});jQuery.each(["Width","Height"],function(i,name){var side=name==="Width"?["Left","Right"]:["Top","Bottom"],type=name.toLowerCase(),orig={innerWidth:jQuery.fn.innerWidth,innerHeight:jQuery.fn.innerHeight,outerWidth:jQuery.fn.outerWidth,outerHeight:jQuery.fn.outerHeight};function reduce(elem,size,border,margin){jQuery.each(side,function(){size-=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;if(border){size-=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0}if(margin){size-=parseFloat(jQuery.curCSS(elem,"margin"+this,true))||0}});return size}jQuery.fn["inner"+name]=function(size){if(size===undefined){return orig["inner"+name].call(this)}return this.each(function(){jQuery(this).css(type,reduce(this,size)+"px")})};jQuery.fn["outer"+name]=function(size,margin){if(typeof size!=="number"){return orig["outer"+name].call(this,size)}return this.each(function(){jQuery(this).css(type,reduce(this,size
 ,true,margin)+"px")})}});function focusable(element,isTabIndexNotNaN){var nodeName=element.nodeName.toLowerCase();if("area"===nodeName){var map=element.parentNode,mapName=map.name,img;if(!element.href||!mapName||map.nodeName.toLowerCase()!=="map"){return false}img=jQuery("img[usemap=#"+mapName+"]")[0];return!!img&&visible(img)}return(/input|select|textarea|button|object/.test(nodeName)?!element.disabled:"a"==nodeName?element.href||isTabIndexNotNaN:isTabIndexNotNaN)&&visible(element)}function visible(element){return!jQuery(element).parents().andSelf().filter(function(){return jQuery.curCSS(this,"visibility")==="hidden"||jQuery.expr.filters.hidden(this)}).length}jQuery.extend(jQuery.expr[":"],{data:function(elem,i,match){return!!jQuery.data(elem,match[3])},focusable:function(element){return focusable(element,!isNaN(jQuery.attr(element,"tabindex")))},tabbable:function(element){var tabIndex=jQuery.attr(element,"tabindex"),isTabIndexNaN=isNaN(tabIndex);return(isTabIndexNaN||tabIndex>=0)&
 &focusable(element,!isTabIndexNaN)}});jQuery(function(){var body=document.body,div=body.appendChild(div=document.createElement("div"));jQuery.extend(div.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});jQuery.support.minHeight=div.offsetHeight===100;jQuery.support.selectstart="onselectstart"in div;body.removeChild(div).style.display="none"});jQuery.extend(jQuery.ui,{plugin:{add:function(module,option,set){var proto=jQuery.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode){return}for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(el,a){if(jQuery(el).css("overflow")==="hidden"){return false}var scroll=(a&&a==="l
 eft")?"scrollLeft":"scrollTop",has=false;if(el[scroll]>0){return true}el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has},isOverAxis:function(x,reference,size){return(x>reference)&&(x<(reference+size))},isOver:function(y,x,top,left,height,width){return jQuery.ui.isOverAxis(y,top,height)&&jQuery.ui.isOverAxis(x,left,width)}})})(jQuery);
\ No newline at end of file


[45/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml b/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml
new file mode 100755
index 0000000..d8ad52d
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- The default synapse configuration shipped with the WSO2 Elastic  Load Balancer
+ -->
+
+<definitions xmlns="http://ws.apache.org/ns/synapse">
+</definitions>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/synapse.properties
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/synapse.properties b/products/cloud-controller/modules/distribution/src/main/conf/synapse.properties
new file mode 100755
index 0000000..c3cbdb4
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/synapse.properties
@@ -0,0 +1,38 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#synapse.threads.core = 20
+#synapse.threads.max = 100
+#synapse.threads.keepalive = 5
+#synapse.threads.qlen = 10
+#synapse.threads.group = synapse-thread-group
+#synapse.threads.idprefix = SynapseWorker
+
+synapse.sal.endpoints.sesssion.timeout.default=600000
+
+#In memory statistics cleaning state 
+statistics.clean.enable=false
+
+# Dependency tracking Synapse observer
+# Comment out to disable dependency management
+synapse.observers=org.wso2.carbon.mediation.dependency.mgt.DependencyTracker
+
+# User defined wsdlLocator/Schema Resolver Implementations.
+# synapse.wsdl.resolver=org.wso2.carbon.mediation.initializer.RegistryWSDLLocator
+# synapse.schema.resolver=org.wso2.carbon.mediation.initializer.RegistryXmlSchemaURIResolver
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/zoo.cfg
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/zoo.cfg b/products/cloud-controller/modules/distribution/src/main/conf/zoo.cfg
new file mode 100644
index 0000000..57927f2
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/zoo.cfg
@@ -0,0 +1,3 @@
+tickTime=2000
+dataDir=repository/data/zookeeper
+clientPort=2182

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/resources/launch.ini
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/resources/launch.ini b/products/cloud-controller/modules/distribution/src/main/resources/launch.ini
new file mode 100644
index 0000000..f05201c
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/resources/launch.ini
@@ -0,0 +1,248 @@
+# Eclipse Runtime Configuration Overrides
+# These properties are loaded prior to starting the framework and can also be used to override System Properties
+# @null is a special value used to override and clear the framework's copy of a System Property prior to starting the framework
+# "*" can be used together with @null to clear System Properties that match a prefix name.
+
+osgi.*=@null
+org.osgi.*=@null
+eclipse.*=@null
+
+osgi.parentClassloader=ext
+osgi.contextClassLoaderParent=ext
+
+# When osgi.clean is set to "true", any cached data used by the OSGi framework 
+# will be wiped clean. This will clean the caches used to store bundle 
+# dependency resolution and eclipse extension registry data. Using this 
+# option will force OSGi framework to reinitialize these caches.
+# The following setting is put in place to get rid of the problems
+# faced when re-starting the system. Please note that, when this setting is 
+# true, if you manually start a bundle, it would not be available when 
+# you re-start the system. To avid this, copy the bundle jar to the plugins 
+# folder, before you re-start the system. 
+osgi.clean=true
+
+# Uncomment the following line to turn on Eclipse Equinox debugging. 
+# You may also edit the osgi-debug.options file and fine tune the debugging 
+# options to suite your needs. 
+#osgi.debug=./repository/conf/osgi-debug.options
+
+# Following system property allows us to control the public JDK packages exported through the system bundle.
+org.osgi.framework.system.packages=javax.accessibility,\
+javax.activity,\
+javax.crypto,\
+javax.crypto.interfaces,\
+javax.crypto.spec,\
+javax.imageio,\
+javax.imageio.event,\
+javax.imageio.metadata,\
+javax.imageio.plugins.bmp,\
+javax.imageio.plugins.jpeg,\
+javax.imageio.spi,\
+javax.imageio.stream,\
+javax.jms,\
+javax.management,\
+javax.management.loading,\
+javax.management.modelmbean,\
+javax.management.monitor,\
+javax.management.openmbean,\
+javax.management.relation,\
+javax.management.remote,\
+javax.management.remote.rmi,\
+javax.management.timer,\
+javax.naming,\
+javax.naming.directory,\
+javax.naming.event,\
+javax.naming.ldap,\
+javax.naming.spi,\
+javax.net,\
+javax.net.ssl,\
+javax.print,\
+javax.print.attribute,\
+javax.print.attribute.standard,\
+javax.print.event,\
+javax.rmi,\
+javax.rmi.CORBA,\
+javax.rmi.ssl,\
+javax.script,\
+javax.security.auth,\
+javax.security.auth.callback,\
+javax.security.auth.kerberos,\
+javax.security.auth.login,\
+javax.security.auth.spi,\
+javax.security.auth.x500,\
+javax.security.cert,\
+javax.security.sasl,\
+javax.sound.midi,\
+javax.sound.midi.spi,\
+javax.sound.sampled,\
+javax.sound.sampled.spi,\
+javax.sql,\
+javax.sql.rowset,\
+javax.sql.rowset.serial,\
+javax.sql.rowset.spi,\
+javax.swing,\
+javax.swing.border,\
+javax.swing.colorchooser,\
+javax.swing.event,\
+javax.swing.filechooser,\
+javax.swing.plaf,\
+javax.swing.plaf.basic,\
+javax.swing.plaf.metal,\
+javax.swing.plaf.multi,\
+javax.swing.plaf.synth,\
+javax.swing.table,\
+javax.swing.text,\
+javax.swing.text.html,\
+javax.swing.text.html.parser,\
+javax.swing.text.rtf,\
+javax.swing.tree,\
+javax.swing.undo,\
+javax.transaction,\
+javax.transaction.xa,\
+javax.xml.namespace,\
+javax.xml.parsers,\
+javax.xml.transform,\
+javax.xml.transform.stream,\
+javax.xml.transform.dom,\
+javax.xml.transform.sax,\
+javax.xml,\
+javax.xml.validation,\
+javax.xml.datatype,\
+javax.xml.xpath,\
+javax.activation,\
+com.sun.activation.registries,\
+com.sun.activation.viewers,\
+org.ietf.jgss,\
+org.omg.CORBA,\
+org.omg.CORBA_2_3,\
+org.omg.CORBA_2_3.portable,\
+org.omg.CORBA.DynAnyPackage,\
+org.omg.CORBA.ORBPackage,\
+org.omg.CORBA.portable,\
+org.omg.CORBA.TypeCodePackage,\
+org.omg.CosNaming,\
+org.omg.CosNaming.NamingContextExtPackage,\
+org.omg.CosNaming.NamingContextPackage,\
+org.omg.Dynamic,\
+org.omg.DynamicAny,\
+org.omg.DynamicAny.DynAnyFactoryPackage,\
+org.omg.DynamicAny.DynAnyPackage,\
+org.omg.IOP,\
+org.omg.IOP.CodecFactoryPackage,\
+org.omg.IOP.CodecPackage,\
+org.omg.Messaging,\
+org.omg.PortableInterceptor,\
+org.omg.PortableInterceptor.ORBInitInfoPackage,\
+org.omg.PortableServer,\
+org.omg.PortableServer.CurrentPackage,\
+org.omg.PortableServer.POAManagerPackage,\
+org.omg.PortableServer.POAPackage,\
+org.omg.PortableServer.portable,\
+org.omg.PortableServer.ServantLocatorPackage,\
+org.omg.SendingContext,\
+org.omg.stub.java.rmi,\
+org.w3c.dom,\
+org.w3c.dom.bootstrap,\
+org.w3c.dom.css,\
+org.w3c.dom.events,\
+org.w3c.dom.html,\
+org.w3c.dom.ls,\
+org.w3c.dom.ranges,\
+org.w3c.dom.stylesheets,\
+org.w3c.dom.traversal,\
+org.w3c.dom.views ,\
+org.xml.sax,\
+org.xml.sax.ext,\
+org.xml.sax.helpers,\
+org.apache.xerces.xpointer,\
+org.apache.xerces.xni.grammars,\
+org.apache.xerces.impl.xs.util,\
+org.apache.xerces.jaxp.validation,\
+org.apache.xerces.impl.dtd.models,\
+org.apache.xerces.impl.xpath,\
+org.apache.xerces.dom3.as,\
+org.apache.xerces.impl.dv.xs,\
+org.apache.xerces.util,\
+org.apache.xerces.impl.xs.identity,\
+org.apache.xerces.impl.xs.opti,\
+org.apache.xerces.jaxp,\
+org.apache.xerces.impl.dv,\
+org.apache.xerces.xs.datatypes,\
+org.apache.xerces.dom.events,\
+org.apache.xerces.impl.msg,\
+org.apache.xerces.xni,\
+org.apache.xerces.impl.xs,\
+org.apache.xerces.impl,\
+org.apache.xerces.impl.io,\
+org.apache.xerces.xinclude,\
+org.apache.xerces.jaxp.datatype,\
+org.apache.xerces.parsers,\
+org.apache.xerces.impl.dv.util,\
+org.apache.xerces.xni.parser,\
+org.apache.xerces.impl.xs.traversers,\
+org.apache.xerces.impl.dv.dtd,\
+org.apache.xerces.xs,\
+org.apache.xerces.impl.dtd,\
+org.apache.xerces.impl.validation,\
+org.apache.xerces.impl.xs.models,\
+org.apache.xerces.impl.xpath.regex,\
+org.apache.xml.serialize,\
+org.apache.xerces.dom,\
+org.apache.xalan,\
+org.apache.xalan.xslt,\
+org.apache.xalan.templates,\
+org.apache.xalan.xsltc,\
+org.apache.xalan.xsltc.cmdline,\
+org.apache.xalan.xsltc.cmdline.getopt,\
+org.apache.xalan.xsltc.trax,\
+org.apache.xalan.xsltc.dom,\
+org.apache.xalan.xsltc.runtime,\
+org.apache.xalan.xsltc.runtime.output,\
+org.apache.xalan.xsltc.util,\
+org.apache.xalan.xsltc.compiler,\
+org.apache.xalan.xsltc.compiler.util,\
+org.apache.xalan.serialize,\
+org.apache.xalan.client,\
+org.apache.xalan.res,\
+org.apache.xalan.transformer,\
+org.apache.xalan.extensions,\
+org.apache.xalan.lib,\
+org.apache.xalan.lib.sql,\
+org.apache.xalan.processor,\
+org.apache.xalan.trace,\
+org.apache.xml.dtm,\
+org.apache.xml.dtm.ref,\
+org.apache.xml.dtm.ref.sax2dtm,\
+org.apache.xml.dtm.ref.dom2dtm,\
+org.apache.xml.utils,\
+org.apache.xml.utils.res,\
+org.apache.xml.res,\
+org.apache.xml.serializer,\
+org.apache.xml.serializer.utils,\
+org.apache.xpath,\
+org.apache.xpath.domapi,\
+org.apache.xpath.objects,\
+org.apache.xpath.patterns,\
+org.apache.xpath.jaxp,\
+org.apache.xpath.res,\
+org.apache.xpath.operations,\
+org.apache.xpath.functions,\
+org.apache.xpath.axes,\
+org.apache.xpath.compiler,\
+org.apache.xml.resolver,\
+org.apache.xml.resolver.tools,\
+org.apache.xml.resolver.helpers,\
+org.apache.xml.resolver.readers,\
+org.apache.xml.resolver.etc,\
+org.apache.xml.resolver.apps,\
+javax.xml.ws,\
+javax.xml.bind,\
+javax.xml.bind.annotation,\
+javax.annotation,\
+javax.jws,\
+javax.jws.soap,\
+javax.xml.soap,\
+com.sun.xml.internal.messaging.saaj.soap.ver1_1,\
+com.sun.xml.internal.messaging.saaj.soap,\
+com.sun.tools.internal.ws.spi,\
+org.github.jamm

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/resources/log4j.properties b/products/cloud-controller/modules/distribution/src/main/resources/log4j.properties
new file mode 100644
index 0000000..0c94be5
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/resources/log4j.properties
@@ -0,0 +1,196 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#
+# This is the log4j configuration file used by WSO2 Carbon
+#
+# IMPORTANT : Please do not remove or change the names of any
+# of the Appenders defined here. The layout pattern & log file
+# can be changed using the WSO2 Carbon Management Console, and those
+# settings will override the settings in this file.
+#
+
+log4j.rootLogger=INFO, CARBON_CONSOLE, CARBON_LOGFILE, CARBON_MEMORY, CARBON_SYS_LOG
+
+log4j.logger.AUDIT_LOG=INFO, AUDIT_LOGFILE
+log4j.logger.org.apache.axis2.wsdl.codegen.writer.PrettyPrinter=ERROR, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.axis2.clustering=INFO, CARBON_CONSOLE, CARBON_LOGFILE
+log4j.logger.org.apache=INFO, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.catalina=WARN
+log4j.logger.org.apache.tomcat=WARN
+log4j.logger.org.wso2.carbon.apacheds=WARN
+log4j.logger.org.apache.directory.server.ldap=WARN
+log4j.logger.org.apache.directory.server.core.event=WARN
+log4j.logger.com.atomikos=INFO,ATOMIKOS
+log4j.logger.org.quartz=WARN
+log4j.logger.org.apache.jackrabbit.webdav=WARN
+log4j.logger.org.apache.juddi=ERROR
+log4j.logger.org.apache.commons.digester.Digester=WARN
+log4j.logger.org.apache.jasper.compiler.TldLocationsCache=WARN
+log4j.logger.org.apache.qpid=WARN
+log4j.logger.org.apache.qpid.server.Main=INFO
+log4j.logger.qpid.message=WARN
+log4j.logger.qpid.message.broker.listening=INFO
+log4j.logger.org.apache.tiles=WARN
+log4j.logger.org.apache.commons.httpclient=ERROR
+log4j.logger.org.apache.coyote=WARN
+log4j.logger.org.apache.solr=ERROR
+log4j.logger.org.infinispan=WARN
+log4j.logger.org.jgroups=ERROR
+log4j.logger.me.prettyprint.cassandra.hector.TimingLogger=ERROR
+log4j.logger.org.wso2=INFO
+log4j.logger.org.apache.axis2.enterprise=FATAL, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.opensaml.xml=WARN, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.shared.ldap=WARN, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.server.ldap.handlers=WARN, CARBON_LOGFILE, CARBON_MEMORY 
+#Following are to remove false error messages from startup (IS)
+log4j.logger.org.apache.directory.shared.ldap.entry.DefaultServerAttribute=FATAL, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.server.core.DefaultDirectoryService=ERROR, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.shared.ldap.ldif.LdifReader=ERROR, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.server.ldap.LdapProtocolHandler=ERROR, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.server.core=ERROR, CARBON_LOGFILE, CARBON_MEMORY
+#Hive Related Log configurations
+log4j.logger.DataNucleus=ERROR
+log4j.logger.Datastore=ERROR
+log4j.logger.Datastore.Schema=ERROR
+log4j.logger.JPOX.Datastore=ERROR
+log4j.logger.JPOX.Plugin=ERROR
+log4j.logger.JPOX.MetaData=ERROR
+log4j.logger.JPOX.Query=ERROR
+log4j.logger.JPOX.General=ERROR
+log4j.logger.JPOX.Enhancer=ERROR
+log4j.logger.org.apache.hadoop.hive=WARN
+log4j.logger.hive=WARN
+log4j.logger.ExecMapper=WARN
+log4j.logger.ExecReducer=WARN
+
+#cassandra specific
+
+log4j.logger.org.apache.cassandra.db=WARN
+log4j.logger.org.apache.cassandra.service=WARN
+log4j.logger.org.apache.cassandra.thrift=WARN
+log4j.logger.org.apache.cassandra.io.sstable=WARN
+log4j.logger.org.apache.cassandra.utils=WARN
+#log4j.logger.org.apache.cassandra.io.sstable=WARN
+#log4j.logger.org.apache.cassandra.io.sstable=WARN
+
+
+
+#andes specific
+log4j.logger.org.wso2.andes.server.handler.ConnectionStartOkMethodHandler=WARN
+log4j.logger.org.wso2.andes.server.handler.ChannelOpenHandler=WARN
+log4j.logger.org.wso2.andes.server.handler.ChannelCloseHandler=WARN
+log4j.logger.org.wso2.andes.server.AMQChannel=WARN
+log4j.logger.org.wso2.andes.server.handler.ConnectionCloseMethodHandler=WARN
+log4j.logger.org.wso2.andes.server.handler.QueueDeclareHandler=WARN
+log4j.logger.org.wso2.andes.server.handler.QueueBindHandler=WARN
+log4j.logger.org.wso2.andes.server.virtualhost.VirtualHostConfigRecoveryHandler=WARN
+log4j.logger.trace.messages=TRACE,CARBON_TRACE_LOGFILE
+
+log4j.additivity.org.apache.axis2.clustering=false
+log4j.additivity.com.atomikos=false
+
+# CARBON_CONSOLE is set to be a ConsoleAppender using a PatternLayout.
+log4j.appender.CARBON_CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CARBON_CONSOLE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+# ConversionPattern will be overridden by the configuration setting in the DB
+log4j.appender.CARBON_CONSOLE.layout.ConversionPattern=[%d] %P%5p {%c} - %x %m%n
+log4j.appender.CARBON_CONSOLE.layout.TenantPattern=%U%@%D[%T]
+log4j.appender.CARBON_CONSOLE.threshold=DEBUG
+
+
+# The memory appender for logging
+log4j.appender.CARBON_MEMORY=org.wso2.carbon.logging.appender.CarbonMemoryAppender
+log4j.appender.CARBON_MEMORY.bufferSize=2000
+log4j.appender.CARBON_MEMORY.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+# ConversionPattern will be overridden by the configuration setting in the DB
+log4j.appender.CARBON_MEMORY.layout.ConversionPattern=TID: [%T] [%S] [%d] %P%5p {%c} - %x %m {%c}%n
+log4j.appender.CARBON_MEMORY.layout.TenantPattern=%U%@%D [%T] [%S]
+log4j.appender.CARBON_MEMORY.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%I,%Stacktrace
+log4j.appender.CARBON_MEMORY.threshold=DEBUG
+
+# CARBON_LOGFILE is set to be a DailyRollingFileAppender using a PatternLayout.
+log4j.appender.CARBON_LOGFILE=org.apache.log4j.DailyRollingFileAppender
+# Log file will be overridden by the configuration setting in the DB
+# This path should be relative to WSO2 Carbon Home
+log4j.appender.CARBON_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon${instance.log}.log
+log4j.appender.CARBON_LOGFILE.Append=true
+log4j.appender.CARBON_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+# ConversionPattern will be overridden by the configuration setting in the DB
+log4j.appender.CARBON_LOGFILE.layout.ConversionPattern=TID: [%T] [%S] [%d] %P%5p {%c} - %x %m {%c}%n
+log4j.appender.CARBON_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
+log4j.appender.CARBON_LOGFILE.threshold=DEBUG
+
+log4j.appender.CARBON_SYS_LOG = org.apache.log4j.net.SyslogAppender
+log4j.appender.CARBON_SYS_LOG.layout=org.apache.log4j.PatternLayout
+log4j.appender.CARBON_SYS_LOG.layout.ConversionPattern=[%d] %5p {%c} - %x %m {%c}%n
+log4j.appender.CARBON_SYS_LOG.SyslogHost=localhost
+log4j.appender.CARBON_SYS_LOG.Facility=USER
+log4j.appender.CARBON_SYS_LOG.threshold=DEBUG
+
+# CASSANDRA is set to be a CassandraAppender using a PatternLayout to send logs to cassandra keyspace
+log4j.appender.CASSANDRA=org.wso2.carbon.logging.appender.LogEventAppender
+log4j.appender.CASSANDRA.keyspace=LogEntry
+log4j.appender.CASSANDRA.colFamily=logs
+log4j.appender.CASSANDRA.url=localhost:9160
+log4j.appender.CASSANDRA.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+log4j.appender.CASSANDRA.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%Stacktrace
+
+# LOGEVENT is set to be a LogEventAppender using a PatternLayout to send logs to LOGEVENT 
+log4j.appender.LOGEVENT=org.wso2.carbon.logging.appender.LogEventAppender
+log4j.appender.LOGEVENT.url=tcp://10.100.3.103:7611
+log4j.appender.LOGEVENT.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+log4j.appender.LOGEVENT.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%I,%Stacktrace
+log4j.appender.LOGEVENT.userName=admin
+log4j.appender.LOGEVENT.password=admin
+
+# Appender config to CARBON_TRACE_LOGFILE
+log4j.appender.CARBON_TRACE_LOGFILE=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.CARBON_TRACE_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon-trace-messages${instance.log}.log
+log4j.appender.CARBON_TRACE_LOGFILE.Append=true
+log4j.appender.CARBON_TRACE_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+log4j.appender.CARBON_TRACE_LOGFILE.layout.ConversionPattern=[%d] %P%5p {%c} - %x %m {%c}%n
+log4j.appender.CARBON_TRACE_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
+log4j.appender.CARBON_TRACE_LOGFILE.threshold=TRACE
+log4j.additivity.trace.messages=false
+
+# Appender config to AUDIT_LOGFILE
+log4j.appender.AUDIT_LOGFILE=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.AUDIT_LOGFILE.File=${carbon.home}/repository/logs/audit.log
+log4j.appender.AUDIT_LOGFILE.Append=true
+log4j.appender.AUDIT_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+log4j.appender.AUDIT_LOGFILE.layout.ConversionPattern=[%d] %P%5p - %x %m %n
+log4j.appender.AUDIT_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
+log4j.appender.AUDIT_LOGFILE.threshold=INFO
+log4j.additivity.AUDIT_LOG=false
+
+# Appender config to send Atomikos transaction logs to new log file tm.out.
+log4j.appender.ATOMIKOS = org.apache.log4j.RollingFileAppender
+log4j.appender.ATOMIKOS.File = repository/logs/tm.out
+log4j.appender.ATOMIKOS.Append = true
+log4j.appender.ATOMIKOS.layout = org.apache.log4j.PatternLayout
+log4j.appender.ATOMIKOS.layout.ConversionPattern=%p %t %c - %m%n
+
+# This file is used to override the default logger settings, and is used to remove unwanted logs from Shindig appearing on the console.
+
+# Specification of Handler used by Console Logger
+handlers=java.util.logging.ConsoleHandler
+
+# Replacing default INFO level with SEVERE
+java.util.logging.ConsoleHandler.level=SEVERE

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/resources/stratos.bat
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/resources/stratos.bat b/products/cloud-controller/modules/distribution/src/main/resources/stratos.bat
new file mode 100644
index 0000000..0936425
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/resources/stratos.bat
@@ -0,0 +1,274 @@
+@echo off
+
+rem ---------------------------------------------------------------------------
+rem Licensed to the Apache Software Foundation (ASF) under one
+rem or more contributor license agreements.  See the NOTICE file
+rem distributed with this work for additional information
+rem regarding copyright ownership.  The ASF licenses this file
+rem to you under the Apache License, Version 2.0 (the
+rem "License"); you may not use this file except in compliance
+rem with the License.  You may obtain a copy of the License at
+rem
+rem     http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing,
+rem software distributed under the License is distributed on an
+rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+rem KIND, either express or implied.  See the License for the
+rem specific language governing permissions and limitations
+rem under the License.
+
+rem ---------------------------------------------------------------------------
+rem Main Script for Apache Stratos
+rem
+rem Environment Variable Prerequisites
+rem
+rem   JAVA_HOME       Must point at your Java Development Kit installation.
+rem
+rem   JAVA_OPTS       (Optional) Java runtime options used when the commands
+rem                   is executed.
+rem ---------------------------------------------------------------------------
+
+rem ----- if JAVA_HOME is not set we're not happy ------------------------------
+:checkJava
+
+if "%JAVA_HOME%" == "" goto noJavaHome
+if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
+goto checkServer
+
+:noJavaHome
+echo "You must set the JAVA_HOME variable before running CARBON."
+goto end
+
+rem ----- Only set CARBON_HOME if not already set ----------------------------
+:checkServer
+rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed
+if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..
+SET curDrive=%cd:~0,1%
+SET wsasDrive=%CARBON_HOME:~0,1%
+if not "%curDrive%" == "%wsasDrive%" %wsasDrive%:
+
+rem find CARBON_HOME if it does not exist due to either an invalid value passed
+rem by the user or the %0 problem on Windows 9x
+if not exist "%CARBON_HOME%\bin\version.txt" goto noServerHome
+
+set AXIS2_HOME=%CARBON_HOME%
+goto updateClasspath
+
+:noServerHome
+echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME.
+goto end
+
+rem ----- update classpath -----------------------------------------------------
+:updateClasspath
+
+setlocal EnableDelayedExpansion
+cd %CARBON_HOME%
+set CARBON_CLASSPATH=
+FOR %%C in ("%CARBON_HOME%\bin\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\%%~nC%%~xC"
+
+set CARBON_CLASSPATH="%JAVA_HOME%\lib\tools.jar";%CARBON_CLASSPATH%;
+
+rem ----- Process the input command -------------------------------------------
+
+rem Slurp the command line arguments. This loop allows for an unlimited number
+rem of arguments (up to the command line limit, anyway).
+
+
+:setupArgs
+if ""%1""=="""" goto doneStart
+if ""%1""==""-start""   goto startWinService
+if ""%1""==""--start""  goto startWinService
+if ""%1""==""start""    goto startWinService
+
+if ""%1""==""-run""     goto commandLifecycle
+if ""%1""==""--run""    goto commandLifecycle
+if ""%1""==""run""      goto commandLifecycle
+
+if ""%1""==""-restart""  goto commandLifecycle
+if ""%1""==""--restart"" goto commandLifecycle
+if ""%1""==""restart""   goto commandLifecycle
+
+if ""%1""==""-stop""    goto stopWinService
+if ""%1""==""--stop""   goto stopWinService
+if ""%1""==""stop""     goto stopWinService
+
+if ""%1""==""debug""    goto commandDebug
+if ""%1""==""-debug""   goto commandDebug
+if ""%1""==""--debug""  goto commandDebug
+
+if ""%1""==""version""   goto commandVersion
+if ""%1""==""-version""  goto commandVersion
+if ""%1""==""--version"" goto commandVersion
+
+shift
+goto setupArgs
+
+rem ----- commandVersion -------------------------------------------------------
+:commandVersion
+shift
+type "%CARBON_HOME%\bin\version.txt"
+type "%CARBON_HOME%\bin\wso2carbon-version.txt"
+goto end
+
+rem ----- commandDebug ---------------------------------------------------------
+:commandDebug
+shift
+set DEBUG_PORT=%1
+if "%DEBUG_PORT%"=="" goto noDebugPort
+if not "%JAVA_OPTS%"=="" echo Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option.
+set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%DEBUG_PORT%
+echo Please start the remote debugging client to continue...
+goto findJdk
+
+:noDebugPort
+echo Please specify the debug port after the --debug option
+goto end
+
+rem ----- commandLifecycle -----------------------------------------------------
+:commandLifecycle
+goto findJdk
+
+rem ----- doneStart ------------------------------------------------------------
+rem This label provides a place for the argument list loop to break out
+rem and for NT handling to skip to.
+
+:doneStart
+if "%OS%"=="Windows_NT" @setlocal
+if "%OS%"=="WINNT" @setlocal
+
+rem ---------- Handle the SSL Issue with proper JDK version --------------------
+rem find the version of the jdk
+:findJdk
+
+set CMD=RUN %*
+
+:checkJdk16
+"%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[6|7]" >NUL
+IF ERRORLEVEL 1 goto unknownJdk
+goto jdk16
+
+:unknownJdk
+echo Starting WSO2 Carbon (in unsupported JDK)
+echo [ERROR] CARBON is supported only on JDK 1.6 and 1.7
+goto jdk16
+
+:jdk16
+goto runServer
+
+rem ----------------- Execute The Requested Command ----------------------------
+
+:runServer
+cd %CARBON_HOME%
+
+rem ---------- Add jars to classpath ----------------
+
+set CARBON_CLASSPATH=.\lib;%CARBON_CLASSPATH%
+
+set JAVA_ENDORSED=".\lib\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed"
+
+set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms256m -Xmx512m -XX:MaxPermSize=256m -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -DandesConfig=qpid-config.xml -Ddisable.cassandra.server.startup=true -Dcarbon.registry.root=/ -Dcarbon.home="%CARBON_HOME%" -Dwso2.server.standalone=true -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcatalina.base="%CARBON_HOME%\lib\tomcat" -Dwso2.carbon.xml=%CARBON_HOME%\repository\conf\carbon.xml -Dwso2.registry.xml="%CARBON_HOME%\repository\conf\registry.xml" -Dwso2.user.mgt.xml="%CARBON_HOME%\repository\conf\user-mgt.xml" -Dwso2.transports.xml="%CARBON_HOME%\repository\conf\mgt-transports.xml" -Djava.util.logging.config.file="%CARBON_HOME%\repository\conf\log4j.properties" -Dcarbon.config.dir.path="%CARBON_HOME%\repository\conf" -Dcarbon.logs.path="%CARBON_HOME%\repository\logs" -Dcomponents.repo="%CARBON_HOME%\repos
 itory\components" -Dcom.atomikos.icatch.file="%CARBON_HOME%\lib\transactions.properties" -Dcom.atomikos.icatch.hide_init_file_path="true" -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dcom.sun.jndi.ldap.connect.pool.authentication=simple -Dcom.sun.jndi.ldap.connect.pool.timeout=3000 -Dorg.terracotta.quartz.skipUpdateCheck=true -Dcarbon.classpath=%CARBON_CLASSPATH%
+
+:runJava
+echo JAVA_HOME environment variable is set to %JAVA_HOME%
+echo CARBON_HOME environment variable is set to %CARBON_HOME%
+"%JAVA_HOME%\bin\java" %CMD_LINE_ARGS% org.wso2.carbon.bootstrap.Bootstrap %CMD%
+if "%ERRORLEVEL%"=="121" goto runJava
+:end
+goto endlocal
+
+:startWinService
+rem
+rem Locating Carbon Home
+rem
+rem %~dp0 is the location of this script under NT
+set _REALPATH=%~dp0..\
+
+rem Decide on the wrapper binary.
+set _WRAPPER_BASE=wrapper
+set _WRAPPER_DIR=%_REALPATH%bin\native\
+set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-32.exe
+if exist "%_WRAPPER_EXE%" goto conf
+set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-64.exe
+if exist "%_WRAPPER_EXE%" goto conf
+set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%.exe
+if exist "%_WRAPPER_EXE%" goto conf
+echo Unable to locate a Wrapper executable using any of the following names:
+echo %_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-32.exe
+echo %_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-64.exe
+echo %_WRAPPER_DIR%%_WRAPPER_BASE%.exe
+pause
+goto :eof
+rem
+rem Locating wrapper.conf
+rem
+:conf
+set _WRAPPER_CONF="%_REALPATH%repository\conf\wrapper.conf"
+rem
+
+rem Starting the Carbon Windows service.
+rem
+"%_WRAPPER_EXE%" -t %_WRAPPER_CONF% 2>&1 | findstr "failed" >NUL
+if not errorlevel 1 goto install
+echo The Carbon Windows Service is now running.
+goto endlocal
+
+:install
+echo The Carbon Windows Service is not installed. Would you like to install it now? (y/n)
+set INPUT=
+set /P INPUT=Type input: %=%
+if "%INPUT%"=="" goto install
+if "%INPUT%"=="n" goto noservice
+echo Installing Windows service
+"%_WRAPPER_EXE%" -i %_WRAPPER_CONF%
+"%_WRAPPER_EXE%" -t %_WRAPPER_CONF%
+echo The Carbon Windows Service is now running.
+goto endlocal
+
+rem If we reached here, it means that the service has failed.
+echo [ERROR] Failed to start the Carbon Windows Service.
+
+:noservice
+echo Sorry. You can't use -start or -stop without installing the Windows service.
+goto endlocal
+
+:stopWinService
+rem
+rem Locating Carbon Home
+rem
+rem %~dp0 is the location of this script under NT
+set _REALPATH=%~dp0..\
+
+rem Decide on the wrapper binary.
+set _WRAPPER_BASE=wrapper
+set _WRAPPER_DIR=%_REALPATH%bin\native\
+set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-32.exe
+if exist "%_WRAPPER_EXE%" goto conf
+set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-64.exe
+if exist "%_WRAPPER_EXE%" goto conf
+set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%.exe
+if exist "%_WRAPPER_EXE%" goto conf
+echo Unable to locate a Wrapper executable using any of the following names:
+echo %_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-32.exe
+echo %_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-64.exe
+echo %_WRAPPER_DIR%%_WRAPPER_BASE%.exe
+goto :eof
+
+rem
+rem Locating wrapper.conf
+rem
+:conf
+set _WRAPPER_CONF="%_REALPATH%repository\conf\wrapper.conf"
+rem
+rem Stopping the Carbon Windows service.
+rem
+"%_WRAPPER_EXE%" -p %_WRAPPER_CONF%
+echo The Carbon Windows Service is now stopped.
+goto endlocal
+
+rem If we reached here, it means that the service has failed.
+echo [ERROR] Failed to stop the Carbon Windows Service.
+
+:endlocal
+
+:END

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/resources/stratos.sh
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/resources/stratos.sh b/products/cloud-controller/modules/distribution/src/main/resources/stratos.sh
new file mode 100644
index 0000000..ea68142
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/resources/stratos.sh
@@ -0,0 +1,296 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# ----------------------------------------------------------------------------
+# Main Script for the Apache Stratos
+#
+# Environment Variable Prerequisites
+#
+#   JAVA_HOME       Must point at your Java Development Kit installation.
+#
+#   JAVA_OPTS       (Optional) Java runtime options used when the commands
+#                   is executed.
+#
+# NOTE: Borrowed generously from Apache Tomcat startup scripts.
+# -----------------------------------------------------------------------------
+
+# OS specific support.  $var _must_ be set to either true or false.
+
+cygwin=false;
+darwin=false;
+os400=false;
+mingw=false;
+case "`uname`" in
+CYGWIN*) cygwin=true;;
+MINGW*) mingw=true;;
+OS400*) os400=true;;
+Darwin*) darwin=true
+        if [ -z "$JAVA_VERSION" ] ; then
+             JAVA_VERSION="CurrentJDK"
+           else
+             echo "Using Java version: $JAVA_VERSION"
+           fi
+           if [ -z "$JAVA_HOME" ] ; then
+             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
+           fi
+           ;;
+esac
+
+# resolve links - $0 may be a softlink
+PRG="$0"
+
+while [ -h "$PRG" ]; do
+  ls=`ls -ld "$PRG"`
+  link=`expr "$ls" : '.*-> \(.*\)$'`
+  if expr "$link" : '.*/.*' > /dev/null; then
+    PRG="$link"
+  else
+    PRG=`dirname "$PRG"`/"$link"
+  fi
+done
+
+# Get standard environment variables
+PRGDIR=`dirname "$PRG"`
+
+# Only set CARBON_HOME if not already set
+[ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd`
+
+# Set AXIS2_HOME. Needed for One Click JAR Download
+AXIS2_HOME=$CARBON_HOME
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+  [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+  [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
+  [ -n "$AXIS2_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
+fi
+
+# For OS400
+if $os400; then
+  # Set job priority to standard for interactive (interactive - 6) by using
+  # the interactive priority - 6, the helper threads that respond to requests
+  # will be running at the same priority as interactive jobs.
+  COMMAND='chgjob job('$JOBNAME') runpty(6)'
+  system $COMMAND
+
+  # Enable multi threading
+  QIBM_MULTI_THREADED=Y
+  export QIBM_MULTI_THREADED
+fi
+
+# For Migwn, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+  [ -n "$CARBON_HOME" ] &&
+    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+  [ -n "$AXIS2_HOME" ] &&
+    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
+  # TODO classpath?
+fi
+
+if [ -z "$JAVACMD" ] ; then
+  if [ -n "$JAVA_HOME"  ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+      # IBM's JDK on AIX uses strange locations for the executables
+      JAVACMD="$JAVA_HOME/jre/sh/java"
+    else
+      JAVACMD="$JAVA_HOME/bin/java"
+    fi
+  else
+    JAVACMD=java
+  fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+  echo "Error: JAVA_HOME is not defined correctly."
+  echo " CARBON cannot execute $JAVACMD"
+  exit 1
+fi
+
+# if JAVA_HOME is not set we're not happy
+if [ -z "$JAVA_HOME" ]; then
+  echo "You must set the JAVA_HOME variable before running CARBON."
+  exit 1
+fi
+
+# ----- Process the input command ----------------------------------------------
+for c in $*
+do
+    if [ "$c" = "--debug" ] || [ "$c" = "-debug" ] || [ "$c" = "debug" ]; then
+          CMD="--debug"
+          continue
+    elif [ "$CMD" = "--debug" ]; then
+          if [ -z "$PORT" ]; then
+                PORT=$c
+          fi
+    elif [ "$c" = "--n" ] || [ "$c" = "-n" ] || [ "$c" = "n" ]; then
+          CMD="--n"
+          continue
+    elif [ "$CMD" = "--n" ]; then
+          if [ -z "$INSTANCES" ]; then
+                INSTANCES=$c
+          fi
+    elif [ "$c" = "--stop" ] || [ "$c" = "-stop" ] || [ "$c" = "stop" ]; then
+          CMD="stop"
+    elif [ "$c" = "--start" ] || [ "$c" = "-start" ] || [ "$c" = "start" ]; then
+          CMD="start"
+    elif [ "$c" = "--console" ] || [ "$c" = "-console" ] || [ "$c" = "console" ]; then
+          CMD="console"
+    elif [ "$c" = "--version" ] || [ "$c" = "-version" ] || [ "$c" = "version" ]; then
+          CMD="version"
+    elif [ "$c" = "--restart" ] || [ "$c" = "-restart" ] || [ "$c" = "restart" ]; then
+          CMD="restart"
+    elif [ "$c" = "--dump" ] || [ "$c" = "-dump" ] || [ "$c" = "dump" ]; then
+          CMD="dump"
+    elif [ "$c" = "--test" ] || [ "$c" = "-test" ] || [ "$c" = "test" ]; then
+          CMD="test"
+    elif [ "$c" = "--status" ] || [ "$c" = "-status" ] || [ "$c" = "status" ]; then
+          CMD="status"
+    fi
+done
+
+if [ "$CMD" = "--debug" ]; then
+  if [ "$PORT" = "" ]; then
+    echo " Please specify the debug port after the --debug option"
+    exit 1
+  fi
+  if [ -n "$JAVA_OPTS" ]; then
+    echo "Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option."
+  fi
+  CMD="RUN"
+  JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT"
+  echo "Please start the remote debugging client to continue..."
+elif [ "$CMD" = "--n" ]; then
+  if [ "$INSTANCES" = "" ] || [ ! -z `echo $INSTANCES | sed 's/[0-9]//g'` ]]; then
+    echo " Please specify the number of instances to start after the --n option"
+    exit 1
+  fi
+elif [ "$CMD" = "start" ]; then
+  export CARBON_HOME=$CARBON_HOME
+  nohup $CARBON_HOME/bin/stratos.sh &
+  exit 0
+elif [ "$CMD" = "stop" ]; then
+  export CARBON_HOME=$CARBON_HOME
+  kill -9 `cat $CARBON_HOME/wso2carbon.pid`
+  exit 0
+elif [ "$CMD" = "restart" ]; then
+  export CARBON_HOME=$CARBON_HOME
+  kill -9 `cat $CARBON_HOME/wso2carbon.pid`
+  nohup $CARBON_HOME/bin/stratos.sh &
+  exit 0
+elif [ "$CMD" = "test" ]; then
+    JAVACMD="exec "$JAVACMD""
+elif [ "$CMD" = "version" ]; then
+  cat $CARBON_HOME/bin/version.txt
+  cat $CARBON_HOME/bin/wso2carbon-version.txt
+  exit 0
+fi
+
+# ---------- Handle the SSL Issue with proper JDK version --------------------
+jdk_16=`$JAVA_HOME/bin/java -version 2>&1 | grep "1.[6|7]"`
+if [ "$jdk_16" = "" ]; then
+   echo " Starting WSO2 Carbon (in unsupported JDK)"
+   echo " [ERROR] CARBON is supported only on JDK 1.6 and 1.7"
+fi
+
+CARBON_XBOOTCLASSPATH=""
+for f in "$CARBON_HOME"/lib/xboot/*.jar
+do
+    if [ "$f" != "$CARBON_HOME/lib/xboot/*.jar" ];then
+        CARBON_XBOOTCLASSPATH="$CARBON_XBOOTCLASSPATH":$f
+    fi
+done
+
+JAVA_ENDORSED_DIRS="$CARBON_HOME/lib/endorsed":"$JAVA_HOME/jre/lib/endorsed":"$JAVA_HOME/lib/endorsed"
+
+CARBON_CLASSPATH=""
+if [ -e "$JAVA_HOME/lib/tools.jar" ]; then
+    CARBON_CLASSPATH="$JAVA_HOME/lib/tools.jar"
+fi
+for f in "$CARBON_HOME"/bin/*.jar
+do
+    if [ "$f" != "$CARBON_HOME/bin/*.jar" ];then
+        CARBON_CLASSPATH="$CARBON_CLASSPATH":$f
+    fi
+done
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+  JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
+  CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
+  AXIS2_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
+  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+  JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
+  CARBON_CLASSPATH=`cygpath --path --windows "$CARBON_CLASSPATH"`
+  CARBON_XBOOTCLASSPATH=`cygpath --path --windows "$CARBON_XBOOTCLASSPATH"`
+fi
+
+# ----- Execute The Requested Command -----------------------------------------
+
+echo JAVA_HOME environment variable is set to $JAVA_HOME
+echo CARBON_HOME environment variable is set to $CARBON_HOME
+
+cd "$CARBON_HOME"
+
+START_EXIT_STATUS=121
+status=$START_EXIT_STATUS
+
+while [ "$status" = "$START_EXIT_STATUS" ]
+do
+    $JAVACMD \
+     -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \
+     -d64 \
+     -server \
+     -Xms1500m -Xmx3000m \
+     -XX:PermSize=256m -XX:MaxPermSize=512m \
+     -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:-UseGCOverheadLimit \
+     -XX:+CMSClassUnloadingEnabled \
+     -XX:+OptimizeStringConcat \
+     -XX:+HeapDumpOnOutOfMemoryError \
+     -XX:OnOutOfMemoryError="kill -9 `echo $$`;nohup ./stratos.sh &" \
+     -XX:HeapDumpPath=repository/logs/heap-dump.hprof \
+     -XX:ErrorFile=repository/logs/hs_err_pid.log \
+     -XX:OnError="nohup ./stratos.sh &" \
+     -javaagent:"$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar" \
+    $JAVA_OPTS \
+    -DandesConfig=qpid-config.xml \
+    -Ddisable.cassandra.server.startup=true \
+    -Dcom.sun.management.jmxremote \
+    -classpath "$CARBON_CLASSPATH" \
+    -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" \
+    -Djava.io.tmpdir="$CARBON_HOME/tmp" \
+    -Dcatalina.base="$CARBON_HOME/lib/tomcat" \
+    -Dwso2.server.standalone=true \
+    -Dcarbon.registry.root=/ \
+    -Djava.command="$JAVACMD" \
+    -Dcarbon.home="$CARBON_HOME" \
+    -Dwso2.transports.xml="$CARBON_HOME/repository/conf/mgt-transports.xml" \
+    -Djava.util.logging.config.file="$CARBON_HOME/repository/conf/log4j.properties" \
+    -Dcarbon.config.dir.path="$CARBON_HOME/repository/conf" \
+    -Dcomponents.repo="$CARBON_HOME/repository/components/plugins" \
+    -Dcom.atomikos.icatch.file="$CARBON_HOME/lib/transactions.properties" \
+    -Dcom.atomikos.icatch.hide_init_file_path=true \
+    -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true \
+    -Dcom.sun.jndi.ldap.connect.pool.authentication=simple  \
+    -Dcom.sun.jndi.ldap.connect.pool.timeout=3000  \
+    -Dorg.terracotta.quartz.skipUpdateCheck=true \
+    org.wso2.carbon.bootstrap.Bootstrap $*
+    status=$?
+done

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/p2-profile/pom.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/p2-profile/pom.xml b/products/cloud-controller/modules/p2-profile/pom.xml
new file mode 100644
index 0000000..426c104
--- /dev/null
+++ b/products/cloud-controller/modules/p2-profile/pom.xml
@@ -0,0 +1,608 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.stratos.cc</groupId>
+        <artifactId>cc-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>apache-stratos-cc-p2-profile</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Cloud Controller - P2 Profile Generation</name>
+    <url>http://apache.org</url>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <version>2.0-alpha-4</version>
+                <inherited>false</inherited>
+                <executions>
+                    <execution>
+                        <id>1-unpack-p2-agent-distribution</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>unpack</goal>
+                        </goals>
+                        <configuration>
+                             <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.wso2.carbon</groupId>
+                                    <artifactId>wso2carbon-core</artifactId>
+                                    <version>${carbon.kernel.version}</version>
+                                    <type>zip</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target</outputDirectory>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+		    <execution>
+                        <id>2-unpack-kernel-patch</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>unpack</goal>
+                        </goals>
+                        <configuration>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.wso2.carbon</groupId>
+                                    <artifactId>WSO2-CARBON-PATCH-4.1.0</artifactId>
+                                    <version>0002</version>
+                                    <type>zip</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target</outputDirectory>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.wso2.maven</groupId>
+                <artifactId>carbon-p2-plugin</artifactId>
+                <version>${carbon.p2.plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>2-p2-repo-generation</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>p2-repo-gen</goal>
+                        </goals>
+                        <configuration>
+                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
+                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
+                            <publishArtifacts>true</publishArtifacts>
+                            <publishArtifactRepository>true</publishArtifactRepository>
+                            <featureArtifacts>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.logging.mgt.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.databridge.datapublisher.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.system.statistics.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.soaptracer.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.security.mgt.server.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.message.flows.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.xfer.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.mex.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.tryit.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.registry.core.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.registry.ui.menu.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.registry.resource.properties.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.statistics.transport.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.wsdl.tools.feature:${carbon.version}
+                                </featureArtifactDef>
+				<featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.event.server.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.um.ws.service.server.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.andes.feature:${carbon.version}
+                                </featureArtifactDef>
+				<featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.cassandra.server.feature:4.1.1
+                                </featureArtifactDef>
+                                
+                                <!-- Features related to Cloud -->
+                                <featureArtifactDef>
+                                    org.apache.stratos:org.apache.stratos.common.feature:3.0.0-SNAPSHOT
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.apache.stratos:org.apache.stratos.usage.agent.feature:${project.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.apache.stratos:org.apache.stratos.throttling.agent.feature:${project.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.apache.stratos:org.apache.stratos.deployment.feature:${project.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.apache.stratos:org.apache.stratos.lb.agent.server.feature:${project.version}
+                                </featureArtifactDef>
+				 <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature:${carbon.version}
+                                </featureArtifactDef>
+				 <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.identity.authenticator.saml2.sso.server.feature:${carbon.version}
+                                </featureArtifactDef>
+
+				<!--***********************************CC features*********************************-->
+				<featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.module.mgt.server.feature:${carbon.version}
+                                </featureArtifactDef>
+				<featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.throttle.server.feature:${carbon.version}
+                                </featureArtifactDef>
+				<featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.caching.server.feature:${carbon.version}
+                                </featureArtifactDef>
+				<featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.rm.server.feature:${carbon.version}
+                                </featureArtifactDef>
+				<featureArtifactDef>
+                                    org.apache.stratos:org.apache.stratos.cloud.controller.feature:${project.version}
+                                </featureArtifactDef>
+                                
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.coordination.server.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.coordination.core.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <!--featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.andes.server.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.event.server.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.cassandra.server.feature:${carbon.version}
+                                </featureArtifactDef-->
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.tryit.feature:${carbon.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.apache.stratos:org.apache.stratos.lb.common.feature:${project.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.ntask.core.feature:${carbon.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.service.mgt.server.feature:${carbon.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.transport.mgt.server.feature:${carbon.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.transport.nhttp.feature:${carbon.patch.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.datasource.server.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.apache.synapse.wso2.feature:${synapse.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.apache.synapse.transport.nhttp.feature:${synapse.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.task.server.feature:${carbon.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.mediation.initializer.feature:${carbon.version}
+                                </featureArtifactDef>
+
+                                <!--featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.localentry.server.feature:${carbon.version}
+                                </featureArtifactDef-->
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.endpoint.server.feature:${carbon.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.sequences.server.feature:${carbon.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.mediators.server.feature:${carbon.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.relay.server.feature:${carbon.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.transports.passthru.feature:${passthru.transport.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.databridge.datapublisher.feature:${carbon.version}
+                                </featureArtifactDef>
+
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.registry.core.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.registry.ui.menu.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.registry.resource.properties.feature:${carbon.version}
+                                </featureArtifactDef>
+
+				<!--***********************************CC features end**********************************************-->
+                                
+                            </featureArtifacts>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>3-p2-profile-generation</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>p2-profile-gen</goal>
+                        </goals>
+                        <configuration>
+                            <profile>WSO2CarbonProfile</profile>
+                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
+                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
+                            <destination>
+                                ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
+                            </destination>
+                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
+                            <features>
+				<!--***********************************CC features start**********************************************-->
+			       <feature>
+                                    <id>org.wso2.carbon.module.mgt.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+                                    <id>org.wso2.carbon.throttle.server.feature.group</id>
+				    <version>${carbon.version}</version>
+                                </feature>
+				<feature>
+                                    <id>org.wso2.carbon.caching.server.feature.group</id>
+				    <version>${carbon.version}</version>
+                                </feature>
+				<feature>
+				    <id>org.wso2.carbon.rm.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+				<feature>
+                                    <id>org.wso2.carbon.tryit.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.coordination.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <!--feature>
+                                    <id>org.wso2.carbon.andes.server.feature.group</id>
+                                    <version>4.0.5</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.event.server.feature.group</id>
+                                    <version>4.0.5</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.cassandra.server.feature.group</id>
+                                    <version>4.0.5</version>
+                                </feature-->
+                                <feature>
+                                    <id>org.wso2.carbon.coordination.core.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.apache.stratos.lb.common.feature.group</id>
+                                    <version>${project.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.ntask.core.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.apache.stratos.cloud.controller.feature.group</id>
+                                    <version>${project.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.apache.synapse.wso2.feature.group</id>
+                                    <version>${synapse.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.apache.synapse.transport.nhttp.feature.group</id>
+                                    <version>${synapse.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.task.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.datasource.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.mediation.initializer.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.service.mgt.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.transport.mgt.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.transport.nhttp.feature.group</id>
+                                    <version>${carbon.patch.version}</version>
+                                </feature>
+                                <!--feature>
+                                    <id>org.wso2.carbon.localentry.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature-->
+                                <feature>
+                                    <id>org.wso2.carbon.endpoint.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.sequences.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.mediators.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.relay.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.transports.passthru.feature.group</id>
+                                    <version>${passthru.transport.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+
+                                <feature>
+                                    <id>org.wso2.carbon.registry.core.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+
+                                <feature>
+                                    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+
+                                <feature>
+                                    <id>org.wso2.carbon.registry.resource.properties.feature.group
+                                    </id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <!--feature>
+                                    <id>org.wso2.carbon.load.balance.agent.ui.feature.group</id>
+                                    <version>${stratos.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.aws.java.sdk.feature.group</id>
+                                    <version>1.0.0</version>
+                                </feature-->
+
+                                <!--feature>
+                                    <id>org.wso2.carbon.mediator.autoscale.feature.group</id>
+                                    <version>${carbon.platform.patch.version.4.0.3}</version>
+                                </feature-->
+                                <!--feature>
+                                    <id>org.wso2.carbon.lb.common.feature.group</id>
+                                    <version>${carbon.platform.patch.version.4.0.2}</version>
+                                </feature-->
+                                
+				<!--***********************************CC features end**********************************************-->
+				<!--***********************************MB features start**********************************************-->
+                                <feature>
+                                    <id>org.wso2.carbon.logging.mgt.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.statistics.transport.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.system.statistics.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.soaptracer.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.security.mgt.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.message.flows.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.xfer.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.mex.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.tryit.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.registry.core.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.registry.resource.properties.feature.group
+                                    </id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.wsdl.tools.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+
+                                <feature>
+                                    <id>org.wso2.carbon.event.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.um.ws.service.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.andes.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+                                <!--feature>
+                                    <id>org.wso2.stratos.mb.styles.feature.group</id>
+                                    <version>${project.version}</version>
+                                </feature-->
+                                <!--feature>
+                                    <id>org.wso2.stratos.mb.dashboard.ui.feature.group</id>
+                                    <version>${project.version}</version>
+                                </feature-->
+                                <!--Cloud service deployment feature -->
+                                <feature>
+                                    <id>org.apache.stratos.deployment.feature.group</id>
+                                    <version>${project.version}</version>
+                                </feature>
+
+                                <!-- multitenancy feature groups -->
+                                <feature>
+                                    <id>org.apache.stratos.common.feature.group</id>
+                                    <version>3.0.0-SNAPSHOT</version>
+                                </feature>
+
+                                <feature>
+                                    <id>org.apache.stratos.lb.agent.server.feature.group</id>
+                                    <version>${project.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.apache.stratos.usage.agent.feature.group</id>
+                                    <version>${project.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.apache.stratos.throttling.agent.feature.group</id>
+                                    <version>${project.version}</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.cassandra.server.feature.group</id>
+                                    <version>4.1.1</version>
+                                </feature>
+                                <feature>
+                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+				<feature>
+                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group</id>
+                                    <version>${carbon.version}</version>
+                                </feature>
+				<!--***********************************MB features end**********************************************-->
+
+                            </features>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.1</version>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <configuration>
+                            <tasks>
+                                <replace token="false" value="true"
+                                         dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/configuration/org.eclipse.equinox.simpleconfigurator">
+                                    <include name="**/bundles.info"/>
+                                </replace>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+    
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/product/src/main/resources/META-INF/product.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/product/src/main/resources/META-INF/product.xml b/products/cloud-controller/modules/styles/product/src/main/resources/META-INF/product.xml
new file mode 100644
index 0000000..9ea2e9c
--- /dev/null
+++ b/products/cloud-controller/modules/styles/product/src/main/resources/META-INF/product.xml
@@ -0,0 +1,28 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<product xmlns="http://products.wso2.org/carbon">
+    <properties>
+       <property name="userforum">http://wso2.org/forum/187</property>
+       <property name="userguide">http://docs.wso2.org/wiki/display/ESB470/Enterprise+Service+Bus+Documentation</property>
+       <property name="mailinglist">http://wso2.org/mail</property>
+       <property name="issuetracker">https://wso2.org/jira/browse/ESBJAVA</property>
+       <property name="collapsedmenus">region1_configure_menu,region3_registry_menu,region4_monitor_menu,region5_tools_menu</property>
+       <property name="webAdminConsoleTitle">WSO2 Enterprise Service Bus (WSO2 ESB)</property>
+    </properties>
+</product>


[33/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/loadbalancer.conf
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/loadbalancer.conf b/products/stratos-controller/conf/loadbalancer.conf
new file mode 100644
index 0000000..138c087
--- /dev/null
+++ b/products/stratos-controller/conf/loadbalancer.conf
@@ -0,0 +1,29 @@
+services {
+    # default parameter values to be used in all services
+    defaults {
+        # minimum number of service instances required. WSO2 ELB will make sure that this much of instances
+        # are maintained in the system all the time, of course only when autoscaling is enabled.
+        min_app_instances       1;
+        # maximum number of service instances that will be load balanced by this ELB.
+        max_app_instances       5;
+        # you need to calibrate autoscaling parameters before start using. Please go through following blog post
+        # http://nirmalfdo.blogspot.com/2013/01/scale-up-early-scale-down-slowly.html
+        max_requests_per_second   5;
+        alarming_upper_rate 0.7;
+        alarming_lower_rate 0.2;
+        scale_down_factor 0.25;
+        rounds_to_average       2;
+        message_expiry_time     60000;
+    }
+    
+    identity {
+        hosts                   identity.aaaa.cloud-test.wso2.com;
+        domains   {
+            wso2.identity.aaaa.domain {
+                tenant_range    *;
+            }
+            
+        }
+    }
+    
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/metering-config-non-manager.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/metering-config-non-manager.xml b/products/stratos-controller/conf/metering-config-non-manager.xml
new file mode 100755
index 0000000..e108687
--- /dev/null
+++ b/products/stratos-controller/conf/metering-config-non-manager.xml
@@ -0,0 +1,104 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<meteringConfig xmlns="http://wso2.com/carbon/multitenancy/metering/config">
+    <tasks>
+        <task service="org.wso2.stratos.metering.agent.task.PerRegistryRequestTask">
+            <preHandlers>
+                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoRetriever">
+                </handler>
+                <handler service="org.wso2.stratos.metering.agent.handlers.RegistryActionValidator">
+                </handler>
+            </preHandlers>
+            <postHandlers>
+                <handler service="org.wso2.stratos.metering.agent.handlers.RemoteTaskInvoker"
+                        async="true" frequency="1"><!-- trigger per each request-->
+                    <parameter name="taskServiceUrl">https://localhost:9443/services/</parameter>
+                    <parameter name="userName">admin</parameter>
+                    <parameter name="password">admin</parameter>
+                    <parameter name="taskName">org.wso2.stratos.metering.manager.task.PerRegistryRequestRemoteTask</parameter>
+                </handler>
+            </postHandlers>
+        </task>
+        <task service="org.wso2.stratos.metering.agent.task.PerUserAddRequestTask">
+            <preHandlers>
+                <handler service="org.wso2.stratos.metering.agent.handlers.RemoteTaskInvoker"
+                        async="false" frequency="1"><!-- trigger per each request-->
+                    <parameter name="taskServiceUrl">https://localhost:9443/services/</parameter>
+                    <parameter name="userName">admin</parameter>
+                    <parameter name="password">admin</parameter>
+                    <parameter name="taskName">org.wso2.stratos.metering.manager.task.PerUserAddRequestRemoteTask</parameter>
+                </handler>
+                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoRetriever">
+                </handler>
+                <handler service="org.wso2.stratos.metering.agent.handlers.AddUserActionValidator">
+                </handler>
+            </preHandlers>
+        </task>
+        <task service="org.wso2.stratos.metering.manager.task.PerRegistryRequestRemoteTask">
+            <postHandlers>
+                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoRetriever">
+                </handler>
+                <handler service="org.wso2.stratos.metering.manager.handlers.DBContentVolumeRetriever"><!-- trigger per each registry request-->
+                </handler>
+                <handler service="org.wso2.stratos.metering.manager.handlers.BandwidthDataRetriever" async="true" frequency="5"><!-- trigger per 5 registry request-->
+                </handler>
+                <handler service="org.wso2.stratos.metering.manager.handlers.BandwidthDataStorer">
+                </handler>
+                <handler service="org.wso2.stratos.metering.manager.handlers.BillingDataRetriever"><!-- trigger per each registry request-->
+                </handler>
+                <handler service="org.wso2.stratos.metering.manager.handlers.RuleInvoker">
+                    <parameter name="rule-file">restriction-rules.drl</parameter>
+                </handler>
+                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoStorer">
+                </handler>
+            </postHandlers>
+        </task>
+        <task service="org.wso2.stratos.metering.manager.task.PerUserAddRequestRemoteTask">
+            <postHandlers>
+                <handler service="org.wso2.stratos.metering.manager.handlers.UsersCountRetriever"><!-- trigger per each user add request-->
+                </handler>
+                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoRetriever">
+                </handler>
+                <handler service="org.wso2.stratos.metering.manager.handlers.BillingDataRetriever"><!-- trigger per each user add request-->
+                </handler>
+                <handler service="org.wso2.stratos.metering.manager.handlers.RuleInvoker">
+                    <parameter name="rule-file">restriction-rules.drl</parameter>
+                </handler>
+                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoStorer">
+                </handler>
+            </postHandlers>
+        </task>
+        <!-- to be implemented -->
+        <!--
+        <task service="org.wso2.stratos.metering.manager.task.ScheduledTask">
+            <parameters>
+                <parameter name="period">1Month</parameter>
+                <parameter name="dayToTriggerOn">1</parameter>
+                <parameter name="hourToTriggerOn">0</parameter>
+                <parameter name="timeZone">GMT-8:00</parameter>
+            </parameters>
+            <hanldlers>
+                <handler service="org.wso2.stratos.metering.manager.handler.RuleInvoker">
+                    <parameter name="rule-file">restriction-rules.drl</parameter>
+                </handler>
+            </handlers>
+        </task>
+        -->
+    </tasks>
+</meteringConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/multitenancy-billing-rules.drl
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/multitenancy-billing-rules.drl b/products/stratos-controller/conf/multitenancy-billing-rules.drl
new file mode 100755
index 0000000..0cdc23d
--- /dev/null
+++ b/products/stratos-controller/conf/multitenancy-billing-rules.drl
@@ -0,0 +1,34 @@
+import org.wso2.carbon.billing.core.dataobjects.*;
+import org.wso2.carbon.billing.mgt.dataobjects.*;
+
+
+rule smallSubscription
+when
+$item: MultitenancyPackage(name == "SMB")
+$subItem: Item(parent == $item && name == "subscription")
+then
+$subItem.setCost(new Cash("$100"));
+$subItem.setCreditLimit(new Cash("$200"));
+end
+
+
+rule mediumSubscription
+when
+$item: MultitenancyPackage(name == "Professional")
+$subItem: Item(parent == $item && name == "subscription")
+then
+$subItem.setCost(new Cash("$500"));
+$subItem.setCreditLimit(new Cash("$1000"));
+end
+
+
+rule largeSubscription
+when
+$item: MultitenancyPackage(name == "Enterprise")
+$subItem: Item(parent == $item && name == "subscription")
+then
+$subItem.setCost(new Cash("$2000"));
+$subItem.setCreditLimit(new Cash("$4000"));
+end
+
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/nhttp.properties
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/nhttp.properties b/products/stratos-controller/conf/nhttp.properties
new file mode 100644
index 0000000..40c3bfc
--- /dev/null
+++ b/products/stratos-controller/conf/nhttp.properties
@@ -0,0 +1,42 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# This file contains the configuration parameters used by the Non-blocking HTTP transport
+
+#http.socket.timeout=60000
+#nhttp_buffer_size=8192
+#http.tcp.nodelay=1
+#http.connection.stalecheck=0
+
+# Uncomment the following property for an AIX based deployment
+#http.nio.interest-ops-queueing=true
+
+# HTTP Sender thread pool parameters
+#snd_t_core=20
+#snd_t_max=100
+#snd_alive_sec=5
+#snd_qlen=-1
+#snd_io_threads=2
+
+# HTTP Listener thread pool parameters
+#lst_t_core=20
+#lst_t_max=100
+#lst_alive_sec=5
+#lst_qlen=-1
+#lst_io_threads=2

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/passthru-http.properties
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/passthru-http.properties b/products/stratos-controller/conf/passthru-http.properties
new file mode 100644
index 0000000..21cd1ab
--- /dev/null
+++ b/products/stratos-controller/conf/passthru-http.properties
@@ -0,0 +1,34 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+## This file contains the configuration parameters used by the Pass-through HTTP transport
+
+## Pass-through HTTP transport specific tuning parameters 
+#worker_pool_size_core=40
+#worker_pool_size_max=200
+#worker_thread_keepalive_sec=60
+#worker_pool_queue_length=-1
+#io_threads_per_reactor=2
+#io_buffer_size=8192
+#http.max.connection.per.host.port=32767
+
+## Other parameters
+#http.user.agent.preserve=false
+#http.server.preserve=true
+#http.connection.disable.keepalive=false

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/rule-component.conf
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/rule-component.conf b/products/stratos-controller/conf/rule-component.conf
new file mode 100644
index 0000000..1bd6c09
--- /dev/null
+++ b/products/stratos-controller/conf/rule-component.conf
@@ -0,0 +1,3 @@
+<RuleServer>
+    <RuleEngineProvider class="org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory"/>
+</RuleServer>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/samples-desc.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/samples-desc.xml b/products/stratos-controller/conf/samples-desc.xml
new file mode 100755
index 0000000..580f9b0
--- /dev/null
+++ b/products/stratos-controller/conf/samples-desc.xml
@@ -0,0 +1,33 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<samples xmlns="http://wso2.com/stratos/samples">
+    <sample name="Shopping Cart">
+        <cloudServices>
+            <cloudService name="Application Server"/>
+            <!--cloudService name="WSO2 Stratos Governance"/>
+            <cloudService name="WSO2 Stratos Application Server"/>
+            <cloudService name="WSO2 Stratos Gadget Server"/>
+            <cloudService name="WSO2 Stratos Mashup Server"/>
+            <cloudService name="WSO2 Stratos Enterprise Service Bus"/>
+            <cloudService name="WSO2 Stratos Data Services Server"/>
+            <cloudService name="WSO2 Stratos Business Process Server"/-->
+        </cloudServices>
+	<fileName>GlobalShoppingCartSample-${shoppingcart.global.version}</fileName>
+    </sample>
+</samples>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/sso-idp-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/sso-idp-config.xml b/products/stratos-controller/conf/sso-idp-config.xml
new file mode 100755
index 0000000..e8fa188
--- /dev/null
+++ b/products/stratos-controller/conf/sso-idp-config.xml
@@ -0,0 +1,27 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<SSOIdentityProviderConfig>
+     <LoginPageBannerBaseURL>http://wso2.com/product-ads/stratos/wso2cloud/</LoginPageBannerBaseURL>
+     <TenantRegistrationPage>https://stratos-local.wso2.com/carbon/tenant-register/select_domain.jsp</TenantRegistrationPage>
+     <ServiceProvider>
+            <Issuer>WSO2 Stratos Controller</Issuer>
+            <AssertionConsumerService>https://stratos-local.wso2.com/acs</AssertionConsumerService>
+	    <CustomLoginPage>stratos-sso/login_ajaxprocessor.jsp</CustomLoginPage>
+     </ServiceProvider>
+</SSOIdentityProviderConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/status-monitor-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/status-monitor-config.xml b/products/stratos-controller/conf/status-monitor-config.xml
new file mode 100755
index 0000000..91bf5a3
--- /dev/null
+++ b/products/stratos-controller/conf/status-monitor-config.xml
@@ -0,0 +1,53 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+     Defines the database and related params that to be used for the services status
+     monitoring. Status Monitor Agent writes to the database defined here, and the 
+     Status Monitor reads it. 
+  -->
+
+<serviceStatusConfig xmlns="http://wso2.com/carbon/status/monitor/config">
+   <authConfig>
+        <jksLocation>../../repository/resources/security/wso2carbon.jks</jksLocation> <!--location to the jks file-->
+
+        <!--The tenant credentials that to be used to login to the Stratos 
+	services. Make sure the correct credentials are given to avoid 
+	false positives.-->
+        <userName>admin@wso2-heartbeat-checker.org</userName>
+        <password>password</password>
+        <tenantDomain>wso2-heartbeat-checker.org</tenantDomain>
+   </authConfig>
+
+   <platformSample>
+        <!--The tenant that has the webapps and services to monitor. 
+	This can of course be the same tenant given above as tenantDomain-->
+        <tenantDomain>wso2.org</tenantDomain>
+    </platformSample>
+
+   <dbConfig>
+        <url>jdbc:mysql://localhost:3306/stratos_status</url>
+        <userName>monitor</userName>
+        <password>monitor</password>
+        <driverName>com.mysql.jdbc.Driver</driverName>
+        <maxActive>80</maxActive>
+        <maxWait>60000</maxWait>
+        <minIdle>5</minIdle>
+    </dbConfig>
+</serviceStatusConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/stratos-datasources.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/stratos-datasources.xml b/products/stratos-controller/conf/stratos-datasources.xml
new file mode 100755
index 0000000..4969870
--- /dev/null
+++ b/products/stratos-controller/conf/stratos-datasources.xml
@@ -0,0 +1,69 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration">
+  
+    <providers>
+        <provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider>
+    </providers>
+  
+    <datasources>
+		<datasource>
+            <name>WSO2BillingDS</name>
+            <description>The datasource used for registry and user manager</description>
+            <jndiConfig>
+                <name>jdbc/WSO2BillingDS</name>
+            </jndiConfig>
+            <definition type="RDBMS">
+                <configuration>
+                    <url>jdbc:h2:repository/database/WSO2BILLING_DB;DB_CLOSE_ON_EXIT=FALSE</url>
+                    <username>wso2carbon</username>
+                    <password>wso2carbon</password>
+                    <driverClassName>org.h2.Driver</driverClassName>
+                    <maxActive>50</maxActive>
+                    <maxWait>60000</maxWait>
+                    <testOnBorrow>true</testOnBorrow>
+                    <validationQuery>SELECT 1</validationQuery>
+                    <validationInterval>30000</validationInterval>
+                </configuration>
+            </definition>
+        </datasource>
+
+	<datasource>
+            <name>WSO2S2DS</name>
+            <description>The datasource used for s2</description>
+            <jndiConfig>
+                <name>jdbc/WSO2S2DS</name>
+            </jndiConfig>
+            <definition type="RDBMS">
+                <configuration>
+                    <url>jdbc:h2:repository/database/WSO2S2_DB;DB_CLOSE_ON_EXIT=FALSE</url>
+                    <username>wso2carbon</username>
+                    <password>wso2carbon</password>
+                    <driverClassName>org.h2.Driver</driverClassName>
+                    <maxActive>50</maxActive>
+                    <maxWait>60000</maxWait>
+                    <testOnBorrow>true</testOnBorrow>
+                    <validationQuery>SELECT 1</validationQuery>
+                    <validationInterval>30000</validationInterval>
+                </configuration>
+            </definition>
+        </datasource>
+      </datasources>
+</datasources-configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/synapse-configs/default/registry.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/synapse-configs/default/registry.xml b/products/stratos-controller/conf/synapse-configs/default/registry.xml
new file mode 100644
index 0000000..f259c7a
--- /dev/null
+++ b/products/stratos-controller/conf/synapse-configs/default/registry.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- Registry declaration of the WSO2 ESB -->
+<registry xmlns="http://ws.apache.org/ns/synapse" provider="org.wso2.carbon.mediation.registry.WSO2Registry">
+    <!--all resources loaded from the URL registry would be
+    cached for this number of milliseconds -->
+    <parameter name="cachableDuration">15000</parameter>
+</registry>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/synapse-configs/default/sequences/errorHandler.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/synapse-configs/default/sequences/errorHandler.xml b/products/stratos-controller/conf/synapse-configs/default/sequences/errorHandler.xml
new file mode 100644
index 0000000..8621bee
--- /dev/null
+++ b/products/stratos-controller/conf/synapse-configs/default/sequences/errorHandler.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+    <sequence name="errorHandler" xmlns="http://ws.apache.org/ns/synapse">
+	<log level="full">
+        	<property name="MESSAGE" value="Executing default 'fault' sequence"/>
+        	<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
+        	<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
+    	</log>
+        <makefault response="true">
+            <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
+            <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/>
+        </makefault>
+        <send/>
+    </sequence>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/synapse-configs/default/sequences/fault.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/synapse-configs/default/sequences/fault.xml b/products/stratos-controller/conf/synapse-configs/default/sequences/fault.xml
new file mode 100644
index 0000000..9d2d8f7
--- /dev/null
+++ b/products/stratos-controller/conf/synapse-configs/default/sequences/fault.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- Default fault sequence shipped with the Apache Synapse -->
+<sequence xmlns="http://ws.apache.org/ns/synapse" name="fault">
+
+    <!-- Log the message at the full log level with the ERROR_MESSAGE and the ERROR_CODE-->
+    <!-- log level="full">
+        <property name="MESSAGE" value="Executing default 'fault' sequence"/>
+        <property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
+        <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
+    </log -->
+
+    <!-- Drops the messages by default if there is a fault -->
+    <script language="js"><![CDATA[
+        mc.setPayloadXML(
+           <{mc.getProperty("SERVICENAME")}Response xmlns="org.wso2.gateway">
+            <Timestamp>{new Date()}</Timestamp>
+            <Ack>Failure</Ack>
+            <Errors>
+             <ShortMessage>Gateway Error</ShortMessage>
+             <LongMessage>{mc.getProperty("ERROR_MESSAGE")}</LongMessage>
+             <ErrorCode>500</ErrorCode>
+             <SeverityCode>Error</SeverityCode>
+             <ErrorClassification>RequestError</ErrorClassification>
+            </Errors>
+            <ServiceName>{mc.getProperty("SERVICENAME")}</ServiceName>
+            <ResponseCode>{mc.getProperty("HTTP_SC")}</ResponseCode>
+            <ContentType>{mc.getProperty("Content-Type")}</ContentType>
+            <Version>1.5.1</Version>
+           </{mc.getProperty("SERVICENAME")}Response>
+        );
+      ]]></script>
+    <switch source="get-property('ERROR_CODE')">
+        <case regex="101504">   <!-- TIMEOUT ERROR -->
+            <property name="HTTP_SC" value="504" scope="axis2"/>
+            <sequence key="seq_timeout"/>
+        </case>
+        <case regex="303001">
+            <property name="HTTP_SC" value="503" scope="axis2"/>
+            <sequence key="seq_endpoint_down"/>
+        </case>
+        <case regex="111503">
+            <property name="HTTP_SC" value="503" scope="axis2"/>
+            <sequence key="seq_endpoint_down"/>
+        </case>
+        <default>
+            <property name="HTTP_SC" value="500" scope="axis2"/>
+        </default>
+    </switch>
+    <property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
+    <header name="To" action="remove"/>
+    <property name="RESPONSE" value="true"/>
+    <property name="messageType" value="text/xml" scope="axis2"/>
+    <property name="ContentType" value="text/xml" scope="axis2"/>
+
+    <send/>
+
+</sequence>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/synapse-configs/default/sequences/main.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/synapse-configs/default/sequences/main.xml b/products/stratos-controller/conf/synapse-configs/default/sequences/main.xml
new file mode 100644
index 0000000..c4dbf5b
--- /dev/null
+++ b/products/stratos-controller/conf/synapse-configs/default/sequences/main.xml
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- Default main sequence shipped with the WSO2 ESB -->
+<sequence xmlns="http://ws.apache.org/ns/synapse" name="main" onError="fault">
+    <description>The main sequence for the message mediation</description>
+
+    <in>
+        <property name="REQUEST_HOST_HEADER" expression="$trp:host" scope="axis2"/>
+        <property name="SERVICE_PREFIX" expression="$axis2:SERVICE_PREFIX"/>
+        <send>
+            <!--endpoint name="sdlbEndpoint">
+                <session type="http">-->
+                    <!-- Session timout is 15mins-->
+                    <!--sessionTimeout>900000</sessionTimeout>
+                </session>
+                <serviceDynamicLoadbalance failover="true"
+                                           algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"
+                                           configuration="$system:loadbalancer.xml"/>
+            </endpoint>
+            -->
+	          <!--endpoint name="tenantAwareLBEndpoint">
+                <class name ="org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint">
+                     <parameter name="algorithm"> org.apache.synapse.endpoints.algorithms.RoundRobin</parameter>
+                     <parameter name="configuration">$system:loadbalancer.conf</parameter>
+                     <parameter name="failover">true</parameter>          
+                     <parameter name="sessionTimeout">900000</parameter>
+  	            </class>
+ 	          </endpoint-->
+        </send>
+        <drop/>
+    </in>
+
+    <out>
+        <!-- Handling status codes: 301, 302 Redirection -->
+        <filter source="$trp:Location" regex=".+">
+            <property name="LB_SP_Host" expression="$ctx:SERVICE_PREFIX"
+                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="2"/>
+
+            <property name="LB_Location_Protocol" expression="$trp:Location"
+                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="1"/>
+            <property name="LB_Location_Host" expression="$trp:Location"
+                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="2"/>
+            <property name="LB_Location_Path" expression="$trp:Location"
+                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="4"/>
+
+            <!--<log level="custom">
+               <property name="ameera-ocation" expression="$trp:Location"/>
+               <property name="ameera-sprefix" expression="$ctx:SERVICE_PREFIX"/>
+           </log>-->
+
+            <filter xpath="fn:lower-case($ctx:LB_SP_Host)=fn:lower-case($ctx:LB_Location_Host)">
+                <then>
+                    <switch source="fn:lower-case($ctx:LB_Location_Protocol)">
+                        <case regex="https://">
+                            <property name="Location"
+                                      expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
+                                      scope="transport"/>
+                        </case>
+                        <case regex="http://">
+                            <property name="Location"
+                                      expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
+                                      scope="transport"/>
+                        </case>
+                    </switch>
+                </then>
+
+                <else>
+                    <filter xpath="$ctx:LB_REQUEST_HOST=fn:lower-case($ctx:LB_Location_Host)">
+                        <switch source="fn:lower-case($ctx:LB_Location_Protocol)">
+                            <case regex="https://">
+                                <property name="Location"
+                                          expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
+                                          scope="transport"/>
+                            </case>
+                            <case regex="http://">
+                                <property name="Location"
+                                          expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
+                                          scope="transport"/>
+                            </case>
+                        </switch>
+                    </filter>
+                </else>
+            </filter>
+        </filter>
+
+        <!-- Send the messages where they have been sent (i.e. implicit To EPR) -->
+        <property name="messageType" value="text/html" scope="axis2"/>
+        <send/>
+        <drop/>
+    </out>
+
+</sequence>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/synapse-configs/default/synapse.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/synapse-configs/default/synapse.xml b/products/stratos-controller/conf/synapse-configs/default/synapse.xml
new file mode 100755
index 0000000..d8ad52d
--- /dev/null
+++ b/products/stratos-controller/conf/synapse-configs/default/synapse.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- The default synapse configuration shipped with the WSO2 Elastic  Load Balancer
+ -->
+
+<definitions xmlns="http://ws.apache.org/ns/synapse">
+</definitions>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/synapse.properties
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/synapse.properties b/products/stratos-controller/conf/synapse.properties
new file mode 100755
index 0000000..c3cbdb4
--- /dev/null
+++ b/products/stratos-controller/conf/synapse.properties
@@ -0,0 +1,38 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#synapse.threads.core = 20
+#synapse.threads.max = 100
+#synapse.threads.keepalive = 5
+#synapse.threads.qlen = 10
+#synapse.threads.group = synapse-thread-group
+#synapse.threads.idprefix = SynapseWorker
+
+synapse.sal.endpoints.sesssion.timeout.default=600000
+
+#In memory statistics cleaning state 
+statistics.clean.enable=false
+
+# Dependency tracking Synapse observer
+# Comment out to disable dependency management
+synapse.observers=org.wso2.carbon.mediation.dependency.mgt.DependencyTracker
+
+# User defined wsdlLocator/Schema Resolver Implementations.
+# synapse.wsdl.resolver=org.wso2.carbon.mediation.initializer.RegistryWSDLLocator
+# synapse.schema.resolver=org.wso2.carbon.mediation.initializer.RegistryXmlSchemaURIResolver
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/tenant-reg-agent.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/tenant-reg-agent.xml b/products/stratos-controller/conf/tenant-reg-agent.xml
new file mode 100755
index 0000000..c39e189
--- /dev/null
+++ b/products/stratos-controller/conf/tenant-reg-agent.xml
@@ -0,0 +1,25 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<tenantRegListenerServers>
+    <!--<server>
+        <serverUrl>https://10.100.1.206:9443/services/</serverUrl>
+        <userName>admin</userName>
+        <password>admin</password>
+    </server>-->
+</tenantRegListenerServers>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/throttling-rules.drl
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/throttling-rules.drl b/products/stratos-controller/conf/throttling-rules.drl
new file mode 100755
index 0000000..2225fa6
--- /dev/null
+++ b/products/stratos-controller/conf/throttling-rules.drl
@@ -0,0 +1,251 @@
+import org.wso2.carbon.throttling.manager.dataobjects.*;
+import org.wso2.carbon.billing.mgt.dataobjects.*;
+import org.wso2.carbon.stratos.common.constants.*;
+
+// free users restrictions
+
+rule unsetRestrictFreeUsers
+when
+ $package: MultitenancyPackage(name == "Demo")
+ $dataContext : ThrottlingDataContext()
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_ADD_USER_ACTION, false, null);
+
+end
+
+
+rule restrictFreeDataVolume
+when
+ $package: MultitenancyPackage(name == "Demo")
+ $dataContext : ThrottlingDataContext()
+ eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) > (20 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, true, 
+            "You have exceeded the maximum allowed disk storage of 20Mb. Please upgrade the subscription.");
+end
+
+
+rule unsetRestrictFreeDataVolume
+when
+ $package: MultitenancyPackage(name == "Demo")
+ $dataContext : ThrottlingDataContext()
+ eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) <= (20 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, false, null);
+end
+
+
+rule restrictFreeBandwidth
+when
+ $package: MultitenancyPackage(name == "Demo")
+ $dataContext : ThrottlingDataContext()
+ eval(($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_INCOMING_BANDWIDTH) + 
+ 		$dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_OUTGOING_BANDWIDTH)) > (50 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_SERVICE_IN_BANDWIDTH_ACTION, true, 
+            "You have exceeded the maximum allowed bandwidth of 50Mb. Please upgrade the subscription.");
+ validation.setTenantBlocked(StratosConstants.THROTTLING_WEBAPP_IN_BANDWIDTH_ACTION, true, 
+            "You have exceeded the maximum allowed bandwidth of 50Mb. Please upgrade the subscription.");
+ validation.setTenantBlocked(StratosConstants.THROTTLING_OUT_DATA_ACTION, true, 
+            "You have exceeded the maximum allowed bandwidth of 50Mb. Please upgrade the subscription.");                      
+end
+
+
+rule unsetRestrictFreeBandwidth
+when
+ $package: MultitenancyPackage(name == "Demo")
+ $dataContext : ThrottlingDataContext()
+ eval(($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_INCOMING_BANDWIDTH) + 
+ 		$dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_OUTGOING_BANDWIDTH)) < (50 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_SERVICE_IN_BANDWIDTH_ACTION,false,null);
+ validation.setTenantBlocked(StratosConstants.THROTTLING_WEBAPP_IN_BANDWIDTH_ACTION,false,null);
+ validation.setTenantBlocked(StratosConstants.THROTTLING_OUT_DATA_ACTION,false,null);
+end
+
+
+//---------------------------------------------------------------------------------
+// small users restrictions
+
+
+
+rule restrictSmallDataVolume
+when
+ $package: MultitenancyPackage(name == "SMB")
+ $dataContext : ThrottlingDataContext()
+ eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) > (50 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, true, 
+            "You have exceeded the maximum allowed disk storage of 50Mb. Please upgrade the subscription.");
+end
+
+
+rule unsetRestrictSmallDataVolume
+when
+ $package: MultitenancyPackage(name == "SMB")
+ $dataContext : ThrottlingDataContext()
+ eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) <= (50 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, false, null);
+end
+
+
+rule restrictSmallBandwidth
+when
+ $package: MultitenancyPackage(name == "SMB")
+ $dataContext : ThrottlingDataContext()
+ eval(($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_INCOMING_BANDWIDTH) + 
+ 		$dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_OUTGOING_BANDWIDTH)) > (150 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_SERVICE_IN_BANDWIDTH_ACTION, true, 
+            "You have exceeded the maximum allowed bandwidth of 150Mb. Please upgrade the subscription.");
+ validation.setTenantBlocked(StratosConstants.THROTTLING_WEBAPP_IN_BANDWIDTH_ACTION, true, 
+            "You have exceeded the maximum allowed bandwidth of 150Mb. Please upgrade the subscription.");
+ validation.setTenantBlocked(StratosConstants.THROTTLING_OUT_DATA_ACTION, true, 
+            "You have exceeded the maximum allowed bandwidth of 150Mb. Please upgrade the subscription."); 
+end
+
+
+rule unsetRestrictSmallBandwidth
+when
+ $package: MultitenancyPackage(name == "SMB")
+ $dataContext : ThrottlingDataContext()
+ eval(($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_INCOMING_BANDWIDTH) + 
+ 		$dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_OUTGOING_BANDWIDTH)) < (150 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_SERVICE_IN_BANDWIDTH_ACTION,false,null);
+ validation.setTenantBlocked(StratosConstants.THROTTLING_WEBAPP_IN_BANDWIDTH_ACTION,false,null);
+ validation.setTenantBlocked(StratosConstants.THROTTLING_OUT_DATA_ACTION,false,null);
+end
+
+
+rule unsetRestrictSmallUsers
+when
+ $package: MultitenancyPackage(name == "SMB")
+ $dataContext : ThrottlingDataContext()
+then
+
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_ADD_USER_ACTION, false, null);
+
+end
+
+
+
+
+//-------------------------------------------------------------------------------
+// medium users restrictions
+
+
+
+rule restrictMediumDataVolume
+when
+ $package: MultitenancyPackage(name == "Professional")
+ $dataContext : ThrottlingDataContext()
+ eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) > (500 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, true, 
+            "You have exceeded the maximum allowed disk storage of 500Mb. Please upgrade the subscription.");
+end
+
+
+rule unsetRestrictMediumDataVolume
+when
+ $package: MultitenancyPackage(name == "Professional")
+ $dataContext : ThrottlingDataContext()
+ eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) <= (500 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, false, null);
+end
+
+
+rule unsetRestrictMediumUsers
+when
+ $package: MultitenancyPackage(name == "Professional")
+ $dataContext : ThrottlingDataContext()
+then
+
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_ADD_USER_ACTION, false, null);
+
+end
+
+
+
+//-----------------------------------------------------------------------------------------------
+// large users restrictions
+
+
+rule restrictLargeDataVolume
+when
+ $package: MultitenancyPackage(name == "Enterprise")
+ $dataContext : ThrottlingDataContext()
+ eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) > (1500 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, true, 
+            "You have exceeded the maximum allowed disk storage of 1500Mb.");
+end
+
+
+rule unsetRestrictLargeDataVolume
+when
+ $package: MultitenancyPackage(name == "Enterprise")
+ $dataContext : ThrottlingDataContext()
+ eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) <= (1500 * 1024 * 1024) && 
+            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
+
+then
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, false, null);
+end
+
+
+rule unsetRestrictLargeUsers
+when
+ $package: MultitenancyPackage(name == "Enterprise")
+ $dataContext : ThrottlingDataContext()
+then
+
+ ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
+ validation.setTenantBlocked(StratosConstants.THROTTLING_ADD_USER_ACTION, false, null);
+
+end
+
+
+
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/user-mgt.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/user-mgt.xml b/products/stratos-controller/conf/user-mgt.xml
new file mode 100644
index 0000000..c6cdb74
--- /dev/null
+++ b/products/stratos-controller/conf/user-mgt.xml
@@ -0,0 +1,241 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+        
+<UserManager>
+    <Realm>
+        <Configuration>
+                <AdminRole>admin</AdminRole>
+                <AdminUser>
+                     <UserName>admin</UserName>
+                     <Password>admin</Password>
+                </AdminUser>
+            <EveryOneRoleName>everyone</EveryOneRoleName> <!-- By default users in this role sees the registry root -->
+            <Property name="dataSource">jdbc/WSO2CarbonDB</Property>
+            <Property name="MultiTenantRealmConfigBuilder">org.wso2.carbon.user.core.config.multitenancy.SimpleRealmConfigBuilder</Property>
+        </Configuration>
+	<!-- Following is the default user store manager. This user store manager is based on embedded-apacheds LDAP. It reads/writes users and roles into the 		     default apacheds LDAP user store. Descriptions about each of the following properties can be found in user management documentation of the 	 respective product. In case if user core cache domain is needed to identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>
+	     Note: Do not comment within UserStoreManager tags. Cause, specific tag names are used as tokens when building configurations for products. -->
+	<!--UserStoreManager class="org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager">
+            <Property name="ConnectionURL">ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}</Property>
+            <Property name="ConnectionName">uid=admin,ou=system</Property>
+            <Property name="ConnectionPassword">admin</Property>
+            <Property name="passwordHashMethod">SHA</Property>
+            <Property name="UserNameListFilter">(objectClass=person)</Property>
+	    <Property name="UserEntryObjectClass">wso2Person</Property>
+            <Property name="UserSearchBase">ou=Users,dc=wso2,dc=org</Property>
+            <Property name="UserNameSearchFilter">(&amp;(objectClass=person)(uid=?))</Property>
+            <Property name="UserNameAttribute">uid</Property>
+            <Property name="PasswordJavaScriptRegEx">^[\\S]{5,30}$</Property>
+            <Property name="UsernameJavaScriptRegEx">^[\\S]{3,30}$</Property>
+	    <Property name="UsernameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
+            <Property name="RolenameJavaScriptRegEx">^[\\S]{3,30}$</Property>
+            <Property name="RolenameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
+            <Property name="ReadLDAPGroups">true</Property>
+	    <Property name="WriteLDAPGroups">true</Property>
+	    <Property name="EmptyRolesAllowed">true</Property>
+            <Property name="GroupSearchBase">ou=Groups,dc=wso2,dc=org</Property>
+            <Property name="GroupNameListFilter">(objectClass=groupOfNames)</Property>
+            <Property name="GroupEntryObjectClass">groupOfNames</Property>
+            <Property name="GroupNameSearchFilter">(&amp;(objectClass=groupOfNames)(cn=?))</Property>
+            <Property name="GroupNameAttribute">cn</Property>
+            <Property name="MembershipAttribute">member</Property>
+	    <Property name="UserRolesCacheEnabled">true</Property>
+	    <Property name="UserDNPattern">uid={0},ou=Users,dc=wso2,dc=org</Property>
+        </UserStoreManager-->
+
+	<!-- Following is the configuration for internal JDBC user store. This user store manager is based on JDBC. In case if application needs to manage 		     passwords externally set property <Property name="PasswordsExternallyManaged">true</Property>. In case if user core cache domain is needed to 			identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>. Furthermore properties, IsEmailUserName and 	     			DomainCalculation are readonly properties. 
+	     Note: Do not comment within UserStoreManager tags. Cause, specific tag names are used as tokens when building configurations for products. -->	
+        <UserStoreManager class="org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager">
+	    <Property name="ReadOnly">false</Property>
+            <Property name="MaxUserNameListLength">100</Property>
+            <Property name="IsEmailUserName">false</Property>
+            <Property name="DomainCalculation">default</Property>
+            <Property name="PasswordDigest">SHA-256</Property>
+            <Property name="StoreSaltedPassword">true</Property>
+            <Property name="UserNameUniqueAcrossTenants">false</Property>
+            <Property name="PasswordJavaRegEx">^[\S]{5,30}$</Property>
+            <Property name="PasswordJavaScriptRegEx">^[\\S]{5,30}$</Property>
+	    <Property name="UsernameJavaRegEx">^[^~!#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
+	    <Property name="UsernameJavaScriptRegEx">^[\\S]{3,30}$</Property>
+	    <Property name="RolenameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
+	    <Property name="RolenameJavaScriptRegEx">^[\\S]{3,30}$</Property>
+            <Property name="UserRolesCacheEnabled">true</Property>
+        </UserStoreManager>
+	
+	<!-- If product is using an external LDAP as the user store in READ ONLY mode, use following user manager.
+		In case if user core cache domain is needed to identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>
+ 	-->
+        <!--UserStoreManager class="org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager">
+            <Property name="ReadOnly">true</Property>
+	    <Property name="MaxUserNameListLength">100</Property>
+            <Property name="ConnectionURL">ldap://localhost:10389</Property>
+            <Property name="ConnectionName">uid=admin,ou=system</Property>
+            <Property name="ConnectionPassword">admin</Property>
+            <Property name="UserSearchBase">ou=system</Property>
+            <Property name="UserNameListFilter">(objectClass=person)</Property>
+            <Property name="UserNameAttribute">uid</Property>
+            <Property name="ReadLDAPGroups">false</Property>
+            <Property name="GroupSearchBase">ou=system</Property>
+            <Property name="GroupNameListFilter">(objectClass=groupOfNames)</Property>
+            <Property name="GroupNameAttribute">cn</Property>
+            <Property name="MembershipAttribute">member</Property>
+            <Property name="UserRolesCacheEnabled">true</Property>
+	    <Property name="ReplaceEscapeCharactersAtUserLogin">true</Property>
+        </UserStoreManager-->
+	
+	<!-- Active directory configuration is as follows.
+	    In case if user core cache domain is needed to identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>
+	    There are few special properties for "Active Directory". 
+	    They are : 
+	    1.Referral - (comment out this property if this feature is not reuired) This enables LDAP referral support.
+	    2.BackLinksEnabled - (Do not comment, set to true or false) In some cases LDAP works with BackLinksEnabled. In which role is stored
+	     at user level. Depending on this value we need to change the Search Base within code.
+	    3.isADLDSRole - (Do not comment) Set to true if connecting to an AD LDS instance else set to false.  
+	-->
+	<!--UserStoreManager class="org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager">
+            <Property name="defaultRealmName">WSO2.ORG</Property>
+            <Property name="kdcEnabled">false</Property>
+            <Property name="ConnectionURL">ldaps://10.100.1.100:636</Property> 
+            <Property name="ConnectionName">CN=admin,CN=Users,DC=WSO2,DC=Com</Property>
+            <Property name="ConnectionPassword">A1b2c3d4</Property>
+	    <Property name="passwordHashMethod">SHA</Property>
+            <Property name="UserSearchBase">CN=Users,DC=WSO2,DC=Com</Property>
+            <Property name="UserEntryObjectClass">user</Property>
+            <Property name="UserNameAttribute">cn</Property>
+            <Property name="isADLDSRole">false</Property>
+	    <Property name="userAccountControl">512</Property>
+            <Property name="UserNameListFilter">(objectClass=user)</Property>
+	    <Property name="UserNameSearchFilter">(&amp;(objectClass=user)(cn=?))</Property>
+            <Property name="UsernameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;]{3,30}$</Property>
+            <Property name="UsernameJavaScriptRegEx">^[\\S]{3,30}$</Property>
+            <Property name="PasswordJavaScriptRegEx">^[\\S]{5,30}$</Property>
+	    <Property name="RolenameJavaScriptRegEx">^[\\S]{3,30}$</Property>
+            <Property name="RolenameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;]{3,30}$</Property>
+	    <Property name="ReadLDAPGroups">true</Property>
+	    <Property name="WriteLDAPGroups">true</Property>
+	    <Property name="EmptyRolesAllowed">true</Property>
+            <Property name="GroupSearchBase">CN=Users,DC=WSO2,DC=Com</Property>
+	    <Property name="GroupEntryObjectClass">group</Property>
+            <Property name="GroupNameAttribute">cn</Property>
+            <Property name="MembershipAttribute">member</Property>
+            <Property name="GroupNameListFilter">(objectcategory=group)</Property>
+	    <Property name="GroupNameSearchFilter">(&amp;(objectClass=group)(cn=?))</Property>
+            <Property name="UserRolesCacheEnabled">true</Property>
+            <Property name="Referral">follow</Property>
+	    <Property name="BackLinksEnabled">true</Property>
+        </UserStoreManager-->
+	
+	<!-- If product is using an external LDAP as the user store in read/write mode, use following user manager 
+		In case if user core cache domain is needed to identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>
+	-->
+	<!--UserStoreManager class="org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager">
+            <Property name="ConnectionURL">ldap://localhost:10389</Property>
+            <Property name="ConnectionName">uid=admin,ou=system</Property>
+            <Property name="ConnectionPassword">secret</Property>
+            <Property name="passwordHashMethod">SHA</Property>
+            <Property name="UserNameListFilter">(objectClass=person)</Property>
+	    <Property name="UserEntryObjectClass">inetOrgPerson</Property>
+            <Property name="UserSearchBase">ou=system</Property>
+            <Property name="UserNameSearchFilter">(&amp;(objectClass=person)(uid=?))</Property>
+            <Property name="UserNameAttribute">uid</Property>
+	    <Property name="UsernameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;]{3,30}$</Property>
+            <Property name="UsernameJavaScriptRegEx">^[\\S]{3,30}$</Property>
+	    <Property name="RolenameJavaScriptRegEx">^[\\S]{3,30}$</Property>
+            <Property name="RolenameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;]{3,30}$</Property>
+            <Property name="PasswordJavaScriptRegEx">^[\\S]{5,30}$</Property>
+	    <Property name="ReadLDAPGroups">true</Property>
+	    <Property name="WriteLDAPGroups">true</Property>
+	    <Property name="EmptyRolesAllowed">false</Property>
+            <Property name="GroupSearchBase">ou=system</Property>
+            <Property name="GroupNameListFilter">(objectClass=groupOfNames)</Property>
+            <Property name="GroupEntryObjectClass">groupOfNames</Property>
+            <Property name="GroupNameSearchFilter">(&amp;(objectClass=groupOfNames)(cn=?))</Property>
+            <Property name="GroupNameAttribute">cn</Property>
+            <Property name="MembershipAttribute">member</Property>
+            <Property name="UserRolesCacheEnabled">true</Property>
+	    <Property name="ReplaceEscapeCharactersAtUserLogin">true</Property>
+        </UserStoreManager-->
+
+	<!-- Following user manager is used by Identity Server (IS) as its default user manager. 
+	     IS will do token replacement when building the product. Therefore do not change the syntax. 
+	     If "kdcEnabled" parameter is true, IS will allow service principle management. Thus "ServicePasswordJavaRegEx", "ServiceNameJavaRegEx"
+	     properties control the service name format and service password formats.
+	     In case if user core cache domain is needed to identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>
+	-->
+	<!--ISUserStoreManager class="org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager">
+            <Property name="defaultRealmName">WSO2.ORG</Property>
+            <Property name="kdcEnabled">false</Property>
+            <Property name="ConnectionURL">ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}</Property>
+            <Property name="ConnectionName">uid=admin,ou=system</Property>
+            <Property name="ConnectionPassword">admin</Property>
+            <Property name="passwordHashMethod">SHA</Property>
+            <Property name="UserNameListFilter">(objectClass=person)</Property>
+            <Property name="UserEntryObjectClass">scimPerson</Property>
+            <Property name="UserSearchBase">ou=Users,dc=wso2,dc=org</Property>
+            <Property name="UserNameSearchFilter">(&amp;(objectClass=person)(uid=?))</Property>
+            <Property name="UserNameAttribute">uid</Property>
+            <Property name="PasswordJavaScriptRegEx">^[\\S]{5,30}$</Property>
+	    <Property name="ServicePasswordJavaRegEx">^[\\S]{5,30}$</Property>
+	    <Property name="ServiceNameJavaRegEx">^[\\S]{2,30}/[\\S]{2,30}$</Property>
+            <Property name="UsernameJavaScriptRegEx">^[\\S]{3,30}$</Property>
+            <Property name="UsernameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
+            <Property name="RolenameJavaScriptRegEx">^[\\S]{3,30}$</Property>
+            <Property name="RolenameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
+	    <Property name="ReadLDAPGroups">true</Property>
+	    <Property name="WriteLDAPGroups">true</Property>
+	    <Property name="EmptyRolesAllowed">true</Property>
+            <Property name="GroupSearchBase">ou=Groups,dc=wso2,dc=org</Property>
+            <Property name="GroupNameListFilter">(objectClass=groupOfNames)</Property>
+	    <Property name="GroupEntryObjectClass">groupOfNames</Property>
+            <Property name="GroupNameSearchFilter">(&amp;(objectClass=groupOfNames)(cn=?))</Property>
+            <Property name="GroupNameAttribute">cn</Property>
+            <Property name="MembershipAttribute">member</Property>
+            <Property name="UserRolesCacheEnabled">true</Property>
+	    <Property name="UserDNPattern">uid={0},ou=Users,dc=wso2,dc=org</Property>
+	    <Property name="SCIMEnabled">true</Property>
+        </ISUserStoreManager-->
+
+        <AuthorizationManager
+            class="org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager">
+            <Property name="AdminRoleManagementPermissions">/permission</Property>
+	    <Property name="AuthorizationCacheEnabled">true</Property>
+        </AuthorizationManager>
+    </Realm>
+</UserManager>
+
+<!--*******Description of some of the configuration properties used in user-mgt.xml*********************************
+UserRolesCacheEnabled - This is to indicate whether to cache role list of a user. By default it is set to true.
+                        You may need to disable it if user-roles are changed by external means and need to reflect
+                        those changes in the carbon product immediately.
+
+ReplaceEscapeCharactersAtUserLogin - This is to configure whether escape characters in user name needs to be replaced at user login.
+				     Currently the identified escape characters that needs to be replaced are '\' & '\\'
+
+UserDNPattern - This property will be used when authenticating users. During authentication we do a bind. But if the user is login with
+                email address or some other property we need to first lookup LDAP and retreive DN for the user. This involves an additional step. 
+                If UserDNPattern is specified the DN will be contructed using the pattern specified in this property. Performance of this is much better than looking
+                up DN and binding user.
+
+passwordHashMethod - This says how the password should be stored. Allowed values are as follows,
+                     SHA - Uses SHA digest method
+                     MD5 - Uses MD 5 digest method
+                     PLAIN_TEXT - Plain text passwords
+                     In addition to above this supports all digest methods supported by http://docs.oracle.com/javase/6/docs/api/java/security/MessageDigest.html.
+
+-->

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/zoo.cfg
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/zoo.cfg b/products/stratos-controller/conf/zoo.cfg
new file mode 100644
index 0000000..ca3cc26
--- /dev/null
+++ b/products/stratos-controller/conf/zoo.cfg
@@ -0,0 +1,4 @@
+tickTime=2000
+dataDir=repository/data/zookeeper
+clientPort=2181
+start_zk_server=false

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/cloud-service-mgt/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/cloud-service-mgt/pom.xml b/products/stratos-controller/modules/cloud-service-mgt/pom.xml
new file mode 100644
index 0000000..895a37b
--- /dev/null
+++ b/products/stratos-controller/modules/cloud-service-mgt/pom.xml
@@ -0,0 +1,98 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+	<groupId>org.apache.stratos</groupId>
+	<artifactId>stratos-controller-parent</artifactId>
+	<version>3.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.stratos.manager.services.mgt</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Stratos - Cloud Manager Cloud Services Management</name>
+
+    <build>
+
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-scr-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+                        <Bundle-Name>${project.artifactId}</Bundle-Name>
+                        <Private-Package>
+                            org.apache.stratos.manager.services.mgt.*,
+                        </Private-Package>
+                        <Import-Package>
+                            org.wso2.carbon.registry.core.*;version=1.0.1,
+                            !javax.xml.namespace,
+                            javax.xml.namespace; version=0.0.0,
+                            javax.servlet; version=2.4.0,
+                            javax.servlet.http; version=2.4.0,
+                            org.apache.axiom.*; version="${axiom.osgi.version.range}",
+                            *;resolution:=optional
+                        </Import-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+
+    </build>
+ <dependencies>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.registry.core</artifactId>
+            <version>${wso2carbon.version}</version>
+        </dependency>
+        <!--<dependency>-->
+            <!--<groupId>org.wso2.carbon</groupId>-->
+            <!--<artifactId>org.wso2.carbon.registry.extensions</artifactId>-->
+            <!--<version>${registry-component.version}</version>-->
+        <!--</dependency>-->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.registry.resource</artifactId>
+            <version>${wso2carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.common</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.tenant.mgt</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+    </dependencies>
+   
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/beans/CloudService.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/beans/CloudService.java b/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/beans/CloudService.java
new file mode 100644
index 0000000..7648280
--- /dev/null
+++ b/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/beans/CloudService.java
@@ -0,0 +1,85 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.services.mgt.beans;
+
+public class CloudService {
+    private String name;
+    private String label;
+    private String link;
+    private String icon;
+    private String description;
+    private boolean active;
+    private String productPageURL;
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getLabel() {
+        return label;
+    }
+
+    public void setLabel(String label) {
+        this.label = label;
+    }
+
+    public String getLink() {
+        return link;
+    }
+
+    public void setLink(String link) {
+        this.link = link;
+    }
+
+    public String getIcon() {
+        return icon;
+    }
+
+    public void setIcon(String icon) {
+        this.icon = icon;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public boolean isActive() {
+        return active;
+    }
+
+    public void setActive(boolean active) {
+        this.active = active;
+    }
+
+    public String getProductPageURL() {
+        return productPageURL;
+    }
+
+    public void setProductPageURL(String productPageURL) {
+        this.productPageURL = productPageURL;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/internal/CloudServiceMgtServiceComponent.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/internal/CloudServiceMgtServiceComponent.java b/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/internal/CloudServiceMgtServiceComponent.java
new file mode 100644
index 0000000..542e601
--- /dev/null
+++ b/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/internal/CloudServiceMgtServiceComponent.java
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.services.mgt.internal;
+
+import org.apache.stratos.manager.services.mgt.util.Util;
+import org.wso2.carbon.registry.core.service.RegistryService;
+import org.wso2.carbon.user.core.service.RealmService;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import org.osgi.service.component.ComponentContext;
+
+/**
+ * @scr.component name="org.wso2.stratos.manager.services.mgt"
+ * immediate="true"
+ * @scr.reference name="registry.service"
+ * interface="org.wso2.carbon.registry.core.service.RegistryService" cardinality="1..1"
+ * policy="dynamic" bind="setRegistryService" unbind="unsetRegistryService"
+ * @scr.reference name="user.realmservice.default"
+ * interface="org.wso2.carbon.user.core.service.RealmService"
+ * cardinality="1..1" policy="dynamic" bind="setRealmService"
+ * unbind="unsetRealmService"
+ */
+public class CloudServiceMgtServiceComponent {
+    private static Log log = LogFactory.getLog(CloudServiceMgtServiceComponent.class);
+
+    protected void activate(ComponentContext context) {
+        try {
+            Util.loadCloudServicesConfiguration();
+            Util.loadServiceIcons();
+            log.debug("******* Cloud Manager Service Manager bundle is activated ******* ");
+        } catch (Throwable e) {
+            String msg = "******* Cloud Manager Service Manager bundle activation failed. ******* ";
+            log.error(msg, e);
+        }
+    }
+
+    protected void deactivate(ComponentContext context) {
+        log.debug("******* Cloud Manager Service Manager bundle is deactivated ******* ");
+    }
+    protected void setRegistryService(RegistryService registryService) {
+        Util.setRegistryService(registryService);
+    }
+
+    protected void unsetRegistryService(RegistryService registryService) {
+        Util.setRegistryService(null);
+    }
+
+    protected void setRealmService(RealmService realmService) {
+        Util.setRealmService(realmService);
+    }
+
+    protected void unsetRealmService(RealmService realmService) {
+        Util.setRealmService(null);
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/services/CloudManagerService.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/services/CloudManagerService.java b/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/services/CloudManagerService.java
new file mode 100644
index 0000000..f12a4bb
--- /dev/null
+++ b/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/services/CloudManagerService.java
@@ -0,0 +1,122 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.services.mgt.services;
+
+import org.wso2.carbon.core.AbstractAdmin;
+import org.wso2.carbon.registry.core.session.UserRegistry;
+import org.apache.stratos.common.config.CloudServiceConfig;
+import org.apache.stratos.common.config.CloudServicesDescConfig;
+import org.apache.stratos.common.constants.StratosConstants;
+import org.apache.stratos.manager.services.mgt.beans.CloudService;
+import org.apache.stratos.manager.services.mgt.util.Util;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+public class CloudManagerService extends AbstractAdmin {
+    
+    public CloudService[] retrieveCloudServiceInfo() throws Exception {
+        UserRegistry registry = (UserRegistry)getConfigUserRegistry();
+        int tenantId = registry.getTenantId();
+
+        CloudServicesDescConfig cloudServicesDesc = Util.getCloudServicesDescConfig();
+        Map<String, CloudServiceConfig> cloudServiceConfigs =
+                cloudServicesDesc.getCloudServiceConfigs();
+        List<CloudService> cloudServices = new ArrayList<CloudService>();
+        if (cloudServiceConfigs != null) {
+            Set<String> configKeys = cloudServiceConfigs.keySet();
+            for (String configKey : configKeys) {
+                CloudServiceConfig cloudServiceConfig = cloudServiceConfigs.get(configKey);
+                String label = cloudServiceConfig.getLabel();
+                if (label == null) {
+                    // we are only returning display-able services
+                    continue;
+                }
+                CloudService cloudService = new CloudService();
+                String name = cloudServiceConfig.getName();
+                cloudService.setName(name);
+                cloudService.setLabel(label);
+                cloudService.setLink(cloudServiceConfig.getLink());
+                cloudService.setIcon(cloudServiceConfig.getIcon());
+                cloudService.setDescription(cloudServiceConfig.getDescription());
+                cloudService.setProductPageURL(cloudServiceConfig.getProductPageURL());
+                boolean active = Util.isCloudServiceActive(name, tenantId);
+                cloudService.setActive(tenantId == 0 || active);
+
+                cloudServices.add(cloudService);
+            }
+        }
+        return cloudServices.toArray(new CloudService[cloudServices.size()]);
+    }
+
+    public void saveCloudServicesActivity(String[] activeServiceNames) throws Exception {
+        UserRegistry registry = (UserRegistry)getConfigUserRegistry();
+        int tenantId = registry.getTenantId();
+
+        CloudServicesDescConfig cloudServicesDesc = Util.getCloudServicesDescConfig();
+        Map<String, CloudServiceConfig> cloudServiceConfigMap =
+                cloudServicesDesc.getCloudServiceConfigs();
+
+        List<String> activeServiceNamesList = Arrays.asList(activeServiceNames);
+        if (cloudServiceConfigMap != null) {
+            for (String cloudServiceName : cloudServiceConfigMap.keySet()) {
+                if (activeServiceNamesList.contains(cloudServiceName)) {
+                    // this should be made active
+                    if (!Util.isCloudServiceActive(cloudServiceName, tenantId)) {
+                        Util.setCloudServiceActive(true, cloudServiceName, tenantId);
+                    }
+                } else {
+                    // this should be made inactive
+                    if (Util.isCloudServiceActive(cloudServiceName, tenantId)) {
+                        Util.setCloudServiceActive(false, cloudServiceName, tenantId);
+                    }
+
+                }
+            }
+        }
+        Util.setCloudServiceActive(true, StratosConstants.CLOUD_IDENTITY_SERVICE, tenantId);
+        Util.setCloudServiceActive(true, StratosConstants.CLOUD_GOVERNANCE_SERVICE, tenantId);
+    }
+
+    public void activate(String cloudServiceName) throws Exception {
+        UserRegistry registry = (UserRegistry) getConfigUserRegistry();
+        int tenantId = registry.getTenantId();
+        if (!Util.isCloudServiceActive(cloudServiceName, tenantId)) {
+            Util.setCloudServiceActive(true, cloudServiceName, tenantId);
+        }
+    }
+
+    public void deactivate(String cloudServiceName) throws Exception {
+        if (StratosConstants.CLOUD_IDENTITY_SERVICE.equals(cloudServiceName) ||
+            StratosConstants.CLOUD_GOVERNANCE_SERVICE.equals(cloudServiceName)) {
+            // cloud identity and governance services cannot be deactivated..
+            return;
+        }
+        UserRegistry registry = (UserRegistry) getConfigUserRegistry();
+        int tenantId = registry.getTenantId();
+        if (Util.isCloudServiceActive(cloudServiceName, tenantId)) {
+            Util.setCloudServiceActive(false, cloudServiceName, tenantId);
+        }
+    }
+}
+
+


[24/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery.masonry.min.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery.masonry.min.js b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery.masonry.min.js
new file mode 100755
index 0000000..67be988
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery.masonry.min.js
@@ -0,0 +1,10 @@
+/**
+ * jQuery Masonry v2.1.05
+ * A dynamic layout plugin for jQuery
+ * The flip-side of CSS Floats
+ * http://masonry.desandro.com
+ *
+ * Licensed under the MIT license.
+ * Copyright 2012 David DeSandro
+ */
+(function(a,b,c){"use strict";var d=b.event,e;d.special.smartresize={setup:function(){b(this).bind("resize",d.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",d.special.smartresize.handler)},handler:function(a,c){var d=this,f=arguments;a.type="smartresize",e&&clearTimeout(e),e=setTimeout(function(){b.event.handle.apply(d,f)},c==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Mason=function(a,c){this.element=b(c),this._create(a),this._init()},b.Mason.settings={isResizable:!0,isAnimated:!1,animationOptions:{queue:!1,duration:500},gutterWidth:0,isRTL:!1,isFitWidth:!1,containerStyle:{position:"relative"}},b.Mason.prototype={_filterFindBricks:function(a){var b=this.options.itemSelector;return b?a.filter(b).add(a.find(b)):a},_getBricks:function(a){var b=this._filterFindBricks(a).css({position:"absolute"}).addClass("masonry-brick");return b},_create:function(c){this.options=b.extend(!
 0,{},b.Mason.settings,c),this.styleQueue=[];var d=this.element[0].style;this.originalStyle={height:d.height||""};var e=this.options.containerStyle;for(var f in e)this.originalStyle[f]=d[f]||"";this.element.css(e),this.horizontalDirection=this.options.isRTL?"right":"left",this.offset={x:parseInt(this.element.css("padding-"+this.horizontalDirection),10),y:parseInt(this.element.css("padding-top"),10)},this.isFluid=this.options.columnWidth&&typeof this.options.columnWidth=="function";var g=this;setTimeout(function(){g.element.addClass("masonry")},0),this.options.isResizable&&b(a).bind("smartresize.masonry",function(){g.resize()}),this.reloadItems()},_init:function(a){this._getColumns(),this._reLayout(a)},option:function(a,c){b.isPlainObject(a)&&(this.options=b.extend(!0,this.options,a))},layout:function(a,b){for(var c=0,d=a.length;c<d;c++)this._placeBrick(a[c]);var e={};e.height=Math.max.apply(Math,this.colYs);if(this.options.isFitWidth){var f=0;c=this.cols;while(--c){if(this.colYs[c]!=
 =0)break;f++}e.width=(this.cols-f)*this.columnWidth-this.options.gutterWidth}this.styleQueue.push({$el:this.element,style:e});var g=this.isLaidOut?this.options.isAnimated?"animate":"css":"css",h=this.options.animationOptions,i;for(c=0,d=this.styleQueue.length;c<d;c++)i=this.styleQueue[c],i.$el[g](i.style,h);this.styleQueue=[],b&&b.call(a),this.isLaidOut=!0},_getColumns:function(){var a=this.options.isFitWidth?this.element.parent():this.element,b=a.width();this.columnWidth=this.isFluid?this.options.columnWidth(b):this.options.columnWidth||this.$bricks.outerWidth(!0)||b,this.columnWidth+=this.options.gutterWidth,this.cols=Math.floor((b+this.options.gutterWidth)/this.columnWidth),this.cols=Math.max(this.cols,1)},_placeBrick:function(a){var c=b(a),d,e,f,g,h;d=Math.ceil(c.outerWidth(!0)/this.columnWidth),d=Math.min(d,this.cols);if(d===1)f=this.colYs;else{e=this.cols+1-d,f=[];for(h=0;h<e;h++)g=this.colYs.slice(h,h+d),f[h]=Math.max.apply(Math,g)}var i=Math.min.apply(Math,f),j=0;for(var k=0
 ,l=f.length;k<l;k++)if(f[k]===i){j=k;break}var m={top:i+this.offset.y};m[this.horizontalDirection]=this.columnWidth*j+this.offset.x,this.styleQueue.push({$el:c,style:m});var n=i+c.outerHeight(!0),o=this.cols+1-l;for(k=0;k<o;k++)this.colYs[j+k]=n},resize:function(){var a=this.cols;this._getColumns(),(this.isFluid||this.cols!==a)&&this._reLayout()},_reLayout:function(a){var b=this.cols;this.colYs=[];while(b--)this.colYs.push(0);this.layout(this.$bricks,a)},reloadItems:function(){this.$bricks=this._getBricks(this.element.children())},reload:function(a){this.reloadItems(),this._init(a)},appended:function(a,b,c){if(b){this._filterFindBricks(a).css({top:this.element.height()});var d=this;setTimeout(function(){d._appended(a,c)},1)}else this._appended(a,c)},_appended:function(a,b){var c=this._getBricks(a);this.$bricks=this.$bricks.add(c),this.layout(c,b)},remove:function(a){this.$bricks=this.$bricks.not(a),a.remove()},destroy:function(){this.$bricks.removeClass("masonry-brick").each(functio
 n(){this.style.position="",this.style.top="",this.style.left=""});var c=this.element[0].style;for(var d in this.originalStyle)c[d]=this.originalStyle[d];this.element.unbind(".masonry").removeClass("masonry").removeData("masonry"),b(a).unbind(".masonry")}},b.fn.imagesLoaded=function(a){function h(){a.call(c,d)}function i(a){var c=a.target;c.src!==f&&b.inArray(c,g)===-1&&(g.push(c),--e<=0&&(setTimeout(h),d.unbind(".imagesLoaded",i)))}var c=this,d=c.find("img").add(c.filter("img")),e=d.length,f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",g=[];return e||h(),d.bind("load.imagesLoaded error.imagesLoaded",i).each(function(){var a=this.src;this.src=f,this.src=a}),c};var f=function(b){a.console&&a.console.error(b)};b.fn.masonry=function(a){if(typeof a=="string"){var c=Array.prototype.slice.call(arguments,1);this.each(function(){var d=b.data(this,"masonry");if(!d){f("cannot call methods on masonry prior to initialization; attempted to call method '"+a+"'");return}
 if(!b.isFunction(d[a])||a.charAt(0)==="_"){f("no such method '"+a+"' for masonry instance");return}d[a].apply(d,c)})}else this.each(function(){var c=b.data(this,"masonry");c?(c.option(a||{}),c._init()):b.data(this,"masonry",new b.Mason(a,this))});return this}})(window,jQuery);
\ No newline at end of file


[38/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml b/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml
deleted file mode 100755
index d8ad52d..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/synapse.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- The default synapse configuration shipped with the WSO2 Elastic  Load Balancer
- -->
-
-<definitions xmlns="http://ws.apache.org/ns/synapse">
-</definitions>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/synapse.properties
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/synapse.properties b/products/cloud_controller/modules/distribution/src/main/conf/synapse.properties
deleted file mode 100755
index c3cbdb4..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/synapse.properties
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-#synapse.threads.core = 20
-#synapse.threads.max = 100
-#synapse.threads.keepalive = 5
-#synapse.threads.qlen = 10
-#synapse.threads.group = synapse-thread-group
-#synapse.threads.idprefix = SynapseWorker
-
-synapse.sal.endpoints.sesssion.timeout.default=600000
-
-#In memory statistics cleaning state 
-statistics.clean.enable=false
-
-# Dependency tracking Synapse observer
-# Comment out to disable dependency management
-synapse.observers=org.wso2.carbon.mediation.dependency.mgt.DependencyTracker
-
-# User defined wsdlLocator/Schema Resolver Implementations.
-# synapse.wsdl.resolver=org.wso2.carbon.mediation.initializer.RegistryWSDLLocator
-# synapse.schema.resolver=org.wso2.carbon.mediation.initializer.RegistryXmlSchemaURIResolver
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/zoo.cfg
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/zoo.cfg b/products/cloud_controller/modules/distribution/src/main/conf/zoo.cfg
deleted file mode 100644
index 57927f2..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/zoo.cfg
+++ /dev/null
@@ -1,3 +0,0 @@
-tickTime=2000
-dataDir=repository/data/zookeeper
-clientPort=2182

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/resources/launch.ini
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/resources/launch.ini b/products/cloud_controller/modules/distribution/src/main/resources/launch.ini
deleted file mode 100644
index f05201c..0000000
--- a/products/cloud_controller/modules/distribution/src/main/resources/launch.ini
+++ /dev/null
@@ -1,248 +0,0 @@
-# Eclipse Runtime Configuration Overrides
-# These properties are loaded prior to starting the framework and can also be used to override System Properties
-# @null is a special value used to override and clear the framework's copy of a System Property prior to starting the framework
-# "*" can be used together with @null to clear System Properties that match a prefix name.
-
-osgi.*=@null
-org.osgi.*=@null
-eclipse.*=@null
-
-osgi.parentClassloader=ext
-osgi.contextClassLoaderParent=ext
-
-# When osgi.clean is set to "true", any cached data used by the OSGi framework 
-# will be wiped clean. This will clean the caches used to store bundle 
-# dependency resolution and eclipse extension registry data. Using this 
-# option will force OSGi framework to reinitialize these caches.
-# The following setting is put in place to get rid of the problems
-# faced when re-starting the system. Please note that, when this setting is 
-# true, if you manually start a bundle, it would not be available when 
-# you re-start the system. To avid this, copy the bundle jar to the plugins 
-# folder, before you re-start the system. 
-osgi.clean=true
-
-# Uncomment the following line to turn on Eclipse Equinox debugging. 
-# You may also edit the osgi-debug.options file and fine tune the debugging 
-# options to suite your needs. 
-#osgi.debug=./repository/conf/osgi-debug.options
-
-# Following system property allows us to control the public JDK packages exported through the system bundle.
-org.osgi.framework.system.packages=javax.accessibility,\
-javax.activity,\
-javax.crypto,\
-javax.crypto.interfaces,\
-javax.crypto.spec,\
-javax.imageio,\
-javax.imageio.event,\
-javax.imageio.metadata,\
-javax.imageio.plugins.bmp,\
-javax.imageio.plugins.jpeg,\
-javax.imageio.spi,\
-javax.imageio.stream,\
-javax.jms,\
-javax.management,\
-javax.management.loading,\
-javax.management.modelmbean,\
-javax.management.monitor,\
-javax.management.openmbean,\
-javax.management.relation,\
-javax.management.remote,\
-javax.management.remote.rmi,\
-javax.management.timer,\
-javax.naming,\
-javax.naming.directory,\
-javax.naming.event,\
-javax.naming.ldap,\
-javax.naming.spi,\
-javax.net,\
-javax.net.ssl,\
-javax.print,\
-javax.print.attribute,\
-javax.print.attribute.standard,\
-javax.print.event,\
-javax.rmi,\
-javax.rmi.CORBA,\
-javax.rmi.ssl,\
-javax.script,\
-javax.security.auth,\
-javax.security.auth.callback,\
-javax.security.auth.kerberos,\
-javax.security.auth.login,\
-javax.security.auth.spi,\
-javax.security.auth.x500,\
-javax.security.cert,\
-javax.security.sasl,\
-javax.sound.midi,\
-javax.sound.midi.spi,\
-javax.sound.sampled,\
-javax.sound.sampled.spi,\
-javax.sql,\
-javax.sql.rowset,\
-javax.sql.rowset.serial,\
-javax.sql.rowset.spi,\
-javax.swing,\
-javax.swing.border,\
-javax.swing.colorchooser,\
-javax.swing.event,\
-javax.swing.filechooser,\
-javax.swing.plaf,\
-javax.swing.plaf.basic,\
-javax.swing.plaf.metal,\
-javax.swing.plaf.multi,\
-javax.swing.plaf.synth,\
-javax.swing.table,\
-javax.swing.text,\
-javax.swing.text.html,\
-javax.swing.text.html.parser,\
-javax.swing.text.rtf,\
-javax.swing.tree,\
-javax.swing.undo,\
-javax.transaction,\
-javax.transaction.xa,\
-javax.xml.namespace,\
-javax.xml.parsers,\
-javax.xml.transform,\
-javax.xml.transform.stream,\
-javax.xml.transform.dom,\
-javax.xml.transform.sax,\
-javax.xml,\
-javax.xml.validation,\
-javax.xml.datatype,\
-javax.xml.xpath,\
-javax.activation,\
-com.sun.activation.registries,\
-com.sun.activation.viewers,\
-org.ietf.jgss,\
-org.omg.CORBA,\
-org.omg.CORBA_2_3,\
-org.omg.CORBA_2_3.portable,\
-org.omg.CORBA.DynAnyPackage,\
-org.omg.CORBA.ORBPackage,\
-org.omg.CORBA.portable,\
-org.omg.CORBA.TypeCodePackage,\
-org.omg.CosNaming,\
-org.omg.CosNaming.NamingContextExtPackage,\
-org.omg.CosNaming.NamingContextPackage,\
-org.omg.Dynamic,\
-org.omg.DynamicAny,\
-org.omg.DynamicAny.DynAnyFactoryPackage,\
-org.omg.DynamicAny.DynAnyPackage,\
-org.omg.IOP,\
-org.omg.IOP.CodecFactoryPackage,\
-org.omg.IOP.CodecPackage,\
-org.omg.Messaging,\
-org.omg.PortableInterceptor,\
-org.omg.PortableInterceptor.ORBInitInfoPackage,\
-org.omg.PortableServer,\
-org.omg.PortableServer.CurrentPackage,\
-org.omg.PortableServer.POAManagerPackage,\
-org.omg.PortableServer.POAPackage,\
-org.omg.PortableServer.portable,\
-org.omg.PortableServer.ServantLocatorPackage,\
-org.omg.SendingContext,\
-org.omg.stub.java.rmi,\
-org.w3c.dom,\
-org.w3c.dom.bootstrap,\
-org.w3c.dom.css,\
-org.w3c.dom.events,\
-org.w3c.dom.html,\
-org.w3c.dom.ls,\
-org.w3c.dom.ranges,\
-org.w3c.dom.stylesheets,\
-org.w3c.dom.traversal,\
-org.w3c.dom.views ,\
-org.xml.sax,\
-org.xml.sax.ext,\
-org.xml.sax.helpers,\
-org.apache.xerces.xpointer,\
-org.apache.xerces.xni.grammars,\
-org.apache.xerces.impl.xs.util,\
-org.apache.xerces.jaxp.validation,\
-org.apache.xerces.impl.dtd.models,\
-org.apache.xerces.impl.xpath,\
-org.apache.xerces.dom3.as,\
-org.apache.xerces.impl.dv.xs,\
-org.apache.xerces.util,\
-org.apache.xerces.impl.xs.identity,\
-org.apache.xerces.impl.xs.opti,\
-org.apache.xerces.jaxp,\
-org.apache.xerces.impl.dv,\
-org.apache.xerces.xs.datatypes,\
-org.apache.xerces.dom.events,\
-org.apache.xerces.impl.msg,\
-org.apache.xerces.xni,\
-org.apache.xerces.impl.xs,\
-org.apache.xerces.impl,\
-org.apache.xerces.impl.io,\
-org.apache.xerces.xinclude,\
-org.apache.xerces.jaxp.datatype,\
-org.apache.xerces.parsers,\
-org.apache.xerces.impl.dv.util,\
-org.apache.xerces.xni.parser,\
-org.apache.xerces.impl.xs.traversers,\
-org.apache.xerces.impl.dv.dtd,\
-org.apache.xerces.xs,\
-org.apache.xerces.impl.dtd,\
-org.apache.xerces.impl.validation,\
-org.apache.xerces.impl.xs.models,\
-org.apache.xerces.impl.xpath.regex,\
-org.apache.xml.serialize,\
-org.apache.xerces.dom,\
-org.apache.xalan,\
-org.apache.xalan.xslt,\
-org.apache.xalan.templates,\
-org.apache.xalan.xsltc,\
-org.apache.xalan.xsltc.cmdline,\
-org.apache.xalan.xsltc.cmdline.getopt,\
-org.apache.xalan.xsltc.trax,\
-org.apache.xalan.xsltc.dom,\
-org.apache.xalan.xsltc.runtime,\
-org.apache.xalan.xsltc.runtime.output,\
-org.apache.xalan.xsltc.util,\
-org.apache.xalan.xsltc.compiler,\
-org.apache.xalan.xsltc.compiler.util,\
-org.apache.xalan.serialize,\
-org.apache.xalan.client,\
-org.apache.xalan.res,\
-org.apache.xalan.transformer,\
-org.apache.xalan.extensions,\
-org.apache.xalan.lib,\
-org.apache.xalan.lib.sql,\
-org.apache.xalan.processor,\
-org.apache.xalan.trace,\
-org.apache.xml.dtm,\
-org.apache.xml.dtm.ref,\
-org.apache.xml.dtm.ref.sax2dtm,\
-org.apache.xml.dtm.ref.dom2dtm,\
-org.apache.xml.utils,\
-org.apache.xml.utils.res,\
-org.apache.xml.res,\
-org.apache.xml.serializer,\
-org.apache.xml.serializer.utils,\
-org.apache.xpath,\
-org.apache.xpath.domapi,\
-org.apache.xpath.objects,\
-org.apache.xpath.patterns,\
-org.apache.xpath.jaxp,\
-org.apache.xpath.res,\
-org.apache.xpath.operations,\
-org.apache.xpath.functions,\
-org.apache.xpath.axes,\
-org.apache.xpath.compiler,\
-org.apache.xml.resolver,\
-org.apache.xml.resolver.tools,\
-org.apache.xml.resolver.helpers,\
-org.apache.xml.resolver.readers,\
-org.apache.xml.resolver.etc,\
-org.apache.xml.resolver.apps,\
-javax.xml.ws,\
-javax.xml.bind,\
-javax.xml.bind.annotation,\
-javax.annotation,\
-javax.jws,\
-javax.jws.soap,\
-javax.xml.soap,\
-com.sun.xml.internal.messaging.saaj.soap.ver1_1,\
-com.sun.xml.internal.messaging.saaj.soap,\
-com.sun.tools.internal.ws.spi,\
-org.github.jamm

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/resources/log4j.properties b/products/cloud_controller/modules/distribution/src/main/resources/log4j.properties
deleted file mode 100644
index 0c94be5..0000000
--- a/products/cloud_controller/modules/distribution/src/main/resources/log4j.properties
+++ /dev/null
@@ -1,196 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-#
-# This is the log4j configuration file used by WSO2 Carbon
-#
-# IMPORTANT : Please do not remove or change the names of any
-# of the Appenders defined here. The layout pattern & log file
-# can be changed using the WSO2 Carbon Management Console, and those
-# settings will override the settings in this file.
-#
-
-log4j.rootLogger=INFO, CARBON_CONSOLE, CARBON_LOGFILE, CARBON_MEMORY, CARBON_SYS_LOG
-
-log4j.logger.AUDIT_LOG=INFO, AUDIT_LOGFILE
-log4j.logger.org.apache.axis2.wsdl.codegen.writer.PrettyPrinter=ERROR, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.axis2.clustering=INFO, CARBON_CONSOLE, CARBON_LOGFILE
-log4j.logger.org.apache=INFO, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.catalina=WARN
-log4j.logger.org.apache.tomcat=WARN
-log4j.logger.org.wso2.carbon.apacheds=WARN
-log4j.logger.org.apache.directory.server.ldap=WARN
-log4j.logger.org.apache.directory.server.core.event=WARN
-log4j.logger.com.atomikos=INFO,ATOMIKOS
-log4j.logger.org.quartz=WARN
-log4j.logger.org.apache.jackrabbit.webdav=WARN
-log4j.logger.org.apache.juddi=ERROR
-log4j.logger.org.apache.commons.digester.Digester=WARN
-log4j.logger.org.apache.jasper.compiler.TldLocationsCache=WARN
-log4j.logger.org.apache.qpid=WARN
-log4j.logger.org.apache.qpid.server.Main=INFO
-log4j.logger.qpid.message=WARN
-log4j.logger.qpid.message.broker.listening=INFO
-log4j.logger.org.apache.tiles=WARN
-log4j.logger.org.apache.commons.httpclient=ERROR
-log4j.logger.org.apache.coyote=WARN
-log4j.logger.org.apache.solr=ERROR
-log4j.logger.org.infinispan=WARN
-log4j.logger.org.jgroups=ERROR
-log4j.logger.me.prettyprint.cassandra.hector.TimingLogger=ERROR
-log4j.logger.org.wso2=INFO
-log4j.logger.org.apache.axis2.enterprise=FATAL, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.opensaml.xml=WARN, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.shared.ldap=WARN, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.server.ldap.handlers=WARN, CARBON_LOGFILE, CARBON_MEMORY 
-#Following are to remove false error messages from startup (IS)
-log4j.logger.org.apache.directory.shared.ldap.entry.DefaultServerAttribute=FATAL, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.server.core.DefaultDirectoryService=ERROR, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.shared.ldap.ldif.LdifReader=ERROR, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.server.ldap.LdapProtocolHandler=ERROR, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.server.core=ERROR, CARBON_LOGFILE, CARBON_MEMORY
-#Hive Related Log configurations
-log4j.logger.DataNucleus=ERROR
-log4j.logger.Datastore=ERROR
-log4j.logger.Datastore.Schema=ERROR
-log4j.logger.JPOX.Datastore=ERROR
-log4j.logger.JPOX.Plugin=ERROR
-log4j.logger.JPOX.MetaData=ERROR
-log4j.logger.JPOX.Query=ERROR
-log4j.logger.JPOX.General=ERROR
-log4j.logger.JPOX.Enhancer=ERROR
-log4j.logger.org.apache.hadoop.hive=WARN
-log4j.logger.hive=WARN
-log4j.logger.ExecMapper=WARN
-log4j.logger.ExecReducer=WARN
-
-#cassandra specific
-
-log4j.logger.org.apache.cassandra.db=WARN
-log4j.logger.org.apache.cassandra.service=WARN
-log4j.logger.org.apache.cassandra.thrift=WARN
-log4j.logger.org.apache.cassandra.io.sstable=WARN
-log4j.logger.org.apache.cassandra.utils=WARN
-#log4j.logger.org.apache.cassandra.io.sstable=WARN
-#log4j.logger.org.apache.cassandra.io.sstable=WARN
-
-
-
-#andes specific
-log4j.logger.org.wso2.andes.server.handler.ConnectionStartOkMethodHandler=WARN
-log4j.logger.org.wso2.andes.server.handler.ChannelOpenHandler=WARN
-log4j.logger.org.wso2.andes.server.handler.ChannelCloseHandler=WARN
-log4j.logger.org.wso2.andes.server.AMQChannel=WARN
-log4j.logger.org.wso2.andes.server.handler.ConnectionCloseMethodHandler=WARN
-log4j.logger.org.wso2.andes.server.handler.QueueDeclareHandler=WARN
-log4j.logger.org.wso2.andes.server.handler.QueueBindHandler=WARN
-log4j.logger.org.wso2.andes.server.virtualhost.VirtualHostConfigRecoveryHandler=WARN
-log4j.logger.trace.messages=TRACE,CARBON_TRACE_LOGFILE
-
-log4j.additivity.org.apache.axis2.clustering=false
-log4j.additivity.com.atomikos=false
-
-# CARBON_CONSOLE is set to be a ConsoleAppender using a PatternLayout.
-log4j.appender.CARBON_CONSOLE=org.apache.log4j.ConsoleAppender
-log4j.appender.CARBON_CONSOLE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-# ConversionPattern will be overridden by the configuration setting in the DB
-log4j.appender.CARBON_CONSOLE.layout.ConversionPattern=[%d] %P%5p {%c} - %x %m%n
-log4j.appender.CARBON_CONSOLE.layout.TenantPattern=%U%@%D[%T]
-log4j.appender.CARBON_CONSOLE.threshold=DEBUG
-
-
-# The memory appender for logging
-log4j.appender.CARBON_MEMORY=org.wso2.carbon.logging.appender.CarbonMemoryAppender
-log4j.appender.CARBON_MEMORY.bufferSize=2000
-log4j.appender.CARBON_MEMORY.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-# ConversionPattern will be overridden by the configuration setting in the DB
-log4j.appender.CARBON_MEMORY.layout.ConversionPattern=TID: [%T] [%S] [%d] %P%5p {%c} - %x %m {%c}%n
-log4j.appender.CARBON_MEMORY.layout.TenantPattern=%U%@%D [%T] [%S]
-log4j.appender.CARBON_MEMORY.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%I,%Stacktrace
-log4j.appender.CARBON_MEMORY.threshold=DEBUG
-
-# CARBON_LOGFILE is set to be a DailyRollingFileAppender using a PatternLayout.
-log4j.appender.CARBON_LOGFILE=org.apache.log4j.DailyRollingFileAppender
-# Log file will be overridden by the configuration setting in the DB
-# This path should be relative to WSO2 Carbon Home
-log4j.appender.CARBON_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon${instance.log}.log
-log4j.appender.CARBON_LOGFILE.Append=true
-log4j.appender.CARBON_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-# ConversionPattern will be overridden by the configuration setting in the DB
-log4j.appender.CARBON_LOGFILE.layout.ConversionPattern=TID: [%T] [%S] [%d] %P%5p {%c} - %x %m {%c}%n
-log4j.appender.CARBON_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
-log4j.appender.CARBON_LOGFILE.threshold=DEBUG
-
-log4j.appender.CARBON_SYS_LOG = org.apache.log4j.net.SyslogAppender
-log4j.appender.CARBON_SYS_LOG.layout=org.apache.log4j.PatternLayout
-log4j.appender.CARBON_SYS_LOG.layout.ConversionPattern=[%d] %5p {%c} - %x %m {%c}%n
-log4j.appender.CARBON_SYS_LOG.SyslogHost=localhost
-log4j.appender.CARBON_SYS_LOG.Facility=USER
-log4j.appender.CARBON_SYS_LOG.threshold=DEBUG
-
-# CASSANDRA is set to be a CassandraAppender using a PatternLayout to send logs to cassandra keyspace
-log4j.appender.CASSANDRA=org.wso2.carbon.logging.appender.LogEventAppender
-log4j.appender.CASSANDRA.keyspace=LogEntry
-log4j.appender.CASSANDRA.colFamily=logs
-log4j.appender.CASSANDRA.url=localhost:9160
-log4j.appender.CASSANDRA.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-log4j.appender.CASSANDRA.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%Stacktrace
-
-# LOGEVENT is set to be a LogEventAppender using a PatternLayout to send logs to LOGEVENT 
-log4j.appender.LOGEVENT=org.wso2.carbon.logging.appender.LogEventAppender
-log4j.appender.LOGEVENT.url=tcp://10.100.3.103:7611
-log4j.appender.LOGEVENT.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-log4j.appender.LOGEVENT.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%I,%Stacktrace
-log4j.appender.LOGEVENT.userName=admin
-log4j.appender.LOGEVENT.password=admin
-
-# Appender config to CARBON_TRACE_LOGFILE
-log4j.appender.CARBON_TRACE_LOGFILE=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.CARBON_TRACE_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon-trace-messages${instance.log}.log
-log4j.appender.CARBON_TRACE_LOGFILE.Append=true
-log4j.appender.CARBON_TRACE_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-log4j.appender.CARBON_TRACE_LOGFILE.layout.ConversionPattern=[%d] %P%5p {%c} - %x %m {%c}%n
-log4j.appender.CARBON_TRACE_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
-log4j.appender.CARBON_TRACE_LOGFILE.threshold=TRACE
-log4j.additivity.trace.messages=false
-
-# Appender config to AUDIT_LOGFILE
-log4j.appender.AUDIT_LOGFILE=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.AUDIT_LOGFILE.File=${carbon.home}/repository/logs/audit.log
-log4j.appender.AUDIT_LOGFILE.Append=true
-log4j.appender.AUDIT_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-log4j.appender.AUDIT_LOGFILE.layout.ConversionPattern=[%d] %P%5p - %x %m %n
-log4j.appender.AUDIT_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
-log4j.appender.AUDIT_LOGFILE.threshold=INFO
-log4j.additivity.AUDIT_LOG=false
-
-# Appender config to send Atomikos transaction logs to new log file tm.out.
-log4j.appender.ATOMIKOS = org.apache.log4j.RollingFileAppender
-log4j.appender.ATOMIKOS.File = repository/logs/tm.out
-log4j.appender.ATOMIKOS.Append = true
-log4j.appender.ATOMIKOS.layout = org.apache.log4j.PatternLayout
-log4j.appender.ATOMIKOS.layout.ConversionPattern=%p %t %c - %m%n
-
-# This file is used to override the default logger settings, and is used to remove unwanted logs from Shindig appearing on the console.
-
-# Specification of Handler used by Console Logger
-handlers=java.util.logging.ConsoleHandler
-
-# Replacing default INFO level with SEVERE
-java.util.logging.ConsoleHandler.level=SEVERE

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/resources/stratos.bat
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/resources/stratos.bat b/products/cloud_controller/modules/distribution/src/main/resources/stratos.bat
deleted file mode 100644
index 0936425..0000000
--- a/products/cloud_controller/modules/distribution/src/main/resources/stratos.bat
+++ /dev/null
@@ -1,274 +0,0 @@
-@echo off
-
-rem ---------------------------------------------------------------------------
-rem Licensed to the Apache Software Foundation (ASF) under one
-rem or more contributor license agreements.  See the NOTICE file
-rem distributed with this work for additional information
-rem regarding copyright ownership.  The ASF licenses this file
-rem to you under the Apache License, Version 2.0 (the
-rem "License"); you may not use this file except in compliance
-rem with the License.  You may obtain a copy of the License at
-rem
-rem     http://www.apache.org/licenses/LICENSE-2.0
-rem
-rem Unless required by applicable law or agreed to in writing,
-rem software distributed under the License is distributed on an
-rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-rem KIND, either express or implied.  See the License for the
-rem specific language governing permissions and limitations
-rem under the License.
-
-rem ---------------------------------------------------------------------------
-rem Main Script for Apache Stratos
-rem
-rem Environment Variable Prerequisites
-rem
-rem   JAVA_HOME       Must point at your Java Development Kit installation.
-rem
-rem   JAVA_OPTS       (Optional) Java runtime options used when the commands
-rem                   is executed.
-rem ---------------------------------------------------------------------------
-
-rem ----- if JAVA_HOME is not set we're not happy ------------------------------
-:checkJava
-
-if "%JAVA_HOME%" == "" goto noJavaHome
-if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
-goto checkServer
-
-:noJavaHome
-echo "You must set the JAVA_HOME variable before running CARBON."
-goto end
-
-rem ----- Only set CARBON_HOME if not already set ----------------------------
-:checkServer
-rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed
-if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..
-SET curDrive=%cd:~0,1%
-SET wsasDrive=%CARBON_HOME:~0,1%
-if not "%curDrive%" == "%wsasDrive%" %wsasDrive%:
-
-rem find CARBON_HOME if it does not exist due to either an invalid value passed
-rem by the user or the %0 problem on Windows 9x
-if not exist "%CARBON_HOME%\bin\version.txt" goto noServerHome
-
-set AXIS2_HOME=%CARBON_HOME%
-goto updateClasspath
-
-:noServerHome
-echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME.
-goto end
-
-rem ----- update classpath -----------------------------------------------------
-:updateClasspath
-
-setlocal EnableDelayedExpansion
-cd %CARBON_HOME%
-set CARBON_CLASSPATH=
-FOR %%C in ("%CARBON_HOME%\bin\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\%%~nC%%~xC"
-
-set CARBON_CLASSPATH="%JAVA_HOME%\lib\tools.jar";%CARBON_CLASSPATH%;
-
-rem ----- Process the input command -------------------------------------------
-
-rem Slurp the command line arguments. This loop allows for an unlimited number
-rem of arguments (up to the command line limit, anyway).
-
-
-:setupArgs
-if ""%1""=="""" goto doneStart
-if ""%1""==""-start""   goto startWinService
-if ""%1""==""--start""  goto startWinService
-if ""%1""==""start""    goto startWinService
-
-if ""%1""==""-run""     goto commandLifecycle
-if ""%1""==""--run""    goto commandLifecycle
-if ""%1""==""run""      goto commandLifecycle
-
-if ""%1""==""-restart""  goto commandLifecycle
-if ""%1""==""--restart"" goto commandLifecycle
-if ""%1""==""restart""   goto commandLifecycle
-
-if ""%1""==""-stop""    goto stopWinService
-if ""%1""==""--stop""   goto stopWinService
-if ""%1""==""stop""     goto stopWinService
-
-if ""%1""==""debug""    goto commandDebug
-if ""%1""==""-debug""   goto commandDebug
-if ""%1""==""--debug""  goto commandDebug
-
-if ""%1""==""version""   goto commandVersion
-if ""%1""==""-version""  goto commandVersion
-if ""%1""==""--version"" goto commandVersion
-
-shift
-goto setupArgs
-
-rem ----- commandVersion -------------------------------------------------------
-:commandVersion
-shift
-type "%CARBON_HOME%\bin\version.txt"
-type "%CARBON_HOME%\bin\wso2carbon-version.txt"
-goto end
-
-rem ----- commandDebug ---------------------------------------------------------
-:commandDebug
-shift
-set DEBUG_PORT=%1
-if "%DEBUG_PORT%"=="" goto noDebugPort
-if not "%JAVA_OPTS%"=="" echo Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option.
-set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%DEBUG_PORT%
-echo Please start the remote debugging client to continue...
-goto findJdk
-
-:noDebugPort
-echo Please specify the debug port after the --debug option
-goto end
-
-rem ----- commandLifecycle -----------------------------------------------------
-:commandLifecycle
-goto findJdk
-
-rem ----- doneStart ------------------------------------------------------------
-rem This label provides a place for the argument list loop to break out
-rem and for NT handling to skip to.
-
-:doneStart
-if "%OS%"=="Windows_NT" @setlocal
-if "%OS%"=="WINNT" @setlocal
-
-rem ---------- Handle the SSL Issue with proper JDK version --------------------
-rem find the version of the jdk
-:findJdk
-
-set CMD=RUN %*
-
-:checkJdk16
-"%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[6|7]" >NUL
-IF ERRORLEVEL 1 goto unknownJdk
-goto jdk16
-
-:unknownJdk
-echo Starting WSO2 Carbon (in unsupported JDK)
-echo [ERROR] CARBON is supported only on JDK 1.6 and 1.7
-goto jdk16
-
-:jdk16
-goto runServer
-
-rem ----------------- Execute The Requested Command ----------------------------
-
-:runServer
-cd %CARBON_HOME%
-
-rem ---------- Add jars to classpath ----------------
-
-set CARBON_CLASSPATH=.\lib;%CARBON_CLASSPATH%
-
-set JAVA_ENDORSED=".\lib\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed"
-
-set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms256m -Xmx512m -XX:MaxPermSize=256m -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -DandesConfig=qpid-config.xml -Ddisable.cassandra.server.startup=true -Dcarbon.registry.root=/ -Dcarbon.home="%CARBON_HOME%" -Dwso2.server.standalone=true -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcatalina.base="%CARBON_HOME%\lib\tomcat" -Dwso2.carbon.xml=%CARBON_HOME%\repository\conf\carbon.xml -Dwso2.registry.xml="%CARBON_HOME%\repository\conf\registry.xml" -Dwso2.user.mgt.xml="%CARBON_HOME%\repository\conf\user-mgt.xml" -Dwso2.transports.xml="%CARBON_HOME%\repository\conf\mgt-transports.xml" -Djava.util.logging.config.file="%CARBON_HOME%\repository\conf\log4j.properties" -Dcarbon.config.dir.path="%CARBON_HOME%\repository\conf" -Dcarbon.logs.path="%CARBON_HOME%\repository\logs" -Dcomponents.repo="%CARBON_HOME%\repos
 itory\components" -Dcom.atomikos.icatch.file="%CARBON_HOME%\lib\transactions.properties" -Dcom.atomikos.icatch.hide_init_file_path="true" -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dcom.sun.jndi.ldap.connect.pool.authentication=simple -Dcom.sun.jndi.ldap.connect.pool.timeout=3000 -Dorg.terracotta.quartz.skipUpdateCheck=true -Dcarbon.classpath=%CARBON_CLASSPATH%
-
-:runJava
-echo JAVA_HOME environment variable is set to %JAVA_HOME%
-echo CARBON_HOME environment variable is set to %CARBON_HOME%
-"%JAVA_HOME%\bin\java" %CMD_LINE_ARGS% org.wso2.carbon.bootstrap.Bootstrap %CMD%
-if "%ERRORLEVEL%"=="121" goto runJava
-:end
-goto endlocal
-
-:startWinService
-rem
-rem Locating Carbon Home
-rem
-rem %~dp0 is the location of this script under NT
-set _REALPATH=%~dp0..\
-
-rem Decide on the wrapper binary.
-set _WRAPPER_BASE=wrapper
-set _WRAPPER_DIR=%_REALPATH%bin\native\
-set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-32.exe
-if exist "%_WRAPPER_EXE%" goto conf
-set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-64.exe
-if exist "%_WRAPPER_EXE%" goto conf
-set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%.exe
-if exist "%_WRAPPER_EXE%" goto conf
-echo Unable to locate a Wrapper executable using any of the following names:
-echo %_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-32.exe
-echo %_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-64.exe
-echo %_WRAPPER_DIR%%_WRAPPER_BASE%.exe
-pause
-goto :eof
-rem
-rem Locating wrapper.conf
-rem
-:conf
-set _WRAPPER_CONF="%_REALPATH%repository\conf\wrapper.conf"
-rem
-
-rem Starting the Carbon Windows service.
-rem
-"%_WRAPPER_EXE%" -t %_WRAPPER_CONF% 2>&1 | findstr "failed" >NUL
-if not errorlevel 1 goto install
-echo The Carbon Windows Service is now running.
-goto endlocal
-
-:install
-echo The Carbon Windows Service is not installed. Would you like to install it now? (y/n)
-set INPUT=
-set /P INPUT=Type input: %=%
-if "%INPUT%"=="" goto install
-if "%INPUT%"=="n" goto noservice
-echo Installing Windows service
-"%_WRAPPER_EXE%" -i %_WRAPPER_CONF%
-"%_WRAPPER_EXE%" -t %_WRAPPER_CONF%
-echo The Carbon Windows Service is now running.
-goto endlocal
-
-rem If we reached here, it means that the service has failed.
-echo [ERROR] Failed to start the Carbon Windows Service.
-
-:noservice
-echo Sorry. You can't use -start or -stop without installing the Windows service.
-goto endlocal
-
-:stopWinService
-rem
-rem Locating Carbon Home
-rem
-rem %~dp0 is the location of this script under NT
-set _REALPATH=%~dp0..\
-
-rem Decide on the wrapper binary.
-set _WRAPPER_BASE=wrapper
-set _WRAPPER_DIR=%_REALPATH%bin\native\
-set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-32.exe
-if exist "%_WRAPPER_EXE%" goto conf
-set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-64.exe
-if exist "%_WRAPPER_EXE%" goto conf
-set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%.exe
-if exist "%_WRAPPER_EXE%" goto conf
-echo Unable to locate a Wrapper executable using any of the following names:
-echo %_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-32.exe
-echo %_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-64.exe
-echo %_WRAPPER_DIR%%_WRAPPER_BASE%.exe
-goto :eof
-
-rem
-rem Locating wrapper.conf
-rem
-:conf
-set _WRAPPER_CONF="%_REALPATH%repository\conf\wrapper.conf"
-rem
-rem Stopping the Carbon Windows service.
-rem
-"%_WRAPPER_EXE%" -p %_WRAPPER_CONF%
-echo The Carbon Windows Service is now stopped.
-goto endlocal
-
-rem If we reached here, it means that the service has failed.
-echo [ERROR] Failed to stop the Carbon Windows Service.
-
-:endlocal
-
-:END

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/resources/stratos.sh
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/resources/stratos.sh b/products/cloud_controller/modules/distribution/src/main/resources/stratos.sh
deleted file mode 100644
index ea68142..0000000
--- a/products/cloud_controller/modules/distribution/src/main/resources/stratos.sh
+++ /dev/null
@@ -1,296 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# ----------------------------------------------------------------------------
-# Main Script for the Apache Stratos
-#
-# Environment Variable Prerequisites
-#
-#   JAVA_HOME       Must point at your Java Development Kit installation.
-#
-#   JAVA_OPTS       (Optional) Java runtime options used when the commands
-#                   is executed.
-#
-# NOTE: Borrowed generously from Apache Tomcat startup scripts.
-# -----------------------------------------------------------------------------
-
-# OS specific support.  $var _must_ be set to either true or false.
-
-cygwin=false;
-darwin=false;
-os400=false;
-mingw=false;
-case "`uname`" in
-CYGWIN*) cygwin=true;;
-MINGW*) mingw=true;;
-OS400*) os400=true;;
-Darwin*) darwin=true
-        if [ -z "$JAVA_VERSION" ] ; then
-             JAVA_VERSION="CurrentJDK"
-           else
-             echo "Using Java version: $JAVA_VERSION"
-           fi
-           if [ -z "$JAVA_HOME" ] ; then
-             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
-           fi
-           ;;
-esac
-
-# resolve links - $0 may be a softlink
-PRG="$0"
-
-while [ -h "$PRG" ]; do
-  ls=`ls -ld "$PRG"`
-  link=`expr "$ls" : '.*-> \(.*\)$'`
-  if expr "$link" : '.*/.*' > /dev/null; then
-    PRG="$link"
-  else
-    PRG=`dirname "$PRG"`/"$link"
-  fi
-done
-
-# Get standard environment variables
-PRGDIR=`dirname "$PRG"`
-
-# Only set CARBON_HOME if not already set
-[ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd`
-
-# Set AXIS2_HOME. Needed for One Click JAR Download
-AXIS2_HOME=$CARBON_HOME
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin; then
-  [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-  [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
-  [ -n "$AXIS2_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
-fi
-
-# For OS400
-if $os400; then
-  # Set job priority to standard for interactive (interactive - 6) by using
-  # the interactive priority - 6, the helper threads that respond to requests
-  # will be running at the same priority as interactive jobs.
-  COMMAND='chgjob job('$JOBNAME') runpty(6)'
-  system $COMMAND
-
-  # Enable multi threading
-  QIBM_MULTI_THREADED=Y
-  export QIBM_MULTI_THREADED
-fi
-
-# For Migwn, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
-  [ -n "$CARBON_HOME" ] &&
-    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
-  [ -n "$JAVA_HOME" ] &&
-    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
-  [ -n "$AXIS2_HOME" ] &&
-    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
-  # TODO classpath?
-fi
-
-if [ -z "$JAVACMD" ] ; then
-  if [ -n "$JAVA_HOME"  ] ; then
-    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
-      # IBM's JDK on AIX uses strange locations for the executables
-      JAVACMD="$JAVA_HOME/jre/sh/java"
-    else
-      JAVACMD="$JAVA_HOME/bin/java"
-    fi
-  else
-    JAVACMD=java
-  fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
-  echo "Error: JAVA_HOME is not defined correctly."
-  echo " CARBON cannot execute $JAVACMD"
-  exit 1
-fi
-
-# if JAVA_HOME is not set we're not happy
-if [ -z "$JAVA_HOME" ]; then
-  echo "You must set the JAVA_HOME variable before running CARBON."
-  exit 1
-fi
-
-# ----- Process the input command ----------------------------------------------
-for c in $*
-do
-    if [ "$c" = "--debug" ] || [ "$c" = "-debug" ] || [ "$c" = "debug" ]; then
-          CMD="--debug"
-          continue
-    elif [ "$CMD" = "--debug" ]; then
-          if [ -z "$PORT" ]; then
-                PORT=$c
-          fi
-    elif [ "$c" = "--n" ] || [ "$c" = "-n" ] || [ "$c" = "n" ]; then
-          CMD="--n"
-          continue
-    elif [ "$CMD" = "--n" ]; then
-          if [ -z "$INSTANCES" ]; then
-                INSTANCES=$c
-          fi
-    elif [ "$c" = "--stop" ] || [ "$c" = "-stop" ] || [ "$c" = "stop" ]; then
-          CMD="stop"
-    elif [ "$c" = "--start" ] || [ "$c" = "-start" ] || [ "$c" = "start" ]; then
-          CMD="start"
-    elif [ "$c" = "--console" ] || [ "$c" = "-console" ] || [ "$c" = "console" ]; then
-          CMD="console"
-    elif [ "$c" = "--version" ] || [ "$c" = "-version" ] || [ "$c" = "version" ]; then
-          CMD="version"
-    elif [ "$c" = "--restart" ] || [ "$c" = "-restart" ] || [ "$c" = "restart" ]; then
-          CMD="restart"
-    elif [ "$c" = "--dump" ] || [ "$c" = "-dump" ] || [ "$c" = "dump" ]; then
-          CMD="dump"
-    elif [ "$c" = "--test" ] || [ "$c" = "-test" ] || [ "$c" = "test" ]; then
-          CMD="test"
-    elif [ "$c" = "--status" ] || [ "$c" = "-status" ] || [ "$c" = "status" ]; then
-          CMD="status"
-    fi
-done
-
-if [ "$CMD" = "--debug" ]; then
-  if [ "$PORT" = "" ]; then
-    echo " Please specify the debug port after the --debug option"
-    exit 1
-  fi
-  if [ -n "$JAVA_OPTS" ]; then
-    echo "Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option."
-  fi
-  CMD="RUN"
-  JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT"
-  echo "Please start the remote debugging client to continue..."
-elif [ "$CMD" = "--n" ]; then
-  if [ "$INSTANCES" = "" ] || [ ! -z `echo $INSTANCES | sed 's/[0-9]//g'` ]]; then
-    echo " Please specify the number of instances to start after the --n option"
-    exit 1
-  fi
-elif [ "$CMD" = "start" ]; then
-  export CARBON_HOME=$CARBON_HOME
-  nohup $CARBON_HOME/bin/stratos.sh &
-  exit 0
-elif [ "$CMD" = "stop" ]; then
-  export CARBON_HOME=$CARBON_HOME
-  kill -9 `cat $CARBON_HOME/wso2carbon.pid`
-  exit 0
-elif [ "$CMD" = "restart" ]; then
-  export CARBON_HOME=$CARBON_HOME
-  kill -9 `cat $CARBON_HOME/wso2carbon.pid`
-  nohup $CARBON_HOME/bin/stratos.sh &
-  exit 0
-elif [ "$CMD" = "test" ]; then
-    JAVACMD="exec "$JAVACMD""
-elif [ "$CMD" = "version" ]; then
-  cat $CARBON_HOME/bin/version.txt
-  cat $CARBON_HOME/bin/wso2carbon-version.txt
-  exit 0
-fi
-
-# ---------- Handle the SSL Issue with proper JDK version --------------------
-jdk_16=`$JAVA_HOME/bin/java -version 2>&1 | grep "1.[6|7]"`
-if [ "$jdk_16" = "" ]; then
-   echo " Starting WSO2 Carbon (in unsupported JDK)"
-   echo " [ERROR] CARBON is supported only on JDK 1.6 and 1.7"
-fi
-
-CARBON_XBOOTCLASSPATH=""
-for f in "$CARBON_HOME"/lib/xboot/*.jar
-do
-    if [ "$f" != "$CARBON_HOME/lib/xboot/*.jar" ];then
-        CARBON_XBOOTCLASSPATH="$CARBON_XBOOTCLASSPATH":$f
-    fi
-done
-
-JAVA_ENDORSED_DIRS="$CARBON_HOME/lib/endorsed":"$JAVA_HOME/jre/lib/endorsed":"$JAVA_HOME/lib/endorsed"
-
-CARBON_CLASSPATH=""
-if [ -e "$JAVA_HOME/lib/tools.jar" ]; then
-    CARBON_CLASSPATH="$JAVA_HOME/lib/tools.jar"
-fi
-for f in "$CARBON_HOME"/bin/*.jar
-do
-    if [ "$f" != "$CARBON_HOME/bin/*.jar" ];then
-        CARBON_CLASSPATH="$CARBON_CLASSPATH":$f
-    fi
-done
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
-  JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
-  CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
-  AXIS2_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
-  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
-  JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
-  CARBON_CLASSPATH=`cygpath --path --windows "$CARBON_CLASSPATH"`
-  CARBON_XBOOTCLASSPATH=`cygpath --path --windows "$CARBON_XBOOTCLASSPATH"`
-fi
-
-# ----- Execute The Requested Command -----------------------------------------
-
-echo JAVA_HOME environment variable is set to $JAVA_HOME
-echo CARBON_HOME environment variable is set to $CARBON_HOME
-
-cd "$CARBON_HOME"
-
-START_EXIT_STATUS=121
-status=$START_EXIT_STATUS
-
-while [ "$status" = "$START_EXIT_STATUS" ]
-do
-    $JAVACMD \
-     -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \
-     -d64 \
-     -server \
-     -Xms1500m -Xmx3000m \
-     -XX:PermSize=256m -XX:MaxPermSize=512m \
-     -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:-UseGCOverheadLimit \
-     -XX:+CMSClassUnloadingEnabled \
-     -XX:+OptimizeStringConcat \
-     -XX:+HeapDumpOnOutOfMemoryError \
-     -XX:OnOutOfMemoryError="kill -9 `echo $$`;nohup ./stratos.sh &" \
-     -XX:HeapDumpPath=repository/logs/heap-dump.hprof \
-     -XX:ErrorFile=repository/logs/hs_err_pid.log \
-     -XX:OnError="nohup ./stratos.sh &" \
-     -javaagent:"$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar" \
-    $JAVA_OPTS \
-    -DandesConfig=qpid-config.xml \
-    -Ddisable.cassandra.server.startup=true \
-    -Dcom.sun.management.jmxremote \
-    -classpath "$CARBON_CLASSPATH" \
-    -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" \
-    -Djava.io.tmpdir="$CARBON_HOME/tmp" \
-    -Dcatalina.base="$CARBON_HOME/lib/tomcat" \
-    -Dwso2.server.standalone=true \
-    -Dcarbon.registry.root=/ \
-    -Djava.command="$JAVACMD" \
-    -Dcarbon.home="$CARBON_HOME" \
-    -Dwso2.transports.xml="$CARBON_HOME/repository/conf/mgt-transports.xml" \
-    -Djava.util.logging.config.file="$CARBON_HOME/repository/conf/log4j.properties" \
-    -Dcarbon.config.dir.path="$CARBON_HOME/repository/conf" \
-    -Dcomponents.repo="$CARBON_HOME/repository/components/plugins" \
-    -Dcom.atomikos.icatch.file="$CARBON_HOME/lib/transactions.properties" \
-    -Dcom.atomikos.icatch.hide_init_file_path=true \
-    -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true \
-    -Dcom.sun.jndi.ldap.connect.pool.authentication=simple  \
-    -Dcom.sun.jndi.ldap.connect.pool.timeout=3000  \
-    -Dorg.terracotta.quartz.skipUpdateCheck=true \
-    org.wso2.carbon.bootstrap.Bootstrap $*
-    status=$?
-done

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/p2-profile/pom.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/p2-profile/pom.xml b/products/cloud_controller/modules/p2-profile/pom.xml
deleted file mode 100644
index 426c104..0000000
--- a/products/cloud_controller/modules/p2-profile/pom.xml
+++ /dev/null
@@ -1,608 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-    <parent>
-        <groupId>org.apache.stratos.cc</groupId>
-        <artifactId>cc-parent</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
-        <relativePath>../../pom.xml</relativePath>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>apache-stratos-cc-p2-profile</artifactId>
-    <packaging>pom</packaging>
-    <name>Apache Stratos - Cloud Controller - P2 Profile Generation</name>
-    <url>http://apache.org</url>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-dependency-plugin</artifactId>
-                <version>2.0-alpha-4</version>
-                <inherited>false</inherited>
-                <executions>
-                    <execution>
-                        <id>1-unpack-p2-agent-distribution</id>
-                        <phase>test</phase>
-                        <goals>
-                            <goal>unpack</goal>
-                        </goals>
-                        <configuration>
-                             <artifactItems>
-                                <artifactItem>
-                                    <groupId>org.wso2.carbon</groupId>
-                                    <artifactId>wso2carbon-core</artifactId>
-                                    <version>${carbon.kernel.version}</version>
-                                    <type>zip</type>
-                                    <overWrite>true</overWrite>
-                                    <outputDirectory>target</outputDirectory>
-                                </artifactItem>
-                            </artifactItems>
-                        </configuration>
-                    </execution>
-		    <execution>
-                        <id>2-unpack-kernel-patch</id>
-                        <phase>test</phase>
-                        <goals>
-                            <goal>unpack</goal>
-                        </goals>
-                        <configuration>
-                            <artifactItems>
-                                <artifactItem>
-                                    <groupId>org.wso2.carbon</groupId>
-                                    <artifactId>WSO2-CARBON-PATCH-4.1.0</artifactId>
-                                    <version>0002</version>
-                                    <type>zip</type>
-                                    <overWrite>true</overWrite>
-                                    <outputDirectory>target</outputDirectory>
-                                </artifactItem>
-                            </artifactItems>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-                <groupId>org.wso2.maven</groupId>
-                <artifactId>carbon-p2-plugin</artifactId>
-                <version>${carbon.p2.plugin.version}</version>
-                <executions>
-                    <execution>
-                        <id>2-p2-repo-generation</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>p2-repo-gen</goal>
-                        </goals>
-                        <configuration>
-                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
-                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
-                            <publishArtifacts>true</publishArtifacts>
-                            <publishArtifactRepository>true</publishArtifactRepository>
-                            <featureArtifacts>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.logging.mgt.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.databridge.datapublisher.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.system.statistics.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.soaptracer.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.security.mgt.server.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.message.flows.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.xfer.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.mex.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.tryit.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.registry.core.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.registry.ui.menu.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.registry.resource.properties.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.statistics.transport.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.wsdl.tools.feature:${carbon.version}
-                                </featureArtifactDef>
-				<featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.event.server.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.um.ws.service.server.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.andes.feature:${carbon.version}
-                                </featureArtifactDef>
-				<featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.cassandra.server.feature:4.1.1
-                                </featureArtifactDef>
-                                
-                                <!-- Features related to Cloud -->
-                                <featureArtifactDef>
-                                    org.apache.stratos:org.apache.stratos.common.feature:3.0.0-SNAPSHOT
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.apache.stratos:org.apache.stratos.usage.agent.feature:${project.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.apache.stratos:org.apache.stratos.throttling.agent.feature:${project.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.apache.stratos:org.apache.stratos.deployment.feature:${project.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.apache.stratos:org.apache.stratos.lb.agent.server.feature:${project.version}
-                                </featureArtifactDef>
-				 <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature:${carbon.version}
-                                </featureArtifactDef>
-				 <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.identity.authenticator.saml2.sso.server.feature:${carbon.version}
-                                </featureArtifactDef>
-
-				<!--***********************************CC features*********************************-->
-				<featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.module.mgt.server.feature:${carbon.version}
-                                </featureArtifactDef>
-				<featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.throttle.server.feature:${carbon.version}
-                                </featureArtifactDef>
-				<featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.caching.server.feature:${carbon.version}
-                                </featureArtifactDef>
-				<featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.rm.server.feature:${carbon.version}
-                                </featureArtifactDef>
-				<featureArtifactDef>
-                                    org.apache.stratos:org.apache.stratos.cloud.controller.feature:${project.version}
-                                </featureArtifactDef>
-                                
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.coordination.server.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.coordination.core.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <!--featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.andes.server.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.event.server.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.cassandra.server.feature:${carbon.version}
-                                </featureArtifactDef-->
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.tryit.feature:${carbon.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.apache.stratos:org.apache.stratos.lb.common.feature:${project.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.ntask.core.feature:${carbon.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.service.mgt.server.feature:${carbon.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.transport.mgt.server.feature:${carbon.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.transport.nhttp.feature:${carbon.patch.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.datasource.server.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.apache.synapse.wso2.feature:${synapse.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.apache.synapse.transport.nhttp.feature:${synapse.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.task.server.feature:${carbon.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.mediation.initializer.feature:${carbon.version}
-                                </featureArtifactDef>
-
-                                <!--featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.localentry.server.feature:${carbon.version}
-                                </featureArtifactDef-->
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.endpoint.server.feature:${carbon.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.sequences.server.feature:${carbon.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.mediators.server.feature:${carbon.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.relay.server.feature:${carbon.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.transports.passthru.feature:${passthru.transport.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.databridge.datapublisher.feature:${carbon.version}
-                                </featureArtifactDef>
-
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.registry.core.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.registry.ui.menu.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.registry.resource.properties.feature:${carbon.version}
-                                </featureArtifactDef>
-
-				<!--***********************************CC features end**********************************************-->
-                                
-                            </featureArtifacts>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>3-p2-profile-generation</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>p2-profile-gen</goal>
-                        </goals>
-                        <configuration>
-                            <profile>WSO2CarbonProfile</profile>
-                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
-                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
-                            <destination>
-                                ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
-                            </destination>
-                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
-                            <features>
-				<!--***********************************CC features start**********************************************-->
-			       <feature>
-                                    <id>org.wso2.carbon.module.mgt.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-				</feature>
-				<feature>
-                                    <id>org.wso2.carbon.throttle.server.feature.group</id>
-				    <version>${carbon.version}</version>
-                                </feature>
-				<feature>
-                                    <id>org.wso2.carbon.caching.server.feature.group</id>
-				    <version>${carbon.version}</version>
-                                </feature>
-				<feature>
-				    <id>org.wso2.carbon.rm.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-				<feature>
-                                    <id>org.wso2.carbon.tryit.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.coordination.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <!--feature>
-                                    <id>org.wso2.carbon.andes.server.feature.group</id>
-                                    <version>4.0.5</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.event.server.feature.group</id>
-                                    <version>4.0.5</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.cassandra.server.feature.group</id>
-                                    <version>4.0.5</version>
-                                </feature-->
-                                <feature>
-                                    <id>org.wso2.carbon.coordination.core.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.apache.stratos.lb.common.feature.group</id>
-                                    <version>${project.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.ntask.core.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.apache.stratos.cloud.controller.feature.group</id>
-                                    <version>${project.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.apache.synapse.wso2.feature.group</id>
-                                    <version>${synapse.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.apache.synapse.transport.nhttp.feature.group</id>
-                                    <version>${synapse.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.task.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.datasource.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.mediation.initializer.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.service.mgt.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.transport.mgt.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.transport.nhttp.feature.group</id>
-                                    <version>${carbon.patch.version}</version>
-                                </feature>
-                                <!--feature>
-                                    <id>org.wso2.carbon.localentry.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature-->
-                                <feature>
-                                    <id>org.wso2.carbon.endpoint.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.sequences.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.mediators.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.relay.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.transports.passthru.feature.group</id>
-                                    <version>${passthru.transport.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-
-                                <feature>
-                                    <id>org.wso2.carbon.registry.core.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-
-                                <feature>
-                                    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-
-                                <feature>
-                                    <id>org.wso2.carbon.registry.resource.properties.feature.group
-                                    </id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <!--feature>
-                                    <id>org.wso2.carbon.load.balance.agent.ui.feature.group</id>
-                                    <version>${stratos.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.aws.java.sdk.feature.group</id>
-                                    <version>1.0.0</version>
-                                </feature-->
-
-                                <!--feature>
-                                    <id>org.wso2.carbon.mediator.autoscale.feature.group</id>
-                                    <version>${carbon.platform.patch.version.4.0.3}</version>
-                                </feature-->
-                                <!--feature>
-                                    <id>org.wso2.carbon.lb.common.feature.group</id>
-                                    <version>${carbon.platform.patch.version.4.0.2}</version>
-                                </feature-->
-                                
-				<!--***********************************CC features end**********************************************-->
-				<!--***********************************MB features start**********************************************-->
-                                <feature>
-                                    <id>org.wso2.carbon.logging.mgt.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.statistics.transport.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.system.statistics.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.soaptracer.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.security.mgt.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.message.flows.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.xfer.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.mex.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.tryit.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.registry.core.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.registry.resource.properties.feature.group
-                                    </id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.wsdl.tools.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-
-                                <feature>
-                                    <id>org.wso2.carbon.event.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.um.ws.service.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.andes.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-                                <!--feature>
-                                    <id>org.wso2.stratos.mb.styles.feature.group</id>
-                                    <version>${project.version}</version>
-                                </feature-->
-                                <!--feature>
-                                    <id>org.wso2.stratos.mb.dashboard.ui.feature.group</id>
-                                    <version>${project.version}</version>
-                                </feature-->
-                                <!--Cloud service deployment feature -->
-                                <feature>
-                                    <id>org.apache.stratos.deployment.feature.group</id>
-                                    <version>${project.version}</version>
-                                </feature>
-
-                                <!-- multitenancy feature groups -->
-                                <feature>
-                                    <id>org.apache.stratos.common.feature.group</id>
-                                    <version>3.0.0-SNAPSHOT</version>
-                                </feature>
-
-                                <feature>
-                                    <id>org.apache.stratos.lb.agent.server.feature.group</id>
-                                    <version>${project.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.apache.stratos.usage.agent.feature.group</id>
-                                    <version>${project.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.apache.stratos.throttling.agent.feature.group</id>
-                                    <version>${project.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.cassandra.server.feature.group</id>
-                                    <version>4.1.1</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-				<feature>
-                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group</id>
-                                    <version>${carbon.version}</version>
-                                </feature>
-				<!--***********************************MB features end**********************************************-->
-
-                            </features>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <version>1.1</version>
-                <executions>
-                    <execution>
-                        <phase>package</phase>
-                        <configuration>
-                            <tasks>
-                                <replace token="false" value="true"
-                                         dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/configuration/org.eclipse.equinox.simpleconfigurator">
-                                    <include name="**/bundles.info"/>
-                                </replace>
-                            </tasks>
-                        </configuration>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
-    
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/product/src/main/resources/META-INF/product.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/product/src/main/resources/META-INF/product.xml b/products/cloud_controller/modules/styles/product/src/main/resources/META-INF/product.xml
deleted file mode 100644
index 9ea2e9c..0000000
--- a/products/cloud_controller/modules/styles/product/src/main/resources/META-INF/product.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<product xmlns="http://products.wso2.org/carbon">
-    <properties>
-       <property name="userforum">http://wso2.org/forum/187</property>
-       <property name="userguide">http://docs.wso2.org/wiki/display/ESB470/Enterprise+Service+Bus+Documentation</property>
-       <property name="mailinglist">http://wso2.org/mail</property>
-       <property name="issuetracker">https://wso2.org/jira/browse/ESBJAVA</property>
-       <property name="collapsedmenus">region1_configure_menu,region3_registry_menu,region4_monitor_menu,region5_tools_menu</property>
-       <property name="webAdminConsoleTitle">WSO2 Enterprise Service Bus (WSO2 ESB)</property>
-    </properties>
-</product>


[19/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features/service/org.apache.stratos.ui.feature/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features/service/org.apache.stratos.ui.feature/pom.xml b/products/stratos-controller/modules/features/service/org.apache.stratos.ui.feature/pom.xml
new file mode 100755
index 0000000..bdec5c9
--- /dev/null
+++ b/products/stratos-controller/modules/features/service/org.apache.stratos.ui.feature/pom.xml
@@ -0,0 +1,207 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+   <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-features</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+    </parent>
+
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.stratos.ui.feature</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Cloud Manager UI Feature</name>
+    <url>http://apache.org</url>
+    <description>This feature contains the bundles required for Front-end Cloud Manager functionality</description>
+
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.account.mgt.ui</artifactId>
+	    <version>${project.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.ui.menu.tools</artifactId>
+		<version>${wso2carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.common</artifactId>
+		<version>${project.version}</version>
+            </dependency>
+            <!--<dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.apache.stratos.tenant.mgt.ui</artifactId>
+		<version>${stratos.version}</version>
+            </dependency>-->
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.theme.mgt.ui</artifactId>
+		<version>${project.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.theme.mgt.stub</artifactId>
+		<version>${project.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.batik.wso2</groupId>
+                <artifactId>batik</artifactId>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.validate.domain.ui</artifactId>
+		<version>${project.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.register.ui</artifactId>
+		<version>${project.version}</version>
+            </dependency>
+            <!--<dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.tenant.activity.ui</artifactId>
+              <version>${stratos.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.tenant.activity.stub</artifactId>
+              <version>4.0.0</version>
+            </dependency>-->
+	    <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.email.verification.ui</artifactId>
+		<version>${carbon.version}</version>
+            </dependency>
+	        <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.email.verification.stub</artifactId>
+		<version>${carbon.version}</version>
+            </dependency>
+	    <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.tenant.register.stub</artifactId>
+                <version>${project.version}</version>
+            </dependency>
+	    <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.security.mgt</artifactId>
+	        <version>${carbon.version}</version>
+            </dependency>
+	    <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.manager.dashboard.ui</artifactId>
+                <version>${project.version}</version>
+		</dependency>
+	    <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.manager.dashboard.stub</artifactId>
+                <version>${project.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.manager.login.ui</artifactId>
+                <version>${project.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.manager.styles</artifactId>
+                <version>${project.version}</version>
+            </dependency>
+	    <!--stubs-->
+	    <dependency>
+		 <groupId>org.apache.stratos</groupId>
+                 <artifactId>org.apache.stratos.account.mgt.stub</artifactId>
+                 <version>${project.version}</version>
+            </dependency>
+	    <dependency>
+                 <groupId>org.apache.stratos</groupId>
+                 <artifactId>org.apache.stratos.validate.domain.stub</artifactId>
+		<version>${project.version}</version>
+            </dependency>
+        </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.wso2.maven</groupId>
+                <artifactId>carbon-p2-plugin</artifactId>
+                <version>${carbon.p2.plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>p2-feature-generation</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>p2-feature-gen</goal>
+                        </goals>
+                        <configuration>
+                            <id>org.apache.stratos.ui</id>
+                            <propertiesFile>../etc/feature.properties</propertiesFile>
+                            <adviceFile>
+                                <properties>
+                                    <propertyDef>org.wso2.carbon.p2.category.type:console</propertyDef>
+                                    <propertyDef>org.eclipse.equinox.p2.type.group:false</propertyDef>
+                                </properties>
+                            </adviceFile>
+                            <bundles>
+                                <bundleDef>org.apache.stratos:org.apache.stratos.account.mgt.ui:${project.version}</bundleDef>
+                                <!--<bundleDef>org.wso2.carbon:org.apache.stratos.tenant.mgt.ui</bundleDef>-->
+                                <bundleDef>org.apache.stratos:org.apache.stratos.theme.mgt.ui:${project.version}</bundleDef>
+                                <bundleDef>org.apache.stratos:org.apache.stratos.theme.mgt.stub:${project.version}</bundleDef>
+                                <bundleDef>org.apache.batik.wso2:batik</bundleDef>
+                                <bundleDef>org.apache.stratos:org.apache.stratos.validate.domain.ui:${project.version}</bundleDef>
+                                <bundleDef>org.apache.stratos:org.apache.stratos.register.ui:${project.version}</bundleDef>
+				<!--bundleDef>org.wso2.carbon:org.wso2.carbon.payment.ui:${stratos.component.version}</bundleDef-->
+                                <bundleDef>org.wso2.carbon:org.wso2.carbon.email.verification.ui</bundleDef>
+                                <bundleDef>org.wso2.carbon:org.wso2.carbon.email.verification.stub</bundleDef>
+                                <bundleDef>org.apache.stratos:org.apache.stratos.manager.dashboard.ui:${project.version}</bundleDef>
+				<bundleDef>org.apache.stratos:org.apache.stratos.manager.dashboard.stub:${project.version}</bundleDef>
+                                <bundleDef>org.apache.stratos:org.apache.stratos.manager.login.ui:${project.version}</bundleDef>
+                                <bundleDef>org.apache.stratos:org.apache.stratos.manager.styles:${project.version}</bundleDef>
+				<!--<bundleDef>org.wso2.carbon:org.wso2.carbon.tenant.activity.ui</bundleDef>
+				<bundleDef>org.wso2.carbon:org.wso2.carbon.tenant.activity.stub:${wso2carbon.version}</bundleDef>-->
+
+				<!--stub bundles -->
+
+				<bundleDef>org.apache.stratos:org.apache.stratos.account.mgt.stub:${project.version}</bundleDef>
+				<bundleDef>org.apache.stratos:org.apache.stratos.validate.domain.stub:${project.version}</bundleDef>
+				<!--<bundleDef>org.wso2.carbon:org.apache.stratos.tenant.mgt.stub:${wso2carbon.version}</bundleDef>-->
+				<bundleDef>org.apache.stratos:org.apache.stratos.tenant.register.stub:${project.version}</bundleDef>
+				<bundleDef>org.wso2.carbon:org.wso2.carbon.payment.stub:${wso2carbon.version}</bundleDef>
+                            </bundles>
+                            <importBundles>
+                                <importBundleDef>org.wso2.carbon:org.wso2.carbon.ui.menu.tools</importBundleDef>
+                            </importBundles>
+                            <importFeatures>
+                                <importFeatureDef>org.wso2.carbon.security.mgt:${carbon.version}</importFeatureDef>
+                                <importFeatureDef>org.wso2.carbon.core.ui:${carbon.version}</importFeatureDef>
+                            </importFeatures>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features/service/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features/service/pom.xml b/products/stratos-controller/modules/features/service/pom.xml
new file mode 100755
index 0000000..794d4de
--- /dev/null
+++ b/products/stratos-controller/modules/features/service/pom.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  --> 
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+	<groupId>org.apache.stratos</groupId>
+	<artifactId>apache-stratos-features-parent</artifactId>
+	<version>3.0.0-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>stratos-features</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Features Aggregator Module</name>
+    <url>http://apache.org</url>
+
+    <modules>
+        <module>org.apache.stratos.feature</module>
+        <module>org.apache.stratos.server.feature</module>
+        <module>org.apache.stratos.ui.feature</module>
+    </modules>
+
+    <properties>
+        <wso2carbon.version>4.1.0</wso2carbon.version>
+	<synapse.version>${version.synapse}</synapse.version>
+        <quartz.wso2.version>2.1.1.wso2v1</quartz.wso2.version>
+	<stratos.controller.version>1.0.0</stratos.controller.version>
+    </properties>
+
+</project>
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/integration/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/integration/pom.xml b/products/stratos-controller/modules/integration/pom.xml
new file mode 100755
index 0000000..d724ab2
--- /dev/null
+++ b/products/stratos-controller/modules/integration/pom.xml
@@ -0,0 +1,164 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <parent>
+	<groupId>org.apache.stratos</groupId>
+	<artifactId>stratos-controller-parent</artifactId>
+	<version>3.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>integration</artifactId>
+    <name>Apache Stratos - Manager Integration Tests</name>
+    <packaging>jar</packaging>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-clean-plugin</artifactId>
+                <version>2.4.1</version>
+                <executions>
+                    <execution>
+                        <id>auto-clean</id>
+                        <phase>initialize</phase>
+                        <goals>
+                            <goal>clean</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <inherited>false</inherited>
+                <configuration>
+                    <suiteXmlFiles>
+                        <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
+                    </suiteXmlFiles>
+                    <!--includes>
+                        <include>**/*TestServerManager.java</include>
+                        <include>**/LoginLogoutTestCase.java</include>
+                        <include>**/TenantMgtTestCase.java</include>
+                    </includes-->
+                    <systemProperties>
+                        <maven.test.haltafterfailure>false</maven.test.haltafterfailure>
+                        <carbon.zip>
+                            ${basedir}/../distribution/target/apache-stratos-sc-${project.version}.zip
+                        </carbon.zip>
+                        <sec.verifier.dir>${basedir}/target/security-verifier/</sec.verifier.dir>
+                        <extracted.dir>stratos-controller-parent-${project.version}</extracted.dir>
+                        <emma.home>${basedir}/target/emma</emma.home>
+                    </systemProperties>
+                    <workingDirectory>${basedir}/target</workingDirectory>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>test-jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>copy-emma-dependencies</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>copy-dependencies</goal>
+                        </goals>
+                        <configuration>
+                            <outputDirectory>${project.build.directory}/emma</outputDirectory>
+                            <includeTypes>jar</includeTypes>
+                            <includeArtifactIds>emma,org.wso2.carbon.integration.framework</includeArtifactIds>
+                        </configuration>
+                    </execution>
+                    <execution>
+                    	<id>copy-secVerifier</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>copy-dependencies</goal>
+                        </goals>
+                        <configuration>
+                            <outputDirectory>${basedir}/target/security-verifier</outputDirectory>
+                            <includeTypes>aar</includeTypes>
+                            <includeArtifactIds>SecVerifier</includeArtifactIds>
+                            <stripVersion>true</stripVersion>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.integration.framework</artifactId>
+            <version>${carbon.kernel.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.testng</groupId>
+            <artifactId>testng</artifactId>
+            <version>6.1.1</version>
+        </dependency>
+        <!--dependency>
+            <groupId>emma</groupId>
+            <artifactId>emma</artifactId>
+            <version>${emma.version}</version>
+        </dependency-->
+        <dependency>
+            <groupId>org.apache.axis2.wso2</groupId>
+            <artifactId>axis2-client</artifactId>
+            <version>${axis2.osgi.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.addressing</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.integration.core</artifactId>
+            <version>${carbon.kernel.version}</version>
+            <classifier>tests</classifier>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.tenant.mgt.stub</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+        	<groupId>org.wso2.carbon</groupId>
+        	<artifactId>SecVerifier</artifactId>
+        	<version>${carbon.kernel.version}</version>
+        	<type>aar</type>
+        </dependency>
+    </dependencies>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/LoginLogoutTestCase.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/LoginLogoutTestCase.java b/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/LoginLogoutTestCase.java
new file mode 100755
index 0000000..ae08489
--- /dev/null
+++ b/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/LoginLogoutTestCase.java
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.integration.tests;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.testng.annotations.Test;
+import org.wso2.carbon.integration.framework.ClientConnectionUtil;
+import org.wso2.carbon.integration.framework.LoginLogoutUtil;
+
+/**
+ * A test case which tests logging in & logging out of a Carbon core server
+ */
+public class LoginLogoutTestCase {
+
+    private LoginLogoutUtil util = new LoginLogoutUtil();
+    public static final Log log = LogFactory.getLog(LoginLogoutTestCase.class);
+
+    @Test(groups = {"stratos.manager"})
+    public void login() throws Exception {
+        log.info("****************************** LoginLogoutTestCase Start ******************************");
+        ClientConnectionUtil.waitForPort(9763);
+        util.login();
+    }
+
+    @Test(groups = {"stratos.manager"})
+    public void logout() throws Exception {
+        ClientConnectionUtil.waitForPort(9763);
+        util.logout();
+        log.info("****************************** LoginLogoutTestCase End ******************************");
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/SecurityVerificationTestCase.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/SecurityVerificationTestCase.java b/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/SecurityVerificationTestCase.java
new file mode 100755
index 0000000..1cfa9e0
--- /dev/null
+++ b/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/SecurityVerificationTestCase.java
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.integration.tests;
+
+import org.wso2.carbon.integration.framework.SecurityVerificationTest;
+
+/**
+ * Test to ensure that the WSO2 Stratos Manager is properly secured
+ */
+public class SecurityVerificationTestCase extends SecurityVerificationTest {
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/StratosManagerTestServerManager.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/StratosManagerTestServerManager.java b/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/StratosManagerTestServerManager.java
new file mode 100755
index 0000000..0a1c7e1
--- /dev/null
+++ b/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/StratosManagerTestServerManager.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.integration.tests;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.testng.annotations.AfterSuite;
+import org.testng.annotations.BeforeSuite;
+import org.wso2.carbon.integration.framework.TestServerManager;
+
+import java.io.File;
+import java.io.IOException;
+
+/**
+ * Prepares the WSO2 AS for test runs, starts the server, and stops the server after
+ * test runs
+ */
+public class StratosManagerTestServerManager extends TestServerManager {
+    private static final Log log = LogFactory.getLog(StratosManagerTestServerManager.class);
+
+    @Override
+    @BeforeSuite(timeOut = 300000)
+    public String startServer() throws IOException {
+        String carbonHome = super.startServer();
+        System.setProperty("carbon.home", carbonHome);
+        return carbonHome;
+    }
+
+    @Override
+    @AfterSuite(timeOut = 60000)
+    public void stopServer() throws Exception {
+        super.stopServer();
+    }
+
+    protected void copyArtifacts(String carbonHome) throws IOException {
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/TenantMgtTestCase.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/TenantMgtTestCase.java b/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/TenantMgtTestCase.java
new file mode 100755
index 0000000..963e0a1
--- /dev/null
+++ b/products/stratos-controller/modules/integration/src/test/java/org/apache/stratos/manager/integration/tests/TenantMgtTestCase.java
@@ -0,0 +1,92 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.stratos.manager.integration.tests;
+
+import org.apache.axis2.client.ServiceClient;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.testng.Assert;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+import org.wso2.carbon.integration.framework.utils.FrameworkSettings;
+import org.apache.stratos.tenant.mgt.stub.TenantMgtAdminServiceStub;
+import org.apache.stratos.tenant.mgt.stub.beans.xsd.TenantInfoBean;
+import org.wso2.carbon.utils.CarbonUtils;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+
+public class TenantMgtTestCase {
+
+    private static String TenantMgtAdminServiceURL;
+    private static String TestTenantDomain;
+    public static final Log log = LogFactory.getLog(TenantMgtTestCase.class);
+
+    @BeforeClass
+    public void init() {
+        log.info("****************************** TenantMgtTestCase Start ******************************");
+        TestTenantDomain = "testcase.org";
+        TenantMgtAdminServiceURL = "https://" + FrameworkSettings.HOST_NAME + ":" +
+                                 FrameworkSettings.HTTPS_PORT + "/services/TenantMgtAdminService";
+    }
+
+    @Test(groups = {"stratos.manager"})
+    public void addTenantTest() throws Exception {
+        Calendar calender = new GregorianCalendar();
+        calender.setTime(new Date());
+
+        TenantInfoBean tenantInfoBean = new TenantInfoBean();
+        tenantInfoBean.setActive(true);
+        tenantInfoBean.setEmail("manager-test@wso2.com");
+        tenantInfoBean.setAdmin("admin");
+        tenantInfoBean.setAdminPassword("admin123");
+        tenantInfoBean.setTenantDomain(TestTenantDomain);
+        tenantInfoBean.setCreatedDate(calender);
+        tenantInfoBean.setFirstname("Fname");
+        tenantInfoBean.setLastname("Lname");
+        tenantInfoBean.setSuccessKey("true");
+        tenantInfoBean.setUsagePlan("Demo");
+
+        TenantMgtAdminServiceStub stub = new TenantMgtAdminServiceStub(TenantMgtAdminServiceURL);
+        ServiceClient client = stub._getServiceClient();
+        CarbonUtils.setBasicAccessSecurityHeaders(FrameworkSettings.USER_NAME, FrameworkSettings.PASSWORD, client);
+
+        String result = stub.addTenant(tenantInfoBean);
+        Assert.assertTrue(stub.retrieveTenants()[0].getTenantDomain().equals(TestTenantDomain));
+
+    }
+
+    @Test(groups = {"stratos.manager"})
+    public void activateTenantTest() throws Exception {
+        TenantMgtAdminServiceStub stub = new TenantMgtAdminServiceStub(TenantMgtAdminServiceURL);
+        ServiceClient client = stub._getServiceClient();
+        CarbonUtils.setBasicAccessSecurityHeaders(FrameworkSettings.USER_NAME, FrameworkSettings.PASSWORD, client);
+        stub.activateTenant(TestTenantDomain);
+        Assert.assertTrue(stub.retrieveTenants()[0].getActive());
+    }
+
+    @AfterClass
+    public void end(){
+        log.info("****************************** TenantMgtTestCase End ******************************");
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/integration/src/test/resources/instrumentation.txt
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/integration/src/test/resources/instrumentation.txt b/products/stratos-controller/modules/integration/src/test/resources/instrumentation.txt
new file mode 100755
index 0000000..3ebd80a
--- /dev/null
+++ b/products/stratos-controller/modules/integration/src/test/resources/instrumentation.txt
@@ -0,0 +1,2 @@
+org.apache.stratos.tenant.mgt_
+org.apache.stratos.tenant.mgt.core_
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/integration/src/test/resources/keys/wso2carbon.jks
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/integration/src/test/resources/keys/wso2carbon.jks b/products/stratos-controller/modules/integration/src/test/resources/keys/wso2carbon.jks
new file mode 100755
index 0000000..7942c53
Binary files /dev/null and b/products/stratos-controller/modules/integration/src/test/resources/keys/wso2carbon.jks differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/integration/src/test/resources/testng.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/integration/src/test/resources/testng.xml b/products/stratos-controller/modules/integration/src/test/resources/testng.xml
new file mode 100755
index 0000000..5cdc25e
--- /dev/null
+++ b/products/stratos-controller/modules/integration/src/test/resources/testng.xml
@@ -0,0 +1,17 @@
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="Apache Stratos Manager Test Suite">
+    <test name="testing" preserve-order="true">
+        <classes>
+            <class name="org.apache.stratos.manager.integration.tests.StratosManagerTestServerManager"/>
+            <class name="org.apache.stratos.manager.integration.tests.LoginLogoutTestCase"/>
+            <class name="org.apache.stratos.manager.integration.tests.SecurityVerificationTestCase"/>
+            <!--class name="org.apache.stratos.manager.integration.tests.TenantMgtTestCase">
+                <methods>
+                    <include name="init"/>
+                    <include name="addTenantTest"/>
+                    <include name="activateTenantTest"/>
+                </methods>
+            </class-->
+        </classes>
+    </test>
+</suite>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/pom.xml b/products/stratos-controller/modules/login/pom.xml
new file mode 100644
index 0000000..03c4acf
--- /dev/null
+++ b/products/stratos-controller/modules/login/pom.xml
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+     <parent>
+	<groupId>org.apache.stratos</groupId>
+	<artifactId>stratos-controller-parent</artifactId>
+	<version>3.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.stratos.manager.login.ui</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Stratos - Cloud Manager Login User Interface</name>
+
+    <build>
+
+        <plugins>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+	    
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>add-source</id>
+                        <phase>generate-sources</phase>
+                        <goals>
+                            <goal>add-source</goal>
+                        </goals>
+                        <configuration>
+                            <sources>
+                                <source>target/generated-code/src</source>
+                            </sources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+                        <Bundle-Name>${project.artifactId}</Bundle-Name>
+                        <Import-Package>
+                            javax.servlet; version=2.4.0,
+                            javax.servlet.http; version=2.4.0,
+                            org.apache.lucene.*,
+                            *;resolution:=optional
+                        </Import-Package>
+                        <Carbon-Component>UIBundle</Carbon-Component>
+                    </instructions>
+                </configuration>
+            </plugin>
+
+        </plugins>
+    </build>
+
+   <dependencies>
+
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.registry.common.ui</artifactId>
+            <version>${registry-component.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.registry.core</artifactId>
+            <version>${wso2carbon.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2.wso2</groupId>
+            <artifactId>axis2</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ws.commons.axiom.wso2</groupId>
+            <artifactId>axiom</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.ui</artifactId>
+            <version>${wso2carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.core</artifactId>
+            <version>${wso2carbon.version}</version>
+        </dependency>
+    </dependencies>
+
+
+    <properties>
+        <eclipse.version>3.2.0</eclipse.version>
+        <!-- Component versions == Carbon version, if not, please change the properties below. -->
+        <registry-component.version>4.1.0</registry-component.version>
+   </properties>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/META-INF/component.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/META-INF/component.xml b/products/stratos-controller/modules/login/src/main/resources/META-INF/component.xml
new file mode 100644
index 0000000..565c0d5
--- /dev/null
+++ b/products/stratos-controller/modules/login/src/main/resources/META-INF/component.xml
@@ -0,0 +1,21 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<component xmlns="http://products.wso2.org/carbon">
+    <!-- sample menu configuration -->
+</component>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/TenantService.wsdl
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/TenantService.wsdl b/products/stratos-controller/modules/login/src/main/resources/TenantService.wsdl
new file mode 100644
index 0000000..c66acdc
--- /dev/null
+++ b/products/stratos-controller/modules/login/src/main/resources/TenantService.wsdl
@@ -0,0 +1,577 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:ax223="http://exceptions.core.registry.carbon.wso2.org/xsd" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:ns="http://services.mgt.tenant.multitenancy.carbon.wso2.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ax226="http://util.mgt.tenant.multitenancy.carbon.wso2.com/xsd" targetNamespace="http://services.mgt.tenant.multitenancy.carbon.wso2.com">
+    <wsdl:documentation>TenantConfigService</wsdl:documentation>
+    <wsdl:types>
+        <xs:schema xmlns:ax225="http://exceptions.core.registry.carbon.wso2.org/xsd" xmlns:ax227="http://util.mgt.tenant.multitenancy.carbon.wso2.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://services.mgt.tenant.multitenancy.carbon.wso2.com">
+            <xs:import namespace="http://exceptions.core.registry.carbon.wso2.org/xsd" />
+            <xs:import namespace="http://util.mgt.tenant.multitenancy.carbon.wso2.com/xsd" />
+            <xs:complexType name="Exception">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="Exception" nillable="true" type="xs:anyType" />
+                </xs:sequence>
+            </xs:complexType>
+            <xs:element name="RegistryException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="RegistryException" nillable="true" type="ax225:RegistryException" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="validateOrSuggestDomain">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="domain" nillable="true" type="xs:string" />
+                        <xs:element minOccurs="0" name="successKey" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="validateOrSuggestDomainResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="updateTenant">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="tenantInfoBean" nillable="true" type="ax226:TenantInfoBean" />
+                        <xs:element minOccurs="0" name="oldAdminPassword" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="proceedTenantAdding">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="tenantInfoBean" nillable="true" type="ax226:TenantInfoBean" />
+                        <xs:element minOccurs="0" name="confirmationKey" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="proceedTenantAddingResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getTenantsResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="ax226:TenantInfoBean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getTenant">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="tenantDomain" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getTenantResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" nillable="true" type="ax226:TenantInfoBean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="deactivateTenant">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="tenantDomain" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="Exception">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="Exception" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="checkDomainAvailability">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="domainName" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="checkDomainAvailabilityResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" type="xs:boolean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="addTenant">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="tenantInfoBean" nillable="true" type="ax226:TenantInfoBean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="activateTenant">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="tenantDomain" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+        </xs:schema>
+        <xs:schema xmlns:ax224="http://services.mgt.tenant.multitenancy.carbon.wso2.com" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://exceptions.core.registry.carbon.wso2.org/xsd">
+            <xs:import namespace="http://services.mgt.tenant.multitenancy.carbon.wso2.com" />
+            <xs:complexType name="RegistryException">
+                <xs:complexContent>
+                    <xs:extension base="ax224:Exception">
+                        <xs:sequence />
+                    </xs:extension>
+                </xs:complexContent>
+            </xs:complexType>
+        </xs:schema>
+        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://util.mgt.tenant.multitenancy.carbon.wso2.com/xsd">
+            <xs:complexType name="TenantInfoBean">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="active" type="xs:boolean" />
+                    <xs:element minOccurs="0" name="admin" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="adminPassword" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="email" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="successKey" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="tenantDomain" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="tenantId" type="xs:int" />
+                </xs:sequence>
+            </xs:complexType>
+        </xs:schema>
+    </wsdl:types>
+    <wsdl:message name="deactivateTenantRequest">
+        <wsdl:part name="parameters" element="ns:deactivateTenant" />
+    </wsdl:message>
+    <wsdl:message name="deactivateTenantResponse" />
+    <wsdl:message name="RegistryException">
+        <wsdl:part name="parameters" element="ns:RegistryException" />
+    </wsdl:message>
+    <wsdl:message name="activateTenantRequest">
+        <wsdl:part name="parameters" element="ns:activateTenant" />
+    </wsdl:message>
+    <wsdl:message name="activateTenantResponse" />
+    <wsdl:message name="validateOrSuggestDomainRequest">
+        <wsdl:part name="parameters" element="ns:validateOrSuggestDomain" />
+    </wsdl:message>
+    <wsdl:message name="validateOrSuggestDomainResponse">
+        <wsdl:part name="parameters" element="ns:validateOrSuggestDomainResponse" />
+    </wsdl:message>
+    <wsdl:message name="addTenantRequest">
+        <wsdl:part name="parameters" element="ns:addTenant" />
+    </wsdl:message>
+    <wsdl:message name="addTenantResponse" />
+    <wsdl:message name="proceedTenantAddingRequest">
+        <wsdl:part name="parameters" element="ns:proceedTenantAdding" />
+    </wsdl:message>
+    <wsdl:message name="proceedTenantAddingResponse">
+        <wsdl:part name="parameters" element="ns:proceedTenantAddingResponse" />
+    </wsdl:message>
+    <wsdl:message name="getTenantsRequest" />
+    <wsdl:message name="getTenantsResponse">
+        <wsdl:part name="parameters" element="ns:getTenantsResponse" />
+    </wsdl:message>
+    <wsdl:message name="checkDomainAvailabilityRequest">
+        <wsdl:part name="parameters" element="ns:checkDomainAvailability" />
+    </wsdl:message>
+    <wsdl:message name="checkDomainAvailabilityResponse">
+        <wsdl:part name="parameters" element="ns:checkDomainAvailabilityResponse" />
+    </wsdl:message>
+    <wsdl:message name="Exception">
+        <wsdl:part name="parameters" element="ns:Exception" />
+    </wsdl:message>
+    <wsdl:message name="getTenantRequest">
+        <wsdl:part name="parameters" element="ns:getTenant" />
+    </wsdl:message>
+    <wsdl:message name="getTenantResponse">
+        <wsdl:part name="parameters" element="ns:getTenantResponse" />
+    </wsdl:message>
+    <wsdl:message name="updateTenantRequest">
+        <wsdl:part name="parameters" element="ns:updateTenant" />
+    </wsdl:message>
+    <wsdl:message name="updateTenantResponse" />
+    <wsdl:portType name="TenantConfigServicePortType">
+        <wsdl:operation name="deactivateTenant">
+            <wsdl:input message="ns:deactivateTenantRequest" wsaw:Action="urn:deactivateTenant" />
+            <wsdl:output message="ns:deactivateTenantResponse" wsaw:Action="urn:deactivateTenantResponse" />
+            <wsdl:fault message="ns:RegistryException" name="RegistryException" wsaw:Action="urn:deactivateTenantRegistryException" />
+        </wsdl:operation>
+        <wsdl:operation name="activateTenant">
+            <wsdl:input message="ns:activateTenantRequest" wsaw:Action="urn:activateTenant" />
+            <wsdl:output message="ns:activateTenantResponse" wsaw:Action="urn:activateTenantResponse" />
+            <wsdl:fault message="ns:RegistryException" name="RegistryException" wsaw:Action="urn:activateTenantRegistryException" />
+        </wsdl:operation>
+        <wsdl:operation name="validateOrSuggestDomain">
+            <wsdl:input message="ns:validateOrSuggestDomainRequest" wsaw:Action="urn:validateOrSuggestDomain" />
+            <wsdl:output message="ns:validateOrSuggestDomainResponse" wsaw:Action="urn:validateOrSuggestDomainResponse" />
+            <wsdl:fault message="ns:RegistryException" name="RegistryException" wsaw:Action="urn:validateOrSuggestDomainRegistryException" />
+        </wsdl:operation>
+        <wsdl:operation name="addTenant">
+            <wsdl:input message="ns:addTenantRequest" wsaw:Action="urn:addTenant" />
+            <wsdl:output message="ns:addTenantResponse" wsaw:Action="urn:addTenantResponse" />
+            <wsdl:fault message="ns:RegistryException" name="RegistryException" wsaw:Action="urn:addTenantRegistryException" />
+        </wsdl:operation>
+        <wsdl:operation name="proceedTenantAdding">
+            <wsdl:input message="ns:proceedTenantAddingRequest" wsaw:Action="urn:proceedTenantAdding" />
+            <wsdl:output message="ns:proceedTenantAddingResponse" wsaw:Action="urn:proceedTenantAddingResponse" />
+            <wsdl:fault message="ns:RegistryException" name="RegistryException" wsaw:Action="urn:proceedTenantAddingRegistryException" />
+        </wsdl:operation>
+        <wsdl:operation name="getTenants">
+            <wsdl:input message="ns:getTenantsRequest" wsaw:Action="urn:getTenants" />
+            <wsdl:output message="ns:getTenantsResponse" wsaw:Action="urn:getTenantsResponse" />
+            <wsdl:fault message="ns:RegistryException" name="RegistryException" wsaw:Action="urn:getTenantsRegistryException" />
+        </wsdl:operation>
+        <wsdl:operation name="checkDomainAvailability">
+            <wsdl:input message="ns:checkDomainAvailabilityRequest" wsaw:Action="urn:checkDomainAvailability" />
+            <wsdl:output message="ns:checkDomainAvailabilityResponse" wsaw:Action="urn:checkDomainAvailabilityResponse" />
+            <wsdl:fault message="ns:Exception" name="Exception" wsaw:Action="urn:checkDomainAvailabilityException" />
+        </wsdl:operation>
+        <wsdl:operation name="getTenant">
+            <wsdl:input message="ns:getTenantRequest" wsaw:Action="urn:getTenant" />
+            <wsdl:output message="ns:getTenantResponse" wsaw:Action="urn:getTenantResponse" />
+            <wsdl:fault message="ns:RegistryException" name="RegistryException" wsaw:Action="urn:getTenantRegistryException" />
+        </wsdl:operation>
+        <wsdl:operation name="updateTenant">
+            <wsdl:input message="ns:updateTenantRequest" wsaw:Action="urn:updateTenant" />
+            <wsdl:output message="ns:updateTenantResponse" wsaw:Action="urn:updateTenantResponse" />
+            <wsdl:fault message="ns:RegistryException" name="RegistryException" wsaw:Action="urn:updateTenantRegistryException" />
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="TenantConfigServiceSoap11Binding" type="ns:TenantConfigServicePortType">
+        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="deactivateTenant">
+            <soap:operation soapAction="urn:deactivateTenant" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="activateTenant">
+            <soap:operation soapAction="urn:activateTenant" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="validateOrSuggestDomain">
+            <soap:operation soapAction="urn:validateOrSuggestDomain" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="addTenant">
+            <soap:operation soapAction="urn:addTenant" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="proceedTenantAdding">
+            <soap:operation soapAction="urn:proceedTenantAdding" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="getTenants">
+            <soap:operation soapAction="urn:getTenants" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="checkDomainAvailability">
+            <soap:operation soapAction="urn:checkDomainAvailability" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="Exception">
+                <soap:fault use="literal" name="Exception" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="getTenant">
+            <soap:operation soapAction="urn:getTenant" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="updateTenant">
+            <soap:operation soapAction="urn:updateTenant" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="TenantConfigServiceSoap12Binding" type="ns:TenantConfigServicePortType">
+        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="deactivateTenant">
+            <soap12:operation soapAction="urn:deactivateTenant" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap12:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="activateTenant">
+            <soap12:operation soapAction="urn:activateTenant" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap12:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="validateOrSuggestDomain">
+            <soap12:operation soapAction="urn:validateOrSuggestDomain" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap12:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="addTenant">
+            <soap12:operation soapAction="urn:addTenant" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap12:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="proceedTenantAdding">
+            <soap12:operation soapAction="urn:proceedTenantAdding" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap12:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="getTenants">
+            <soap12:operation soapAction="urn:getTenants" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap12:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="checkDomainAvailability">
+            <soap12:operation soapAction="urn:checkDomainAvailability" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="Exception">
+                <soap12:fault use="literal" name="Exception" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="getTenant">
+            <soap12:operation soapAction="urn:getTenant" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap12:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="updateTenant">
+            <soap12:operation soapAction="urn:updateTenant" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="RegistryException">
+                <soap12:fault use="literal" name="RegistryException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="TenantConfigServiceHttpBinding" type="ns:TenantConfigServicePortType">
+        <http:binding verb="POST" />
+        <wsdl:operation name="deactivateTenant">
+            <http:operation location="deactivateTenant" />
+            <wsdl:input>
+                <mime:content type="text/xml" part="deactivateTenant" />
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="deactivateTenant" />
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="activateTenant">
+            <http:operation location="activateTenant" />
+            <wsdl:input>
+                <mime:content type="text/xml" part="activateTenant" />
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="activateTenant" />
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="validateOrSuggestDomain">
+            <http:operation location="validateOrSuggestDomain" />
+            <wsdl:input>
+                <mime:content type="text/xml" part="validateOrSuggestDomain" />
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="validateOrSuggestDomain" />
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="addTenant">
+            <http:operation location="addTenant" />
+            <wsdl:input>
+                <mime:content type="text/xml" part="addTenant" />
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="addTenant" />
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="proceedTenantAdding">
+            <http:operation location="proceedTenantAdding" />
+            <wsdl:input>
+                <mime:content type="text/xml" part="proceedTenantAdding" />
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="proceedTenantAdding" />
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="getTenants">
+            <http:operation location="getTenants" />
+            <wsdl:input>
+                <mime:content type="text/xml" part="getTenants" />
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="getTenants" />
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="checkDomainAvailability">
+            <http:operation location="checkDomainAvailability" />
+            <wsdl:input>
+                <mime:content type="text/xml" part="checkDomainAvailability" />
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="checkDomainAvailability" />
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="getTenant">
+            <http:operation location="getTenant" />
+            <wsdl:input>
+                <mime:content type="text/xml" part="getTenant" />
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="getTenant" />
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="updateTenant">
+            <http:operation location="updateTenant" />
+            <wsdl:input>
+                <mime:content type="text/xml" part="updateTenant" />
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="updateTenant" />
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="TenantConfigService">
+        <wsdl:port name="TenantConfigServiceHttpsSoap11Endpoint" binding="ns:TenantConfigServiceSoap11Binding">
+            <soap:address location="https://10.100.1.125:9443/services/TenantConfigService.TenantConfigServiceHttpsSoap11Endpoint/" />
+        </wsdl:port>
+        <wsdl:port name="TenantConfigServiceHttpsSoap12Endpoint" binding="ns:TenantConfigServiceSoap12Binding">
+            <soap12:address location="https://10.100.1.125:9443/services/TenantConfigService.TenantConfigServiceHttpsSoap12Endpoint/" />
+        </wsdl:port>
+        <wsdl:port name="TenantConfigServiceHttpsEndpoint" binding="ns:TenantConfigServiceHttpBinding">
+            <http:address location="https://10.100.1.125:9443/services/TenantConfigService.TenantConfigServiceHttpsEndpoint/" />
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/css/loginpage.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/css/loginpage.css b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/css/loginpage.css
new file mode 100644
index 0000000..c69f1c6
--- /dev/null
+++ b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/css/loginpage.css
@@ -0,0 +1,268 @@
+body {
+	color:#111111;
+	font-family:"Calibri","Lucida Grande","Lucida Sans","Microsoft Sans Serif","Lucida Sans Unicode","Verdana","Sans-serif","trebuchet ms" !important;
+	font-size:0.75em;
+	font-size-adjust:none;
+	font-style:normal;
+	font-variant:normal;
+	font-weight:normal;
+	line-height:1.25em;
+	background-image: url(../images/body-bg.gif);
+	background-position: left top;
+	background-repeat: repeat-x;
+	margin: 0px;
+	padding: 0px;
+}
+
+div.clear {
+	clear:both;
+}
+p { }
+
+td { }
+
+a:link { }
+
+a:visited { }
+
+a:hover { }
+
+a:active { }
+
+div#login-content {
+	background-image:url(../images/login-bg.gif);
+	background-position:left top;
+	background-repeat:no-repeat;
+	height:277px;
+	left:50%;
+	margin-left:-481px;
+	position:absolute;
+	text-align:center;
+	width:962px;
+}
+div#login-content div.main-text {
+	margin-top: 113px;
+	margin-left: 50px;
+	float: left;
+	width: 750px;
+	font-size: 140%;
+	line-height: 125%;
+	height: 80px;
+	text-align: left;
+}
+div.feature {
+	float:left;
+	margin-left:79px;
+	margin-top:23px;
+	padding-bottom:20px;
+	padding-top:20px;
+	text-align:left;
+	width:221px;
+}
+div.feature img {
+	float: left;
+	margin-right: 10px;
+	width: 64px;
+}
+div.feature h2 {
+	margin-top: 0px;
+	margin-bottom: 7px;
+	color: #0499CC;
+	font-size: 155%;
+	line-height: 110%;
+	font-weight: normal;
+	
+}
+div.feature p {
+	margin-top: 0px;
+	padding-top: 0px;
+}
+div#login-content div.feature-left {
+	margin-left: 70px;
+}
+a.register-button {
+	background-image:url(../images/reg-button.gif);
+	background-position:left top;
+	background-repeat:no-repeat;
+	color:#FFFFFF;
+	cursor:pointer;
+	display:block;
+	font-size:220%;
+	font-weight:normal;
+	line-height:63px;
+	margin:auto auto 5px;
+	text-align:left;
+	text-decoration:none;
+	text-indent:25px;
+	width:444px;
+}
+a.register-button:hover {
+	background-image: url(../images/reg-button-hover.gif);
+}
+div.resources {
+	text-align: center;
+}
+div.resources a {
+	background-image:url("../images/link-icon.gif");
+	background-position:right 4px;
+	background-repeat:no-repeat;
+	color:#004990;
+	font-size:130%;
+	line-height:20px;
+	padding-right:15px;
+	text-decoration:none;
+}
+div.resources a:hover {
+	color: #000000;
+}
+table.adv {
+	width: 100%;
+	margin-top: 15px;
+}
+table.adv tr td {
+	vertical-align: top;
+	text-align: center;
+}
+td#ad {
+	height:210px;
+	width: 50%;	
+}
+div#sign-in {
+	text-align:left;
+	width: 580px;
+	margin: auto;
+}
+div#sign-in div.sign-in-form {
+	width: 580px;
+}
+div#sign-in h2 {
+	border-bottom:1px solid #78BDE8;
+	font-size:130%;
+	margin-bottom:10px;
+	margin-top:0;
+	padding-bottom:10px;
+	padding-top:0;
+}
+div#sign-in table tr td.top {
+	padding-top: 10px;
+}
+div#sign-in table tr td {
+	padding-bottom:5px;
+	padding-right:7px;
+}
+div#sign-in table {
+	border-bottom:1px solid #0499CC;
+	margin-bottom:7px;
+}
+div#sign-in table tr td.title {
+	font-size: 180%;
+	font-weight: bold;
+	padding-bottom: 10px;
+	padding-top: 0px;
+	text-align: left;
+}
+#loginForm td label{
+    font-size:12px;
+}
+div#sign-in a.help {
+	font-size: 14px;
+	text-decoration: none;
+	color: #00447C;
+}
+td#ad iframe.ad-frame {
+	border: 0px;
+	width: 420px;
+	height: 210px;
+	margin: 0px;
+	padding: 0px;
+}
+div#footer {
+	margin-top: 30px;
+	height: 50px;
+	border-top: solid 1px #009FC2;
+	padding-top: 7px;
+	text-align: left;
+}
+div#footer a {
+	text-decoration: none;
+	color: #00447C;
+}
+div#footer div.powered {
+	float: right;
+	font-size: 11px;
+	color: #333;
+}
+div#footer div.powered span {
+	float: left;
+	margin-right: 5px;
+	line-height: 23px;
+}
+div#sign-in table.sign-in {
+	border-bottom: 0px;
+}
+div#sign-in table tr td {
+	padding-top: 10px;
+	width: 290px;
+}
+div#sign-in table tbody tr td.third-party {
+	border-left: dotted 1px #cccccc;
+	padding: 20px;
+}
+div#sign-in table tbody tr td.third-party a img {
+	border: 0px;
+	margin-top: 10px;
+}
+.sign-in-box{
+    -moz-border-radius: 5px;
+    border-radius: 5px;
+    border:solid 1px #b5dff7;
+    background-color:#ebf7fd;
+    padding-left:10px;
+    width:800px;
+    margin-left:70px;
+
+        -moz-box-shadow: 0 0 3px #999;
+    -webkit-box-shadow: 0 0 3px #999;
+    box-shadow: 0 0 3px #999;
+}
+.sign-in-box h3{
+    color:#0499cc;
+    font-size:12px;
+    font-weight:bold;
+    padding-bottom:10px;
+}
+.sign-in-box table tr td{
+    text-align:left !important;
+}
+.user_pass_table a{
+    font-size:11px;
+}
+.user_pass_table td{
+    padding:4px;
+    text-align:left !important;
+}
+.sign-in-box div.help_txt{
+    color: #666666;
+    line-height:20px;
+}
+.user_pass_td{
+    border-right:solid 1px #ccc;
+}
+.google-app-td{
+    padding-left:10px;
+    width:300px;
+}
+#loginBoxGoogle{
+    margin-top:15px;
+}
+#loginBoxGoogle div.help_txt{
+    font-size:11px;
+}
+h2.stratos-Signin{
+    color:#0499cc;
+    font-size:22px;
+    line-height:30px;
+}
+.google-app-td img{
+    cursor:pointer;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/css/tenant.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/css/tenant.css b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/css/tenant.css
new file mode 100644
index 0000000..2f06cc5
--- /dev/null
+++ b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/css/tenant.css
@@ -0,0 +1,62 @@
+/*css editor styles */
+.csseditor-top-line{
+    background-color:black;
+    height:5px;
+}
+.csseditor-leftbox{
+    background-color:#9a9a9a;
+    padding-left:5px;
+    padding-right:5px;
+    padding-bottom:5px;
+    padding-top:15px;
+   height:380px;
+}
+.csseditor-leftbox-top{
+    color:#ffffff;
+    font-size:18px;
+    height:30px;
+}
+.csseditor-textbox{
+    background-color:#dfe7ed;
+    border:solid 1px #ffffff;
+    width:100%;
+}
+.csseditor-rightbox{
+    background-color:#c9c9c9;
+    border:solid 1px #ffffff;
+    height:400px;
+}
+.csseditor-rightbox-title{
+    background-color:#9a9a9a;
+    height:25px;
+    color:#ffffff;
+    padding-left:10px;
+    padding-top:5px;
+}
+.csseditor-searchbox{
+    padding-left:10px;
+    padding-top:10px;
+}
+#flickr_results{
+    height:300px;
+    overflow-y:auto;
+    overflow-x:hidden;
+    margin-left:5px;
+    margin-right:5px;
+    border:solid 1px #ffffff;
+}
+.imageList{
+}
+.imageList li {
+    padding-top: 3px !important;
+    padding-left: 5px !important;
+    background-color: #e1e9ec;
+    border: solid 1px #b5bdc1;
+}
+
+.imageList li a {
+    background-image: url(../images/images.gif);
+    background-repeat: no-repeat;
+    padding-left: 20px;
+    text-indent: 50px;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/images/sign-in-no-domain.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/images/sign-in-no-domain.png b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/images/sign-in-no-domain.png
new file mode 100644
index 0000000..2d5408c
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/images/sign-in-no-domain.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/images/sign-in-with-domain.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/images/sign-in-with-domain.png b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/images/sign-in-with-domain.png
new file mode 100644
index 0000000..764ce0f
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/images/sign-in-with-domain.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/userguide.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/userguide.html b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/userguide.html
new file mode 100644
index 0000000..7818a8c
--- /dev/null
+++ b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/docs/userguide.html
@@ -0,0 +1,114 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+  <title>WSO2 Stratos Services Sign In - User Guide</title>
+  <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
+</head>
+
+<body>
+<h1>WSO2 Stratos Services Sign In</h1>
+
+<p>
+You can use this form to sign in to the WSO2 Statos Admin Console. You can access this page from one of the following urls.
+</p>
+
+<p>
+<ol>
+    <li>The common login: <a href="https://stratoslive.wso2.com">https://stratoslive.wso2.com</a></li>
+    <li>The domain name specific login: <a href="https://stratoslive.wso2.com/t/yourdomoain">https://stratoslive.wso2.com/t/yourdomoain</a>  (e.g. for the wso2.org domain: <a href="https://stratoslive.wso2.com/t/wso2.org">https://stratoslive.wso2.com/t/wso2.org</a>)</li>
+</ol>
+</p>
+
+<h2>1. The common login: When accessed through <a href="https://stratoslive.wso2.com">https://stratoslive.wso2.com<a/></h2>
+
+<p>
+<img src="images/sign-in-no-domain.png" alt="When accessed through https://stratoslive.wso2.com"/>
+</p>
+<p><strong>Figure1: Sign In Form When accessed through <a href="https://stratoslive.wso2.com">https://stratoslive.wso2.com</a></strong></p>
+
+<p>
+
+<table border="1px">
+    <thead style="background:#cccccc">
+        <td>
+            The Form Field
+        </td>
+        <td>
+            Description
+        </td>
+    </thead>
+    <tbody>
+        <tr>
+            <td>Username</td>
+            <td><p>For this field you need to enter the username in the following format.</p>
+                <pre>yourname@yourdomain</pre>
+                <p>E.g. foo@wso2.com</p>
+            </td>
+        </tr>
+        <tr>
+            <td>Password</td>
+            <td>The Password of your user account
+            </td>
+        </tr>
+    </tbody>
+</table>
+</p>
+
+
+<h2>2. The domain name specific login: When accessed through <a href="https://stratoslive.wso2.com/t/yourdomoain">https://stratoslive.wso2.com/t/yourdomoain</a></h2>
+
+<p>
+<img src="images/sign-in-with-domain.png" alt="When accessed through https://stratoslive.wso2.com/t/yourdomain"/>
+</p>
+<p><strong>Figure1: Sign In Form When accessed through <a href="https://stratoslive.wso2.com/t/yourdomoain">https://stratoslive.wso2.com/t/yourdomoain</a></strong></p>
+
+<p>
+
+<table border="1px">
+    <thead style="background:#cccccc">
+        <td>
+            The Form Field
+        </td>
+        <td>
+            Description
+        </td>
+    </thead>
+    <tbody>
+        <tr>
+            <td>Username</td>
+            <td><p>For this field you only need to enter the username as the domain name is already suggested for you. Note that derives the domain
+            name from the url. So in case you want to login to an account in a different domain you have to change the url of the correct domain specific
+            login and try entering the username and password.</p>
+            </td>
+        </tr>
+        <tr>
+            <td>Password</td>
+            <td>The Password of your user account
+            </td>
+        </tr>
+    </tbody>
+</table>
+</p>
+
+
+</body>
+
+</html>


[27/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/src/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/src/assembly/bin.xml b/products/stratos-controller/modules/distribution/src/assembly/bin.xml
new file mode 100755
index 0000000..9365a06
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/src/assembly/bin.xml
@@ -0,0 +1,571 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<assembly>
+    <!--<id>bin</id>-->
+    <formats>
+        <format>zip</format>
+    </formats>
+    <includeBaseDirectory>false</includeBaseDirectory>
+
+    <fileSets>
+        <fileSet>
+            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
+            <excludes>
+                <exclude>**/*.sh</exclude>
+                <exclude>**/wso2server.bat</exclude>
+                <exclude>**/axis2services/sample01.aar</exclude>
+                <exclude>**/axis2services/echo/**</exclude>
+                <exclude>**/axis2services/version/**</exclude>
+                <exclude>**/pom.xml</exclude>
+                <exclude>**/version.txt</exclude>
+                <exclude>**/INSTALL.txt</exclude>
+                <exclude>**/LICENSE.txt</exclude>
+                <exclude>**/release-notes.html</exclude>
+                <exclude>**/carbon.xml</exclude>
+                <exclude>**/README*</exclude>
+		<!--Removing relying party ui bundle to fix STRATOS-1149 -->
+                <exclude>**/org.wso2.carbon.identity.relyingparty.ui_4.1.0-SNAPSHOT.jar</exclude>
+                <exclude>**/org.wso2.carbon.identity.relyingparty.stub_4.1.0-SNAPSHOT.jar</exclude>
+		<!--Removing roles mgt ui to fix STRATOS-2114-->
+                <exclude>**/org.wso2.carbon.roles.mgt.ui_4.1.0-SNAPSHOT.jar</exclude>
+                <exclude>**/org.wso2.carbon.roles.mgt.stub_4.1.0-SNAPSHOT.jar</exclude>
+               <exclude>**/log4j.properties</exclude>
+            </excludes>
+        </fileSet>	
+        <fileSet>
+            <directory>target/shopping-cart-global-${shoppingcart.global.version}</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/samples/bin</outputDirectory>
+            <includes>
+                <include>**/*.car</include>
+                <include>**/*.properties</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
+            <excludes>
+                <exclude>**/daemon.sh</exclude>
+                <exclude>**/stratos.bat</exclude>
+		<exclude>**/stratos.sh</exclude>
+		 <exclude>**/log4j.properties</exclude>
+            </excludes>
+            <includes>
+                <include>**/*.sh</include>
+                <include>**/native/*</include>
+            </includes>
+            <fileMode>755</fileMode>
+        </fileSet>
+	<fileSet>
+            <directory>../../conf/synapse-configs</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/synapse-configs
+            </outputDirectory>
+        </fileSet>
+        <fileSet>
+            <directory>../../conf</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <includes>
+                <include>**/*</include>
+            </includes>
+            <excludes>
+                <exclude>**/samples-desc.xml</exclude>
+                <exclude>**/identity.xml</exclude>
+                <exclude>**/user-mgt.xml</exclude>
+                <exclude>**/datasources.properties</exclude>
+                <exclude>.svn</exclude>
+                <exclude>email-bill-generated.xml</exclude>
+                <exclude>email-billing-notifications.xml</exclude>
+                <exclude>email-new-tenant-activation.xml</exclude>
+                <exclude>email-new-tenant-registration.xml</exclude>
+                <exclude>email-password-reset.xml</exclude>
+                <exclude>email-payment-received-customer.xml</exclude>
+				<exclude>email-registration-payment-received-customer.xml</exclude>
+                <exclude>email-payment-received-wso2.xml</exclude>
+                <exclude>email-registration-complete.xml</exclude>
+                <exclude>email-registration-moderation.xml</exclude>
+                <exclude>email-registration.xml</exclude>
+                <exclude>email-update.xml</exclude>
+		<exclude>tenant-reg-agent.xml</exclude>
+                <exclude>features-dashboard.xml</exclude>
+            </excludes>
+        </fileSet>
+        <fileSet>
+            <directory>../../conf</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/email</outputDirectory>
+            <includes>
+                <include>email-bill-generated.xml</include>
+                <include>email-billing-notifications.xml</include>
+                <include>email-new-tenant-activation.xml</include>
+                <include>email-new-tenant-registration.xml</include>
+                <include>email-password-reset.xml</include>
+                <include>email-payment-received-customer.xml</include>
+                <include>email-registration-payment-received-customer.xml</include>
+				<include>email-payment-received-wso2.xml</include>
+                <include>email-registration-complete.xml</include>
+                <include>email-registration-moderation.xml</include>
+                <include>email-registration.xml</include>
+                <include>email-update.xml</include>
+            </includes>
+        </fileSet>
+	<fileSet>
+            <directory>../../conf</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/multitenancy</outputDirectory>
+            <includes>
+                <include>tenant-reg-agent.xml</include>
+                <include>features-dashboard.xml</include>
+            </includes>
+        </fileSet>
+	<fileSet>
+            <directory>../../conf</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/datasources</outputDirectory>
+            <includes>
+                <include>stratos-datasources.xml</include>
+            </includes>
+        </fileSet>
+
+        <!-- copy documentation -->
+        <fileSet>
+            <directory>target/site</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/docs</outputDirectory>
+            <fileMode>755</fileMode>
+        </fileSet>
+
+        <!-- Copying themes, cloud icons-->
+         <fileSet>
+            <directory>../../resources</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/resources</outputDirectory>
+            <fileMode>755</fileMode>
+            <includes>
+                <include>allthemes/**</include>
+                <include>powerded-by-logos/**</include>
+            </includes>
+            <excludes>
+                <exclude>.svn</exclude>
+            </excludes>
+        </fileSet>
+
+        <!--start BAM related files -->
+        <!--<fileSet>
+            <directory>resources/dataservices</directory>
+            <outputDirectory>
+                ${pom.artifactId}-${pom.version}/repository/deployment/server/dataservices
+            </outputDirectory>
+            <includes>
+                <include>*.dbs</include>
+                <include>*.xml</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>resources/dataservices/bam</directory>
+            <outputDirectory>
+                ${pom.artifactId}-${pom.version}/repository/deployment/server/dataservices
+            </outputDirectory>
+            <includes>
+                <include>*.dbs</include>
+                <include>*.xml</include>
+            </includes>
+        </fileSet>-->
+
+        <fileSet>
+            <directory>resources</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources</outputDirectory>
+            <includes>
+                <include>**/*</include>
+            </includes>
+        </fileSet>
+	<!--fileSet>
+            <directory>resources/dbscripts</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts/</outputDirectory>
+            <includes>
+                <include>**/*</include>
+            </includes>
+        </fileSet-->
+        <!--end BAM related files -->
+
+	<!--qpid related files -->
+	<fileSet>
+           <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/advanced/</directory>
+           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/advanced</outputDirectory>
+	   <includes>
+               <include>**/*</include>
+           </includes>
+	    <excludes>
+                <exclude>**/jmx.xml</exclude>
+		<exclude>**/tenant-axis2.xml</exclude>
+		<exclude>**/authenticators.xml</exclude>
+		<exclude>**/logging-config.xml</exclude>
+            </excludes>
+        </fileSet>
+	<!-- end of qpid related files -->
+
+	<!-- adc.mgt related files -->
+	<fileSet>
+           <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/</directory>
+           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+	   <includes>
+               <include>cartridge-config.properties</include>
+               <include>policies.xml</include>
+           </includes>
+        </fileSet>
+        <fileSet>
+           <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc</directory>
+           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
+	   <includes>
+               <include>policies.xsd</include>
+           </includes>
+        </fileSet>
+	<!-- end of adc.mgt related files -->
+
+	 <fileSet>
+           <directory>../p2-profile/target/wso2carbon-core-${carbon.platform.version}/repository/conf/etc/</directory>
+           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
+           <includes>
+               <include>**/cassandra.yaml</include>
+           </includes>
+        </fileSet>
+	<fileSet>
+           <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/</directory>
+           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
+	   <includes>
+       		<include>**/identity.xml</include>
+		<include>**/rule-engine-config.xml</include>
+           </includes>
+        </fileSet>
+
+	<fileSet>
+           <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/multitenancy/</directory>
+           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/multitenancy/</outputDirectory>
+           <includes>
+                <include>**/multitenancy-packages.xml</include>
+                <include>**/stratos.xml</include>
+                <include>**/eula.xml</include>
+                <include>**/usage-throttling-agent-config.xml</include>
+		<!--include>**/cloud-services-desc.xml</include-->
+           </includes>
+        </fileSet>
+
+		<!-- copy the landing page webapp -->
+        <fileSet>
+			<directory>lib/home</directory>
+			<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/STRATOS_ROOT</outputDirectory>
+		</fileSet>
+
+		<fileSet>
+			<directory>../../modules/features-dashboard/target/</directory>
+			<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
+			<includes>
+				<include>**/*.war</include>
+			</includes>
+		</fileSet>
+        <fileSet>
+			<directory>../../resources/cloud-services-icons/target/</directory>
+			<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
+			<includes>
+				<include>**/*.war</include>
+			</includes>
+		</fileSet>
+		<fileSet>
+            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/identity/</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts/identity</outputDirectory>
+            <includes>
+                <include>**/**.sql</include>
+            </includes>
+		</fileSet>
+
+		<!-- copy the billing h2 db -->
+		<fileSet>
+			<directory>target/database</directory>
+			<outputDirectory>${pom.artifactId}-${pom.version}/repository/database</outputDirectory>
+		</fileSet>
+		<!-- get axis2_1.6.1.wso2v9.jar from carbon kernel patch 0002 -->
+                <fileSet>
+                   <directory>../p2-profile-gen/target/WSO2-CARBON-PATCH-4.1.0-0002/</directory>
+                   <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/patches</outputDirectory>
+                   <includes>
+                       <include>**/patch0002/axis2_1.6.1.wso2v9.jar</include>
+                   </includes>
+                </fileSet>
+		<fileSet>
+                   <directory>../../billing-script/</directory>
+                   <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts</outputDirectory>
+                </fileSet>
+ 
+    </fileSets>
+
+    <dependencySets>
+        <dependencySet>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/lib</outputDirectory>
+            <includes>
+                <include>bouncycastle:bcprov-jdk15:jar</include>
+            </includes>
+        </dependencySet>
+	<!-- use the new tool to create a bundles -->
+        <dependencySet>
+            <outputDirectory>${pom.artifactId}-${pom.version}/lib/core/WEB-INF/lib</outputDirectory>
+            <includes>
+                <include>org.wso2.carbon:org.wso2.carbon.mediator.bridge:jar</include>
+            </includes>
+        </dependencySet>
+        <!--dependencySet>
+            <outputDirectory>wso2elb-${pom.version}/samples/axis2Client/client_repo/modules
+            </outputDirectory>
+            <includes>
+                <include>org.apache.axis2:addressing:mar</include>
+                <include>org.apache.rampart:rampart:mar</include>
+                <include>org.apache.sandesha2:sandesha2:mar</include>
+            </includes>
+            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
+            </outputFileNameMapping>
+        </dependencySet>
+        <dependencySet>
+            <outputDirectory>wso2elb-${pom.version}/samples/axis2Server/repository/modules
+            </outputDirectory>
+            <includes>
+                <include>org.apache.axis2:addressing:mar</include>
+                <include>org.apache.rampart:rampart:mar</include>
+                <include>org.apache.sandesha2:sandesha2:mar</include>
+            </includes>
+            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
+            </outputFileNameMapping>
+        </dependencySet-->
+        <dependencySet>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/axis2/client/lib</outputDirectory>
+            <includes>
+                <include>bouncycastle:bcprov-jdk15:jar</include>
+            </includes>
+            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
+            </outputFileNameMapping>
+        </dependencySet>
+        <dependencySet>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/client/modules
+            </outputDirectory>
+            <includes>
+                <include>org.apache.rampart:rampart:mar</include>
+            </includes>
+        </dependencySet>
+	<dependencySet>
+            <outputDirectory>${pom.artifactId}-${pom.version}/client-lib</outputDirectory>
+            <includes>
+                <include>org.wso2.andes:andes-client:jar</include>
+                <include>org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar</include>
+                <include>org.wso2.carbon:org.wso2.carbon.event.client.stub:jar</include>
+                <include>org.wso2.carbon:org.wso2.carbon.event.client:jar</include>
+		<include>slf4j.wso2:slf4j:jar</include>
+                <include>log4j:log4j:jar</include>
+            </includes>
+        </dependencySet>
+	
+	<!--<dependencySet>
+		<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
+		<includes>
+                    <include>org.wso2.carbon:features-dashboard:war</include>
+		</includes>
+	</dependencySet>-->
+    </dependencySets>
+
+    <files>
+        <file>
+            <source>INSTALL.txt</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>../../conf/samples-desc.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>../../conf/datasources.properties</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+	<!--file>
+            <source>../../conf/cartridge-config.properties</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file-->
+	<file>
+            <source>../../conf/cloud-services-desc.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/multitenancy</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>README.txt</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>LICENSE.txt</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>release-notes.html</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/conf/carbon.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
+            <filtered>true</filtered>
+        </file>
+        <file>
+            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/README.txt</source>
+
+            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/version.txt</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <!--file>
+            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/wso2server.bat</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file-->
+	<!--file>
+            <source>bam-resources/bam.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file-->
+        <file>
+            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/security/userRP.jks</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/security/</outputDirectory>
+            <fileMode>644</fileMode>
+        </file>
+	<!--file>
+            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/event-broker.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+	    <filtered>true</filtered>
+	    <fileMode>644</fileMode>	
+        </file-->
+	
+	<!-- Including logging-config.xml file -->
+ 	<file>
+            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/logging-config.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc/</outputDirectory>
+        </file>
+	<file>
+            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/log4j.properties</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
+        </file>
+	<file>
+            <source>src/bin/stratos.sh</source>
+            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>755</fileMode>
+        </file>
+	<file>
+            <source>src/bin/stratos.bat</source>
+            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>755</fileMode>
+        </file>
+	<file>
+            <source>src/bin/git-folder-structure.sh</source>
+            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>755</fileMode>
+        </file>
+	<file>
+            <source>src/bin/manage-git-repo.sh</source>
+            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>755</fileMode>
+        </file>
+	<file>
+            <source>src/bin/set-mysql-password.sh</source>
+            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>755</fileMode>
+        </file>
+        <file>
+            <source>src/bin/add_entry_zone_file.sh</source>
+            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>755</fileMode>
+        </file>
+        <file>
+            <source>src/bin/remove_entry_zone_file.sh</source>
+            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>755</fileMode>
+        </file>
+	<file>
+            <source>src/bin/update-instance.sh</source>
+            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>755</fileMode>
+        </file>
+         <!-- Including log4j.properties file -->
+        <!--file>
+            <source>
+                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/log4j.properties
+
+            </source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+        </file-->      
+	<file>
+            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/claim-config.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+	    <filtered>true</filtered>
+	    <fileMode>644</fileMode>	
+        </file>
+
+        <!--file>
+            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/sso-idp-config.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
+        </file-->
+
+	<!-- Including coordination-client-config.xml file -->
+        <file>
+            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/coordination-client-config.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
+        </file>
+	<!-- Ntask config file -->
+	<file>
+            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/tasks-config.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
+        </file>
+	<file>
+            <source>../../conf/zoo.cfg</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
+        </file>
+	<file>
+            <source>../../conf/jaas.conf</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/security</outputDirectory>
+	    <destName>jaas.conf</destName>
+            <filtered>true</filtered>
+        </file>
+    </files>
+</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/src/assembly/dist.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/src/assembly/dist.xml b/products/stratos-controller/modules/distribution/src/assembly/dist.xml
new file mode 100755
index 0000000..39fcd1f
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/src/assembly/dist.xml
@@ -0,0 +1,45 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<assembly>
+    <formats>
+        <format>zip</format>
+    </formats>
+    
+    <includeBaseDirectory>false</includeBaseDirectory>
+    <fileSets>
+      <!-- Copying p2 profile and osgi bundles-->
+        <fileSet>
+            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/components</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/components</outputDirectory>
+            <excludes>
+                <exclude>**/eclipse.ini</exclude>
+                <exclude>**/*.lock</exclude>
+                <exclude>**/.data</exclude>
+                <exclude>**/.settings</exclude>
+            </excludes>
+        </fileSet>
+        <fileSet>
+            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <includes>
+                <include>**/claim-config.xml</include>
+            </includes>
+        </fileSet>
+    </fileSets>
+</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/src/assembly/filter.properties
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/src/assembly/filter.properties b/products/stratos-controller/modules/distribution/src/assembly/filter.properties
new file mode 100755
index 0000000..95d216c
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/src/assembly/filter.properties
@@ -0,0 +1,26 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+product.name=Apache Stratos Controller
+product.key=SCC
+product.version=3.0.0-SNAPSHOT
+hotdeployment=true
+hotupdate=false
+carbon.version=4.1.3
+default.server.role=Stratos Controller

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/src/bin/add_entry_zone_file.sh
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/src/bin/add_entry_zone_file.sh b/products/stratos-controller/modules/distribution/src/bin/add_entry_zone_file.sh
new file mode 100755
index 0000000..63fa028
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/src/bin/add_entry_zone_file.sh
@@ -0,0 +1,50 @@
+#!/bin/bash
+zone_file=$3
+subdomain=$1
+ip=$2
+
+# check the file
+if [ -f {$zone_file} ]; then
+	echo "Error: zone does not exist"
+	exit 1
+fi
+echo "File $zone_file exists"
+
+#appending the zone file
+echo "$subdomain IN A $ip">> $zone_file
+echo "Added subdomain to the file"
+
+# get serial number
+serial=$(grep 'Serial' $zone_file | awk '{print $1}')
+echo "Serial number " $serial
+# get serial number's date
+serialdate=$(echo $serial | cut -b 1-8)
+# get today's date in same style
+date=$(date +%Y%m%d)
+
+
+#Serial number's date
+serialdate=$(echo $serial | cut -b 1-8)
+echo "serial date" $serialdate
+# get today's date in same style
+date=$(date +%Y%m%d)
+echo "Now date" $date
+
+# compare date and serial date
+if [ $serialdate = $date ]
+	then
+		# if equal, just add 1
+		newserial=$(expr $serial + 1)
+		echo "same date"
+	else
+		# if not equal, make a new one and add 00
+		newserial=$(echo $date"00")
+fi
+
+echo "Adding subdomain $1 and ip $2 to $3"
+sed -i "s/.*Serial.*/ \t\t\t\t$newserial ; Serial./" $zone_file
+
+
+
+#reloading bind server
+/etc/init.d/bind9 reload

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/src/bin/git-folder-structure.sh
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/src/bin/git-folder-structure.sh b/products/stratos-controller/modules/distribution/src/bin/git-folder-structure.sh
new file mode 100755
index 0000000..2b5439b
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/src/bin/git-folder-structure.sh
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+tenant=""
+cartridge=""
+ads_git_url="localhost"
+
+function help {
+    echo "Usage:git-folder-structure  <mandatory arguments>"
+    echo "    Usage:"
+    echo "    	  git-folder-structure <tenant> <cartridge> [webapp=readme file description with space replace with #] "
+    echo "    eg:"
+    echo "    	  git-folder-structure tenant1 as webapp=copy#war#files#here"
+    echo ""
+}
+
+function main {
+
+if [[ (-z $tenant || -z $cartridge ) ]]; then
+    help
+    exit 1
+fi
+
+}
+
+tenant=$1
+cartridge=$2
+
+if [[ (-n $tenant && -n $cartridge) ]]; then
+	cd /tmp/
+	rm -fr ${tenant}/${cartridge}
+	git clone git@localhost:${tenant}/${cartridge}
+	cd ${cartridge}
+	git pull origin master
+	shift
+	shift
+	for IN in "$@"; do
+		IFS='=' read -ra ADDR <<< "$IN"
+		mkdir -p ${ADDR[0]}
+		echo ${ADDR[1]} | sed -e 's/#/ /g' > ${ADDR[0]}/README.txt
+		git add ${ADDR[0]}
+		git commit -a -m 'Folder structure commit'
+		git push origin master
+	done
+	rm -fr ${cartridge}	
+fi	
+
+main

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/src/bin/manage-git-repo.sh
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/src/bin/manage-git-repo.sh b/products/stratos-controller/modules/distribution/src/bin/manage-git-repo.sh
new file mode 100755
index 0000000..b0dfa80
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/src/bin/manage-git-repo.sh
@@ -0,0 +1,118 @@
+#!/bin/bash
+
+user="wso2"
+action=""
+username=""
+tenant_domain=""
+cartridge=""
+tenant_key=""
+cartridge_key=""
+gitolite_admin="/home/wso2/gitolite-admin/"
+git_domain=""
+git_repo="/home/git/repositories/"
+ADC_repo_notification_url=""
+
+
+function help {
+    echo "Usage: manage-git-repo <action> <mandatory arguments>"
+    echo "    Action can be one of the following"
+    echo "        create : create git repo"
+    echo "        destroy: destroy git repo"
+    echo "        delete : delete user from a git repo"
+    echo "    Usage:"
+    echo "    	  manage-git-repo create <username> <tenant domain> <cartridge alias/name> <ADC repo notification url> <git_domain>"
+    echo "    	  manage-git-repo destroy <username> <tenant domain> <cartridge alias/name>"
+    echo "    eg:"
+    echo "    	  manage-git-repo create foo abc.com myphp https://localhost:9445/services/RepoNotificationService/"
+    echo ""
+}
+
+function main {
+
+if [[ ( -z $action || ( -n $action && $action == "help" ) ) ]]; then
+    help
+    exit 1
+fi
+if [[ (( -n $action && $action == "create") && ( -z $tenant_domain || -z $username || -z $cartridge || -z $ADC_repo_notification_url)) ]]; then
+    help
+    exit 1
+fi
+
+if [[ (( -n $action && $action == "destroy") && ( -z $tenant_domain || -z $username || -z $cartridge)) ]]; then
+    help
+    exit 1
+fi
+
+}
+
+action=$1
+username=$2
+tenant_domain=$3
+cartridge=$4
+ADC_repo_notification_url=$5
+git_domain=$6
+if [[ $action == "create" ]]; then
+
+     # hack until stratos manager support key pair for every user
+     rm -fr /tmp/${username}*
+     ssh-keygen -t rsa -N ''  -f /tmp/${username}
+     cd ${gitolite_admin}
+     git pull
+     # set public keys
+     cp -f /tmp/${username}.pub keydir/${username}.pub
+     #remove temparaly created files
+     rm /tmp/${username}.pub
+     # add repo and permission to conf 
+
+
+     echo "" > conf/repos/${tenant_domain}-${cartridge}.conf 
+     echo "repo ${tenant_domain}/${cartridge}.git" >> conf/repos/${tenant_domain}-${cartridge}.conf
+     echo "	RW+    = ${username} ${user}  daemon" >> conf/repos/${tenant_domain}-${cartridge}.conf
+     echo "     config  gitweb.url                  = git@${git_domain}:${tenant_domain}/${cartridge}" >> conf/repos/${tenant_domain}-${cartridge}.conf
+     echo "     config  receive.denyNonFastforwards = true" >> conf/repos/${tenant_domain}-${cartridge}.conf
+     echo "     config  receive.denyDeletes         = true" >> conf/repos/${tenant_domain}-${cartridge}.conf
+     echo "" >> conf/repos/${tenant_domain}-${cartridge}.conf
+     # git operations
+     git add keydir/${username}.pub
+     git add conf/repos/${tenant_domain}-${cartridge}.conf
+     git commit -a -m "${username} keys added and ${tenant_domain}/${cartridge} repo created"
+     git pull
+     git push
+     # set git push trigger
+    
+   echo "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://org.apache.axis2/xsd\">
+   <soapenv:Header/>
+   <soapenv:Body>
+      <xsd:notifyRepoUpdate>
+         <xsd:tenantDomain>${tenant_domain}</xsd:tenantDomain>
+         <xsd:cartridgeType>${cartridge}</xsd:cartridgeType>
+      </xsd:notifyRepoUpdate>
+   </soapenv:Body>
+</soapenv:Envelope>" > /tmp/${tenant_domain}-request.xml
+   
+    echo "#!/bin/bash" > /tmp/${tenant_domain}-post-update
+    echo "curl -X POST -H \"Content-Type: text/xml\"   -d @${git_repo}${tenant_domain}/${cartridge}.git/hooks/request.xml \"${ADC_repo_notification_url}\" --insecure" >> /tmp/${tenant_domain}-post-update
+    echo "exec git update-server-info" >> /tmp/${tenant_domain}-post-update
+    
+    sudo mv /tmp/${tenant_domain}-request.xml ${git_repo}${tenant_domain}/${cartridge}.git/hooks/request.xml
+    sudo mv /tmp/${tenant_domain}-post-update ${git_repo}${tenant_domain}/${cartridge}.git/hooks/post-update
+    sudo chown git:git ${git_repo}${tenant_domain}/${cartridge}.git/hooks/post-update
+    sudo chmod 700 ${git_repo}${tenant_domain}/${cartridge}.git/hooks/post-update
+fi
+if [[ $action == "destroy" ]]; then
+ 
+     cd ${gitolite_admin}
+     # remove user keys
+     git rm keydir/${username}.pub
+     # remove repo from config
+     git rm conf/repos/${tenant_domain}-${cartridge}.conf
+     # git push to execute
+     git pull
+     git push
+     # remove repo from repository. ** this should done from above. but it doesnt happend. So removing manualy.
+     sudo rm -fr /home/git/repositories/${tenant_domain}/${cartridge}.git
+
+fi
+
+
+main

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/src/bin/remove_entry_zone_file.sh
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/src/bin/remove_entry_zone_file.sh b/products/stratos-controller/modules/distribution/src/bin/remove_entry_zone_file.sh
new file mode 100755
index 0000000..7c08abc
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/src/bin/remove_entry_zone_file.sh
@@ -0,0 +1,55 @@
+#!/bin/bash
+zone_file=$2
+subdomain=$1
+
+# check the file
+if [ -f {$zone_file} ]; then
+	echo "Error: zone does not exist"
+	exit 1
+fi
+echo "File $zone_file exists"
+
+# find entry to delete
+entry=$(grep $subdomain $zone_file)
+#sed "/$entry/d" $zone_file 
+
+sed "/$entry/d" $zone_file >tmp
+mv tmp $zone_file
+
+echo "entry to delete  $entry"
+
+
+# get serial number
+serial=$(grep 'Serial' $zone_file | awk '{print $1}')
+echo "Serial number " $serial
+# get serial number's date
+serialdate=$(echo $serial | cut -b 1-8)
+# get today's date in same style
+date=$(date +%Y%m%d)
+
+
+#Serial number's date
+serialdate=$(echo $serial | cut -b 1-8)
+echo "serial date" $serialdate
+# get today's date in same style
+date=$(date +%Y%m%d)
+echo "Now date" $date
+
+# compare date and serial date
+if [ $serialdate = $date ]
+	then
+		# if equal, just add 1
+		newserial=$(expr $serial + 1)
+		echo "same date"
+	else
+		# if not equal, make a new one and add 00
+		newserial=$(echo $date"00")
+fi
+
+echo "Adding subdomain $1 and ip $2 to $3"
+sed -i "s/.*Serial.*/ \t\t\t\t$newserial ; Serial./" $zone_file
+
+
+
+#reloading bind server
+/etc/init.d/bind9 reload

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/src/bin/set-mysql-password.sh
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/src/bin/set-mysql-password.sh b/products/stratos-controller/modules/distribution/src/bin/set-mysql-password.sh
new file mode 100755
index 0000000..b18fd0d
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/src/bin/set-mysql-password.sh
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+user="ubuntu"
+instance_ip=""
+cartridge_private_key=""
+password=""
+
+
+function help {
+    echo "Usage: set-mysql-password <mandatory arguments>"
+    echo "    Usage:"
+    echo "    	  set-mysql-password <instance ip> <cartridge private key> <password>"
+    echo "    eg:"
+    echo "    	  set-mysql-password 172.17.1.2 /tmp/foo-php qazxsw"
+    echo ""
+}
+
+function main {
+
+if [[ (-z $password || -z $instance_ip) ]]; then
+    help
+    exit 1
+fi
+
+}
+
+instance_ip=$1
+cartridge_private_key=$2
+password=$3
+
+echo "#!/bin/bash
+echo \"GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'   IDENTIFIED BY '${password}' WITH GRANT OPTION;flush privileges;\" | mysql -uroot -p${password}
+" > /tmp/${password}.sh
+
+if [[ (-n $password && -n $instance_ip) ]]; then
+	ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} mysqladmin -u root password "${password}"
+#	ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} echo "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'   IDENTIFIED BY '${password}' WITH GRANT OPTION;flush privileges;" | mysql -u root -p"${password}"
+	scp -i ${cartridge_private_key} /tmp/${password}.sh ${user}@${instance_ip}:
+	ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} chmod 755 /home/${user}/${password}.sh
+	ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} /home/${user}/${password}.sh
+	ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} rm /home/${user}/${password}.sh
+fi
+rm /tmp/${password}.sh
+
+main

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/src/bin/stratos.bat
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/src/bin/stratos.bat b/products/stratos-controller/modules/distribution/src/bin/stratos.bat
new file mode 100644
index 0000000..baf58fa
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/src/bin/stratos.bat
@@ -0,0 +1,170 @@
+@echo off
+
+REM ---------------------------------------------------------------------------
+REM        Copyright 2005-2009 WSO2, Inc. http://www.wso2.org
+REM
+REM  Licensed under the Apache License, Version 2.0 (the "License");
+REM  you may not use this file except in compliance with the License.
+REM  You may obtain a copy of the License at
+REM
+REM      http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM  Unless required by applicable law or agreed to in writing, software
+REM  distributed under the License is distributed on an "AS IS" BASIS,
+REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM  See the License for the specific language governing permissions and
+REM  limitations under the License.
+
+rem ---------------------------------------------------------------------------
+rem Main Script for WSO2 Carbon
+rem
+rem Environment Variable Prequisites
+rem
+rem   CARBON_HOME   Home of CARBON installation. If not set I will  try
+rem                   to figure it out.
+rem
+rem   JAVA_HOME       Must point at your Java Development Kit installation.
+rem
+rem   JAVA_OPTS       (Optional) Java runtime options used when the commands
+rem                   is executed.
+rem ---------------------------------------------------------------------------
+
+rem ----- if JAVA_HOME is not set we're not happy ------------------------------
+:checkJava
+
+if "%JAVA_HOME%" == "" goto noJavaHome
+if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
+goto checkServer
+
+:noJavaHome
+echo "You must set the JAVA_HOME variable before running CARBON."
+goto end
+
+rem ----- Only set CARBON_HOME if not already set ----------------------------
+:checkServer
+rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed
+if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..
+SET curDrive=%cd:~0,1%
+SET wsasDrive=%CARBON_HOME:~0,1%
+if not "%curDrive%" == "%wsasDrive%" %wsasDrive%:
+
+rem find CARBON_HOME if it does not exist due to either an invalid value passed
+rem by the user or the %0 problem on Windows 9x
+if not exist "%CARBON_HOME%\bin\version.txt" goto noServerHome
+
+set AXIS2_HOME=%CARBON_HOME%
+goto updateClasspath
+
+:noServerHome
+echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME.
+goto end
+
+rem ----- update classpath -----------------------------------------------------
+:updateClasspath
+
+setlocal EnableDelayedExpansion
+cd %CARBON_HOME%
+set CARBON_CLASSPATH=
+FOR %%C in ("%CARBON_HOME%\bin\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\%%~nC%%~xC"
+
+set CARBON_CLASSPATH="%JAVA_HOME%\lib\tools.jar";%CARBON_CLASSPATH%;
+
+FOR %%D in ("%CARBON_HOME%\lib\commons-lang*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\lib\%%~nD%%~xD"
+
+rem ----- Process the input command -------------------------------------------
+
+rem Slurp the command line arguments. This loop allows for an unlimited number
+rem of arguments (up to the command line limit, anyway).
+
+
+:setupArgs
+if ""%1""=="""" goto doneStart
+
+if ""%1""==""-run""     goto commandLifecycle
+if ""%1""==""--run""    goto commandLifecycle
+if ""%1""==""run""      goto commandLifecycle
+
+if ""%1""==""-restart""  goto commandLifecycle
+if ""%1""==""--restart"" goto commandLifecycle
+if ""%1""==""restart""   goto commandLifecycle
+
+if ""%1""==""debug""    goto commandDebug
+if ""%1""==""-debug""   goto commandDebug
+if ""%1""==""--debug""  goto commandDebug
+
+if ""%1""==""version""   goto commandVersion
+if ""%1""==""-version""  goto commandVersion
+if ""%1""==""--version"" goto commandVersion
+
+shift
+goto setupArgs
+
+rem ----- commandVersion -------------------------------------------------------
+:commandVersion
+shift
+type "%CARBON_HOME%\bin\version.txt"
+type "%CARBON_HOME%\bin\wso2carbon-version.txt"
+goto end
+
+rem ----- commandDebug ---------------------------------------------------------
+:commandDebug
+shift
+set DEBUG_PORT=%1
+if "%DEBUG_PORT%"=="" goto noDebugPort
+if not "%JAVA_OPTS%"=="" echo Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option.
+set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%DEBUG_PORT%
+echo Please start the remote debugging client to continue...
+goto findJdk
+
+:noDebugPort
+echo Please specify the debug port after the --debug option
+goto end
+
+
+:doneStart
+if "%OS%"=="Windows_NT" @setlocal
+if "%OS%"=="WINNT" @setlocal
+
+rem ---------- Handle the SSL Issue with proper JDK version --------------------
+rem find the version of the jdk
+:findJdk
+
+set CMD=RUN %*
+
+:checkJdk16
+"%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[6|7]" >NUL
+IF ERRORLEVEL 1 goto unknownJdk
+goto jdk16
+
+:unknownJdk
+echo Starting WSO2 Carbon (in unsupported JDK)
+echo [ERROR] CARBON is supported only on JDK 1.6 and 1.7
+goto jdk16
+
+:jdk16
+goto runServer
+
+rem ----------------- Execute The Requested Command ----------------------------
+
+:runServer
+cd %CARBON_HOME%
+
+rem ---------- Add jars to classpath ----------------
+
+set CARBON_CLASSPATH=.\lib;%CARBON_CLASSPATH%
+
+set JAVA_ENDORSED=".\lib\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed"
+
+set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms256m -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="%CARBON_HOME%\repository\logs\heap-dump.hprof"  -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -Dcarbon.registry.root=/ -Dcarbon.home="%CARBON_HOME%" -Dwso2.server.standalone=true -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcatalina.base="%CARBON_HOME%\lib\tomcat" -Dwso2.carbon.xml=%CARBON_HOME%\repository\conf\carbon.xml -Dwso2.registry.xml="%CARBON_HOME%\repository\conf\registry.xml" -Dwso2.user.mgt.xml="%CARBON_HOME%\repository\conf\user-mgt.xml" -Dwso2.transports.xml="%CARBON_HOME%\repository\conf\mgt-transports.xml" -Djava.util.logging.config.file="%CARBON_HOME%\repository\conf\log4j.properties" -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dcarbon.config.dir.path="%CARBON_HOME%\repository\
 conf" -Dcarbon.logs.path="%CARBON_HOME%\repository\logs" -Dcomponents.repo="%CARBON_HOME%\repository\components" -Dconf.location="%CARBON_HOME%\repository\conf" -Dcom.atomikos.icatch.file="%CARBON_HOME%\lib\transactions.properties" -Dcom.atomikos.icatch.hide_init_file_path="true" -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dcom.sun.jndi.ldap.connect.pool.authentication=simple -Dcom.sun.jndi.ldap.connect.pool.timeout=3000 -Dorg.terracotta.quartz.skipUpdateCheck=true -Dcarbon.classpath=%CARBON_CLASSPATH% -Dfile.encoding=UTF8 -Dloadbalancer.conf="%CARBON_HOME%\repository\conf\loadbalancer.conf"
+
+:runJava
+echo JAVA_HOME environment variable is set to %JAVA_HOME%
+echo CARBON_HOME environment variable is set to %CARBON_HOME%
+"%JAVA_HOME%\bin\java" %CMD_LINE_ARGS% org.wso2.carbon.bootstrap.Bootstrap %CMD%
+if "%ERRORLEVEL%"=="121" goto runJava
+:end
+goto endlocal
+
+:endlocal
+
+:END

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/src/bin/stratos.sh
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/src/bin/stratos.sh b/products/stratos-controller/modules/distribution/src/bin/stratos.sh
new file mode 100755
index 0000000..a095502
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/src/bin/stratos.sh
@@ -0,0 +1,298 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+#  Copyright 2005-2012 WSO2, Inc. http://www.wso2.org
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+# ----------------------------------------------------------------------------
+# Main Script for the WSO2 Carbon Server
+#
+# Environment Variable Prequisites
+#
+#   CARBON_HOME   Home of WSO2 Carbon installation. If not set I will  try
+#                   to figure it out.
+#
+#   JAVA_HOME       Must point at your Java Development Kit installation.
+#
+#   JAVA_OPTS       (Optional) Java runtime options used when the commands
+#                   is executed.
+#
+# NOTE: Borrowed generously from Apache Tomcat startup scripts.
+# -----------------------------------------------------------------------------
+
+# OS specific support.  $var _must_ be set to either true or false.
+#ulimit -n 100000
+
+cygwin=false;
+darwin=false;
+os400=false;
+mingw=false;
+case "`uname`" in
+CYGWIN*) cygwin=true;;
+MINGW*) mingw=true;;
+OS400*) os400=true;;
+Darwin*) darwin=true
+        if [ -z "$JAVA_VERSION" ] ; then
+             JAVA_VERSION="CurrentJDK"
+           else
+             echo "Using Java version: $JAVA_VERSION"
+           fi
+           if [ -z "$JAVA_HOME" ] ; then
+             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
+           fi
+           ;;
+esac
+
+# resolve links - $0 may be a softlink
+PRG="$0"
+
+while [ -h "$PRG" ]; do
+  ls=`ls -ld "$PRG"`
+  link=`expr "$ls" : '.*-> \(.*\)$'`
+  if expr "$link" : '.*/.*' > /dev/null; then
+    PRG="$link"
+  else
+    PRG=`dirname "$PRG"`/"$link"
+  fi
+done
+
+# Get standard environment variables
+PRGDIR=`dirname "$PRG"`
+
+# Only set CARBON_HOME if not already set
+[ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd`
+
+# Set AXIS2_HOME. Needed for One Click JAR Download
+AXIS2_HOME=$CARBON_HOME
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+  [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+  [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
+  [ -n "$AXIS2_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
+fi
+
+# For OS400
+if $os400; then
+  # Set job priority to standard for interactive (interactive - 6) by using
+  # the interactive priority - 6, the helper threads that respond to requests
+  # will be running at the same priority as interactive jobs.
+  COMMAND='chgjob job('$JOBNAME') runpty(6)'
+  system $COMMAND
+
+  # Enable multi threading
+  QIBM_MULTI_THREADED=Y
+  export QIBM_MULTI_THREADED
+fi
+
+# For Migwn, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+  [ -n "$CARBON_HOME" ] &&
+    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+  [ -n "$AXIS2_HOME" ] &&
+    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
+  # TODO classpath?
+fi
+
+if [ -z "$JAVACMD" ] ; then
+  if [ -n "$JAVA_HOME"  ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+      # IBM's JDK on AIX uses strange locations for the executables
+      JAVACMD="$JAVA_HOME/jre/sh/java"
+    else
+      JAVACMD="$JAVA_HOME/bin/java"
+    fi
+  else
+    JAVACMD=java
+  fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+  echo "Error: JAVA_HOME is not defined correctly."
+  echo " CARBON cannot execute $JAVACMD"
+  exit 1
+fi
+
+# if JAVA_HOME is not set we're not happy
+if [ -z "$JAVA_HOME" ]; then
+  echo "You must set the JAVA_HOME variable before running CARBON."
+  exit 1
+fi
+
+if [ -e "$CARBON_HOME/wso2carbon.pid" ]; then
+  PID=`cat "$CARBON_HOME"/wso2carbon.pid`
+fi
+
+# ----- Process the input command ----------------------------------------------
+for c in $*
+do
+    if [ "$c" = "--debug" ] || [ "$c" = "-debug" ] || [ "$c" = "debug" ]; then
+          CMD="--debug"
+          continue
+    elif [ "$CMD" = "--debug" ]; then
+          if [ -z "$PORT" ]; then
+                PORT=$c
+          fi
+    elif [ "$c" = "--stop" ] || [ "$c" = "-stop" ] || [ "$c" = "stop" ]; then
+          CMD="stop"
+    elif [ "$c" = "--start" ] || [ "$c" = "-start" ] || [ "$c" = "start" ]; then
+          CMD="start"
+    elif [ "$c" = "--version" ] || [ "$c" = "-version" ] || [ "$c" = "version" ]; then
+          CMD="version"
+    elif [ "$c" = "--restart" ] || [ "$c" = "-restart" ] || [ "$c" = "restart" ]; then
+          CMD="restart"
+    elif [ "$c" = "--test" ] || [ "$c" = "-test" ] || [ "$c" = "test" ]; then
+          CMD="test"
+    fi
+done
+
+if [ "$CMD" = "--debug" ]; then
+  if [ "$PORT" = "" ]; then
+    echo " Please specify the debug port after the --debug option"
+    exit 1
+  fi
+  if [ -n "$JAVA_OPTS" ]; then
+    echo "Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option."
+  fi
+  CMD="RUN"
+  JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT"
+  echo "Please start the remote debugging client to continue..."
+elif [ "$CMD" = "start" ]; then
+  if [ -e "$CARBON_HOME/wso2carbon.pid" ]; then
+    if  ps -p $PID >&- ; then
+      echo "Process is already running"
+      exit 0
+    fi
+  fi
+  export CARBON_HOME=$CARBON_HOME
+# using nohup bash to avoid erros in solaris OS.TODO
+  nohup bash $CARBON_HOME/bin/stratos.sh > /dev/null 2>&1 &
+  exit 0
+elif [ "$CMD" = "stop" ]; then
+  export CARBON_HOME=$CARBON_HOME
+  kill -term `cat $CARBON_HOME/wso2carbon.pid`
+  exit 0
+elif [ "$CMD" = "restart" ]; then
+  export CARBON_HOME=$CARBON_HOME
+  kill -term `cat $CARBON_HOME/wso2carbon.pid`
+  process_status=0
+  pid=`cat $CARBON_HOME/wso2carbon.pid`
+  while [ "$process_status" -eq "0" ]
+  do
+        sleep 1;
+        ps -p$pid 2>&1 > /dev/null
+        process_status=$?
+  done
+
+# using nohup bash to avoid erros in solaris OS.TODO
+  nohup bash $CARBON_HOME/bin/stratos.sh > /dev/null 2>&1 &
+  exit 0
+elif [ "$CMD" = "test" ]; then
+    JAVACMD="exec "$JAVACMD""
+elif [ "$CMD" = "version" ]; then
+  cat $CARBON_HOME/bin/version.txt
+  cat $CARBON_HOME/bin/wso2carbon-version.txt
+  exit 0
+fi
+
+# ---------- Handle the SSL Issue with proper JDK version --------------------
+jdk_16=`$JAVA_HOME/bin/java -version 2>&1 | grep "1.[6|7]"`
+if [ "$jdk_16" = "" ]; then
+   echo " Starting WSO2 Carbon (in unsupported JDK)"
+   echo " [ERROR] CARBON is supported only on JDK 1.6 and 1.7"
+fi
+
+CARBON_XBOOTCLASSPATH=""
+for f in "$CARBON_HOME"/lib/xboot/*.jar
+do
+    if [ "$f" != "$CARBON_HOME/lib/xboot/*.jar" ];then
+        CARBON_XBOOTCLASSPATH="$CARBON_XBOOTCLASSPATH":$f
+    fi
+done
+
+JAVA_ENDORSED_DIRS="$CARBON_HOME/lib/endorsed":"$JAVA_HOME/jre/lib/endorsed":"$JAVA_HOME/lib/endorsed"
+
+CARBON_CLASSPATH=""
+if [ -e "$JAVA_HOME/lib/tools.jar" ]; then
+    CARBON_CLASSPATH="$JAVA_HOME/lib/tools.jar"
+fi
+for f in "$CARBON_HOME"/bin/*.jar
+do
+    if [ "$f" != "$CARBON_HOME/bin/*.jar" ];then
+        CARBON_CLASSPATH="$CARBON_CLASSPATH":$f
+    fi
+done
+for t in "$CARBON_HOME"/lib/commons-lang*.jar
+do
+    CARBON_CLASSPATH="$CARBON_CLASSPATH":$t
+done
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+  JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
+  CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
+  AXIS2_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
+  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+  JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
+  CARBON_CLASSPATH=`cygpath --path --windows "$CARBON_CLASSPATH"`
+  CARBON_XBOOTCLASSPATH=`cygpath --path --windows "$CARBON_XBOOTCLASSPATH"`
+fi
+
+# ----- Execute The Requested Command -----------------------------------------
+
+echo JAVA_HOME environment variable is set to $JAVA_HOME
+echo CARBON_HOME environment variable is set to $CARBON_HOME
+
+cd "$CARBON_HOME"
+
+START_EXIT_STATUS=121
+status=$START_EXIT_STATUS
+
+#To monitor a Carbon server in remote JMX mode on linux host machines, set the below system property.
+#   -Djava.rmi.server.hostname="your.IP.goes.here"
+
+while [ "$status" = "$START_EXIT_STATUS" ]
+do
+    $JAVACMD \
+    -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \
+    -Xms256m -Xmx1024m -XX:MaxPermSize=256m \
+    -XX:+HeapDumpOnOutOfMemoryError \
+    -XX:HeapDumpPath="$CARBON_HOME/repository/logs/heap-dump.hprof" \
+    $JAVA_OPTS \
+    -Dcom.sun.management.jmxremote \
+    -classpath "$CARBON_CLASSPATH" \
+    -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" \
+    -Djava.io.tmpdir="$CARBON_HOME/tmp" \
+    -Dcatalina.base="$CARBON_HOME/lib/tomcat" \
+    -Dwso2.server.standalone=true \
+    -Dcarbon.registry.root=/ \
+    -Djava.command="$JAVACMD" \
+    -Dcarbon.home="$CARBON_HOME" \
+    -Djava.util.logging.config.file="$CARBON_HOME/repository/conf/log4j.properties" \
+    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
+    -Dcarbon.config.dir.path="$CARBON_HOME/repository/conf" \
+    -Dcomponents.repo="$CARBON_HOME/repository/components/plugins" \
+    -Dconf.location="$CARBON_HOME/repository/conf"\
+    -Dcom.atomikos.icatch.file="$CARBON_HOME/lib/transactions.properties" \
+    -Dcom.atomikos.icatch.hide_init_file_path=true \
+    -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true \
+    -Dcom.sun.jndi.ldap.connect.pool.authentication=simple  \
+    -Dcom.sun.jndi.ldap.connect.pool.timeout=3000  \
+    -Dorg.terracotta.quartz.skipUpdateCheck=true \
+    -Djava.security.egd=file:/dev/./urandom \
+    -Dfile.encoding=UTF8 \
+    -Dloadbalancer.conf=file:repository/conf/loadbalancer.conf \
+    org.wso2.carbon.bootstrap.Bootstrap $*
+    status=$?
+done

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/src/bin/update-instance.sh
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/src/bin/update-instance.sh b/products/stratos-controller/modules/distribution/src/bin/update-instance.sh
new file mode 100755
index 0000000..3935dd1
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/src/bin/update-instance.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+user="ubuntu"
+instance_ip=""
+app_path=""
+cartridge_private_key=""
+
+function help {
+    echo "Usage: update-instance <mandatory arguments>"
+    echo "    Usage:"
+    echo "    	  update-instance <instance_ip> <app path> <cartridge_private_key>"
+    echo "    eg:"
+    echo "    	  update-instance 172.17.1.1 /var/www/myapp /tmp/foo-php"
+    echo ""
+}
+
+function main {
+
+if [[ (-z $instance_ip || -z $app_path || -z $cartridge_private_key ) ]]; then
+    help
+    exit 1
+fi
+
+}
+
+instance_ip=$1
+app_path=$2
+cartridge_private_key=$3
+
+if [[ (-n $instance_ip && -n $app_path && -n $cartridge_private_key ) ]]; then
+    ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} /opt/git.sh
+fi
+
+main

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/META-INF/MANIFEST.MF
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/META-INF/MANIFEST.MF b/products/stratos-controller/modules/features-dashboard/WebContent/META-INF/MANIFEST.MF
new file mode 100755
index 0000000..5e94951
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path: 
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/WEB-INF/web.xml b/products/stratos-controller/modules/features-dashboard/WebContent/WEB-INF/web.xml
new file mode 100755
index 0000000..5c68b6f
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/WEB-INF/web.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+	<display-name>service-dashboard-webapp</display-name>
+	<welcome-file-list>
+		<welcome-file>index.jsp</welcome-file>
+	</welcome-file-list>
+</web-app>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/as.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/as.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/as.html
new file mode 100755
index 0000000..c2f18e5
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/as.html
@@ -0,0 +1,69 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+
+    <div class="story-title">Service Hosting</div>
+
+
+    <div class="story-content">
+        Different types of Web Services such as Axis2 Services, JAXWS Services, Jar Services
+        or Spring Services can be deployed in Application Server. All configurations such as
+        QoS can be easily configured here.
+    </div>
+    <div class="story-links">
+        <a href="javascript:generateAsFeatureUrl(0)" class="blocklink">Got to services...</a>
+        <a href="javascript:generateAsFeatureUrl(1)">Read more (docs)...</a>
+    </div>
+</div>
+
+<div class="story col2">
+    <div class="story-title">Web Applications</div>
+
+
+    <div class="story-content">
+        Web Application hosting features in AppServer supports deployment of Tomcat
+        compliant Webapps. Deployed Webapps can be easily managed using the Webapp
+        management facilities available in the management console.
+    </div>
+    <div class="story-links">
+        <a href="javascript:generateAsFeatureUrl(2)" target="_blank">Go to Web Applications...</a>
+        <a href="javascript:generateAsFeatureUrl(3)" target="_blank">Read more (docs)...</a>
+    </div>
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">Message Tracing</div>
+    <div class="story-content">
+        Trace the request and responses to your service. Message Tracing is a vital
+        debugging tool when you have clients from heterogeneous platforms.
+    </div>
+    <div class="story-links">
+        <a href="javascript:generateAsFeatureUrl(4)">Go to Message Tracing...</a>
+        <a href="javascript:generateAsFeatureUrl(5)">Read more (docs)...</a>
+    </div>
+
+</div>
+
+<div class="story col2">
+    <div class="story-title">WSDL2Java Tool</div>
+    <div class="story-content">
+        Use WSDL2Java tool in Web Application Server to convert Web Service WSDL to a set of
+        Java objects.
+    </div>
+    <div class="story-links">
+        <a href="javascript:generateAsFeatureUrl(6)">Go to WSDL2Java Tool...</a>
+        <a href="javascript:generateAsFeatureUrl(7)">Read more (docs)...</a>
+    </div>
+</div>
+
+<div class="story col1">
+    <div class="story-title">Java2WSDL Tool</div>
+
+    <div class="story-content">
+        Use Java2WSDL tool in Web Application Server make it easy to develop a new web service.
+    </div>
+    <div class="story-links">
+        <a href="javascript:generateAsFeatureUrl(8)">Go to Java2WSDL Tool...</a>
+        <a href="javascript:generateAsFeatureUrl(9)">Read more (docs)...</a>
+    </div>
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/bam.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/bam.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/bam.html
new file mode 100755
index 0000000..140e284
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/bam.html
@@ -0,0 +1,88 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">Real Time Mediation Monitoring</div>
+    <div class="story-content">Monitor proxy services, endpoints and sequences and their operations in real time. The
+        results gathered from the real-time monitoring are presented in a clear and easy-to-view
+        format.
+    </div>
+    <div class="story-links">
+        <a href="javascript:generateBamFeatureUrl(0)">Go to Web Applications...</a>
+        <a href="javascript:generateBamFeatureUrl(1)">Read more (docs)...</a>
+    </div>
+</div>
+
+<div class="story col1">
+    <div class="story-title">Mediation Analysis</div>
+    <div class="story-content">Analyze the historical mediation trends over time with the help of visualization
+        framework.
+    </div>
+    <div class="story-links">
+        <a href=javascript:generateBamFeatureUrl(2)">Go
+        to Web Applications...</a>
+        <a href=javascript:generateBamFeatureUrl(3)">Read
+        more (docs)...</a>
+    </div>
+</div>
+
+<div class="story col1">
+    <div class="story-title">Summary Generation</div>
+    <div class="story-content">Generate a summarised view of collected statistics & write gadgets to display these
+        summarised data.
+    </div>
+    <div class="story-links">
+        <a href="javascript:generateBamFeatureUrl(6)">Go
+            to Web Applications...</a>
+        <a href="javascript:generateBamFeatureUrl(7)">Read
+            more (docs)...</a>
+    </div>
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">Service Invocation Analysis</div>
+    <div class="story-content"> Write gadgets to consume service statistics and present to end user. Dashboard
+        support
+        Google Gadget specification.
+    </div>
+    <div class="story-links"><a href="javascript:generateBamFeatureUrl(10)">Go
+        to Web Applications...</a><a href="javascript:generateBamFeatureUrl(11)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col2">
+    <div class="story-title">Dashboard</div>
+    <div class="story-content">Monitor and correlate related business activities across multiple server instances.
+        These activities can be used to track and verify the smooth execution of business.
+    </div>
+    <div class="story-links"><a href="javascript:generateBamFeatureUrl(12)">Go
+        to Web Applications...</a><a href="javascript:generateBamFeatureUrl(13)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">Activity Correlation &amp; Monitoring</div>
+    <div class="story-content"> Monitor and correlate related business activities across multiple server instances.
+        These activities can be used to track and verify the smooth execution of business.
+    </div>
+    <div class="story-links"><a href="#"
+            >Go
+        to Web Applications...</a><a href="#"
+                                     onclick="alert('This link goes to Web Applications docs page!');">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col2">
+    <div class="story-title">Message Collection &amp; Archival</div>
+    <div class="story-content">Collect messages coming into your SOA, analyze & archive for future retrieval.</div>
+    <div class="story-links"><a href="#"
+            >Go
+        to Web Applications...</a><a href="#"
+                                     onclick="alert('This link goes to Web Applications docs page!');">Read
+        more (docs)...</a></div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/bps.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/bps.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/bps.html
new file mode 100755
index 0000000..392a1f1
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/bps.html
@@ -0,0 +1,51 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">WS-BPEL 2.0 &amp; BPELWS 1.1</div>
+    <div class="story-content">WSO2 BPS supports both WS-BPEL 2.0 and BPEL4WS 1.1 standards. It also includes WSO2 BPS
+        specific extensions to enhance the features provide by WS-BPEL.
+    </div>
+    <div class="story-links"><a href="javascript:generateBpsFeatureUrl(0)">Go
+        to Web Applications...</a>
+        <a href="javascript:generateBpsFeatureUrl(1)">Read
+            more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col2">
+    <div class="story-title">Instance Data Cleanup</div>
+    <div class="story-content">Allows multiple levels of instance data cleanup which are accumulated during process
+        instance lifetime.
+        <p>
+            XPath extensions, Iteratable ForEach, Flexible Assigns, XQuery 1.0 support and various
+            other extensions to BPEL language.
+        </p>
+    </div>
+    <div class="story-links"><a href="javascript:generateBpsFeatureUrl(8)">Go
+        to Web Applications...</a><a href="javascript:generateBpsFeatureUrl(9)">Read
+        more (docs)...</a>
+    </div>
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">BPEL Extensions</div>
+    <div class="story-content">Hot update BPEL processes and allows you to maintain multiple versions of processes</div>
+    <div class="story-links"><a href="javascript:generateBpsFeatureUrl(10)">Go
+        to Web Applications...</a><a href="javascript:generateBpsFeatureUrl(11)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col2">
+    <div class="story-title">Process Versioning</div>
+    <div class="story-content"></div>
+    <div class="story-links"><a href="#"
+            >Go
+        to Web Applications...</a><a href="#"
+            >Read
+        more (docs)...</a></div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/brs.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/brs.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/brs.html
new file mode 100755
index 0000000..b9be165
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/brs.html
@@ -0,0 +1,22 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">Service Hosting Support</div>
+    <div class="story-content"> Service Hosting feature in Business Rules Server enables deployment of Rule Services.
+    </div>
+    <div class="story-links"><a href="javascript:generateBrsFeatureUrl(0)">Go
+        to Web Applications...</a><a href="javascript:generateBrsFeatureUrl(1)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col2">
+    <div class="story-title">Rule service creation support</div>
+    <div class="story-content"> Support for creating rule services with drools or using rule services created with other
+        IDEs
+    </div>
+    <div class="story-links"><a href="javascript:generateBrsFeatureUrl(2)">Go
+        to Web Applications...</a><a href="javascript:generateBrsFeatureUrl(3)">Read
+        more (docs)...</a></div>
+
+</div>
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/cep.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/cep.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/cep.html
new file mode 100755
index 0000000..54bbfb4
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/cep.html
@@ -0,0 +1,82 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">Bring CEP to SOA</div>
+    <div class="story-content">Bring CEP to SOA by processing XML events and produce results as XML events</div>
+    <div class="story-links">
+        <a href="javascript:generateCepFeatureUrl(0)">Go
+            to Web Applications...</a><a href="javascript:generateCepFeatureUrl(1)">Read
+        more (docs)...</a>
+    </div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Registry Storage</div>
+    <div class="story-content">Ability to define different event streams, queries and out put streams and store them in
+        the registry as a bucket.
+    </div>
+    <div class="story-links"><a href="javascript:generateCepFeatureUrl(2)">Go
+        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(3)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Esper and Fusion</div>
+    <div class="story-content">Support Esper and fusion back end runtimes.</div>
+    <div class="story-links"><a href="javascript:generateCepFeatureUrl(4)">Go
+        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(5)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Filter data from the XML event</div>
+    <div class="story-content">Ability to filter data from the XML event using xpath and format the result as an XML
+        event.
+    </div>
+    <div class="story-links"><a href="javascript:generateCepFeatureUrl(6)">Go
+        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(7)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Support different types of brokers</div>
+    <div class="story-content">Support different types of brokers WS-Event, JMS to receive publish events.</div>
+    <div class="story-links"><a href="javascript:generateCepFeatureUrl(8)">Go
+        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(9)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">Storing broker configurations</div>
+    <div class="story-content">Define and store such different broker configurations.</div>
+    <div class="story-links"><a href="javascript:generateCepFeatureUrl(10)">Go
+        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(11)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">Administrative Console support</div>
+    <div class="story-content">Administrative Console to create buckets, add subscriptions etc..</div>
+    <div class="story-links">
+        <a href="javascript:generateCepFeatureUrl(12)">Go
+            to Web Applications...</a><a href="javascript:generateCepFeatureUrl(13)">Read
+        more (docs)...</a>
+    </div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Specify CEP queries</div>
+    <div class="story-content">Ability to specify CEP queries inline or pick from the registry.</div>
+    <div class="story-links"><a href="javascript:generateCepFeatureUrl(14)">Go
+        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(15)">Read
+        more (docs)...</a></div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/csg.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/csg.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/csg.html
new file mode 100755
index 0000000..7392c72
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/csg.html
@@ -0,0 +1,11 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">Cloud Service</div>
+    <div class="story-content">Publish a service or data residing behind a firewall in a secure and controlled manner as a Cloud Service.
+    </div>
+    <div class="story-links"><a href="javascript:generateCsgFeatureUrl(0)">Go
+        to Cloud Services...</a><a href="javascript:generateCsgFeatureUrl(1)">Read
+        more (docs)...</a></div>
+</div>
+
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/css/features-dashboard.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/css/features-dashboard.css b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/css/features-dashboard.css
new file mode 100755
index 0000000..a0558a4
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/css/features-dashboard.css
@@ -0,0 +1,55 @@
+.story {
+  width: 220px;
+  margin: 15px;
+  float: left;
+    line-height:23px;
+    background:#fff;
+}
+.story h2{
+
+}
+.story p,.story blockquote{
+       margin:0px;
+}
+.story img{
+    width:200px;
+}
+.story-title {
+    color: #444;
+    padding:5px 15px;
+    font-size: 18px;
+    display: block;
+    border-left:dotted 1px #ddd;
+    border-right:dotted 1px #ddd;
+    border-top:dotted 1px #ddd;
+}
+
+.story-content {
+    padding:15px;
+    color:#333;
+    border-left:dotted 1px #ddd;
+    border-right:dotted 1px #ddd;
+}
+.story-links{
+    /*background:transparent url(../images/black.png) repeat left top;*/
+    padding:3px 15px;
+    border:dotted 1px #ddd;
+    /*-moz-box-shadow: 3px 3px 2px #000;*/
+    /*-webkit-box-shadow: 3px 3px 2px #000;*/
+    /*box-shadow: 3px 3px 2px #000;*/
+}
+.story-links a{
+    /*text-shadow: 0px -2px 1px #000;*/
+    display:block;
+    font-weight:bold;
+    text-transform:uppercase;
+    text-decoration:none;
+
+}
+.story-links a:hover{
+    color: #003366;
+}
+.story-content a{
+    color:#0d2a51;
+    margin:10px;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/dss.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/dss.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/dss.html
new file mode 100755
index 0000000..f6912cc
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/dss.html
@@ -0,0 +1,75 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">Data Service Hosting</div>
+    <div class="story-content">>Data Web Services can be deployed in Data Services Server. All configurations such as
+        QoS can be easily configured here.
+    </div>
+    <div class="story-links"><a href="javascript:generateDssFeatureUrl(0)"
+            >Go
+        to Services...</a><a href="javascript:generateDssFeatureUrl(1)"
+            >Read
+        more (docs)...</a></div>
+</div>
+
+<div class="story col2">
+    <div class="story-title">Data as a Service</div>
+    <div class="story-content"> Create your databases on the cloud, and acess those as you would do with regular
+        databases.
+    </div>
+    <div class="story-links"><a href="javascript:generateDssFeatureUrl(2)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateDssFeatureUrl(3)"
+            >Read
+        more (docs)...</a></div>
+
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Service Testing</div>
+    <div class="story-content">Tryit tool can be used as a simple Web Service client which can be used to try your
+        services within AppServer itself.
+    </div>
+    <div class="story-links"><a href="javascript:generateDssFeatureUrl(4)"
+            >Go
+        to Service Testing...</a><a href="javascript:generateDssFeatureUrl(5)"
+            >Read
+        more (docs)...</a></div>
+</div>
+
+<div class="story col2">
+    <div class="story-title">Message Tracing</div>
+    <div class="story-content">Trace the request and responses to your service. Message Tracing is a vital
+        debugging tool when you have clients from heterogeneous platforms.
+    </div>
+    <div class="story-links"><a href="javascript:generateDssFeatureUrl(6)"
+            >Go to Message
+        Tracing...</a><a href="javascript:generateDssFeatureUrl(7)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">DB Explorer</div>
+    <div class="story-content"> Explore your databases using the explorer tool on the cloud.</div>
+    <div class="story-links"><a href="javascript:generateDssFeatureUrl(8)"
+            >Go to DB
+        Explorer Tool...</a><a href="javascript:generateDssFeatureUrl(9)"
+            >Read
+        more (docs)...</a></div>
+</div>
+
+<div class="story col2">
+    <div class="story-title">Relational Storage Solutions on Cloud</div>
+    <div class="story-content"><a
+            href="http://wso2.org/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive"><img
+            src="../../../../features-dashboard/dashboards/images/configure_db.png"
+            alt=""/></a></div>
+    <div class="story-links">
+        <a
+                href="http://wso2.org/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive">Read
+            online...</a>
+    </div>
+
+</div>


[51/51] [partial] git commit: applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
applying patch related to JIRA STRATOS-12


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/ffe2e466
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/ffe2e466
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/ffe2e466

Branch: refs/heads/master
Commit: ffe2e466f960a5cd038b6a482e62aa25b5976f01
Parents: 981916d
Author: Lakmal Warusawithana <la...@wso2.com>
Authored: Wed Jul 31 16:46:12 2013 +0530
Committer: Lakmal Warusawithana <la...@wso2.com>
Committed: Wed Jul 31 16:46:12 2013 +0530

----------------------------------------------------------------------
 products/cloud-controller/INSTALL.txt           |   75 ++
 products/cloud-controller/LICENSE.txt           |  512 ++++++++
 products/cloud-controller/README.txt            |  220 ++++
 .../docs/resources/css/mb-docs.css              |  173 +++
 .../resources/images/Deployment_Diagram.jpg     |  Bin 0 -> 40421 bytes
 .../docs/resources/images/Login.png             |  Bin 0 -> 112406 bytes
 .../resources/images/MessageFlowDiagram.jpg     |  Bin 0 -> 43164 bytes
 .../docs/resources/images/MessageQueue.jpg      |  Bin 0 -> 41880 bytes
 .../docs/resources/images/addMessage.png        |  Bin 0 -> 83311 bytes
 .../docs/resources/images/addPermission.png     |  Bin 0 -> 93870 bytes
 .../resources/images/cluster_scenario_01.png    |  Bin 0 -> 64444 bytes
 .../resources/images/cluster_scenario_02.png    |  Bin 0 -> 105140 bytes
 .../resources/images/cluster_scenario_03.png    |  Bin 0 -> 105277 bytes
 .../resources/images/cluster_scenario_04.png    |  Bin 0 -> 103247 bytes
 .../resources/images/cluster_scenario_05.png    |  Bin 0 -> 88343 bytes
 .../docs/resources/images/createMB.png          |  Bin 0 -> 68180 bytes
 .../docs/resources/images/listMessageBoxes.png  |  Bin 0 -> 69959 bytes
 .../docs/resources/images/logs.PNG              |  Bin 0 -> 63610 bytes
 .../docs/resources/images/mb-docs-bg.gif        |  Bin 0 -> 520 bytes
 .../docs/resources/images/mb-docs-header.gif    |  Bin 0 -> 5716 bytes
 .../docs/resources/images/retrieveMessage.png   |  Bin 0 -> 84034 bytes
 .../docs/resources/images/set-java-home.jpg     |  Bin 0 -> 84364 bytes
 .../docs/resources/images/state1_esper.png      |  Bin 0 -> 85366 bytes
 .../docs/resources/images/storeConfig.png       |  Bin 0 -> 25128 bytes
 .../docs/resources/images/table-header.gif      |  Bin 0 -> 873 bytes
 .../docs/resources/images/topicBrowser.png      |  Bin 0 -> 41142 bytes
 .../images/topic_AddTopicFromDetails.png        |  Bin 0 -> 25193 bytes
 .../docs/resources/images/topic_add.png         |  Bin 0 -> 57217 bytes
 .../resources/images/topic_addSubscription.png  |  Bin 0 -> 76820 bytes
 .../docs/resources/images/topic_browser.png     |  Bin 0 -> 50827 bytes
 .../resources/images/topic_browser_clicked.png  |  Bin 0 -> 55746 bytes
 .../docs/resources/images/topic_details.png     |  Bin 0 -> 70525 bytes
 .../images/topic_subscriptionDetails.png        |  Bin 0 -> 47014 bytes
 .../images/topic_updatePermissions.png          |  Bin 0 -> 85779 bytes
 .../docs/resources/images/user-mgt.PNG          |  Bin 0 -> 8985 bytes
 .../docs/resources/images/userguide_state_1.png |  Bin 0 -> 73672 bytes
 .../docs/resources/images/zookeeperConfig.png   |  Bin 0 -> 19377 bytes
 products/cloud-controller/docs/site.xml         |   71 ++
 .../cloud-controller/docs/xdoc/admin_guide.xml  |  485 ++++++++
 .../docs/xdoc/cluster_scenario_01.xml           |  184 +++
 .../docs/xdoc/cluster_scenario_02.xml           |  160 +++
 .../docs/xdoc/cluster_scenario_03.xml           |  200 +++
 .../docs/xdoc/cluster_scenario_04.xml           |  169 +++
 .../docs/xdoc/cluster_scenario_05.xml           |  216 ++++
 .../docs/xdoc/deployment_guide.xml              |   91 ++
 .../cloud-controller/docs/xdoc/docs_index.xml   |   77 ++
 products/cloud-controller/docs/xdoc/faq.xml     |   80 ++
 products/cloud-controller/docs/xdoc/index.xml   |   71 ++
 .../docs/xdoc/installation_guide.xml            |  414 +++++++
 .../docs/xdoc/release-notes.xml                 |  239 ++++
 .../docs/xdoc/samples/jms_queue_sample.xml      |  267 ++++
 .../docs/xdoc/samples/jms_topic_sample.xml      |  260 ++++
 .../docs/xdoc/samples/jms_transport_sample.xml  |  374 ++++++
 .../xdoc/samples/web_service_client_sample.xml  |  235 ++++
 .../docs/xdoc/samples_index.xml                 |   80 ++
 .../docs/xdoc/setting_java_home.xml             |   54 +
 .../docs/xdoc/source-repository.xml             |  137 ++
 .../cloud-controller/docs/xdoc/user_guide.xml   |  417 +++++++
 .../distribution/lib/home/images/bottom.gif     |  Bin 0 -> 523 bytes
 .../distribution/lib/home/images/content-bg.gif |  Bin 0 -> 233 bytes
 .../distribution/lib/home/images/favicon.ico    |  Bin 0 -> 17542 bytes
 .../lib/home/images/feature-01-icon.gif         |  Bin 0 -> 2063 bytes
 .../lib/home/images/feature-02-icon.gif         |  Bin 0 -> 2141 bytes
 .../lib/home/images/feature-03-icon.gif         |  Bin 0 -> 2649 bytes
 .../distribution/lib/home/images/intro-bg.gif   |  Bin 0 -> 3964 bytes
 .../distribution/lib/home/images/logo.gif       |  Bin 0 -> 3931 bytes
 .../lib/home/images/powered-logo.gif            |  Bin 0 -> 1280 bytes
 .../distribution/lib/home/images/register.gif   |  Bin 0 -> 6859 bytes
 .../distribution/lib/home/images/sign-in.gif    |  Bin 0 -> 3256 bytes
 .../distribution/lib/home/images/title-bg.gif   |  Bin 0 -> 1182 bytes
 .../distribution/lib/home/images/top.gif        |  Bin 0 -> 16149 bytes
 .../modules/distribution/lib/home/index.html    |   69 ++
 .../modules/distribution/lib/home/style.css     |   46 +
 .../modules/distribution/pom.xml                |  273 ++++
 .../distribution/src/main/assembly/bin.xml      |  340 +++++
 .../distribution/src/main/assembly/dist.xml     |   38 +
 .../src/main/assembly/filter.properties         |    4 +
 .../distribution/src/main/conf/axis2.xml        |  524 ++++++++
 .../src/main/conf/cipher-text.properties        |   26 +
 .../src/main/conf/datasources.properties        |   58 +
 .../src/main/conf/embedded-ldap.xml             |  165 +++
 .../distribution/src/main/conf/event-broker.xml |   44 +
 .../distribution/src/main/conf/jaas.conf        |   10 +
 .../distribution/src/main/conf/log4j.properties |  128 ++
 .../src/main/conf/rule-component.conf           |    3 +
 .../conf/synapse-configs/default/registry.xml   |   26 +
 .../default/sequences/errorHandler.xml          |   31 +
 .../synapse-configs/default/sequences/fault.xml |   76 ++
 .../synapse-configs/default/sequences/main.xml  |  110 ++
 .../conf/synapse-configs/default/synapse.xml    |   25 +
 .../src/main/conf/synapse.properties            |   38 +
 .../modules/distribution/src/main/conf/zoo.cfg  |    3 +
 .../distribution/src/main/resources/launch.ini  |  248 ++++
 .../src/main/resources/log4j.properties         |  196 +++
 .../distribution/src/main/resources/stratos.bat |  274 ++++
 .../distribution/src/main/resources/stratos.sh  |  296 +++++
 .../cloud-controller/modules/p2-profile/pom.xml |  608 +++++++++
 .../src/main/resources/META-INF/product.xml     |   28 +
 .../src/main/resources/web/product/about.html   |  132 ++
 .../src/main/resources/web/styles/css/main.css  |  155 +++
 .../main/resources/web/styles/images/1px.gif    |  Bin 0 -> 43 bytes
 .../web/styles/images/leftRightSlider-dark.png  |  Bin 0 -> 1103 bytes
 .../resources/web/styles/images/menu_header.png |  Bin 0 -> 227 bytes
 .../web/styles/images/right-links-bg.gif        |  Bin 0 -> 1070 bytes
 .../web/styles/images/right-logo-bg.gif         |  Bin 0 -> 3445 bytes
 .../resources/web/styles/images/scc-back.png    |  Bin 0 -> 20094 bytes
 .../web/styles/images/scc-header-repeat.png     |  Bin 0 -> 178 bytes
 .../resources/web/styles/images/scclogo.png     |  Bin 0 -> 5808 bytes
 .../src/main/resources/META-INF/product.xml     |   27 +
 .../service/src/main/resources/web/favicon.ico  |  Bin 0 -> 17542 bytes
 .../src/main/resources/web/styles/css/main.css  |  240 ++++
 .../resources/web/styles/images/def-body-bg.gif |  Bin 0 -> 419 bytes
 .../web/styles/images/def-header-bg.gif         |  Bin 0 -> 17875 bytes
 .../web/styles/images/def-header-region-bg.gif  |  Bin 0 -> 22784 bytes
 .../main/resources/web/styles/images/logo.gif   |  Bin 0 -> 1815 bytes
 .../resources/web/styles/images/powered.gif     |  Bin 0 -> 1773 bytes
 .../resources/web/styles/images/right-logo.gif  |  Bin 0 -> 6102 bytes
 .../web/styles/images/t-right-logo.gif          |  Bin 0 -> 3629 bytes
 products/cloud-controller/pom.xml               |  160 +++
 products/cloud_controller/INSTALL.txt           |   75 --
 products/cloud_controller/LICENSE.txt           |  512 --------
 products/cloud_controller/README.txt            |  220 ----
 .../docs/resources/css/mb-docs.css              |  173 ---
 .../resources/images/Deployment_Diagram.jpg     |  Bin 40421 -> 0 bytes
 .../docs/resources/images/Login.png             |  Bin 112406 -> 0 bytes
 .../resources/images/MessageFlowDiagram.jpg     |  Bin 43164 -> 0 bytes
 .../docs/resources/images/MessageQueue.jpg      |  Bin 41880 -> 0 bytes
 .../docs/resources/images/addMessage.png        |  Bin 83311 -> 0 bytes
 .../docs/resources/images/addPermission.png     |  Bin 93870 -> 0 bytes
 .../resources/images/cluster_scenario_01.png    |  Bin 64444 -> 0 bytes
 .../resources/images/cluster_scenario_02.png    |  Bin 105140 -> 0 bytes
 .../resources/images/cluster_scenario_03.png    |  Bin 105277 -> 0 bytes
 .../resources/images/cluster_scenario_04.png    |  Bin 103247 -> 0 bytes
 .../resources/images/cluster_scenario_05.png    |  Bin 88343 -> 0 bytes
 .../docs/resources/images/createMB.png          |  Bin 68180 -> 0 bytes
 .../docs/resources/images/listMessageBoxes.png  |  Bin 69959 -> 0 bytes
 .../docs/resources/images/logs.PNG              |  Bin 63610 -> 0 bytes
 .../docs/resources/images/mb-docs-bg.gif        |  Bin 520 -> 0 bytes
 .../docs/resources/images/mb-docs-header.gif    |  Bin 5716 -> 0 bytes
 .../docs/resources/images/retrieveMessage.png   |  Bin 84034 -> 0 bytes
 .../docs/resources/images/set-java-home.jpg     |  Bin 84364 -> 0 bytes
 .../docs/resources/images/state1_esper.png      |  Bin 85366 -> 0 bytes
 .../docs/resources/images/storeConfig.png       |  Bin 25128 -> 0 bytes
 .../docs/resources/images/table-header.gif      |  Bin 873 -> 0 bytes
 .../docs/resources/images/topicBrowser.png      |  Bin 41142 -> 0 bytes
 .../images/topic_AddTopicFromDetails.png        |  Bin 25193 -> 0 bytes
 .../docs/resources/images/topic_add.png         |  Bin 57217 -> 0 bytes
 .../resources/images/topic_addSubscription.png  |  Bin 76820 -> 0 bytes
 .../docs/resources/images/topic_browser.png     |  Bin 50827 -> 0 bytes
 .../resources/images/topic_browser_clicked.png  |  Bin 55746 -> 0 bytes
 .../docs/resources/images/topic_details.png     |  Bin 70525 -> 0 bytes
 .../images/topic_subscriptionDetails.png        |  Bin 47014 -> 0 bytes
 .../images/topic_updatePermissions.png          |  Bin 85779 -> 0 bytes
 .../docs/resources/images/user-mgt.PNG          |  Bin 8985 -> 0 bytes
 .../docs/resources/images/userguide_state_1.png |  Bin 73672 -> 0 bytes
 .../docs/resources/images/zookeeperConfig.png   |  Bin 19377 -> 0 bytes
 products/cloud_controller/docs/site.xml         |   71 --
 .../cloud_controller/docs/xdoc/admin_guide.xml  |  485 --------
 .../docs/xdoc/cluster_scenario_01.xml           |  184 ---
 .../docs/xdoc/cluster_scenario_02.xml           |  160 ---
 .../docs/xdoc/cluster_scenario_03.xml           |  200 ---
 .../docs/xdoc/cluster_scenario_04.xml           |  169 ---
 .../docs/xdoc/cluster_scenario_05.xml           |  216 ----
 .../docs/xdoc/deployment_guide.xml              |   91 --
 .../cloud_controller/docs/xdoc/docs_index.xml   |   77 --
 products/cloud_controller/docs/xdoc/faq.xml     |   80 --
 products/cloud_controller/docs/xdoc/index.xml   |   71 --
 .../docs/xdoc/installation_guide.xml            |  414 -------
 .../docs/xdoc/release-notes.xml                 |  239 ----
 .../docs/xdoc/samples/jms_queue_sample.xml      |  267 ----
 .../docs/xdoc/samples/jms_topic_sample.xml      |  260 ----
 .../docs/xdoc/samples/jms_transport_sample.xml  |  374 ------
 .../xdoc/samples/web_service_client_sample.xml  |  235 ----
 .../docs/xdoc/samples_index.xml                 |   80 --
 .../docs/xdoc/setting_java_home.xml             |   54 -
 .../docs/xdoc/source-repository.xml             |  137 --
 .../cloud_controller/docs/xdoc/user_guide.xml   |  417 -------
 .../distribution/lib/home/images/bottom.gif     |  Bin 523 -> 0 bytes
 .../distribution/lib/home/images/content-bg.gif |  Bin 233 -> 0 bytes
 .../distribution/lib/home/images/favicon.ico    |  Bin 17542 -> 0 bytes
 .../lib/home/images/feature-01-icon.gif         |  Bin 2063 -> 0 bytes
 .../lib/home/images/feature-02-icon.gif         |  Bin 2141 -> 0 bytes
 .../lib/home/images/feature-03-icon.gif         |  Bin 2649 -> 0 bytes
 .../distribution/lib/home/images/intro-bg.gif   |  Bin 3964 -> 0 bytes
 .../distribution/lib/home/images/logo.gif       |  Bin 3931 -> 0 bytes
 .../lib/home/images/powered-logo.gif            |  Bin 1280 -> 0 bytes
 .../distribution/lib/home/images/register.gif   |  Bin 6859 -> 0 bytes
 .../distribution/lib/home/images/sign-in.gif    |  Bin 3256 -> 0 bytes
 .../distribution/lib/home/images/title-bg.gif   |  Bin 1182 -> 0 bytes
 .../distribution/lib/home/images/top.gif        |  Bin 16149 -> 0 bytes
 .../modules/distribution/lib/home/index.html    |   69 --
 .../modules/distribution/lib/home/style.css     |   46 -
 .../modules/distribution/pom.xml                |  273 ----
 .../distribution/src/main/assembly/bin.xml      |  340 -----
 .../distribution/src/main/assembly/dist.xml     |   38 -
 .../src/main/assembly/filter.properties         |    4 -
 .../distribution/src/main/conf/axis2.xml        |  524 --------
 .../src/main/conf/cipher-text.properties        |   26 -
 .../src/main/conf/datasources.properties        |   58 -
 .../src/main/conf/embedded-ldap.xml             |  165 ---
 .../distribution/src/main/conf/event-broker.xml |   44 -
 .../distribution/src/main/conf/jaas.conf        |   10 -
 .../distribution/src/main/conf/log4j.properties |  128 --
 .../src/main/conf/rule-component.conf           |    3 -
 .../conf/synapse-configs/default/registry.xml   |   26 -
 .../default/sequences/errorHandler.xml          |   31 -
 .../synapse-configs/default/sequences/fault.xml |   76 --
 .../synapse-configs/default/sequences/main.xml  |  110 --
 .../conf/synapse-configs/default/synapse.xml    |   25 -
 .../src/main/conf/synapse.properties            |   38 -
 .../modules/distribution/src/main/conf/zoo.cfg  |    3 -
 .../distribution/src/main/resources/launch.ini  |  248 ----
 .../src/main/resources/log4j.properties         |  196 ---
 .../distribution/src/main/resources/stratos.bat |  274 ----
 .../distribution/src/main/resources/stratos.sh  |  296 -----
 .../cloud_controller/modules/p2-profile/pom.xml |  608 ---------
 .../src/main/resources/META-INF/product.xml     |   28 -
 .../src/main/resources/web/product/about.html   |  132 --
 .../src/main/resources/web/styles/css/main.css  |  155 ---
 .../main/resources/web/styles/images/1px.gif    |  Bin 43 -> 0 bytes
 .../web/styles/images/leftRightSlider-dark.png  |  Bin 1103 -> 0 bytes
 .../resources/web/styles/images/menu_header.png |  Bin 227 -> 0 bytes
 .../web/styles/images/right-links-bg.gif        |  Bin 1070 -> 0 bytes
 .../web/styles/images/right-logo-bg.gif         |  Bin 3445 -> 0 bytes
 .../resources/web/styles/images/scc-back.png    |  Bin 20094 -> 0 bytes
 .../web/styles/images/scc-header-repeat.png     |  Bin 178 -> 0 bytes
 .../resources/web/styles/images/scclogo.png     |  Bin 5808 -> 0 bytes
 .../src/main/resources/META-INF/product.xml     |   27 -
 .../service/src/main/resources/web/favicon.ico  |  Bin 17542 -> 0 bytes
 .../src/main/resources/web/styles/css/main.css  |  240 ----
 .../resources/web/styles/images/def-body-bg.gif |  Bin 419 -> 0 bytes
 .../web/styles/images/def-header-bg.gif         |  Bin 17875 -> 0 bytes
 .../web/styles/images/def-header-region-bg.gif  |  Bin 22784 -> 0 bytes
 .../main/resources/web/styles/images/logo.gif   |  Bin 1815 -> 0 bytes
 .../resources/web/styles/images/powered.gif     |  Bin 1773 -> 0 bytes
 .../resources/web/styles/images/right-logo.gif  |  Bin 6102 -> 0 bytes
 .../web/styles/images/t-right-logo.gif          |  Bin 3629 -> 0 bytes
 products/cloud_controller/pom.xml               |  160 ---
 products/pom.xml                                |    8 +-
 products/stratos-agent/INSTALL.txt              |   52 +
 products/stratos-agent/LICENSE.txt              |  250 ++++
 products/stratos-agent/README.txt               |  114 ++
 .../stratos-agent/docs/xdoc/release-notes.xml   |  169 +++
 .../stratos-agent/modules/distribution/pom.xml  |  594 +++++++++
 .../distribution/src/conf/log4j.properties      |  168 +++
 .../distribution/src/main/assembly/bin.xml      |  184 +++
 .../distribution/src/main/assembly/dist.xml     |   39 +
 .../distribution/src/main/assembly/docs.xml     |   33 +
 .../src/main/assembly/filter.properties         |   27 +
 .../distribution/src/main/assembly/src.xml      |   74 ++
 .../distribution/src/main/bin/stratos.bat       |  169 +++
 .../distribution/src/main/bin/stratos.sh        |  298 +++++
 .../stratos-agent/modules/p2-profile/pom.xml    |  178 +++
 products/stratos-agent/pom.xml                  |  213 ++++
 products/stratos-cli/LICENSE.txt                |   46 +
 products/stratos-cli/README.txt                 |  111 ++
 products/stratos-cli/distribution/pom.xml       |   68 +
 .../distribution/src/main/assembly/bin.xml      |   58 +
 .../distribution/src/main/bin/stratos.bat       |   36 +
 .../distribution/src/main/bin/stratos.sh        |   33 +
 .../distribution/src/main/bin/version.txt       |    1 +
 products/stratos-cli/pom.xml                    |   44 +
 .../billing-script/billing-h2.sql               |  109 ++
 .../billing-script/billing-mysql.sql            |  120 ++
 .../billing-script/metering_h2.sql              |  114 ++
 .../billing-script/metering_mysql.sql           |  149 +++
 .../billing-script/migration.sql                |    7 +
 .../stratos-controller/billing-script/s2_h2.sql |   96 ++
 .../billing-script/wso2_rss.sql                 |   81 ++
 products/stratos-controller/conf/README-STRATOS |   90 ++
 products/stratos-controller/conf/axis2.xml      |  526 ++++++++
 products/stratos-controller/conf/bam.xml        |   45 +
 .../stratos-controller/conf/billing-config.xml  |   68 +
 .../conf/cipher-text.properties                 |   26 +
 .../conf/cloud-services-desc.xml                |  195 +++
 .../conf/datasources.properties                 |   58 +
 .../conf/email-bill-generated.xml               |   39 +
 .../conf/email-billing-notifications.xml        |   50 +
 .../conf/email-new-tenant-activation.xml        |   47 +
 .../conf/email-new-tenant-registration.xml      |   47 +
 .../conf/email-password-reset.xml               |   43 +
 .../conf/email-payment-received-customer.xml    |   39 +
 .../conf/email-payment-received-wso2.xml        |   39 +
 .../conf/email-registration-complete.xml        |   38 +
 .../conf/email-registration-moderation.xml      |   47 +
 ...l-registration-payment-received-customer.xml |   39 +
 .../conf/email-registration.xml                 |   46 +
 .../stratos-controller/conf/email-update.xml    |   39 +
 .../stratos-controller/conf/embedded-ldap.xml   |  165 +++
 .../stratos-controller/conf/event-broker.xml    |   63 +
 .../conf/features-dashboard.xml                 |  826 +++++++++++++
 products/stratos-controller/conf/identity.xml   |  108 ++
 products/stratos-controller/conf/jaas.conf      |   10 +
 .../stratos-controller/conf/loadbalancer.conf   |   29 +
 .../conf/metering-config-non-manager.xml        |  104 ++
 .../conf/multitenancy-billing-rules.drl         |   34 +
 .../stratos-controller/conf/nhttp.properties    |   42 +
 .../conf/passthru-http.properties               |   34 +
 .../stratos-controller/conf/rule-component.conf |    3 +
 .../stratos-controller/conf/samples-desc.xml    |   33 +
 .../stratos-controller/conf/sso-idp-config.xml  |   27 +
 .../conf/status-monitor-config.xml              |   53 +
 .../conf/stratos-datasources.xml                |   69 ++
 .../conf/synapse-configs/default/registry.xml   |   26 +
 .../default/sequences/errorHandler.xml          |   31 +
 .../synapse-configs/default/sequences/fault.xml |   76 ++
 .../synapse-configs/default/sequences/main.xml  |  110 ++
 .../conf/synapse-configs/default/synapse.xml    |   25 +
 .../stratos-controller/conf/synapse.properties  |   38 +
 .../conf/tenant-reg-agent.xml                   |   25 +
 .../conf/throttling-rules.drl                   |  251 ++++
 products/stratos-controller/conf/user-mgt.xml   |  241 ++++
 products/stratos-controller/conf/zoo.cfg        |    4 +
 .../modules/cloud-service-mgt/pom.xml           |   98 ++
 .../services/mgt/beans/CloudService.java        |   85 ++
 .../CloudServiceMgtServiceComponent.java        |   74 ++
 .../mgt/services/CloudManagerService.java       |  122 ++
 .../manager/services/mgt/util/Constants.java    |   29 +
 .../stratos/manager/services/mgt/util/Util.java |  264 ++++
 .../src/main/resources/META-INF/component.xml   |   32 +
 .../src/main/resources/META-INF/services.xml    |   43 +
 .../modules/dashboard/pom.xml                   |  155 +++
 .../ui/clients/CloudManagerServiceClient.java   |  124 ++
 .../manager/dashboard/ui/utils/Util.java        |   48 +
 .../src/main/resources/CloudManagerService.wsdl |  312 +++++
 .../src/main/resources/META-INF/component.xml   |   36 +
 .../dashboard/ui/i18n/JSResources.properties    |    3 +
 .../dashboard/ui/i18n/Resources.properties      |    3 +
 .../cloud_services_configuration.jsp            |  204 +++
 .../cloud_services_save_ajaxprocessor.jsp       |   35 +
 .../web/tenant-dashboard/css/dashboard.css      |  231 ++++
 .../tenant-dashboard/docs/images/dashboard.png  |  Bin 0 -> 139674 bytes
 .../tenant-dashboard/docs/userguide-old.html    |  101 ++
 .../web/tenant-dashboard/docs/userguide.html    |   37 +
 .../images/WSO2-Cloud-Gateway-logo.gif          |  Bin 0 -> 2506 bytes
 .../images/WSO2-Storage-Server-logo.gif         |  Bin 0 -> 2490 bytes
 .../WSO2-Stratos-Application-Server-logo.gif    |  Bin 0 -> 1473 bytes
 ...2-Stratos-Business-Activity-Monitor-logo.gif |  Bin 0 -> 1690 bytes
 ...SO2-Stratos-Business-Process-Server-logo.gif |  Bin 0 -> 1606 bytes
 .../WSO2-Stratos-Business-Rules-Server-logo.gif |  Bin 0 -> 1596 bytes
 ...WSO2-Stratos-Cloud-Services-Gateway-logo.gif |  Bin 0 -> 2030 bytes
 ...tos-Complex-Event-Processing-Server-logo.gif |  Bin 0 -> 1998 bytes
 .../WSO2-Stratos-Data-Services-Server-logo.gif  |  Bin 0 -> 1528 bytes
 ...WSO2-Stratos-Enterprise-Service-Bus-logo.gif |  Bin 0 -> 1598 bytes
 .../images/WSO2-Stratos-Gadget-Server-logo.gif  |  Bin 0 -> 1368 bytes
 .../images/WSO2-Stratos-Governance-logo.gif     |  Bin 0 -> 1525 bytes
 .../images/WSO2-Stratos-Identity-logo.gif       |  Bin 0 -> 1398 bytes
 .../images/WSO2-Stratos-Mashup-Server-logo.gif  |  Bin 0 -> 1440 bytes
 .../images/WSO2-Stratos-Message-Broker-logo.gif |  Bin 0 -> 1603 bytes
 .../images/WSO2-Tasks-Server-logo.gif           |  Bin 0 -> 2350 bytes
 .../web/tenant-dashboard/images/aas-top.gif     |  Bin 0 -> 4659 bytes
 .../tenant-dashboard/images/activate-button.gif |  Bin 0 -> 2601 bytes
 .../tenant-dashboard/images/appserver-logo.gif  |  Bin 0 -> 1473 bytes
 .../web/tenant-dashboard/images/bam-logo.gif    |  Bin 0 -> 1690 bytes
 .../web/tenant-dashboard/images/bps-logo.gif    |  Bin 0 -> 1606 bytes
 .../web/tenant-dashboard/images/brs-logo.gif    |  Bin 0 -> 1596 bytes
 .../web/tenant-dashboard/images/cep_logo.gif    |  Bin 0 -> 1998 bytes
 .../web/tenant-dashboard/images/csg-logo.gif    |  Bin 0 -> 2030 bytes
 .../images/deactivate-button.gif                |  Bin 0 -> 2448 bytes
 .../web/tenant-dashboard/images/ds-logo.gif     |  Bin 0 -> 1528 bytes
 .../web/tenant-dashboard/images/esb-logo.gif    |  Bin 0 -> 1598 bytes
 .../web/tenant-dashboard/images/gadget-logo.gif |  Bin 0 -> 1368 bytes
 .../web/tenant-dashboard/images/go-button.gif   |  Bin 0 -> 2165 bytes
 .../tenant-dashboard/images/governance-logo.gif |  Bin 0 -> 1525 bytes
 .../tenant-dashboard/images/identity-logo.gif   |  Bin 0 -> 1398 bytes
 .../images/inactive-go-button.gif               |  Bin 0 -> 2135 bytes
 .../web/tenant-dashboard/images/mashup-logo.gif |  Bin 0 -> 1440 bytes
 .../web/tenant-dashboard/images/mb_logo.gif     |  Bin 0 -> 1603 bytes
 .../images/service-configuration.gif            |  Bin 0 -> 389 bytes
 .../resources/web/tenant-dashboard/index.jsp    |  244 ++++
 .../web/tenant-dashboard/js/configurations.js   |  381 ++++++
 .../web/tenant-dashboard/js/dashboard.js        |   12 +
 .../modules/distribution/INSTALL.txt            |   61 +
 .../modules/distribution/LICENSE.txt            |  488 ++++++++
 .../modules/distribution/README.txt             |   42 +
 .../modules/distribution/lib/home/faq.html      |  392 ++++++
 .../distribution/lib/home/images/bottom.gif     |  Bin 0 -> 523 bytes
 .../distribution/lib/home/images/bullet-01.gif  |  Bin 0 -> 159 bytes
 .../distribution/lib/home/images/content-bg.gif |  Bin 0 -> 233 bytes
 .../distribution/lib/home/images/favicon.ico    |  Bin 0 -> 17542 bytes
 .../lib/home/images/feature-01-icon.gif         |  Bin 0 -> 2825 bytes
 .../lib/home/images/feature-02-icon.gif         |  Bin 0 -> 3361 bytes
 .../lib/home/images/feature-03-icon.gif         |  Bin 0 -> 3285 bytes
 .../lib/home/images/feature-middle-bg.gif       |  Bin 0 -> 1139 bytes
 .../distribution/lib/home/images/intro-bg.gif   |  Bin 0 -> 3964 bytes
 .../distribution/lib/home/images/intro-text.gif |  Bin 0 -> 4082 bytes
 .../distribution/lib/home/images/left-bg.gif    |  Bin 0 -> 1135 bytes
 .../distribution/lib/home/images/logo.gif       |  Bin 0 -> 11127 bytes
 .../lib/home/images/powered-logo.gif            |  Bin 0 -> 1280 bytes
 .../distribution/lib/home/images/register.gif   |  Bin 0 -> 6946 bytes
 .../distribution/lib/home/images/sign-in.gif    |  Bin 0 -> 3150 bytes
 .../lib/home/images/stratos-products-new.jpg    |  Bin 0 -> 25720 bytes
 .../distribution/lib/home/images/title-bg.gif   |  Bin 0 -> 1182 bytes
 .../distribution/lib/home/images/top.gif        |  Bin 0 -> 16149 bytes
 .../distribution/lib/home/images/webinar.png    |  Bin 0 -> 12318 bytes
 .../lib/home/images/white-paper.png             |  Bin 0 -> 15148 bytes
 .../modules/distribution/lib/home/index.html    |  119 ++
 .../lib/home/js/jquery-1.5.1.min.js             |   16 +
 .../lib/home/js/jquery.orbit-1.2.3.min.js       |   17 +
 .../distribution/lib/home/js/orbit-1.2.3.css    |  202 +++
 .../lib/home/js/orbit/left-arrow.png            |  Bin 0 -> 860 bytes
 .../distribution/lib/home/js/orbit/loading.gif  |  Bin 0 -> 2608 bytes
 .../lib/home/js/orbit/mask-black.png            |  Bin 0 -> 705 bytes
 .../lib/home/js/orbit/right-arrow.png           |  Bin 0 -> 825 bytes
 .../lib/home/js/orbit/rotator-black.png         |  Bin 0 -> 733 bytes
 .../lib/home/js/orbit/timer-black.png           |  Bin 0 -> 705 bytes
 .../modules/distribution/lib/home/style.css     |  160 +++
 .../modules/distribution/pom.xml                |  770 ++++++++++++
 .../distribution/qpid-resources/etc/config.xml  |  101 ++
 .../qpid-resources/etc/jmxremote.access         |   23 +
 .../qpid-resources/etc/virtualhosts.xml         |   62 +
 .../distribution/qpid-resources/qpid.xml        |   25 +
 .../modules/distribution/release-notes.html     |  134 ++
 .../modules/distribution/src/assembly/bin.xml   |  571 +++++++++
 .../modules/distribution/src/assembly/dist.xml  |   45 +
 .../distribution/src/assembly/filter.properties |   26 +
 .../distribution/src/bin/add_entry_zone_file.sh |   50 +
 .../src/bin/git-folder-structure.sh             |   47 +
 .../distribution/src/bin/manage-git-repo.sh     |  118 ++
 .../src/bin/remove_entry_zone_file.sh           |   55 +
 .../distribution/src/bin/set-mysql-password.sh  |   45 +
 .../modules/distribution/src/bin/stratos.bat    |  170 +++
 .../modules/distribution/src/bin/stratos.sh     |  298 +++++
 .../distribution/src/bin/update-instance.sh     |   34 +
 .../WebContent/META-INF/MANIFEST.MF             |    3 +
 .../WebContent/WEB-INF/web.xml                  |    7 +
 .../WebContent/dashboards/as.html               |   69 ++
 .../WebContent/dashboards/bam.html              |   88 ++
 .../WebContent/dashboards/bps.html              |   51 +
 .../WebContent/dashboards/brs.html              |   22 +
 .../WebContent/dashboards/cep.html              |   82 ++
 .../WebContent/dashboards/csg.html              |   11 +
 .../dashboards/css/features-dashboard.css       |   55 +
 .../WebContent/dashboards/dss.html              |   75 ++
 .../WebContent/dashboards/esb.html              |   70 ++
 .../WebContent/dashboards/greg.html             |   94 ++
 .../WebContent/dashboards/gs.html               |   90 ++
 .../WebContent/dashboards/images/black.png      |  Bin 0 -> 7338 bytes
 .../dashboards/images/configure_db.png          |  Bin 0 -> 43279 bytes
 .../dashboards/images/tenant_isolation.png      |  Bin 0 -> 67219 bytes
 .../images/usage_metering_and_throttling.jpg    |  Bin 0 -> 44100 bytes
 .../WebContent/dashboards/is.html               |   98 ++
 .../WebContent/dashboards/manager.html          |   68 +
 .../WebContent/dashboards/mb.html               |   81 ++
 .../WebContent/dashboards/ms.html               |   81 ++
 .../WebContent/dashboards/server.jsp            |  152 +++
 .../css/features-dashboard-new.css              |  155 +++
 .../WebContent/tenant-dashboard/css/ie7.css     |    8 +
 .../tenant-dashboard/images/arrow-blue.png      |  Bin 0 -> 815 bytes
 .../tenant-dashboard/images/arrow-white.png     |  Bin 0 -> 846 bytes
 .../WebContent/tenant-dashboard/images/back.jpg |  Bin 0 -> 1496 bytes
 .../tenant-dashboard/images/boxes.png           |  Bin 0 -> 645 bytes
 .../images/dashboard-back-repeat.png            |  Bin 0 -> 696 bytes
 .../tenant-dashboard/images/workAreaBack.png    |  Bin 0 -> 760 bytes
 .../WebContent/tenant-dashboard/index.html      |  173 +++
 .../WebContent/tenant-dashboard/index.jsp       |  205 +++
 .../tenant-dashboard/js/jquery-1.7.1.min.js     |    4 +
 .../tenant-dashboard/js/jquery.masonry.min.js   |   10 +
 .../js/jquery/jquery-1.5.1.min.js               |   16 +
 .../js/jquery/jquery.ui.core.js                 |    1 +
 .../js/jquery/jquery.ui.core.min.js             |   17 +
 .../js/jquery/jquery.ui.tabs.min.js             |   35 +
 .../js/jquery/jquery.ui.widget.min.js           |   15 +
 .../js/jquery/jquery.validate.js                | 1166 ++++++++++++++++++
 .../ui-bg_diagonals-thick_18_b81900_40x40.png   |  Bin 0 -> 260 bytes
 .../ui-bg_diagonals-thick_20_666666_40x40.png   |  Bin 0 -> 251 bytes
 .../images/ui-bg_flat_10_000000_40x100.png      |  Bin 0 -> 178 bytes
 .../images/ui-bg_glass_100_f6f6f6_1x400.png     |  Bin 0 -> 104 bytes
 .../images/ui-bg_glass_100_fdf5ce_1x400.png     |  Bin 0 -> 125 bytes
 .../images/ui-bg_glass_65_ffffff_1x400.png      |  Bin 0 -> 105 bytes
 .../ui-bg_gloss-wave_35_f6a828_500x100.png      |  Bin 0 -> 3762 bytes
 .../ui-bg_highlight-soft_100_eeeeee_1x100.png   |  Bin 0 -> 90 bytes
 .../ui-bg_highlight-soft_75_ffe45c_1x100.png    |  Bin 0 -> 129 bytes
 .../images/ui-icons_222222_256x240.png          |  Bin 0 -> 4369 bytes
 .../images/ui-icons_228ef1_256x240.png          |  Bin 0 -> 4369 bytes
 .../images/ui-icons_ef8c08_256x240.png          |  Bin 0 -> 5355 bytes
 .../images/ui-icons_ffd27a_256x240.png          |  Bin 0 -> 4369 bytes
 .../images/ui-icons_ffffff_256x240.png          |  Bin 0 -> 4369 bytes
 .../ui-lightness/jquery-ui-1.8.14.custom.css    |  568 +++++++++
 .../themes/ui-lightness/jquery.ui.accordion.css |   19 +
 .../themes/ui-lightness/jquery.ui.all.css       |   11 +
 .../ui-lightness/jquery.ui.autocomplete.css     |   53 +
 .../themes/ui-lightness/jquery.ui.base.css      |   11 +
 .../themes/ui-lightness/jquery.ui.button.css    |   38 +
 .../themes/ui-lightness/jquery.ui.core.css      |   41 +
 .../ui-lightness/jquery.ui.datepicker.css       |   68 +
 .../themes/ui-lightness/jquery.ui.dialog.css    |   21 +
 .../ui-lightness/jquery.ui.progressbar.css      |   11 +
 .../themes/ui-lightness/jquery.ui.resizable.css |   20 +
 .../ui-lightness/jquery.ui.selectable.css       |   10 +
 .../themes/ui-lightness/jquery.ui.slider.css    |   24 +
 .../themes/ui-lightness/jquery.ui.tabs.css      |   18 +
 .../themes/ui-lightness/jquery.ui.theme.css     |  249 ++++
 .../features-dashboard/features-dashboard.xml   |  762 ++++++++++++
 .../modules/features-dashboard/pom.xml          |  155 +++
 .../manager/feature/dashbord/ui/beans/Data.java |   61 +
 .../manager/feature/dashbord/ui/beans/Link.java |   41 +
 .../feature/dashbord/ui/beans/Service.java      |   72 ++
 .../feature/dashbord/ui/beans/Story.java        |   62 +
 .../feature/dashbord/ui/utils/Utils.java        |  177 +++
 .../stratos-controller/modules/features/pom.xml |   47 +
 .../features/service/etc/feature.properties     |  245 ++++
 .../service/org.apache.stratos.feature/pom.xml  |   85 ++
 .../org.apache.stratos.server.feature/pom.xml   |  236 ++++
 .../org.apache.stratos.ui.feature/pom.xml       |  207 ++++
 .../modules/features/service/pom.xml            |   50 +
 .../modules/integration/pom.xml                 |  164 +++
 .../integration/tests/LoginLogoutTestCase.java  |   49 +
 .../tests/SecurityVerificationTestCase.java     |   27 +
 .../tests/StratosManagerTestServerManager.java  |   54 +
 .../integration/tests/TenantMgtTestCase.java    |   92 ++
 .../src/test/resources/instrumentation.txt      |    2 +
 .../src/test/resources/keys/wso2carbon.jks      |  Bin 0 -> 33260 bytes
 .../integration/src/test/resources/testng.xml   |   17 +
 .../stratos-controller/modules/login/pom.xml    |  142 +++
 .../src/main/resources/META-INF/component.xml   |   21 +
 .../login/src/main/resources/TenantService.wsdl |  577 +++++++++
 .../web/tenant-login/css/loginpage.css          |  268 ++++
 .../resources/web/tenant-login/css/tenant.css   |   62 +
 .../docs/images/sign-in-no-domain.png           |  Bin 0 -> 10682 bytes
 .../docs/images/sign-in-with-domain.png         |  Bin 0 -> 8233 bytes
 .../web/tenant-login/docs/userguide.html        |  114 ++
 .../domain_rename_checker_ajaxprocessor.jsp     |   47 +
 .../web/tenant-login/images/body-bg.gif         |  Bin 0 -> 923 bytes
 .../web/tenant-login/images/feature-01-icon.gif |  Bin 0 -> 2825 bytes
 .../web/tenant-login/images/feature-02-icon.gif |  Bin 0 -> 3361 bytes
 .../web/tenant-login/images/feature-03-icon.gif |  Bin 0 -> 3285 bytes
 .../tenant-login/images/google-apps-login.gif   |  Bin 0 -> 4189 bytes
 .../web/tenant-login/images/link-icon.gif       |  Bin 0 -> 118 bytes
 .../web/tenant-login/images/login-bg.gif        |  Bin 0 -> 56670 bytes
 .../resources/web/tenant-login/images/logo.gif  |  Bin 0 -> 17603 bytes
 .../tenant-login/images/paas-login-1pix-1.gif   |  Bin 0 -> 43 bytes
 .../web/tenant-login/images/paas-login-1pix.gif |  Bin 0 -> 43 bytes
 .../web/tenant-login/images/powered.gif         |  Bin 0 -> 1280 bytes
 .../tenant-login/images/reg-button-hover.gif    |  Bin 0 -> 3824 bytes
 .../web/tenant-login/images/reg-button.gif      |  Bin 0 -> 3852 bytes
 .../web/tenant-login/images/register.gif        |  Bin 0 -> 4099 bytes
 .../tenant-login/images/st-login-body-bg.gif    |  Bin 0 -> 2215 bytes
 .../tenant-login/images/st-login-content-bg.gif |  Bin 0 -> 1060 bytes
 .../tenant-login/images/st-login-footer-bg.gif  |  Bin 0 -> 749 bytes
 .../tenant-login/images/st-login-header-bg.gif  |  Bin 0 -> 64503 bytes
 .../web/tenant-login/images/t-right-logo.gif    |  Bin 0 -> 2445 bytes
 .../main/resources/web/tenant-login/js/login.js |   27 +
 .../web/tenant-login/login_ajaxprocessor.jsp    |  331 +++++
 .../web/tenant-login/terms/policy.html          |   72 ++
 .../web/tenant-login/terms/support.html         |   39 +
 .../resources/web/tenant-login/terms/terms.html |   74 ++
 .../modules/p2-profile-gen/pom.xml              |  417 +++++++
 .../stratos-controller/modules/styles/pom.xml   |   48 +
 .../modules/styles/product/pom.xml              |   85 ++
 .../src/main/resources/META-INF/product.xml     |   28 +
 .../src/main/resources/web/product/about.html   |  132 ++
 .../src/main/resources/web/styles/css/main.css  |  155 +++
 .../main/resources/web/styles/images/1px.gif    |  Bin 0 -> 43 bytes
 .../styles/images/esb-server-menu-header.gif    |  Bin 0 -> 176 bytes
 .../web/styles/images/leftRightSlider-dark.png  |  Bin 0 -> 1103 bytes
 .../resources/web/styles/images/menu_header.png |  Bin 0 -> 227 bytes
 .../web/styles/images/right-links-bg.gif        |  Bin 0 -> 1070 bytes
 .../web/styles/images/right-logo-bg.gif         |  Bin 0 -> 3445 bytes
 .../resources/web/styles/images/sc-back.png     |  Bin 0 -> 16781 bytes
 .../web/styles/images/sc-header-repeat.png      |  Bin 0 -> 178 bytes
 .../main/resources/web/styles/images/sclogo.png |  Bin 0 -> 5136 bytes
 .../modules/styles/service/pom.xml              |  143 +++
 .../src/main/resources/META-INF/product.xml     |   27 +
 .../service/src/main/resources/web/favicon.ico  |  Bin 0 -> 17542 bytes
 .../src/main/resources/web/styles/css/main.css  |  240 ++++
 .../resources/web/styles/images/def-body-bg.gif |  Bin 0 -> 419 bytes
 .../web/styles/images/def-header-bg.gif         |  Bin 0 -> 17875 bytes
 .../web/styles/images/def-header-region-bg.gif  |  Bin 0 -> 22784 bytes
 .../main/resources/web/styles/images/logo.gif   |  Bin 0 -> 1815 bytes
 .../resources/web/styles/images/powered.gif     |  Bin 0 -> 1773 bytes
 .../resources/web/styles/images/right-logo.gif  |  Bin 0 -> 6102 bytes
 .../web/styles/images/t-right-logo.gif          |  Bin 0 -> 3629 bytes
 products/stratos-controller/pom.xml             |  419 +++++++
 .../resources/allthemes/Dark/admin/logo.gif     |  Bin 0 -> 1551 bytes
 .../resources/allthemes/Dark/admin/main.css     |  232 ++++
 .../allthemes/Dark/admin/powered-stratos.gif    |  Bin 0 -> 1515 bytes
 .../allthemes/Dark/admin/right-logo.gif         |  Bin 0 -> 2325 bytes
 .../allthemes/Dark/admin/theme-header-bg.gif    |  Bin 0 -> 4245 bytes
 .../Dark/admin/theme-header-region-bg.gif       |  Bin 0 -> 793 bytes
 .../allthemes/Dark/admin/theme-menu-header.gif  |  Bin 0 -> 261 bytes
 .../Dark/admin/theme-menu-panel-l-bg.gif        |  Bin 0 -> 312 bytes
 .../Dark/admin/theme-menu-table-bg.gif          |  Bin 0 -> 5671 bytes
 .../Dark/admin/theme-right-links-bg.gif         |  Bin 0 -> 1005 bytes
 .../resources/allthemes/Dark/thumb.png          |  Bin 0 -> 19546 bytes
 .../allthemes/Default/admin/def-body-bg.gif     |  Bin 0 -> 419 bytes
 .../allthemes/Default/admin/def-header-bg.gif   |  Bin 0 -> 17875 bytes
 .../Default/admin/def-header-region-bg.gif      |  Bin 0 -> 22784 bytes
 .../resources/allthemes/Default/admin/logo.gif  |  Bin 0 -> 1815 bytes
 .../resources/allthemes/Default/admin/main.css  |  229 ++++
 .../allthemes/Default/admin/powered-stratos.gif |  Bin 0 -> 1515 bytes
 .../allthemes/Default/admin/right-logo.gif      |  Bin 0 -> 3629 bytes
 .../resources/allthemes/Default/thumb.png       |  Bin 0 -> 24432 bytes
 .../resources/allthemes/Light/admin/logo.gif    |  Bin 0 -> 1551 bytes
 .../resources/allthemes/Light/admin/main.css    |  229 ++++
 .../allthemes/Light/admin/menu_header.gif       |  Bin 0 -> 243 bytes
 .../allthemes/Light/admin/powered-stratos.gif   |  Bin 0 -> 1515 bytes
 .../allthemes/Light/admin/right-links-bg.gif    |  Bin 0 -> 1191 bytes
 .../allthemes/Light/admin/right-logo.gif        |  Bin 0 -> 2325 bytes
 .../allthemes/Light/admin/theme-header-bg.gif   |  Bin 0 -> 3792 bytes
 .../Light/admin/theme-header-region-b-bg.gif    |  Bin 0 -> 121 bytes
 .../Light/admin/theme-header-region-bg.gif      |  Bin 0 -> 534 bytes
 .../Light/admin/theme-menu-panel-l-bg.gif       |  Bin 0 -> 772 bytes
 .../Light/admin/theme-menu-table-bg.gif         |  Bin 0 -> 5991 bytes
 .../resources/allthemes/Light/thumb.png         |  Bin 0 -> 18102 bytes
 .../cloud-services-icons/appserver.gif          |  Bin 0 -> 2086 bytes
 .../resources/cloud-services-icons/bam.gif      |  Bin 0 -> 1773 bytes
 .../resources/cloud-services-icons/bps.gif      |  Bin 0 -> 1531 bytes
 .../resources/cloud-services-icons/brs-old.gif  |  Bin 0 -> 1772 bytes
 .../resources/cloud-services-icons/brs.gif      |  Bin 0 -> 2170 bytes
 .../resources/cloud-services-icons/cep.png      |  Bin 0 -> 3218 bytes
 .../resources/cloud-services-icons/cg.gif       |  Bin 0 -> 2385 bytes
 .../cloud-services-icons/csg-inactive.gif       |  Bin 0 -> 3188 bytes
 .../resources/cloud-services-icons/csg.gif      |  Bin 0 -> 3176 bytes
 .../resources/cloud-services-icons/ds.gif       |  Bin 0 -> 2012 bytes
 .../resources/cloud-services-icons/esb.gif      |  Bin 0 -> 1787 bytes
 .../resources/cloud-services-icons/gadget.gif   |  Bin 0 -> 2242 bytes
 .../cloud-services-icons/governance.gif         |  Bin 0 -> 1977 bytes
 .../resources/cloud-services-icons/identity.gif |  Bin 0 -> 1936 bytes
 .../cloud-services-icons/inactive-appserver.gif |  Bin 0 -> 1957 bytes
 .../cloud-services-icons/inactive-bam.gif       |  Bin 0 -> 1647 bytes
 .../cloud-services-icons/inactive-brs.gif       |  Bin 0 -> 1874 bytes
 .../cloud-services-icons/inactive-cep.png       |  Bin 0 -> 2959 bytes
 .../cloud-services-icons/inactive-esb.gif       |  Bin 0 -> 1656 bytes
 .../cloud-services-icons/inactive-gadget.gif    |  Bin 0 -> 2087 bytes
 .../inactive-governance.gif                     |  Bin 0 -> 1850 bytes
 .../cloud-services-icons/inactive-identity.gif  |  Bin 0 -> 1794 bytes
 .../cloud-services-icons/inactive-mashup.gif    |  Bin 0 -> 1772 bytes
 .../cloud-services-icons/inactive-mb.png        |  Bin 0 -> 2746 bytes
 .../resources/cloud-services-icons/mashup.gif   |  Bin 0 -> 1850 bytes
 .../resources/cloud-services-icons/mb.png       |  Bin 0 -> 3139 bytes
 .../resources/cloud-services-icons/pom.xml      |   72 ++
 .../resources/cloud-services-icons/ss.gif       |  Bin 0 -> 2432 bytes
 .../resources/cloud-services-icons/ts.gif       |  Bin 0 -> 2475 bytes
 .../powerded-by-logos/appserver-logo.gif        |  Bin 0 -> 1473 bytes
 .../resources/powerded-by-logos/bam-logo.gif    |  Bin 0 -> 1690 bytes
 .../resources/powerded-by-logos/bps-logo.gif    |  Bin 0 -> 1606 bytes
 .../resources/powerded-by-logos/brs-logo.gif    |  Bin 0 -> 1596 bytes
 .../resources/powerded-by-logos/csg-logo.gif    |  Bin 0 -> 2030 bytes
 .../resources/powerded-by-logos/ds-logo.gif     |  Bin 0 -> 1528 bytes
 .../resources/powerded-by-logos/esb-logo.gif    |  Bin 0 -> 1598 bytes
 .../resources/powerded-by-logos/gadget-logo.gif |  Bin 0 -> 1368 bytes
 .../powerded-by-logos/governance-logo.gif       |  Bin 0 -> 1525 bytes
 .../powerded-by-logos/identity-logo.gif         |  Bin 0 -> 1398 bytes
 .../resources/powerded-by-logos/mashup-logo.gif |  Bin 0 -> 1440 bytes
 products/stratos_agent/INSTALL.txt              |   52 -
 products/stratos_agent/LICENSE.txt              |  250 ----
 products/stratos_agent/README.txt               |  114 --
 .../stratos_agent/docs/xdoc/release-notes.xml   |  169 ---
 .../stratos_agent/modules/distribution/pom.xml  |  594 ---------
 .../distribution/src/conf/log4j.properties      |  168 ---
 .../distribution/src/main/assembly/bin.xml      |  184 ---
 .../distribution/src/main/assembly/dist.xml     |   39 -
 .../distribution/src/main/assembly/docs.xml     |   33 -
 .../src/main/assembly/filter.properties         |   27 -
 .../distribution/src/main/assembly/src.xml      |   74 --
 .../distribution/src/main/bin/stratos.bat       |  169 ---
 .../distribution/src/main/bin/stratos.sh        |  298 -----
 .../stratos_agent/modules/p2-profile/pom.xml    |  178 ---
 products/stratos_agent/pom.xml                  |  213 ----
 products/stratos_cli/LICENSE.txt                |   46 -
 products/stratos_cli/README.txt                 |  111 --
 products/stratos_cli/distribution/pom.xml       |   68 -
 .../distribution/src/main/assembly/bin.xml      |   58 -
 .../distribution/src/main/bin/stratos.bat       |   36 -
 .../distribution/src/main/bin/stratos.sh        |   33 -
 .../distribution/src/main/bin/version.txt       |    1 -
 products/stratos_cli/pom.xml                    |   44 -
 .../billing-script/billing-h2.sql               |  109 --
 .../billing-script/billing-mysql.sql            |  120 --
 .../billing-script/metering_h2.sql              |  114 --
 .../billing-script/metering_mysql.sql           |  149 ---
 .../billing-script/migration.sql                |    7 -
 .../stratos_controller/billing-script/s2_h2.sql |   96 --
 .../billing-script/wso2_rss.sql                 |   81 --
 products/stratos_controller/conf/README-STRATOS |   90 --
 products/stratos_controller/conf/axis2.xml      |  526 --------
 products/stratos_controller/conf/bam.xml        |   45 -
 .../stratos_controller/conf/billing-config.xml  |   68 -
 .../conf/cipher-text.properties                 |   26 -
 .../conf/cloud-services-desc.xml                |  195 ---
 .../conf/datasources.properties                 |   58 -
 .../conf/email-bill-generated.xml               |   39 -
 .../conf/email-billing-notifications.xml        |   50 -
 .../conf/email-new-tenant-activation.xml        |   47 -
 .../conf/email-new-tenant-registration.xml      |   47 -
 .../conf/email-password-reset.xml               |   43 -
 .../conf/email-payment-received-customer.xml    |   39 -
 .../conf/email-payment-received-wso2.xml        |   39 -
 .../conf/email-registration-complete.xml        |   38 -
 .../conf/email-registration-moderation.xml      |   47 -
 ...l-registration-payment-received-customer.xml |   39 -
 .../conf/email-registration.xml                 |   46 -
 .../stratos_controller/conf/email-update.xml    |   39 -
 .../stratos_controller/conf/embedded-ldap.xml   |  165 ---
 .../stratos_controller/conf/event-broker.xml    |   63 -
 .../conf/features-dashboard.xml                 |  826 -------------
 products/stratos_controller/conf/identity.xml   |  108 --
 products/stratos_controller/conf/jaas.conf      |   10 -
 .../stratos_controller/conf/loadbalancer.conf   |   29 -
 .../conf/metering-config-non-manager.xml        |  104 --
 .../conf/multitenancy-billing-rules.drl         |   34 -
 .../stratos_controller/conf/nhttp.properties    |   42 -
 .../conf/passthru-http.properties               |   34 -
 .../stratos_controller/conf/rule-component.conf |    3 -
 .../stratos_controller/conf/samples-desc.xml    |   33 -
 .../stratos_controller/conf/sso-idp-config.xml  |   27 -
 .../conf/status-monitor-config.xml              |   53 -
 .../conf/stratos-datasources.xml                |   69 --
 .../conf/synapse-configs/default/registry.xml   |   26 -
 .../default/sequences/errorHandler.xml          |   31 -
 .../synapse-configs/default/sequences/fault.xml |   76 --
 .../synapse-configs/default/sequences/main.xml  |  110 --
 .../conf/synapse-configs/default/synapse.xml    |   25 -
 .../stratos_controller/conf/synapse.properties  |   38 -
 .../conf/tenant-reg-agent.xml                   |   25 -
 .../conf/throttling-rules.drl                   |  251 ----
 products/stratos_controller/conf/user-mgt.xml   |  241 ----
 products/stratos_controller/conf/zoo.cfg        |    4 -
 .../modules/cloud-service-mgt/pom.xml           |   98 --
 .../services/mgt/beans/CloudService.java        |   85 --
 .../CloudServiceMgtServiceComponent.java        |   74 --
 .../mgt/services/CloudManagerService.java       |  122 --
 .../manager/services/mgt/util/Constants.java    |   29 -
 .../stratos/manager/services/mgt/util/Util.java |  264 ----
 .../src/main/resources/META-INF/component.xml   |   32 -
 .../src/main/resources/META-INF/services.xml    |   43 -
 .../modules/dashboard/pom.xml                   |  155 ---
 .../ui/clients/CloudManagerServiceClient.java   |  124 --
 .../manager/dashboard/ui/utils/Util.java        |   48 -
 .../src/main/resources/CloudManagerService.wsdl |  312 -----
 .../src/main/resources/META-INF/component.xml   |   36 -
 .../dashboard/ui/i18n/JSResources.properties    |    3 -
 .../dashboard/ui/i18n/Resources.properties      |    3 -
 .../cloud_services_configuration.jsp            |  204 ---
 .../cloud_services_save_ajaxprocessor.jsp       |   35 -
 .../web/tenant-dashboard/css/dashboard.css      |  231 ----
 .../tenant-dashboard/docs/images/dashboard.png  |  Bin 139674 -> 0 bytes
 .../tenant-dashboard/docs/userguide-old.html    |  101 --
 .../web/tenant-dashboard/docs/userguide.html    |   37 -
 .../images/WSO2-Cloud-Gateway-logo.gif          |  Bin 2506 -> 0 bytes
 .../images/WSO2-Storage-Server-logo.gif         |  Bin 2490 -> 0 bytes
 .../WSO2-Stratos-Application-Server-logo.gif    |  Bin 1473 -> 0 bytes
 ...2-Stratos-Business-Activity-Monitor-logo.gif |  Bin 1690 -> 0 bytes
 ...SO2-Stratos-Business-Process-Server-logo.gif |  Bin 1606 -> 0 bytes
 .../WSO2-Stratos-Business-Rules-Server-logo.gif |  Bin 1596 -> 0 bytes
 ...WSO2-Stratos-Cloud-Services-Gateway-logo.gif |  Bin 2030 -> 0 bytes
 ...tos-Complex-Event-Processing-Server-logo.gif |  Bin 1998 -> 0 bytes
 .../WSO2-Stratos-Data-Services-Server-logo.gif  |  Bin 1528 -> 0 bytes
 ...WSO2-Stratos-Enterprise-Service-Bus-logo.gif |  Bin 1598 -> 0 bytes
 .../images/WSO2-Stratos-Gadget-Server-logo.gif  |  Bin 1368 -> 0 bytes
 .../images/WSO2-Stratos-Governance-logo.gif     |  Bin 1525 -> 0 bytes
 .../images/WSO2-Stratos-Identity-logo.gif       |  Bin 1398 -> 0 bytes
 .../images/WSO2-Stratos-Mashup-Server-logo.gif  |  Bin 1440 -> 0 bytes
 .../images/WSO2-Stratos-Message-Broker-logo.gif |  Bin 1603 -> 0 bytes
 .../images/WSO2-Tasks-Server-logo.gif           |  Bin 2350 -> 0 bytes
 .../web/tenant-dashboard/images/aas-top.gif     |  Bin 4659 -> 0 bytes
 .../tenant-dashboard/images/activate-button.gif |  Bin 2601 -> 0 bytes
 .../tenant-dashboard/images/appserver-logo.gif  |  Bin 1473 -> 0 bytes
 .../web/tenant-dashboard/images/bam-logo.gif    |  Bin 1690 -> 0 bytes
 .../web/tenant-dashboard/images/bps-logo.gif    |  Bin 1606 -> 0 bytes
 .../web/tenant-dashboard/images/brs-logo.gif    |  Bin 1596 -> 0 bytes
 .../web/tenant-dashboard/images/cep_logo.gif    |  Bin 1998 -> 0 bytes
 .../web/tenant-dashboard/images/csg-logo.gif    |  Bin 2030 -> 0 bytes
 .../images/deactivate-button.gif                |  Bin 2448 -> 0 bytes
 .../web/tenant-dashboard/images/ds-logo.gif     |  Bin 1528 -> 0 bytes
 .../web/tenant-dashboard/images/esb-logo.gif    |  Bin 1598 -> 0 bytes
 .../web/tenant-dashboard/images/gadget-logo.gif |  Bin 1368 -> 0 bytes
 .../web/tenant-dashboard/images/go-button.gif   |  Bin 2165 -> 0 bytes
 .../tenant-dashboard/images/governance-logo.gif |  Bin 1525 -> 0 bytes
 .../tenant-dashboard/images/identity-logo.gif   |  Bin 1398 -> 0 bytes
 .../images/inactive-go-button.gif               |  Bin 2135 -> 0 bytes
 .../web/tenant-dashboard/images/mashup-logo.gif |  Bin 1440 -> 0 bytes
 .../web/tenant-dashboard/images/mb_logo.gif     |  Bin 1603 -> 0 bytes
 .../images/service-configuration.gif            |  Bin 389 -> 0 bytes
 .../resources/web/tenant-dashboard/index.jsp    |  244 ----
 .../web/tenant-dashboard/js/configurations.js   |  381 ------
 .../web/tenant-dashboard/js/dashboard.js        |   12 -
 .../modules/distribution/INSTALL.txt            |   61 -
 .../modules/distribution/LICENSE.txt            |  488 --------
 .../modules/distribution/README.txt             |   42 -
 .../modules/distribution/lib/home/faq.html      |  392 ------
 .../distribution/lib/home/images/bottom.gif     |  Bin 523 -> 0 bytes
 .../distribution/lib/home/images/bullet-01.gif  |  Bin 159 -> 0 bytes
 .../distribution/lib/home/images/content-bg.gif |  Bin 233 -> 0 bytes
 .../distribution/lib/home/images/favicon.ico    |  Bin 17542 -> 0 bytes
 .../lib/home/images/feature-01-icon.gif         |  Bin 2825 -> 0 bytes
 .../lib/home/images/feature-02-icon.gif         |  Bin 3361 -> 0 bytes
 .../lib/home/images/feature-03-icon.gif         |  Bin 3285 -> 0 bytes
 .../lib/home/images/feature-middle-bg.gif       |  Bin 1139 -> 0 bytes
 .../distribution/lib/home/images/intro-bg.gif   |  Bin 3964 -> 0 bytes
 .../distribution/lib/home/images/intro-text.gif |  Bin 4082 -> 0 bytes
 .../distribution/lib/home/images/left-bg.gif    |  Bin 1135 -> 0 bytes
 .../distribution/lib/home/images/logo.gif       |  Bin 11127 -> 0 bytes
 .../lib/home/images/powered-logo.gif            |  Bin 1280 -> 0 bytes
 .../distribution/lib/home/images/register.gif   |  Bin 6946 -> 0 bytes
 .../distribution/lib/home/images/sign-in.gif    |  Bin 3150 -> 0 bytes
 .../lib/home/images/stratos-products-new.jpg    |  Bin 25720 -> 0 bytes
 .../distribution/lib/home/images/title-bg.gif   |  Bin 1182 -> 0 bytes
 .../distribution/lib/home/images/top.gif        |  Bin 16149 -> 0 bytes
 .../distribution/lib/home/images/webinar.png    |  Bin 12318 -> 0 bytes
 .../lib/home/images/white-paper.png             |  Bin 15148 -> 0 bytes
 .../modules/distribution/lib/home/index.html    |  119 --
 .../lib/home/js/jquery-1.5.1.min.js             |   16 -
 .../lib/home/js/jquery.orbit-1.2.3.min.js       |   17 -
 .../distribution/lib/home/js/orbit-1.2.3.css    |  202 ---
 .../lib/home/js/orbit/left-arrow.png            |  Bin 860 -> 0 bytes
 .../distribution/lib/home/js/orbit/loading.gif  |  Bin 2608 -> 0 bytes
 .../lib/home/js/orbit/mask-black.png            |  Bin 705 -> 0 bytes
 .../lib/home/js/orbit/right-arrow.png           |  Bin 825 -> 0 bytes
 .../lib/home/js/orbit/rotator-black.png         |  Bin 733 -> 0 bytes
 .../lib/home/js/orbit/timer-black.png           |  Bin 705 -> 0 bytes
 .../modules/distribution/lib/home/style.css     |  160 ---
 .../modules/distribution/pom.xml                |  770 ------------
 .../distribution/qpid-resources/etc/config.xml  |  101 --
 .../qpid-resources/etc/jmxremote.access         |   23 -
 .../qpid-resources/etc/virtualhosts.xml         |   62 -
 .../distribution/qpid-resources/qpid.xml        |   25 -
 .../modules/distribution/release-notes.html     |  134 --
 .../modules/distribution/src/assembly/bin.xml   |  571 ---------
 .../modules/distribution/src/assembly/dist.xml  |   45 -
 .../distribution/src/assembly/filter.properties |   26 -
 .../distribution/src/bin/add_entry_zone_file.sh |   50 -
 .../src/bin/git-folder-structure.sh             |   47 -
 .../distribution/src/bin/manage-git-repo.sh     |  118 --
 .../src/bin/remove_entry_zone_file.sh           |   55 -
 .../distribution/src/bin/set-mysql-password.sh  |   45 -
 .../modules/distribution/src/bin/stratos.bat    |  170 ---
 .../modules/distribution/src/bin/stratos.sh     |  298 -----
 .../distribution/src/bin/update-instance.sh     |   34 -
 .../WebContent/META-INF/MANIFEST.MF             |    3 -
 .../WebContent/WEB-INF/web.xml                  |    7 -
 .../WebContent/dashboards/as.html               |   69 --
 .../WebContent/dashboards/bam.html              |   88 --
 .../WebContent/dashboards/bps.html              |   51 -
 .../WebContent/dashboards/brs.html              |   22 -
 .../WebContent/dashboards/cep.html              |   82 --
 .../WebContent/dashboards/csg.html              |   11 -
 .../dashboards/css/features-dashboard.css       |   55 -
 .../WebContent/dashboards/dss.html              |   75 --
 .../WebContent/dashboards/esb.html              |   70 --
 .../WebContent/dashboards/greg.html             |   94 --
 .../WebContent/dashboards/gs.html               |   90 --
 .../WebContent/dashboards/images/black.png      |  Bin 7338 -> 0 bytes
 .../dashboards/images/configure_db.png          |  Bin 43279 -> 0 bytes
 .../dashboards/images/tenant_isolation.png      |  Bin 67219 -> 0 bytes
 .../images/usage_metering_and_throttling.jpg    |  Bin 44100 -> 0 bytes
 .../WebContent/dashboards/is.html               |   98 --
 .../WebContent/dashboards/manager.html          |   68 -
 .../WebContent/dashboards/mb.html               |   81 --
 .../WebContent/dashboards/ms.html               |   81 --
 .../WebContent/dashboards/server.jsp            |  152 ---
 .../css/features-dashboard-new.css              |  155 ---
 .../WebContent/tenant-dashboard/css/ie7.css     |    8 -
 .../tenant-dashboard/images/arrow-blue.png      |  Bin 815 -> 0 bytes
 .../tenant-dashboard/images/arrow-white.png     |  Bin 846 -> 0 bytes
 .../WebContent/tenant-dashboard/images/back.jpg |  Bin 1496 -> 0 bytes
 .../tenant-dashboard/images/boxes.png           |  Bin 645 -> 0 bytes
 .../images/dashboard-back-repeat.png            |  Bin 696 -> 0 bytes
 .../tenant-dashboard/images/workAreaBack.png    |  Bin 760 -> 0 bytes
 .../WebContent/tenant-dashboard/index.html      |  173 ---
 .../WebContent/tenant-dashboard/index.jsp       |  205 ---
 .../tenant-dashboard/js/jquery-1.7.1.min.js     |    4 -
 .../tenant-dashboard/js/jquery.masonry.min.js   |   10 -
 .../js/jquery/jquery-1.5.1.min.js               |   16 -
 .../js/jquery/jquery.ui.core.js                 |    1 -
 .../js/jquery/jquery.ui.core.min.js             |   17 -
 .../js/jquery/jquery.ui.tabs.min.js             |   35 -
 .../js/jquery/jquery.ui.widget.min.js           |   15 -
 .../js/jquery/jquery.validate.js                | 1166 ------------------
 .../ui-bg_diagonals-thick_18_b81900_40x40.png   |  Bin 260 -> 0 bytes
 .../ui-bg_diagonals-thick_20_666666_40x40.png   |  Bin 251 -> 0 bytes
 .../images/ui-bg_flat_10_000000_40x100.png      |  Bin 178 -> 0 bytes
 .../images/ui-bg_glass_100_f6f6f6_1x400.png     |  Bin 104 -> 0 bytes
 .../images/ui-bg_glass_100_fdf5ce_1x400.png     |  Bin 125 -> 0 bytes
 .../images/ui-bg_glass_65_ffffff_1x400.png      |  Bin 105 -> 0 bytes
 .../ui-bg_gloss-wave_35_f6a828_500x100.png      |  Bin 3762 -> 0 bytes
 .../ui-bg_highlight-soft_100_eeeeee_1x100.png   |  Bin 90 -> 0 bytes
 .../ui-bg_highlight-soft_75_ffe45c_1x100.png    |  Bin 129 -> 0 bytes
 .../images/ui-icons_222222_256x240.png          |  Bin 4369 -> 0 bytes
 .../images/ui-icons_228ef1_256x240.png          |  Bin 4369 -> 0 bytes
 .../images/ui-icons_ef8c08_256x240.png          |  Bin 5355 -> 0 bytes
 .../images/ui-icons_ffd27a_256x240.png          |  Bin 4369 -> 0 bytes
 .../images/ui-icons_ffffff_256x240.png          |  Bin 4369 -> 0 bytes
 .../ui-lightness/jquery-ui-1.8.14.custom.css    |  568 ---------
 .../themes/ui-lightness/jquery.ui.accordion.css |   19 -
 .../themes/ui-lightness/jquery.ui.all.css       |   11 -
 .../ui-lightness/jquery.ui.autocomplete.css     |   53 -
 .../themes/ui-lightness/jquery.ui.base.css      |   11 -
 .../themes/ui-lightness/jquery.ui.button.css    |   38 -
 .../themes/ui-lightness/jquery.ui.core.css      |   41 -
 .../ui-lightness/jquery.ui.datepicker.css       |   68 -
 .../themes/ui-lightness/jquery.ui.dialog.css    |   21 -
 .../ui-lightness/jquery.ui.progressbar.css      |   11 -
 .../themes/ui-lightness/jquery.ui.resizable.css |   20 -
 .../ui-lightness/jquery.ui.selectable.css       |   10 -
 .../themes/ui-lightness/jquery.ui.slider.css    |   24 -
 .../themes/ui-lightness/jquery.ui.tabs.css      |   18 -
 .../themes/ui-lightness/jquery.ui.theme.css     |  249 ----
 .../features-dashboard/features-dashboard.xml   |  762 ------------
 .../modules/features-dashboard/pom.xml          |  155 ---
 .../manager/feature/dashbord/ui/beans/Data.java |   61 -
 .../manager/feature/dashbord/ui/beans/Link.java |   41 -
 .../feature/dashbord/ui/beans/Service.java      |   72 --
 .../feature/dashbord/ui/beans/Story.java        |   62 -
 .../feature/dashbord/ui/utils/Utils.java        |  177 ---
 .../stratos_controller/modules/features/pom.xml |   47 -
 .../features/service/etc/feature.properties     |  245 ----
 .../service/org.apache.stratos.feature/pom.xml  |   85 --
 .../org.apache.stratos.server.feature/pom.xml   |  236 ----
 .../org.apache.stratos.ui.feature/pom.xml       |  207 ----
 .../modules/features/service/pom.xml            |   50 -
 .../modules/integration/pom.xml                 |  164 ---
 .../integration/tests/LoginLogoutTestCase.java  |   49 -
 .../tests/SecurityVerificationTestCase.java     |   27 -
 .../tests/StratosManagerTestServerManager.java  |   54 -
 .../integration/tests/TenantMgtTestCase.java    |   92 --
 .../src/test/resources/instrumentation.txt      |    2 -
 .../src/test/resources/keys/wso2carbon.jks      |  Bin 33260 -> 0 bytes
 .../integration/src/test/resources/testng.xml   |   17 -
 .../stratos_controller/modules/login/pom.xml    |  142 ---
 .../src/main/resources/META-INF/component.xml   |   21 -
 .../login/src/main/resources/TenantService.wsdl |  577 ---------
 .../web/tenant-login/css/loginpage.css          |  268 ----
 .../resources/web/tenant-login/css/tenant.css   |   62 -
 .../docs/images/sign-in-no-domain.png           |  Bin 10682 -> 0 bytes
 .../docs/images/sign-in-with-domain.png         |  Bin 8233 -> 0 bytes
 .../web/tenant-login/docs/userguide.html        |  114 --
 .../domain_rename_checker_ajaxprocessor.jsp     |   47 -
 .../web/tenant-login/images/body-bg.gif         |  Bin 923 -> 0 bytes
 .../web/tenant-login/images/feature-01-icon.gif |  Bin 2825 -> 0 bytes
 .../web/tenant-login/images/feature-02-icon.gif |  Bin 3361 -> 0 bytes
 .../web/tenant-login/images/feature-03-icon.gif |  Bin 3285 -> 0 bytes
 .../tenant-login/images/google-apps-login.gif   |  Bin 4189 -> 0 bytes
 .../web/tenant-login/images/link-icon.gif       |  Bin 118 -> 0 bytes
 .../web/tenant-login/images/login-bg.gif        |  Bin 56670 -> 0 bytes
 .../resources/web/tenant-login/images/logo.gif  |  Bin 17603 -> 0 bytes
 .../tenant-login/images/paas-login-1pix-1.gif   |  Bin 43 -> 0 bytes
 .../web/tenant-login/images/paas-login-1pix.gif |  Bin 43 -> 0 bytes
 .../web/tenant-login/images/powered.gif         |  Bin 1280 -> 0 bytes
 .../tenant-login/images/reg-button-hover.gif    |  Bin 3824 -> 0 bytes
 .../web/tenant-login/images/reg-button.gif      |  Bin 3852 -> 0 bytes
 .../web/tenant-login/images/register.gif        |  Bin 4099 -> 0 bytes
 .../tenant-login/images/st-login-body-bg.gif    |  Bin 2215 -> 0 bytes
 .../tenant-login/images/st-login-content-bg.gif |  Bin 1060 -> 0 bytes
 .../tenant-login/images/st-login-footer-bg.gif  |  Bin 749 -> 0 bytes
 .../tenant-login/images/st-login-header-bg.gif  |  Bin 64503 -> 0 bytes
 .../web/tenant-login/images/t-right-logo.gif    |  Bin 2445 -> 0 bytes
 .../main/resources/web/tenant-login/js/login.js |   27 -
 .../web/tenant-login/login_ajaxprocessor.jsp    |  331 -----
 .../web/tenant-login/terms/policy.html          |   72 --
 .../web/tenant-login/terms/support.html         |   39 -
 .../resources/web/tenant-login/terms/terms.html |   74 --
 .../modules/p2-profile-gen/pom.xml              |  417 -------
 .../stratos_controller/modules/styles/pom.xml   |   48 -
 .../modules/styles/product/pom.xml              |   85 --
 .../src/main/resources/META-INF/product.xml     |   28 -
 .../src/main/resources/web/product/about.html   |  132 --
 .../src/main/resources/web/styles/css/main.css  |  155 ---
 .../main/resources/web/styles/images/1px.gif    |  Bin 43 -> 0 bytes
 .../styles/images/esb-server-menu-header.gif    |  Bin 176 -> 0 bytes
 .../web/styles/images/leftRightSlider-dark.png  |  Bin 1103 -> 0 bytes
 .../resources/web/styles/images/menu_header.png |  Bin 227 -> 0 bytes
 .../web/styles/images/right-links-bg.gif        |  Bin 1070 -> 0 bytes
 .../web/styles/images/right-logo-bg.gif         |  Bin 3445 -> 0 bytes
 .../resources/web/styles/images/sc-back.png     |  Bin 16781 -> 0 bytes
 .../web/styles/images/sc-header-repeat.png      |  Bin 178 -> 0 bytes
 .../main/resources/web/styles/images/sclogo.png |  Bin 5136 -> 0 bytes
 .../modules/styles/service/pom.xml              |  143 ---
 .../src/main/resources/META-INF/product.xml     |   27 -
 .../service/src/main/resources/web/favicon.ico  |  Bin 17542 -> 0 bytes
 .../src/main/resources/web/styles/css/main.css  |  240 ----
 .../resources/web/styles/images/def-body-bg.gif |  Bin 419 -> 0 bytes
 .../web/styles/images/def-header-bg.gif         |  Bin 17875 -> 0 bytes
 .../web/styles/images/def-header-region-bg.gif  |  Bin 22784 -> 0 bytes
 .../main/resources/web/styles/images/logo.gif   |  Bin 1815 -> 0 bytes
 .../resources/web/styles/images/powered.gif     |  Bin 1773 -> 0 bytes
 .../resources/web/styles/images/right-logo.gif  |  Bin 6102 -> 0 bytes
 .../web/styles/images/t-right-logo.gif          |  Bin 3629 -> 0 bytes
 products/stratos_controller/pom.xml             |  419 -------
 .../resources/allthemes/Dark/admin/logo.gif     |  Bin 1551 -> 0 bytes
 .../resources/allthemes/Dark/admin/main.css     |  232 ----
 .../allthemes/Dark/admin/powered-stratos.gif    |  Bin 1515 -> 0 bytes
 .../allthemes/Dark/admin/right-logo.gif         |  Bin 2325 -> 0 bytes
 .../allthemes/Dark/admin/theme-header-bg.gif    |  Bin 4245 -> 0 bytes
 .../Dark/admin/theme-header-region-bg.gif       |  Bin 793 -> 0 bytes
 .../allthemes/Dark/admin/theme-menu-header.gif  |  Bin 261 -> 0 bytes
 .../Dark/admin/theme-menu-panel-l-bg.gif        |  Bin 312 -> 0 bytes
 .../Dark/admin/theme-menu-table-bg.gif          |  Bin 5671 -> 0 bytes
 .../Dark/admin/theme-right-links-bg.gif         |  Bin 1005 -> 0 bytes
 .../resources/allthemes/Dark/thumb.png          |  Bin 19546 -> 0 bytes
 .../allthemes/Default/admin/def-body-bg.gif     |  Bin 419 -> 0 bytes
 .../allthemes/Default/admin/def-header-bg.gif   |  Bin 17875 -> 0 bytes
 .../Default/admin/def-header-region-bg.gif      |  Bin 22784 -> 0 bytes
 .../resources/allthemes/Default/admin/logo.gif  |  Bin 1815 -> 0 bytes
 .../resources/allthemes/Default/admin/main.css  |  229 ----
 .../allthemes/Default/admin/powered-stratos.gif |  Bin 1515 -> 0 bytes
 .../allthemes/Default/admin/right-logo.gif      |  Bin 3629 -> 0 bytes
 .../resources/allthemes/Default/thumb.png       |  Bin 24432 -> 0 bytes
 .../resources/allthemes/Light/admin/logo.gif    |  Bin 1551 -> 0 bytes
 .../resources/allthemes/Light/admin/main.css    |  229 ----
 .../allthemes/Light/admin/menu_header.gif       |  Bin 243 -> 0 bytes
 .../allthemes/Light/admin/powered-stratos.gif   |  Bin 1515 -> 0 bytes
 .../allthemes/Light/admin/right-links-bg.gif    |  Bin 1191 -> 0 bytes
 .../allthemes/Light/admin/right-logo.gif        |  Bin 2325 -> 0 bytes
 .../allthemes/Light/admin/theme-header-bg.gif   |  Bin 3792 -> 0 bytes
 .../Light/admin/theme-header-region-b-bg.gif    |  Bin 121 -> 0 bytes
 .../Light/admin/theme-header-region-bg.gif      |  Bin 534 -> 0 bytes
 .../Light/admin/theme-menu-panel-l-bg.gif       |  Bin 772 -> 0 bytes
 .../Light/admin/theme-menu-table-bg.gif         |  Bin 5991 -> 0 bytes
 .../resources/allthemes/Light/thumb.png         |  Bin 18102 -> 0 bytes
 .../cloud-services-icons/appserver.gif          |  Bin 2086 -> 0 bytes
 .../resources/cloud-services-icons/bam.gif      |  Bin 1773 -> 0 bytes
 .../resources/cloud-services-icons/bps.gif      |  Bin 1531 -> 0 bytes
 .../resources/cloud-services-icons/brs-old.gif  |  Bin 1772 -> 0 bytes
 .../resources/cloud-services-icons/brs.gif      |  Bin 2170 -> 0 bytes
 .../resources/cloud-services-icons/cep.png      |  Bin 3218 -> 0 bytes
 .../resources/cloud-services-icons/cg.gif       |  Bin 2385 -> 0 bytes
 .../cloud-services-icons/csg-inactive.gif       |  Bin 3188 -> 0 bytes
 .../resources/cloud-services-icons/csg.gif      |  Bin 3176 -> 0 bytes
 .../resources/cloud-services-icons/ds.gif       |  Bin 2012 -> 0 bytes
 .../resources/cloud-services-icons/esb.gif      |  Bin 1787 -> 0 bytes
 .../resources/cloud-services-icons/gadget.gif   |  Bin 2242 -> 0 bytes
 .../cloud-services-icons/governance.gif         |  Bin 1977 -> 0 bytes
 .../resources/cloud-services-icons/identity.gif |  Bin 1936 -> 0 bytes
 .../cloud-services-icons/inactive-appserver.gif |  Bin 1957 -> 0 bytes
 .../cloud-services-icons/inactive-bam.gif       |  Bin 1647 -> 0 bytes
 .../cloud-services-icons/inactive-brs.gif       |  Bin 1874 -> 0 bytes
 .../cloud-services-icons/inactive-cep.png       |  Bin 2959 -> 0 bytes
 .../cloud-services-icons/inactive-esb.gif       |  Bin 1656 -> 0 bytes
 .../cloud-services-icons/inactive-gadget.gif    |  Bin 2087 -> 0 bytes
 .../inactive-governance.gif                     |  Bin 1850 -> 0 bytes
 .../cloud-services-icons/inactive-identity.gif  |  Bin 1794 -> 0 bytes
 .../cloud-services-icons/inactive-mashup.gif    |  Bin 1772 -> 0 bytes
 .../cloud-services-icons/inactive-mb.png        |  Bin 2746 -> 0 bytes
 .../resources/cloud-services-icons/mashup.gif   |  Bin 1850 -> 0 bytes
 .../resources/cloud-services-icons/mb.png       |  Bin 3139 -> 0 bytes
 .../resources/cloud-services-icons/pom.xml      |   72 --
 .../resources/cloud-services-icons/ss.gif       |  Bin 2432 -> 0 bytes
 .../resources/cloud-services-icons/ts.gif       |  Bin 2475 -> 0 bytes
 .../powerded-by-logos/appserver-logo.gif        |  Bin 1473 -> 0 bytes
 .../resources/powerded-by-logos/bam-logo.gif    |  Bin 1690 -> 0 bytes
 .../resources/powerded-by-logos/bps-logo.gif    |  Bin 1606 -> 0 bytes
 .../resources/powerded-by-logos/brs-logo.gif    |  Bin 1596 -> 0 bytes
 .../resources/powerded-by-logos/csg-logo.gif    |  Bin 2030 -> 0 bytes
 .../resources/powerded-by-logos/ds-logo.gif     |  Bin 1528 -> 0 bytes
 .../resources/powerded-by-logos/esb-logo.gif    |  Bin 1598 -> 0 bytes
 .../resources/powerded-by-logos/gadget-logo.gif |  Bin 1368 -> 0 bytes
 .../powerded-by-logos/governance-logo.gif       |  Bin 1525 -> 0 bytes
 .../powerded-by-logos/identity-logo.gif         |  Bin 1398 -> 0 bytes
 .../resources/powerded-by-logos/mashup-logo.gif |  Bin 1440 -> 0 bytes
 1051 files changed, 34992 insertions(+), 34992 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/INSTALL.txt
----------------------------------------------------------------------
diff --git a/products/cloud-controller/INSTALL.txt b/products/cloud-controller/INSTALL.txt
new file mode 100644
index 0000000..e3e53be
--- /dev/null
+++ b/products/cloud-controller/INSTALL.txt
@@ -0,0 +1,75 @@
+Installing  Apache Stratos Cloud Controller Server (CC) 3.0.0-SNAPSHOT
+===================================================================
+
+1. The directory containing this INSTALL.txt file will be the root and it will be
+   treated as Carbon home directory and let it be CARBON_HOME.
+
+2. All the shell scripts and .bat files are available in CARBON_HOME/bin folder.
+
+3. To start CC one can use either stratos.sh in all Unix
+   systems & stratos.bat file on Windows operating systems.
+
+4. Either of the following commands can be used to start CC
+      i)  ./stratos.sh {console|start|stop|restart|version}
+      ii)  stratos.bat {start|stop|version}
+
+            Usage: stratos.sh [command] [options] [system-properties]
+
+                command:
+                    --start	    Start CC as a Unix daemon in the background
+                    --console	    Start CC as a Unix daemon in the foreground
+                    --stop	    Stop the CC Unix daemon
+                    --restart	    Restart the CC Unix daemon
+                    --version	    What version of the CC server are you running
+
+                options:
+                    --debug <port>  Start the server in remote debugging mode.
+                                    port: The remote debugging port.
+                    --cleanRegistry Clean registry space
+                    --reset         Clean the cache & component repository and the
+                                    registry space
+
+                system-properties:
+                    -DhttpPort	    Overrides the HTTP port defined in the
+                                    catalina-server.xml file
+                    -DhttpsPort	    Overrides the HTTPS port defined in the
+                                    catalina-server.xml file
+                    -DSynapseServerName=[server-name]
+                                    Server name of the synapse server
+                    -DosgiConsole=[port]
+                                    Start Carbon with Equinox OSGi console.
+                                    If the optional 'port' parameter is provided, a
+                                    telnet port will be opened
+                    -DosgiDebugOptions=[options-file]
+                                    Start Carbon with OSGi debugging enabled.
+                                    If the optional 'options-file is provided, the
+                                    OSGi debug options will be loaded from it.
+                    -Dsetup	    Clean the Registry database & other
+                                    configuration, recreate DB, re-populate the
+                                    configuration, and start Carbon
+                    -Dcarbon.registry.root
+                                    The root of the Registry used by
+                                    this Carbon instance
+                    -Dweb.location  The directory into which UI artifacts
+                                    included in an Axis2 AAR file are extracted to
+                    -DworkerNode=true
+                                    Set this system property when starting as a worker node.
+                                    This is required in clustered setups with master and worker nodes.
+
+System Requirements
+=======================
+1. Minimum memory - 1.5GB
+2. Processor      - Pentium 800MHz or equivalent at minimum
+3. Java SE Development Kit 1.6.24 or higher
+4. The Management Console requires you to enable Javascript of the Web browser,
+   with MS IE 7. In addition to JavaScript, ActiveX should also be enabled
+   with IE. This can be achieved by setting your security level to
+   medium or lower.
+5. To compile and run the sample clients, an Ant version is required. Ant 1.7.0
+   version is recommended
+6. To build Apache Stratos CC from the Source distribution, it is necessary that you have
+   JDK 1.6.24 version and Maven 3.0.4 or later
+
+
+
+


[06/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/src/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/src/assembly/bin.xml b/products/stratos_controller/modules/distribution/src/assembly/bin.xml
deleted file mode 100755
index 9365a06..0000000
--- a/products/stratos_controller/modules/distribution/src/assembly/bin.xml
+++ /dev/null
@@ -1,571 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<assembly>
-    <!--<id>bin</id>-->
-    <formats>
-        <format>zip</format>
-    </formats>
-    <includeBaseDirectory>false</includeBaseDirectory>
-
-    <fileSets>
-        <fileSet>
-            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
-            <excludes>
-                <exclude>**/*.sh</exclude>
-                <exclude>**/wso2server.bat</exclude>
-                <exclude>**/axis2services/sample01.aar</exclude>
-                <exclude>**/axis2services/echo/**</exclude>
-                <exclude>**/axis2services/version/**</exclude>
-                <exclude>**/pom.xml</exclude>
-                <exclude>**/version.txt</exclude>
-                <exclude>**/INSTALL.txt</exclude>
-                <exclude>**/LICENSE.txt</exclude>
-                <exclude>**/release-notes.html</exclude>
-                <exclude>**/carbon.xml</exclude>
-                <exclude>**/README*</exclude>
-		<!--Removing relying party ui bundle to fix STRATOS-1149 -->
-                <exclude>**/org.wso2.carbon.identity.relyingparty.ui_4.1.0-SNAPSHOT.jar</exclude>
-                <exclude>**/org.wso2.carbon.identity.relyingparty.stub_4.1.0-SNAPSHOT.jar</exclude>
-		<!--Removing roles mgt ui to fix STRATOS-2114-->
-                <exclude>**/org.wso2.carbon.roles.mgt.ui_4.1.0-SNAPSHOT.jar</exclude>
-                <exclude>**/org.wso2.carbon.roles.mgt.stub_4.1.0-SNAPSHOT.jar</exclude>
-               <exclude>**/log4j.properties</exclude>
-            </excludes>
-        </fileSet>	
-        <fileSet>
-            <directory>target/shopping-cart-global-${shoppingcart.global.version}</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/samples/bin</outputDirectory>
-            <includes>
-                <include>**/*.car</include>
-                <include>**/*.properties</include>
-            </includes>
-        </fileSet>
-        <fileSet>
-            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
-            <excludes>
-                <exclude>**/daemon.sh</exclude>
-                <exclude>**/stratos.bat</exclude>
-		<exclude>**/stratos.sh</exclude>
-		 <exclude>**/log4j.properties</exclude>
-            </excludes>
-            <includes>
-                <include>**/*.sh</include>
-                <include>**/native/*</include>
-            </includes>
-            <fileMode>755</fileMode>
-        </fileSet>
-	<fileSet>
-            <directory>../../conf/synapse-configs</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/synapse-configs
-            </outputDirectory>
-        </fileSet>
-        <fileSet>
-            <directory>../../conf</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
-            <includes>
-                <include>**/*</include>
-            </includes>
-            <excludes>
-                <exclude>**/samples-desc.xml</exclude>
-                <exclude>**/identity.xml</exclude>
-                <exclude>**/user-mgt.xml</exclude>
-                <exclude>**/datasources.properties</exclude>
-                <exclude>.svn</exclude>
-                <exclude>email-bill-generated.xml</exclude>
-                <exclude>email-billing-notifications.xml</exclude>
-                <exclude>email-new-tenant-activation.xml</exclude>
-                <exclude>email-new-tenant-registration.xml</exclude>
-                <exclude>email-password-reset.xml</exclude>
-                <exclude>email-payment-received-customer.xml</exclude>
-				<exclude>email-registration-payment-received-customer.xml</exclude>
-                <exclude>email-payment-received-wso2.xml</exclude>
-                <exclude>email-registration-complete.xml</exclude>
-                <exclude>email-registration-moderation.xml</exclude>
-                <exclude>email-registration.xml</exclude>
-                <exclude>email-update.xml</exclude>
-		<exclude>tenant-reg-agent.xml</exclude>
-                <exclude>features-dashboard.xml</exclude>
-            </excludes>
-        </fileSet>
-        <fileSet>
-            <directory>../../conf</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/email</outputDirectory>
-            <includes>
-                <include>email-bill-generated.xml</include>
-                <include>email-billing-notifications.xml</include>
-                <include>email-new-tenant-activation.xml</include>
-                <include>email-new-tenant-registration.xml</include>
-                <include>email-password-reset.xml</include>
-                <include>email-payment-received-customer.xml</include>
-                <include>email-registration-payment-received-customer.xml</include>
-				<include>email-payment-received-wso2.xml</include>
-                <include>email-registration-complete.xml</include>
-                <include>email-registration-moderation.xml</include>
-                <include>email-registration.xml</include>
-                <include>email-update.xml</include>
-            </includes>
-        </fileSet>
-	<fileSet>
-            <directory>../../conf</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/multitenancy</outputDirectory>
-            <includes>
-                <include>tenant-reg-agent.xml</include>
-                <include>features-dashboard.xml</include>
-            </includes>
-        </fileSet>
-	<fileSet>
-            <directory>../../conf</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/datasources</outputDirectory>
-            <includes>
-                <include>stratos-datasources.xml</include>
-            </includes>
-        </fileSet>
-
-        <!-- copy documentation -->
-        <fileSet>
-            <directory>target/site</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/docs</outputDirectory>
-            <fileMode>755</fileMode>
-        </fileSet>
-
-        <!-- Copying themes, cloud icons-->
-         <fileSet>
-            <directory>../../resources</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/resources</outputDirectory>
-            <fileMode>755</fileMode>
-            <includes>
-                <include>allthemes/**</include>
-                <include>powerded-by-logos/**</include>
-            </includes>
-            <excludes>
-                <exclude>.svn</exclude>
-            </excludes>
-        </fileSet>
-
-        <!--start BAM related files -->
-        <!--<fileSet>
-            <directory>resources/dataservices</directory>
-            <outputDirectory>
-                ${pom.artifactId}-${pom.version}/repository/deployment/server/dataservices
-            </outputDirectory>
-            <includes>
-                <include>*.dbs</include>
-                <include>*.xml</include>
-            </includes>
-        </fileSet>
-        <fileSet>
-            <directory>resources/dataservices/bam</directory>
-            <outputDirectory>
-                ${pom.artifactId}-${pom.version}/repository/deployment/server/dataservices
-            </outputDirectory>
-            <includes>
-                <include>*.dbs</include>
-                <include>*.xml</include>
-            </includes>
-        </fileSet>-->
-
-        <fileSet>
-            <directory>resources</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources</outputDirectory>
-            <includes>
-                <include>**/*</include>
-            </includes>
-        </fileSet>
-	<!--fileSet>
-            <directory>resources/dbscripts</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts/</outputDirectory>
-            <includes>
-                <include>**/*</include>
-            </includes>
-        </fileSet-->
-        <!--end BAM related files -->
-
-	<!--qpid related files -->
-	<fileSet>
-           <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/advanced/</directory>
-           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/advanced</outputDirectory>
-	   <includes>
-               <include>**/*</include>
-           </includes>
-	    <excludes>
-                <exclude>**/jmx.xml</exclude>
-		<exclude>**/tenant-axis2.xml</exclude>
-		<exclude>**/authenticators.xml</exclude>
-		<exclude>**/logging-config.xml</exclude>
-            </excludes>
-        </fileSet>
-	<!-- end of qpid related files -->
-
-	<!-- adc.mgt related files -->
-	<fileSet>
-           <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/</directory>
-           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
-	   <includes>
-               <include>cartridge-config.properties</include>
-               <include>policies.xml</include>
-           </includes>
-        </fileSet>
-        <fileSet>
-           <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc</directory>
-           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-	   <includes>
-               <include>policies.xsd</include>
-           </includes>
-        </fileSet>
-	<!-- end of adc.mgt related files -->
-
-	 <fileSet>
-           <directory>../p2-profile/target/wso2carbon-core-${carbon.platform.version}/repository/conf/etc/</directory>
-           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-           <includes>
-               <include>**/cassandra.yaml</include>
-           </includes>
-        </fileSet>
-	<fileSet>
-           <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/</directory>
-           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
-	   <includes>
-       		<include>**/identity.xml</include>
-		<include>**/rule-engine-config.xml</include>
-           </includes>
-        </fileSet>
-
-	<fileSet>
-           <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/multitenancy/</directory>
-           <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/multitenancy/</outputDirectory>
-           <includes>
-                <include>**/multitenancy-packages.xml</include>
-                <include>**/stratos.xml</include>
-                <include>**/eula.xml</include>
-                <include>**/usage-throttling-agent-config.xml</include>
-		<!--include>**/cloud-services-desc.xml</include-->
-           </includes>
-        </fileSet>
-
-		<!-- copy the landing page webapp -->
-        <fileSet>
-			<directory>lib/home</directory>
-			<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/STRATOS_ROOT</outputDirectory>
-		</fileSet>
-
-		<fileSet>
-			<directory>../../modules/features-dashboard/target/</directory>
-			<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
-			<includes>
-				<include>**/*.war</include>
-			</includes>
-		</fileSet>
-        <fileSet>
-			<directory>../../resources/cloud-services-icons/target/</directory>
-			<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
-			<includes>
-				<include>**/*.war</include>
-			</includes>
-		</fileSet>
-		<fileSet>
-            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/identity/</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts/identity</outputDirectory>
-            <includes>
-                <include>**/**.sql</include>
-            </includes>
-		</fileSet>
-
-		<!-- copy the billing h2 db -->
-		<fileSet>
-			<directory>target/database</directory>
-			<outputDirectory>${pom.artifactId}-${pom.version}/repository/database</outputDirectory>
-		</fileSet>
-		<!-- get axis2_1.6.1.wso2v9.jar from carbon kernel patch 0002 -->
-                <fileSet>
-                   <directory>../p2-profile-gen/target/WSO2-CARBON-PATCH-4.1.0-0002/</directory>
-                   <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/patches</outputDirectory>
-                   <includes>
-                       <include>**/patch0002/axis2_1.6.1.wso2v9.jar</include>
-                   </includes>
-                </fileSet>
-		<fileSet>
-                   <directory>../../billing-script/</directory>
-                   <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts</outputDirectory>
-                </fileSet>
- 
-    </fileSets>
-
-    <dependencySets>
-        <dependencySet>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/lib</outputDirectory>
-            <includes>
-                <include>bouncycastle:bcprov-jdk15:jar</include>
-            </includes>
-        </dependencySet>
-	<!-- use the new tool to create a bundles -->
-        <dependencySet>
-            <outputDirectory>${pom.artifactId}-${pom.version}/lib/core/WEB-INF/lib</outputDirectory>
-            <includes>
-                <include>org.wso2.carbon:org.wso2.carbon.mediator.bridge:jar</include>
-            </includes>
-        </dependencySet>
-        <!--dependencySet>
-            <outputDirectory>wso2elb-${pom.version}/samples/axis2Client/client_repo/modules
-            </outputDirectory>
-            <includes>
-                <include>org.apache.axis2:addressing:mar</include>
-                <include>org.apache.rampart:rampart:mar</include>
-                <include>org.apache.sandesha2:sandesha2:mar</include>
-            </includes>
-            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
-            </outputFileNameMapping>
-        </dependencySet>
-        <dependencySet>
-            <outputDirectory>wso2elb-${pom.version}/samples/axis2Server/repository/modules
-            </outputDirectory>
-            <includes>
-                <include>org.apache.axis2:addressing:mar</include>
-                <include>org.apache.rampart:rampart:mar</include>
-                <include>org.apache.sandesha2:sandesha2:mar</include>
-            </includes>
-            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
-            </outputFileNameMapping>
-        </dependencySet-->
-        <dependencySet>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/axis2/client/lib</outputDirectory>
-            <includes>
-                <include>bouncycastle:bcprov-jdk15:jar</include>
-            </includes>
-            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
-            </outputFileNameMapping>
-        </dependencySet>
-        <dependencySet>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/client/modules
-            </outputDirectory>
-            <includes>
-                <include>org.apache.rampart:rampart:mar</include>
-            </includes>
-        </dependencySet>
-	<dependencySet>
-            <outputDirectory>${pom.artifactId}-${pom.version}/client-lib</outputDirectory>
-            <includes>
-                <include>org.wso2.andes:andes-client:jar</include>
-                <include>org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar</include>
-                <include>org.wso2.carbon:org.wso2.carbon.event.client.stub:jar</include>
-                <include>org.wso2.carbon:org.wso2.carbon.event.client:jar</include>
-		<include>slf4j.wso2:slf4j:jar</include>
-                <include>log4j:log4j:jar</include>
-            </includes>
-        </dependencySet>
-	
-	<!--<dependencySet>
-		<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
-		<includes>
-                    <include>org.wso2.carbon:features-dashboard:war</include>
-		</includes>
-	</dependencySet>-->
-    </dependencySets>
-
-    <files>
-        <file>
-            <source>INSTALL.txt</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>../../conf/samples-desc.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>../../conf/datasources.properties</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-	<!--file>
-            <source>../../conf/cartridge-config.properties</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file-->
-	<file>
-            <source>../../conf/cloud-services-desc.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/multitenancy</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>README.txt</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>LICENSE.txt</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>release-notes.html</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/conf/carbon.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
-            <filtered>true</filtered>
-        </file>
-        <file>
-            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/README.txt</source>
-
-            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/version.txt</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <!--file>
-            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/wso2server.bat</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file-->
-	<!--file>
-            <source>bam-resources/bam.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file-->
-        <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/security/userRP.jks</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/security/</outputDirectory>
-            <fileMode>644</fileMode>
-        </file>
-	<!--file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/event-broker.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
-	    <filtered>true</filtered>
-	    <fileMode>644</fileMode>	
-        </file-->
-	
-	<!-- Including logging-config.xml file -->
- 	<file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/logging-config.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc/</outputDirectory>
-        </file>
-	<file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/log4j.properties</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
-        </file>
-	<file>
-            <source>src/bin/stratos.sh</source>
-            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-	<file>
-            <source>src/bin/stratos.bat</source>
-            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-	<file>
-            <source>src/bin/git-folder-structure.sh</source>
-            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-	<file>
-            <source>src/bin/manage-git-repo.sh</source>
-            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-	<file>
-            <source>src/bin/set-mysql-password.sh</source>
-            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-        <file>
-            <source>src/bin/add_entry_zone_file.sh</source>
-            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-        <file>
-            <source>src/bin/remove_entry_zone_file.sh</source>
-            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-	<file>
-            <source>src/bin/update-instance.sh</source>
-            <outputDirectory>apache-stratos-sc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-         <!-- Including log4j.properties file -->
-        <!--file>
-            <source>
-                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/log4j.properties
-
-            </source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
-        </file-->      
-	<file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/claim-config.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
-	    <filtered>true</filtered>
-	    <fileMode>644</fileMode>	
-        </file>
-
-        <!--file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/sso-idp-config.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
-        </file-->
-
-	<!-- Including coordination-client-config.xml file -->
-        <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/coordination-client-config.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-        </file>
-	<!-- Ntask config file -->
-	<file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/tasks-config.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-        </file>
-	<file>
-            <source>../../conf/zoo.cfg</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-        </file>
-	<file>
-            <source>../../conf/jaas.conf</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/security</outputDirectory>
-	    <destName>jaas.conf</destName>
-            <filtered>true</filtered>
-        </file>
-    </files>
-</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/src/assembly/dist.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/src/assembly/dist.xml b/products/stratos_controller/modules/distribution/src/assembly/dist.xml
deleted file mode 100755
index 39fcd1f..0000000
--- a/products/stratos_controller/modules/distribution/src/assembly/dist.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<assembly>
-    <formats>
-        <format>zip</format>
-    </formats>
-    
-    <includeBaseDirectory>false</includeBaseDirectory>
-    <fileSets>
-      <!-- Copying p2 profile and osgi bundles-->
-        <fileSet>
-            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/components</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/components</outputDirectory>
-            <excludes>
-                <exclude>**/eclipse.ini</exclude>
-                <exclude>**/*.lock</exclude>
-                <exclude>**/.data</exclude>
-                <exclude>**/.settings</exclude>
-            </excludes>
-        </fileSet>
-        <fileSet>
-            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
-            <includes>
-                <include>**/claim-config.xml</include>
-            </includes>
-        </fileSet>
-    </fileSets>
-</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/src/assembly/filter.properties
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/src/assembly/filter.properties b/products/stratos_controller/modules/distribution/src/assembly/filter.properties
deleted file mode 100755
index 95d216c..0000000
--- a/products/stratos_controller/modules/distribution/src/assembly/filter.properties
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-product.name=Apache Stratos Controller
-product.key=SCC
-product.version=3.0.0-SNAPSHOT
-hotdeployment=true
-hotupdate=false
-carbon.version=4.1.3
-default.server.role=Stratos Controller

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/src/bin/add_entry_zone_file.sh
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/src/bin/add_entry_zone_file.sh b/products/stratos_controller/modules/distribution/src/bin/add_entry_zone_file.sh
deleted file mode 100755
index 63fa028..0000000
--- a/products/stratos_controller/modules/distribution/src/bin/add_entry_zone_file.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/bash
-zone_file=$3
-subdomain=$1
-ip=$2
-
-# check the file
-if [ -f {$zone_file} ]; then
-	echo "Error: zone does not exist"
-	exit 1
-fi
-echo "File $zone_file exists"
-
-#appending the zone file
-echo "$subdomain IN A $ip">> $zone_file
-echo "Added subdomain to the file"
-
-# get serial number
-serial=$(grep 'Serial' $zone_file | awk '{print $1}')
-echo "Serial number " $serial
-# get serial number's date
-serialdate=$(echo $serial | cut -b 1-8)
-# get today's date in same style
-date=$(date +%Y%m%d)
-
-
-#Serial number's date
-serialdate=$(echo $serial | cut -b 1-8)
-echo "serial date" $serialdate
-# get today's date in same style
-date=$(date +%Y%m%d)
-echo "Now date" $date
-
-# compare date and serial date
-if [ $serialdate = $date ]
-	then
-		# if equal, just add 1
-		newserial=$(expr $serial + 1)
-		echo "same date"
-	else
-		# if not equal, make a new one and add 00
-		newserial=$(echo $date"00")
-fi
-
-echo "Adding subdomain $1 and ip $2 to $3"
-sed -i "s/.*Serial.*/ \t\t\t\t$newserial ; Serial./" $zone_file
-
-
-
-#reloading bind server
-/etc/init.d/bind9 reload

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/src/bin/git-folder-structure.sh
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/src/bin/git-folder-structure.sh b/products/stratos_controller/modules/distribution/src/bin/git-folder-structure.sh
deleted file mode 100755
index 2b5439b..0000000
--- a/products/stratos_controller/modules/distribution/src/bin/git-folder-structure.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/bash
-
-tenant=""
-cartridge=""
-ads_git_url="localhost"
-
-function help {
-    echo "Usage:git-folder-structure  <mandatory arguments>"
-    echo "    Usage:"
-    echo "    	  git-folder-structure <tenant> <cartridge> [webapp=readme file description with space replace with #] "
-    echo "    eg:"
-    echo "    	  git-folder-structure tenant1 as webapp=copy#war#files#here"
-    echo ""
-}
-
-function main {
-
-if [[ (-z $tenant || -z $cartridge ) ]]; then
-    help
-    exit 1
-fi
-
-}
-
-tenant=$1
-cartridge=$2
-
-if [[ (-n $tenant && -n $cartridge) ]]; then
-	cd /tmp/
-	rm -fr ${tenant}/${cartridge}
-	git clone git@localhost:${tenant}/${cartridge}
-	cd ${cartridge}
-	git pull origin master
-	shift
-	shift
-	for IN in "$@"; do
-		IFS='=' read -ra ADDR <<< "$IN"
-		mkdir -p ${ADDR[0]}
-		echo ${ADDR[1]} | sed -e 's/#/ /g' > ${ADDR[0]}/README.txt
-		git add ${ADDR[0]}
-		git commit -a -m 'Folder structure commit'
-		git push origin master
-	done
-	rm -fr ${cartridge}	
-fi	
-
-main

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/src/bin/manage-git-repo.sh
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/src/bin/manage-git-repo.sh b/products/stratos_controller/modules/distribution/src/bin/manage-git-repo.sh
deleted file mode 100755
index b0dfa80..0000000
--- a/products/stratos_controller/modules/distribution/src/bin/manage-git-repo.sh
+++ /dev/null
@@ -1,118 +0,0 @@
-#!/bin/bash
-
-user="wso2"
-action=""
-username=""
-tenant_domain=""
-cartridge=""
-tenant_key=""
-cartridge_key=""
-gitolite_admin="/home/wso2/gitolite-admin/"
-git_domain=""
-git_repo="/home/git/repositories/"
-ADC_repo_notification_url=""
-
-
-function help {
-    echo "Usage: manage-git-repo <action> <mandatory arguments>"
-    echo "    Action can be one of the following"
-    echo "        create : create git repo"
-    echo "        destroy: destroy git repo"
-    echo "        delete : delete user from a git repo"
-    echo "    Usage:"
-    echo "    	  manage-git-repo create <username> <tenant domain> <cartridge alias/name> <ADC repo notification url> <git_domain>"
-    echo "    	  manage-git-repo destroy <username> <tenant domain> <cartridge alias/name>"
-    echo "    eg:"
-    echo "    	  manage-git-repo create foo abc.com myphp https://localhost:9445/services/RepoNotificationService/"
-    echo ""
-}
-
-function main {
-
-if [[ ( -z $action || ( -n $action && $action == "help" ) ) ]]; then
-    help
-    exit 1
-fi
-if [[ (( -n $action && $action == "create") && ( -z $tenant_domain || -z $username || -z $cartridge || -z $ADC_repo_notification_url)) ]]; then
-    help
-    exit 1
-fi
-
-if [[ (( -n $action && $action == "destroy") && ( -z $tenant_domain || -z $username || -z $cartridge)) ]]; then
-    help
-    exit 1
-fi
-
-}
-
-action=$1
-username=$2
-tenant_domain=$3
-cartridge=$4
-ADC_repo_notification_url=$5
-git_domain=$6
-if [[ $action == "create" ]]; then
-
-     # hack until stratos manager support key pair for every user
-     rm -fr /tmp/${username}*
-     ssh-keygen -t rsa -N ''  -f /tmp/${username}
-     cd ${gitolite_admin}
-     git pull
-     # set public keys
-     cp -f /tmp/${username}.pub keydir/${username}.pub
-     #remove temparaly created files
-     rm /tmp/${username}.pub
-     # add repo and permission to conf 
-
-
-     echo "" > conf/repos/${tenant_domain}-${cartridge}.conf 
-     echo "repo ${tenant_domain}/${cartridge}.git" >> conf/repos/${tenant_domain}-${cartridge}.conf
-     echo "	RW+    = ${username} ${user}  daemon" >> conf/repos/${tenant_domain}-${cartridge}.conf
-     echo "     config  gitweb.url                  = git@${git_domain}:${tenant_domain}/${cartridge}" >> conf/repos/${tenant_domain}-${cartridge}.conf
-     echo "     config  receive.denyNonFastforwards = true" >> conf/repos/${tenant_domain}-${cartridge}.conf
-     echo "     config  receive.denyDeletes         = true" >> conf/repos/${tenant_domain}-${cartridge}.conf
-     echo "" >> conf/repos/${tenant_domain}-${cartridge}.conf
-     # git operations
-     git add keydir/${username}.pub
-     git add conf/repos/${tenant_domain}-${cartridge}.conf
-     git commit -a -m "${username} keys added and ${tenant_domain}/${cartridge} repo created"
-     git pull
-     git push
-     # set git push trigger
-    
-   echo "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://org.apache.axis2/xsd\">
-   <soapenv:Header/>
-   <soapenv:Body>
-      <xsd:notifyRepoUpdate>
-         <xsd:tenantDomain>${tenant_domain}</xsd:tenantDomain>
-         <xsd:cartridgeType>${cartridge}</xsd:cartridgeType>
-      </xsd:notifyRepoUpdate>
-   </soapenv:Body>
-</soapenv:Envelope>" > /tmp/${tenant_domain}-request.xml
-   
-    echo "#!/bin/bash" > /tmp/${tenant_domain}-post-update
-    echo "curl -X POST -H \"Content-Type: text/xml\"   -d @${git_repo}${tenant_domain}/${cartridge}.git/hooks/request.xml \"${ADC_repo_notification_url}\" --insecure" >> /tmp/${tenant_domain}-post-update
-    echo "exec git update-server-info" >> /tmp/${tenant_domain}-post-update
-    
-    sudo mv /tmp/${tenant_domain}-request.xml ${git_repo}${tenant_domain}/${cartridge}.git/hooks/request.xml
-    sudo mv /tmp/${tenant_domain}-post-update ${git_repo}${tenant_domain}/${cartridge}.git/hooks/post-update
-    sudo chown git:git ${git_repo}${tenant_domain}/${cartridge}.git/hooks/post-update
-    sudo chmod 700 ${git_repo}${tenant_domain}/${cartridge}.git/hooks/post-update
-fi
-if [[ $action == "destroy" ]]; then
- 
-     cd ${gitolite_admin}
-     # remove user keys
-     git rm keydir/${username}.pub
-     # remove repo from config
-     git rm conf/repos/${tenant_domain}-${cartridge}.conf
-     # git push to execute
-     git pull
-     git push
-     # remove repo from repository. ** this should done from above. but it doesnt happend. So removing manualy.
-     sudo rm -fr /home/git/repositories/${tenant_domain}/${cartridge}.git
-
-fi
-
-
-main

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/src/bin/remove_entry_zone_file.sh
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/src/bin/remove_entry_zone_file.sh b/products/stratos_controller/modules/distribution/src/bin/remove_entry_zone_file.sh
deleted file mode 100755
index 7c08abc..0000000
--- a/products/stratos_controller/modules/distribution/src/bin/remove_entry_zone_file.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-zone_file=$2
-subdomain=$1
-
-# check the file
-if [ -f {$zone_file} ]; then
-	echo "Error: zone does not exist"
-	exit 1
-fi
-echo "File $zone_file exists"
-
-# find entry to delete
-entry=$(grep $subdomain $zone_file)
-#sed "/$entry/d" $zone_file 
-
-sed "/$entry/d" $zone_file >tmp
-mv tmp $zone_file
-
-echo "entry to delete  $entry"
-
-
-# get serial number
-serial=$(grep 'Serial' $zone_file | awk '{print $1}')
-echo "Serial number " $serial
-# get serial number's date
-serialdate=$(echo $serial | cut -b 1-8)
-# get today's date in same style
-date=$(date +%Y%m%d)
-
-
-#Serial number's date
-serialdate=$(echo $serial | cut -b 1-8)
-echo "serial date" $serialdate
-# get today's date in same style
-date=$(date +%Y%m%d)
-echo "Now date" $date
-
-# compare date and serial date
-if [ $serialdate = $date ]
-	then
-		# if equal, just add 1
-		newserial=$(expr $serial + 1)
-		echo "same date"
-	else
-		# if not equal, make a new one and add 00
-		newserial=$(echo $date"00")
-fi
-
-echo "Adding subdomain $1 and ip $2 to $3"
-sed -i "s/.*Serial.*/ \t\t\t\t$newserial ; Serial./" $zone_file
-
-
-
-#reloading bind server
-/etc/init.d/bind9 reload

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/src/bin/set-mysql-password.sh
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/src/bin/set-mysql-password.sh b/products/stratos_controller/modules/distribution/src/bin/set-mysql-password.sh
deleted file mode 100755
index b18fd0d..0000000
--- a/products/stratos_controller/modules/distribution/src/bin/set-mysql-password.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-
-user="ubuntu"
-instance_ip=""
-cartridge_private_key=""
-password=""
-
-
-function help {
-    echo "Usage: set-mysql-password <mandatory arguments>"
-    echo "    Usage:"
-    echo "    	  set-mysql-password <instance ip> <cartridge private key> <password>"
-    echo "    eg:"
-    echo "    	  set-mysql-password 172.17.1.2 /tmp/foo-php qazxsw"
-    echo ""
-}
-
-function main {
-
-if [[ (-z $password || -z $instance_ip) ]]; then
-    help
-    exit 1
-fi
-
-}
-
-instance_ip=$1
-cartridge_private_key=$2
-password=$3
-
-echo "#!/bin/bash
-echo \"GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'   IDENTIFIED BY '${password}' WITH GRANT OPTION;flush privileges;\" | mysql -uroot -p${password}
-" > /tmp/${password}.sh
-
-if [[ (-n $password && -n $instance_ip) ]]; then
-	ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} mysqladmin -u root password "${password}"
-#	ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} echo "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'   IDENTIFIED BY '${password}' WITH GRANT OPTION;flush privileges;" | mysql -u root -p"${password}"
-	scp -i ${cartridge_private_key} /tmp/${password}.sh ${user}@${instance_ip}:
-	ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} chmod 755 /home/${user}/${password}.sh
-	ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} /home/${user}/${password}.sh
-	ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} rm /home/${user}/${password}.sh
-fi
-rm /tmp/${password}.sh
-
-main

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/src/bin/stratos.bat
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/src/bin/stratos.bat b/products/stratos_controller/modules/distribution/src/bin/stratos.bat
deleted file mode 100644
index baf58fa..0000000
--- a/products/stratos_controller/modules/distribution/src/bin/stratos.bat
+++ /dev/null
@@ -1,170 +0,0 @@
-@echo off
-
-REM ---------------------------------------------------------------------------
-REM        Copyright 2005-2009 WSO2, Inc. http://www.wso2.org
-REM
-REM  Licensed under the Apache License, Version 2.0 (the "License");
-REM  you may not use this file except in compliance with the License.
-REM  You may obtain a copy of the License at
-REM
-REM      http://www.apache.org/licenses/LICENSE-2.0
-REM
-REM  Unless required by applicable law or agreed to in writing, software
-REM  distributed under the License is distributed on an "AS IS" BASIS,
-REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-REM  See the License for the specific language governing permissions and
-REM  limitations under the License.
-
-rem ---------------------------------------------------------------------------
-rem Main Script for WSO2 Carbon
-rem
-rem Environment Variable Prequisites
-rem
-rem   CARBON_HOME   Home of CARBON installation. If not set I will  try
-rem                   to figure it out.
-rem
-rem   JAVA_HOME       Must point at your Java Development Kit installation.
-rem
-rem   JAVA_OPTS       (Optional) Java runtime options used when the commands
-rem                   is executed.
-rem ---------------------------------------------------------------------------
-
-rem ----- if JAVA_HOME is not set we're not happy ------------------------------
-:checkJava
-
-if "%JAVA_HOME%" == "" goto noJavaHome
-if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
-goto checkServer
-
-:noJavaHome
-echo "You must set the JAVA_HOME variable before running CARBON."
-goto end
-
-rem ----- Only set CARBON_HOME if not already set ----------------------------
-:checkServer
-rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed
-if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..
-SET curDrive=%cd:~0,1%
-SET wsasDrive=%CARBON_HOME:~0,1%
-if not "%curDrive%" == "%wsasDrive%" %wsasDrive%:
-
-rem find CARBON_HOME if it does not exist due to either an invalid value passed
-rem by the user or the %0 problem on Windows 9x
-if not exist "%CARBON_HOME%\bin\version.txt" goto noServerHome
-
-set AXIS2_HOME=%CARBON_HOME%
-goto updateClasspath
-
-:noServerHome
-echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME.
-goto end
-
-rem ----- update classpath -----------------------------------------------------
-:updateClasspath
-
-setlocal EnableDelayedExpansion
-cd %CARBON_HOME%
-set CARBON_CLASSPATH=
-FOR %%C in ("%CARBON_HOME%\bin\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\%%~nC%%~xC"
-
-set CARBON_CLASSPATH="%JAVA_HOME%\lib\tools.jar";%CARBON_CLASSPATH%;
-
-FOR %%D in ("%CARBON_HOME%\lib\commons-lang*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\lib\%%~nD%%~xD"
-
-rem ----- Process the input command -------------------------------------------
-
-rem Slurp the command line arguments. This loop allows for an unlimited number
-rem of arguments (up to the command line limit, anyway).
-
-
-:setupArgs
-if ""%1""=="""" goto doneStart
-
-if ""%1""==""-run""     goto commandLifecycle
-if ""%1""==""--run""    goto commandLifecycle
-if ""%1""==""run""      goto commandLifecycle
-
-if ""%1""==""-restart""  goto commandLifecycle
-if ""%1""==""--restart"" goto commandLifecycle
-if ""%1""==""restart""   goto commandLifecycle
-
-if ""%1""==""debug""    goto commandDebug
-if ""%1""==""-debug""   goto commandDebug
-if ""%1""==""--debug""  goto commandDebug
-
-if ""%1""==""version""   goto commandVersion
-if ""%1""==""-version""  goto commandVersion
-if ""%1""==""--version"" goto commandVersion
-
-shift
-goto setupArgs
-
-rem ----- commandVersion -------------------------------------------------------
-:commandVersion
-shift
-type "%CARBON_HOME%\bin\version.txt"
-type "%CARBON_HOME%\bin\wso2carbon-version.txt"
-goto end
-
-rem ----- commandDebug ---------------------------------------------------------
-:commandDebug
-shift
-set DEBUG_PORT=%1
-if "%DEBUG_PORT%"=="" goto noDebugPort
-if not "%JAVA_OPTS%"=="" echo Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option.
-set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%DEBUG_PORT%
-echo Please start the remote debugging client to continue...
-goto findJdk
-
-:noDebugPort
-echo Please specify the debug port after the --debug option
-goto end
-
-
-:doneStart
-if "%OS%"=="Windows_NT" @setlocal
-if "%OS%"=="WINNT" @setlocal
-
-rem ---------- Handle the SSL Issue with proper JDK version --------------------
-rem find the version of the jdk
-:findJdk
-
-set CMD=RUN %*
-
-:checkJdk16
-"%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[6|7]" >NUL
-IF ERRORLEVEL 1 goto unknownJdk
-goto jdk16
-
-:unknownJdk
-echo Starting WSO2 Carbon (in unsupported JDK)
-echo [ERROR] CARBON is supported only on JDK 1.6 and 1.7
-goto jdk16
-
-:jdk16
-goto runServer
-
-rem ----------------- Execute The Requested Command ----------------------------
-
-:runServer
-cd %CARBON_HOME%
-
-rem ---------- Add jars to classpath ----------------
-
-set CARBON_CLASSPATH=.\lib;%CARBON_CLASSPATH%
-
-set JAVA_ENDORSED=".\lib\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed"
-
-set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms256m -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="%CARBON_HOME%\repository\logs\heap-dump.hprof"  -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -Dcarbon.registry.root=/ -Dcarbon.home="%CARBON_HOME%" -Dwso2.server.standalone=true -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcatalina.base="%CARBON_HOME%\lib\tomcat" -Dwso2.carbon.xml=%CARBON_HOME%\repository\conf\carbon.xml -Dwso2.registry.xml="%CARBON_HOME%\repository\conf\registry.xml" -Dwso2.user.mgt.xml="%CARBON_HOME%\repository\conf\user-mgt.xml" -Dwso2.transports.xml="%CARBON_HOME%\repository\conf\mgt-transports.xml" -Djava.util.logging.config.file="%CARBON_HOME%\repository\conf\log4j.properties" -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dcarbon.config.dir.path="%CARBON_HOME%\repository\
 conf" -Dcarbon.logs.path="%CARBON_HOME%\repository\logs" -Dcomponents.repo="%CARBON_HOME%\repository\components" -Dconf.location="%CARBON_HOME%\repository\conf" -Dcom.atomikos.icatch.file="%CARBON_HOME%\lib\transactions.properties" -Dcom.atomikos.icatch.hide_init_file_path="true" -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dcom.sun.jndi.ldap.connect.pool.authentication=simple -Dcom.sun.jndi.ldap.connect.pool.timeout=3000 -Dorg.terracotta.quartz.skipUpdateCheck=true -Dcarbon.classpath=%CARBON_CLASSPATH% -Dfile.encoding=UTF8 -Dloadbalancer.conf="%CARBON_HOME%\repository\conf\loadbalancer.conf"
-
-:runJava
-echo JAVA_HOME environment variable is set to %JAVA_HOME%
-echo CARBON_HOME environment variable is set to %CARBON_HOME%
-"%JAVA_HOME%\bin\java" %CMD_LINE_ARGS% org.wso2.carbon.bootstrap.Bootstrap %CMD%
-if "%ERRORLEVEL%"=="121" goto runJava
-:end
-goto endlocal
-
-:endlocal
-
-:END

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/src/bin/stratos.sh
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/src/bin/stratos.sh b/products/stratos_controller/modules/distribution/src/bin/stratos.sh
deleted file mode 100755
index a095502..0000000
--- a/products/stratos_controller/modules/distribution/src/bin/stratos.sh
+++ /dev/null
@@ -1,298 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-#  Copyright 2005-2012 WSO2, Inc. http://www.wso2.org
-#
-#  Licensed under the Apache License, Version 2.0 (the "License");
-#  you may not use this file except in compliance with the License.
-#  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-
-# ----------------------------------------------------------------------------
-# Main Script for the WSO2 Carbon Server
-#
-# Environment Variable Prequisites
-#
-#   CARBON_HOME   Home of WSO2 Carbon installation. If not set I will  try
-#                   to figure it out.
-#
-#   JAVA_HOME       Must point at your Java Development Kit installation.
-#
-#   JAVA_OPTS       (Optional) Java runtime options used when the commands
-#                   is executed.
-#
-# NOTE: Borrowed generously from Apache Tomcat startup scripts.
-# -----------------------------------------------------------------------------
-
-# OS specific support.  $var _must_ be set to either true or false.
-#ulimit -n 100000
-
-cygwin=false;
-darwin=false;
-os400=false;
-mingw=false;
-case "`uname`" in
-CYGWIN*) cygwin=true;;
-MINGW*) mingw=true;;
-OS400*) os400=true;;
-Darwin*) darwin=true
-        if [ -z "$JAVA_VERSION" ] ; then
-             JAVA_VERSION="CurrentJDK"
-           else
-             echo "Using Java version: $JAVA_VERSION"
-           fi
-           if [ -z "$JAVA_HOME" ] ; then
-             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
-           fi
-           ;;
-esac
-
-# resolve links - $0 may be a softlink
-PRG="$0"
-
-while [ -h "$PRG" ]; do
-  ls=`ls -ld "$PRG"`
-  link=`expr "$ls" : '.*-> \(.*\)$'`
-  if expr "$link" : '.*/.*' > /dev/null; then
-    PRG="$link"
-  else
-    PRG=`dirname "$PRG"`/"$link"
-  fi
-done
-
-# Get standard environment variables
-PRGDIR=`dirname "$PRG"`
-
-# Only set CARBON_HOME if not already set
-[ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd`
-
-# Set AXIS2_HOME. Needed for One Click JAR Download
-AXIS2_HOME=$CARBON_HOME
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin; then
-  [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-  [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
-  [ -n "$AXIS2_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
-fi
-
-# For OS400
-if $os400; then
-  # Set job priority to standard for interactive (interactive - 6) by using
-  # the interactive priority - 6, the helper threads that respond to requests
-  # will be running at the same priority as interactive jobs.
-  COMMAND='chgjob job('$JOBNAME') runpty(6)'
-  system $COMMAND
-
-  # Enable multi threading
-  QIBM_MULTI_THREADED=Y
-  export QIBM_MULTI_THREADED
-fi
-
-# For Migwn, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
-  [ -n "$CARBON_HOME" ] &&
-    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
-  [ -n "$JAVA_HOME" ] &&
-    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
-  [ -n "$AXIS2_HOME" ] &&
-    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
-  # TODO classpath?
-fi
-
-if [ -z "$JAVACMD" ] ; then
-  if [ -n "$JAVA_HOME"  ] ; then
-    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
-      # IBM's JDK on AIX uses strange locations for the executables
-      JAVACMD="$JAVA_HOME/jre/sh/java"
-    else
-      JAVACMD="$JAVA_HOME/bin/java"
-    fi
-  else
-    JAVACMD=java
-  fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
-  echo "Error: JAVA_HOME is not defined correctly."
-  echo " CARBON cannot execute $JAVACMD"
-  exit 1
-fi
-
-# if JAVA_HOME is not set we're not happy
-if [ -z "$JAVA_HOME" ]; then
-  echo "You must set the JAVA_HOME variable before running CARBON."
-  exit 1
-fi
-
-if [ -e "$CARBON_HOME/wso2carbon.pid" ]; then
-  PID=`cat "$CARBON_HOME"/wso2carbon.pid`
-fi
-
-# ----- Process the input command ----------------------------------------------
-for c in $*
-do
-    if [ "$c" = "--debug" ] || [ "$c" = "-debug" ] || [ "$c" = "debug" ]; then
-          CMD="--debug"
-          continue
-    elif [ "$CMD" = "--debug" ]; then
-          if [ -z "$PORT" ]; then
-                PORT=$c
-          fi
-    elif [ "$c" = "--stop" ] || [ "$c" = "-stop" ] || [ "$c" = "stop" ]; then
-          CMD="stop"
-    elif [ "$c" = "--start" ] || [ "$c" = "-start" ] || [ "$c" = "start" ]; then
-          CMD="start"
-    elif [ "$c" = "--version" ] || [ "$c" = "-version" ] || [ "$c" = "version" ]; then
-          CMD="version"
-    elif [ "$c" = "--restart" ] || [ "$c" = "-restart" ] || [ "$c" = "restart" ]; then
-          CMD="restart"
-    elif [ "$c" = "--test" ] || [ "$c" = "-test" ] || [ "$c" = "test" ]; then
-          CMD="test"
-    fi
-done
-
-if [ "$CMD" = "--debug" ]; then
-  if [ "$PORT" = "" ]; then
-    echo " Please specify the debug port after the --debug option"
-    exit 1
-  fi
-  if [ -n "$JAVA_OPTS" ]; then
-    echo "Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option."
-  fi
-  CMD="RUN"
-  JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT"
-  echo "Please start the remote debugging client to continue..."
-elif [ "$CMD" = "start" ]; then
-  if [ -e "$CARBON_HOME/wso2carbon.pid" ]; then
-    if  ps -p $PID >&- ; then
-      echo "Process is already running"
-      exit 0
-    fi
-  fi
-  export CARBON_HOME=$CARBON_HOME
-# using nohup bash to avoid erros in solaris OS.TODO
-  nohup bash $CARBON_HOME/bin/stratos.sh > /dev/null 2>&1 &
-  exit 0
-elif [ "$CMD" = "stop" ]; then
-  export CARBON_HOME=$CARBON_HOME
-  kill -term `cat $CARBON_HOME/wso2carbon.pid`
-  exit 0
-elif [ "$CMD" = "restart" ]; then
-  export CARBON_HOME=$CARBON_HOME
-  kill -term `cat $CARBON_HOME/wso2carbon.pid`
-  process_status=0
-  pid=`cat $CARBON_HOME/wso2carbon.pid`
-  while [ "$process_status" -eq "0" ]
-  do
-        sleep 1;
-        ps -p$pid 2>&1 > /dev/null
-        process_status=$?
-  done
-
-# using nohup bash to avoid erros in solaris OS.TODO
-  nohup bash $CARBON_HOME/bin/stratos.sh > /dev/null 2>&1 &
-  exit 0
-elif [ "$CMD" = "test" ]; then
-    JAVACMD="exec "$JAVACMD""
-elif [ "$CMD" = "version" ]; then
-  cat $CARBON_HOME/bin/version.txt
-  cat $CARBON_HOME/bin/wso2carbon-version.txt
-  exit 0
-fi
-
-# ---------- Handle the SSL Issue with proper JDK version --------------------
-jdk_16=`$JAVA_HOME/bin/java -version 2>&1 | grep "1.[6|7]"`
-if [ "$jdk_16" = "" ]; then
-   echo " Starting WSO2 Carbon (in unsupported JDK)"
-   echo " [ERROR] CARBON is supported only on JDK 1.6 and 1.7"
-fi
-
-CARBON_XBOOTCLASSPATH=""
-for f in "$CARBON_HOME"/lib/xboot/*.jar
-do
-    if [ "$f" != "$CARBON_HOME/lib/xboot/*.jar" ];then
-        CARBON_XBOOTCLASSPATH="$CARBON_XBOOTCLASSPATH":$f
-    fi
-done
-
-JAVA_ENDORSED_DIRS="$CARBON_HOME/lib/endorsed":"$JAVA_HOME/jre/lib/endorsed":"$JAVA_HOME/lib/endorsed"
-
-CARBON_CLASSPATH=""
-if [ -e "$JAVA_HOME/lib/tools.jar" ]; then
-    CARBON_CLASSPATH="$JAVA_HOME/lib/tools.jar"
-fi
-for f in "$CARBON_HOME"/bin/*.jar
-do
-    if [ "$f" != "$CARBON_HOME/bin/*.jar" ];then
-        CARBON_CLASSPATH="$CARBON_CLASSPATH":$f
-    fi
-done
-for t in "$CARBON_HOME"/lib/commons-lang*.jar
-do
-    CARBON_CLASSPATH="$CARBON_CLASSPATH":$t
-done
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
-  JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
-  CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
-  AXIS2_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
-  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
-  JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
-  CARBON_CLASSPATH=`cygpath --path --windows "$CARBON_CLASSPATH"`
-  CARBON_XBOOTCLASSPATH=`cygpath --path --windows "$CARBON_XBOOTCLASSPATH"`
-fi
-
-# ----- Execute The Requested Command -----------------------------------------
-
-echo JAVA_HOME environment variable is set to $JAVA_HOME
-echo CARBON_HOME environment variable is set to $CARBON_HOME
-
-cd "$CARBON_HOME"
-
-START_EXIT_STATUS=121
-status=$START_EXIT_STATUS
-
-#To monitor a Carbon server in remote JMX mode on linux host machines, set the below system property.
-#   -Djava.rmi.server.hostname="your.IP.goes.here"
-
-while [ "$status" = "$START_EXIT_STATUS" ]
-do
-    $JAVACMD \
-    -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \
-    -Xms256m -Xmx1024m -XX:MaxPermSize=256m \
-    -XX:+HeapDumpOnOutOfMemoryError \
-    -XX:HeapDumpPath="$CARBON_HOME/repository/logs/heap-dump.hprof" \
-    $JAVA_OPTS \
-    -Dcom.sun.management.jmxremote \
-    -classpath "$CARBON_CLASSPATH" \
-    -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" \
-    -Djava.io.tmpdir="$CARBON_HOME/tmp" \
-    -Dcatalina.base="$CARBON_HOME/lib/tomcat" \
-    -Dwso2.server.standalone=true \
-    -Dcarbon.registry.root=/ \
-    -Djava.command="$JAVACMD" \
-    -Dcarbon.home="$CARBON_HOME" \
-    -Djava.util.logging.config.file="$CARBON_HOME/repository/conf/log4j.properties" \
-    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
-    -Dcarbon.config.dir.path="$CARBON_HOME/repository/conf" \
-    -Dcomponents.repo="$CARBON_HOME/repository/components/plugins" \
-    -Dconf.location="$CARBON_HOME/repository/conf"\
-    -Dcom.atomikos.icatch.file="$CARBON_HOME/lib/transactions.properties" \
-    -Dcom.atomikos.icatch.hide_init_file_path=true \
-    -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true \
-    -Dcom.sun.jndi.ldap.connect.pool.authentication=simple  \
-    -Dcom.sun.jndi.ldap.connect.pool.timeout=3000  \
-    -Dorg.terracotta.quartz.skipUpdateCheck=true \
-    -Djava.security.egd=file:/dev/./urandom \
-    -Dfile.encoding=UTF8 \
-    -Dloadbalancer.conf=file:repository/conf/loadbalancer.conf \
-    org.wso2.carbon.bootstrap.Bootstrap $*
-    status=$?
-done

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/src/bin/update-instance.sh
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/src/bin/update-instance.sh b/products/stratos_controller/modules/distribution/src/bin/update-instance.sh
deleted file mode 100755
index 3935dd1..0000000
--- a/products/stratos_controller/modules/distribution/src/bin/update-instance.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-user="ubuntu"
-instance_ip=""
-app_path=""
-cartridge_private_key=""
-
-function help {
-    echo "Usage: update-instance <mandatory arguments>"
-    echo "    Usage:"
-    echo "    	  update-instance <instance_ip> <app path> <cartridge_private_key>"
-    echo "    eg:"
-    echo "    	  update-instance 172.17.1.1 /var/www/myapp /tmp/foo-php"
-    echo ""
-}
-
-function main {
-
-if [[ (-z $instance_ip || -z $app_path || -z $cartridge_private_key ) ]]; then
-    help
-    exit 1
-fi
-
-}
-
-instance_ip=$1
-app_path=$2
-cartridge_private_key=$3
-
-if [[ (-n $instance_ip && -n $app_path && -n $cartridge_private_key ) ]]; then
-    ssh -o "BatchMode yes" -i ${cartridge_private_key} ${user}@${instance_ip} /opt/git.sh
-fi
-
-main

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/META-INF/MANIFEST.MF
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/META-INF/MANIFEST.MF b/products/stratos_controller/modules/features-dashboard/WebContent/META-INF/MANIFEST.MF
deleted file mode 100755
index 5e94951..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path: 
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/WEB-INF/web.xml b/products/stratos_controller/modules/features-dashboard/WebContent/WEB-INF/web.xml
deleted file mode 100755
index 5c68b6f..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/WEB-INF/web.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
-	<display-name>service-dashboard-webapp</display-name>
-	<welcome-file-list>
-		<welcome-file>index.jsp</welcome-file>
-	</welcome-file-list>
-</web-app>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/as.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/as.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/as.html
deleted file mode 100755
index c2f18e5..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/as.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-
-    <div class="story-title">Service Hosting</div>
-
-
-    <div class="story-content">
-        Different types of Web Services such as Axis2 Services, JAXWS Services, Jar Services
-        or Spring Services can be deployed in Application Server. All configurations such as
-        QoS can be easily configured here.
-    </div>
-    <div class="story-links">
-        <a href="javascript:generateAsFeatureUrl(0)" class="blocklink">Got to services...</a>
-        <a href="javascript:generateAsFeatureUrl(1)">Read more (docs)...</a>
-    </div>
-</div>
-
-<div class="story col2">
-    <div class="story-title">Web Applications</div>
-
-
-    <div class="story-content">
-        Web Application hosting features in AppServer supports deployment of Tomcat
-        compliant Webapps. Deployed Webapps can be easily managed using the Webapp
-        management facilities available in the management console.
-    </div>
-    <div class="story-links">
-        <a href="javascript:generateAsFeatureUrl(2)" target="_blank">Go to Web Applications...</a>
-        <a href="javascript:generateAsFeatureUrl(3)" target="_blank">Read more (docs)...</a>
-    </div>
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">Message Tracing</div>
-    <div class="story-content">
-        Trace the request and responses to your service. Message Tracing is a vital
-        debugging tool when you have clients from heterogeneous platforms.
-    </div>
-    <div class="story-links">
-        <a href="javascript:generateAsFeatureUrl(4)">Go to Message Tracing...</a>
-        <a href="javascript:generateAsFeatureUrl(5)">Read more (docs)...</a>
-    </div>
-
-</div>
-
-<div class="story col2">
-    <div class="story-title">WSDL2Java Tool</div>
-    <div class="story-content">
-        Use WSDL2Java tool in Web Application Server to convert Web Service WSDL to a set of
-        Java objects.
-    </div>
-    <div class="story-links">
-        <a href="javascript:generateAsFeatureUrl(6)">Go to WSDL2Java Tool...</a>
-        <a href="javascript:generateAsFeatureUrl(7)">Read more (docs)...</a>
-    </div>
-</div>
-
-<div class="story col1">
-    <div class="story-title">Java2WSDL Tool</div>
-
-    <div class="story-content">
-        Use Java2WSDL tool in Web Application Server make it easy to develop a new web service.
-    </div>
-    <div class="story-links">
-        <a href="javascript:generateAsFeatureUrl(8)">Go to Java2WSDL Tool...</a>
-        <a href="javascript:generateAsFeatureUrl(9)">Read more (docs)...</a>
-    </div>
-</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/bam.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/bam.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/bam.html
deleted file mode 100755
index 140e284..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/bam.html
+++ /dev/null
@@ -1,88 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">Real Time Mediation Monitoring</div>
-    <div class="story-content">Monitor proxy services, endpoints and sequences and their operations in real time. The
-        results gathered from the real-time monitoring are presented in a clear and easy-to-view
-        format.
-    </div>
-    <div class="story-links">
-        <a href="javascript:generateBamFeatureUrl(0)">Go to Web Applications...</a>
-        <a href="javascript:generateBamFeatureUrl(1)">Read more (docs)...</a>
-    </div>
-</div>
-
-<div class="story col1">
-    <div class="story-title">Mediation Analysis</div>
-    <div class="story-content">Analyze the historical mediation trends over time with the help of visualization
-        framework.
-    </div>
-    <div class="story-links">
-        <a href=javascript:generateBamFeatureUrl(2)">Go
-        to Web Applications...</a>
-        <a href=javascript:generateBamFeatureUrl(3)">Read
-        more (docs)...</a>
-    </div>
-</div>
-
-<div class="story col1">
-    <div class="story-title">Summary Generation</div>
-    <div class="story-content">Generate a summarised view of collected statistics & write gadgets to display these
-        summarised data.
-    </div>
-    <div class="story-links">
-        <a href="javascript:generateBamFeatureUrl(6)">Go
-            to Web Applications...</a>
-        <a href="javascript:generateBamFeatureUrl(7)">Read
-            more (docs)...</a>
-    </div>
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">Service Invocation Analysis</div>
-    <div class="story-content"> Write gadgets to consume service statistics and present to end user. Dashboard
-        support
-        Google Gadget specification.
-    </div>
-    <div class="story-links"><a href="javascript:generateBamFeatureUrl(10)">Go
-        to Web Applications...</a><a href="javascript:generateBamFeatureUrl(11)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col2">
-    <div class="story-title">Dashboard</div>
-    <div class="story-content">Monitor and correlate related business activities across multiple server instances.
-        These activities can be used to track and verify the smooth execution of business.
-    </div>
-    <div class="story-links"><a href="javascript:generateBamFeatureUrl(12)">Go
-        to Web Applications...</a><a href="javascript:generateBamFeatureUrl(13)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">Activity Correlation &amp; Monitoring</div>
-    <div class="story-content"> Monitor and correlate related business activities across multiple server instances.
-        These activities can be used to track and verify the smooth execution of business.
-    </div>
-    <div class="story-links"><a href="#"
-            >Go
-        to Web Applications...</a><a href="#"
-                                     onclick="alert('This link goes to Web Applications docs page!');">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col2">
-    <div class="story-title">Message Collection &amp; Archival</div>
-    <div class="story-content">Collect messages coming into your SOA, analyze & archive for future retrieval.</div>
-    <div class="story-links"><a href="#"
-            >Go
-        to Web Applications...</a><a href="#"
-                                     onclick="alert('This link goes to Web Applications docs page!');">Read
-        more (docs)...</a></div>
-
-</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/bps.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/bps.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/bps.html
deleted file mode 100755
index 392a1f1..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/bps.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">WS-BPEL 2.0 &amp; BPELWS 1.1</div>
-    <div class="story-content">WSO2 BPS supports both WS-BPEL 2.0 and BPEL4WS 1.1 standards. It also includes WSO2 BPS
-        specific extensions to enhance the features provide by WS-BPEL.
-    </div>
-    <div class="story-links"><a href="javascript:generateBpsFeatureUrl(0)">Go
-        to Web Applications...</a>
-        <a href="javascript:generateBpsFeatureUrl(1)">Read
-            more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col2">
-    <div class="story-title">Instance Data Cleanup</div>
-    <div class="story-content">Allows multiple levels of instance data cleanup which are accumulated during process
-        instance lifetime.
-        <p>
-            XPath extensions, Iteratable ForEach, Flexible Assigns, XQuery 1.0 support and various
-            other extensions to BPEL language.
-        </p>
-    </div>
-    <div class="story-links"><a href="javascript:generateBpsFeatureUrl(8)">Go
-        to Web Applications...</a><a href="javascript:generateBpsFeatureUrl(9)">Read
-        more (docs)...</a>
-    </div>
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">BPEL Extensions</div>
-    <div class="story-content">Hot update BPEL processes and allows you to maintain multiple versions of processes</div>
-    <div class="story-links"><a href="javascript:generateBpsFeatureUrl(10)">Go
-        to Web Applications...</a><a href="javascript:generateBpsFeatureUrl(11)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col2">
-    <div class="story-title">Process Versioning</div>
-    <div class="story-content"></div>
-    <div class="story-links"><a href="#"
-            >Go
-        to Web Applications...</a><a href="#"
-            >Read
-        more (docs)...</a></div>
-
-</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/brs.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/brs.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/brs.html
deleted file mode 100755
index b9be165..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/brs.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">Service Hosting Support</div>
-    <div class="story-content"> Service Hosting feature in Business Rules Server enables deployment of Rule Services.
-    </div>
-    <div class="story-links"><a href="javascript:generateBrsFeatureUrl(0)">Go
-        to Web Applications...</a><a href="javascript:generateBrsFeatureUrl(1)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col2">
-    <div class="story-title">Rule service creation support</div>
-    <div class="story-content"> Support for creating rule services with drools or using rule services created with other
-        IDEs
-    </div>
-    <div class="story-links"><a href="javascript:generateBrsFeatureUrl(2)">Go
-        to Web Applications...</a><a href="javascript:generateBrsFeatureUrl(3)">Read
-        more (docs)...</a></div>
-
-</div>
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/cep.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/cep.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/cep.html
deleted file mode 100755
index 54bbfb4..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/cep.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">Bring CEP to SOA</div>
-    <div class="story-content">Bring CEP to SOA by processing XML events and produce results as XML events</div>
-    <div class="story-links">
-        <a href="javascript:generateCepFeatureUrl(0)">Go
-            to Web Applications...</a><a href="javascript:generateCepFeatureUrl(1)">Read
-        more (docs)...</a>
-    </div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Registry Storage</div>
-    <div class="story-content">Ability to define different event streams, queries and out put streams and store them in
-        the registry as a bucket.
-    </div>
-    <div class="story-links"><a href="javascript:generateCepFeatureUrl(2)">Go
-        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(3)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Esper and Fusion</div>
-    <div class="story-content">Support Esper and fusion back end runtimes.</div>
-    <div class="story-links"><a href="javascript:generateCepFeatureUrl(4)">Go
-        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(5)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Filter data from the XML event</div>
-    <div class="story-content">Ability to filter data from the XML event using xpath and format the result as an XML
-        event.
-    </div>
-    <div class="story-links"><a href="javascript:generateCepFeatureUrl(6)">Go
-        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(7)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Support different types of brokers</div>
-    <div class="story-content">Support different types of brokers WS-Event, JMS to receive publish events.</div>
-    <div class="story-links"><a href="javascript:generateCepFeatureUrl(8)">Go
-        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(9)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">Storing broker configurations</div>
-    <div class="story-content">Define and store such different broker configurations.</div>
-    <div class="story-links"><a href="javascript:generateCepFeatureUrl(10)">Go
-        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(11)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">Administrative Console support</div>
-    <div class="story-content">Administrative Console to create buckets, add subscriptions etc..</div>
-    <div class="story-links">
-        <a href="javascript:generateCepFeatureUrl(12)">Go
-            to Web Applications...</a><a href="javascript:generateCepFeatureUrl(13)">Read
-        more (docs)...</a>
-    </div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Specify CEP queries</div>
-    <div class="story-content">Ability to specify CEP queries inline or pick from the registry.</div>
-    <div class="story-links"><a href="javascript:generateCepFeatureUrl(14)">Go
-        to Web Applications...</a><a href="javascript:generateCepFeatureUrl(15)">Read
-        more (docs)...</a></div>
-
-</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/csg.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/csg.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/csg.html
deleted file mode 100755
index 7392c72..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/csg.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">Cloud Service</div>
-    <div class="story-content">Publish a service or data residing behind a firewall in a secure and controlled manner as a Cloud Service.
-    </div>
-    <div class="story-links"><a href="javascript:generateCsgFeatureUrl(0)">Go
-        to Cloud Services...</a><a href="javascript:generateCsgFeatureUrl(1)">Read
-        more (docs)...</a></div>
-</div>
-
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/css/features-dashboard.css
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/css/features-dashboard.css b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/css/features-dashboard.css
deleted file mode 100755
index a0558a4..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/css/features-dashboard.css
+++ /dev/null
@@ -1,55 +0,0 @@
-.story {
-  width: 220px;
-  margin: 15px;
-  float: left;
-    line-height:23px;
-    background:#fff;
-}
-.story h2{
-
-}
-.story p,.story blockquote{
-       margin:0px;
-}
-.story img{
-    width:200px;
-}
-.story-title {
-    color: #444;
-    padding:5px 15px;
-    font-size: 18px;
-    display: block;
-    border-left:dotted 1px #ddd;
-    border-right:dotted 1px #ddd;
-    border-top:dotted 1px #ddd;
-}
-
-.story-content {
-    padding:15px;
-    color:#333;
-    border-left:dotted 1px #ddd;
-    border-right:dotted 1px #ddd;
-}
-.story-links{
-    /*background:transparent url(../images/black.png) repeat left top;*/
-    padding:3px 15px;
-    border:dotted 1px #ddd;
-    /*-moz-box-shadow: 3px 3px 2px #000;*/
-    /*-webkit-box-shadow: 3px 3px 2px #000;*/
-    /*box-shadow: 3px 3px 2px #000;*/
-}
-.story-links a{
-    /*text-shadow: 0px -2px 1px #000;*/
-    display:block;
-    font-weight:bold;
-    text-transform:uppercase;
-    text-decoration:none;
-
-}
-.story-links a:hover{
-    color: #003366;
-}
-.story-content a{
-    color:#0d2a51;
-    margin:10px;
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/dss.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/dss.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/dss.html
deleted file mode 100755
index f6912cc..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/dss.html
+++ /dev/null
@@ -1,75 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">Data Service Hosting</div>
-    <div class="story-content">>Data Web Services can be deployed in Data Services Server. All configurations such as
-        QoS can be easily configured here.
-    </div>
-    <div class="story-links"><a href="javascript:generateDssFeatureUrl(0)"
-            >Go
-        to Services...</a><a href="javascript:generateDssFeatureUrl(1)"
-            >Read
-        more (docs)...</a></div>
-</div>
-
-<div class="story col2">
-    <div class="story-title">Data as a Service</div>
-    <div class="story-content"> Create your databases on the cloud, and acess those as you would do with regular
-        databases.
-    </div>
-    <div class="story-links"><a href="javascript:generateDssFeatureUrl(2)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateDssFeatureUrl(3)"
-            >Read
-        more (docs)...</a></div>
-
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Service Testing</div>
-    <div class="story-content">Tryit tool can be used as a simple Web Service client which can be used to try your
-        services within AppServer itself.
-    </div>
-    <div class="story-links"><a href="javascript:generateDssFeatureUrl(4)"
-            >Go
-        to Service Testing...</a><a href="javascript:generateDssFeatureUrl(5)"
-            >Read
-        more (docs)...</a></div>
-</div>
-
-<div class="story col2">
-    <div class="story-title">Message Tracing</div>
-    <div class="story-content">Trace the request and responses to your service. Message Tracing is a vital
-        debugging tool when you have clients from heterogeneous platforms.
-    </div>
-    <div class="story-links"><a href="javascript:generateDssFeatureUrl(6)"
-            >Go to Message
-        Tracing...</a><a href="javascript:generateDssFeatureUrl(7)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">DB Explorer</div>
-    <div class="story-content"> Explore your databases using the explorer tool on the cloud.</div>
-    <div class="story-links"><a href="javascript:generateDssFeatureUrl(8)"
-            >Go to DB
-        Explorer Tool...</a><a href="javascript:generateDssFeatureUrl(9)"
-            >Read
-        more (docs)...</a></div>
-</div>
-
-<div class="story col2">
-    <div class="story-title">Relational Storage Solutions on Cloud</div>
-    <div class="story-content"><a
-            href="http://wso2.org/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive"><img
-            src="../../../../features-dashboard/dashboards/images/configure_db.png"
-            alt=""/></a></div>
-    <div class="story-links">
-        <a
-                href="http://wso2.org/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive">Read
-            online...</a>
-    </div>
-
-</div>


[48/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/faq.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/faq.xml b/products/cloud-controller/docs/xdoc/faq.xml
new file mode 100644
index 0000000..5af8bf2
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/faq.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>
+            WSO2 MB - Frequently Asked Questions
+        </title>
+        <link href="css/mb-docs.css" rel="stylesheet"/>
+        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
+    </head>
+    <body xml:lang="en">
+        [
+        <a href="docs_index.html">Documentation Index</a>
+        ]
+        <h1>WSO2 Business Server (MB) Frequently Asked Questions</h1>
+        <h2>Contents</h2>
+        <div class="toc">
+            <ol>
+                <li>
+                    <a href="#what-features">What are main features of WSO2 MB</a>
+                </li>
+                <li>
+                    <a href="#how-to-monitor">How to monitor queues and topics using MB?</a>
+                </li>
+                <li>
+                    <a href="#what-sqs">What is MessageBox(SQS)?
+                    </a>
+                </li>
+            </ol>
+
+            <h3 id="what-features">
+                1. What are main features of WSO2 MB?
+            </h3>
+            <p>The Message Broker is compliant with the latest WS-Eventing specification. It's
+                easy-to-use
+                Amazon SQS API provides a standard interface for your message queuing requirements.
+            </p>
+            <p>The underlying JMS engine handles WS-Eventing/JMS synchronisation that enables
+                exposing and
+                consuming your events using two different standard API's.
+            </p>
+            <h3 id="how-to-monitor">
+                2. How to monitor queues and topics using MB?
+            </h3>
+            <p>All the topics, subscriptions and queue details can be monitored using MB Management
+                Console
+            </p>
+            <h3 id="what-sqs">
+                3. What is MessageBox(SQS)?
+            </h3>
+            <p>Simple Queue Service(SQS) is a web service interface to do queue related operations.
+                Message box provides this service. Please find more details on how to use SQS in
+                <a href="samples_index.html">WSO2 MB Samples</a>.
+            </p>
+
+        </div>
+    </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/index.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/index.xml b/products/cloud-controller/docs/xdoc/index.xml
new file mode 100644
index 0000000..b680178
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/index.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+  <title>Welcome to WSO2 MB v2.0.1</title>
+  <link href="css/mb-docs.css" rel="stylesheet" />
+  <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
+  media="all" />
+</head>
+
+<body xml:lang="en" lang="en">
+<h1>Welcome to WSO2 Message Broker v2.0.1</h1>
+
+<p>WSO2 Message Broker (WSO2 MB) is to be your Message Broker System.
+ Our ultimate goal is to provide you with the suitable message brokering 
+ service. </p>
+
+<p>MB 2.0.1 supports publishing and receiving messages both online
+and on demand with the features Pub/Sub and Queues. Message broker compatible with
+JMS API and it implements AMQP 0.91 protocol.
+<p>WSO2 MB 2.0.1 is developed on top of the revolutionary <a
+href="http://wso2.org/projects/carbon">Carbon platform</a>
+, and is based on the OSGi framework to achieve the better modularity for
+your Service Oriented Architecture (SOA). This also contains a lots of new
+features and many other optional components to customize the behavior of the
+server. Further, if you do not want any of the built in features, you can
+uninstall those features without any trouble. In other words, MB can be
+customized to your SOA needs. </p>
+
+<p>You can download this distribution from <a
+href="http://wso2.org/downloads/message-broker">Project Download Page </a> and give it a
+try. </p>
+
+<h2>Getting Started</h2>
+
+<p>Getting your message broker project off the ground with the WSO2 MB is
+fairly simple.</p>
+<ol>
+  <li><a href="http://wso2.org/downloads/message-broker">Download</a> the WSO2 MB
+  2.0.1</li>
+  <li>Read through the <a href="docs_index.html">Documentation Index</a></li>
+  <li>Visit our <a href="http://wso2.com/products/message-broker/">Official Web
+    site</a></li>
+  <li>Look at the <a href="release-notes.html">Release Notes</a> for the high
+    level features, or the <a
+    href="http://wso2.com/products/message-broker/#tabs">WSO2 MB Data
+  Sheet</a></li>
+</ol>
+</p>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/installation_guide.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/installation_guide.xml b/products/cloud-controller/docs/xdoc/installation_guide.xml
new file mode 100644
index 0000000..7f9cf72
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/installation_guide.xml
@@ -0,0 +1,414 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>
+            WSO2 MB - Installation Guide
+        </title>
+        <link href="css/mb-docs.css" rel="stylesheet"/>
+        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
+    </head>
+    <body xml:lang="en">
+        [ <a href="docs_index.html"> Documentation Index </a> ]
+        <h1>
+            WSO2 Message Broker (MB) Installation Guide
+        </h1>
+        <p/>
+
+        <p>This installation guide provides information on,</p>
+        <ol>
+            <li>the prerequisites for WSO2 MB</li>
+            <li>installation instructions</li>
+            <li>starting up WSO2 MB, and</li>
+            <li>accessing the management console</li>
+        </ol>
+
+        <p>
+            This document describes the distribution packages available in WSO2 MB -
+            the binary distribution and the source distribution for more advanced
+            users. It is followed by simple instructions on how to install and run
+            WSO2 MB using the binary distribution and how to build WSO2 MB using the
+            source distribution.
+        </p>
+
+        <h2>Contents</h2>
+        <div class="toc">
+            <ul>
+                <li>
+                    <a href="#Distribution">Distribution Packages</a>
+                </li>
+                <li>
+                    <a href="#Installing">Installing and Running WSO2 MB using the
+                        Binary Distribution
+                    </a>
+                    <ul>
+                        <li>
+                            <a href="#Prerequisites">Prerequisites</a>
+                        </li>
+                        <li>
+                            <a href="#Installing2">Installing on Linux</a>                            
+                        </li>
+                        <li>
+                            <a href="#Installing1">Installing on MS Windows</a>
+                        </li>
+                    </ul>
+                </li>
+                <li>
+                    <a href="#Building">Building WSO2 MB Using the Source Distribution</a>
+                    <ul>
+                        <li>
+                            <a href="#Prerequisites">Prerequisites</a>
+                        </li>
+                        <li>
+                            <a href="#Setting">Setting Up the Environment and Tools</a>
+                        </li>
+                        <li>
+                            <a href="#Building1">Building WSO2 MB</a>
+                        </li>
+                    </ul>
+                </li>
+            </ul>
+        </div>
+        <h2 id="Distribution">
+            Distribution Packages
+        </h2>
+        <p>
+            The following distribution packages are available for <a
+                href="http://wso2.org/downloads/message-broker/">download</a>.
+        </p>
+        <p>
+            1. Binary Distribution : Includes binary files for both MS Windows and
+            Linux operating systems, compressed into a single a zip file. Recommended
+            for normal users.
+        </p>
+        <p>
+            2. Source Distribution : Includes the source code for both MS Windows and Linux
+            operating systems, compressed into a single zip file which can be used to build the binary files.
+            Recommended for more advanced users.
+        </p>
+        <h2 id="Installing">
+            Installing and Running WSO2 MB using the Binary Distribution
+        </h2>
+        <h3 id="Prerequisites">
+            Prerequisites
+        </h3>
+        <p/>
+        <table border="2">
+            <tbody>
+                <tr>
+                    <td>
+                        <a href="http://java.sun.com/javase/downloads/index.jsp">Java SE
+                            Development Kit
+                        </a>
+                    </td>
+                    <td>
+                        1.6.x (For instructions on setting up the JDK on different operating
+                        systems, visit <a href="http://java.sun.com">http://java.sun.com</a>)
+                        <p/>
+                        <p>
+                            To build WSO2 MB from the Source distribution, it is necessary
+                            that you have JDK 1.6.x version and Maven 2.1.0 or later
+                        </p>
+                    </td>
+                </tr>
+
+                
+                <tr>
+                    <td>
+                        <a href="http://maven.apache.org/">Apache Maven</a>- To
+                        build MB from Source
+                    </td>
+                    <td>
+                        To build the WSO2 MB from its source distribution, you will need
+                        Maven 2.1.0 or later
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        Web browser- To start the MB Management Console
+                    </td>
+                    <td>
+                        Mozilla Firefox 3.0 at a resolution of 1024x768 is recommended. MS
+                        Internet Explorer 7 may be used as well, with some minor limitations. Once
+                        the WSO2 MB is started point the browser to
+                        https://localhost:9443/carbon in order to access your Management Console.
+                        See the
+                        <a href="user_guide.html">WSO2 MB User Guide</a>
+                        for more details.
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        Memory
+                    </td>
+                    <td>
+                        No minimum requirement - A heap size of 256~512MB is generally
+                        sufficient to process typical SOAP messages. Requirements may vary
+                        with larger message size and on the number of messages processed
+                        concurrently
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        Disk
+                    </td>
+                    <td>
+                        No minimum requirement. The installation will require ~125 MB
+                        excluding space allocated for log files and Databases.
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        Operating System
+                    </td>
+                    <td>
+                        Linux, Solaris, MS Windows - XP/ Vista (Not fully tested on Windows
+                        Vista). Since WSO2 MB is a Java application, it will generally be
+                        possible to run it on other operating systems with a JDK 1.6.x
+                        runtime.
+                    </td>
+                </tr>
+            </tbody>
+        </table>
+        <p/>
+
+        <h2 id="Installing2">Installing on Linux/Unix</h2>
+        <p>
+            The following steps will take you through the binary distribution
+            installation on Unix/Linux systems.
+        </p>
+        <ol>
+            <li>
+                <a href="http://wso2.org/downloads/message-broker/">Download</a>
+                the WSO2 MB binary distribution.
+            </li>
+            <li>
+                Extract the zip archive where you want the WSO2 MB installed (e.g. into
+                /opt)
+            </li>
+            <li>
+                Set the <a href="setting_java_home.html">JAVA_HOME</a>
+                environment variable to your Java home using the
+                export command or by editing /etc/profile, and add the Java /bin
+                directory to your PATH
+            </li>
+            <li>
+                Execute the WSO2 MB start script or the daemon script from the bin
+                directory. e.g. ./stratos.sh OR ./daemon.sh start OR
+                ./stratos.sh --console
+            </li>
+            <li>
+                Check your WSO2 MB instance using the URL https://localhost:9443/carbon
+                which will take you to the WSO2 MB Management Console. (Note that server
+                start up may take time)
+            </li>
+            <li>
+                Login as "admin" using the default password "admin"
+            </li>
+        </ol>
+
+        <h2 id="Installing1">
+            <strong>Installing on MS Windows</strong>
+        </h2>
+        <p>
+            The following steps will take you through the installation for the MS
+            Windows operating system.
+        </p>
+        <ol>
+            <li>
+                <a href="http://wso2.org/downloads/message-broker/">Download</a>
+                the WSO2 MB binary distribution.
+            </li>
+            <li>
+                Extract the zip archive where you want the WSO2 MB installed
+            </li>
+            <li>
+                Set the
+                <a href="setting_java_home.html">JAVA_HOME</a>
+                environment variable to your Java installation, and the PATH environment
+                variable to the Java /bin directory.
+            </li>
+            <li>
+                Execute the WSO2 MB start script from the bin folder. e.g. stratos.bat
+            </li>
+            <li>
+                If you would like to install the WSO2 MB as a Windows service, use the
+                install.bat script
+            </li>
+            <li>
+                Check your WSO2 MB instance using the URL https://localhost:9443/carbon
+                which will take you to the WSO2 MB Management Console.
+            </li>
+            <li>
+                Login as "admin" using the default password "admin"
+            </li>
+        </ol>
+        <h2 id="Building">
+            Building WSO2 MB Using the Source Distribution
+        </h2>
+        <h3 id="Prerequisi1">
+            Prerequisites
+        </h3>
+        <p/>
+        <table border="2">
+            <tbody>
+                <tr>
+                    <td>
+                        <a href="http://java.sun.com/javase/downloads/index.jsp">Java SE
+                            Development Kit
+                        </a>
+                    </td>
+                    <td>
+                        1.6.x (For instructions on setting up the JDK in different operating
+                        systems, visit <a href="http://java.sun.com">http://java.sun.com</a>)
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        <a href="http://maven.apache.org/">Apache Maven</a>- To
+                        build MB from Source
+                    </td>
+                    <td>
+                        To build the WSO2 MB from its source distribution, you will need
+                        Maven 2.1.0 or later
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        Operating System
+                    </td>
+                    <td>
+                        Linux, Solaris, MS Windows - XP/ Vista (Not fully tested on Windows
+                        Vista)
+                    </td>
+                </tr>
+            </tbody>
+        </table>
+        <p/>
+        <h3 id="Setting">
+            Setting up the Environment and Tools
+        </h3>
+        <p/>
+        <p>
+            <strong>Maven:</strong>
+        </p>
+        <p>
+            The WSO2 MB build is based on <a href="http://maven.apache.org/">Apache
+            Maven 2</a>. Hence, it is a prerequisite to have Maven (version 2.1.0 or later)
+            and JDK (version 1.6.x) installed in order to build WSO2 MB from the
+            source distribution. Extensive instructions on using Maven 2 are available
+            on the Maven website.
+        </p>
+        <p>
+            Please refer to the
+            <a
+                    href="http://maven.apache.org/guides/getting-started/index.html">Maven
+                Getting Started Guide
+            </a>
+            for more information on Maven
+        </p>
+        <ul>
+            <li>
+                Unix based OS (e.g., Linux)
+            </li>
+        </ul>
+        <ol>
+            <li>
+                Download Apache Maven tar ball or the zip archive.
+            </li>
+            <li>
+                Expand it to a directory of choice.
+            </li>
+            <li>
+                Set the environment variable M2_HOME and add M2_HOME/bin to the
+                path as well.
+            </li>
+            <li>
+                Run mvn --version to verify that it is correctly installed.
+            </li>
+        </ol>
+        <ul>
+            <li>
+                MS Windows
+            </li>
+        </ul>
+        <ol>
+            <li>
+                Download and run the Apache Maven Windows installer package.
+            </li>
+            <li>
+                Set the 'Environment Variables' (create the system variable M2_HOME
+                and edit the path. e.g., "C:\Program Files\Apache Software
+                Foundation\maven-2.0.6"; path %M2_HOME%\bin)
+            </li>
+            <li>
+                Make sure that the system variable
+                <a href="setting_java_home.html">JAVA_HOME</a>
+                is set to the location of your JDK, e.g., C:\Program Files\Java\jdk1.5
+            </li>
+            <li>
+                Run mvn --version to verify that it is correctly installed.
+            </li>
+        </ol>
+        <p>
+            Once Maven is properly installed, you can start building the WSO2 MB.
+        </p>
+        <h3 id="Building1">
+            Building WSO2 MB
+        </h3>
+        <ol>
+            <li>
+                <a href="http://wso2.org/downloads/message-broker/">Download</a>
+                the source distribution, which is available as a zip archive.
+            </li>
+            <li>
+                Expand the source archive to a directory of your choice.
+            </li>
+            <li>
+                All the necessary build scripts are included with the source
+                distribution.
+            </li>
+            <li>
+                You can run the following command inside that directory to build the
+                WSO2 MB. Note that you will require a connection to the Internet for the Maven build
+                to download dependencies required for the build.
+                <br/>
+                <p>
+                    Command: <strong>mvn clean install</strong>
+                </p>
+            </li>
+        </ol>
+        <p>
+            This will create the complete release artifacts including the binary and
+            source distributions in the modules/distribution/target/ directory which can be installed using
+            the above instructions.
+        </p>
+        <p>
+            Note: The first time you run Maven it will automatically download the
+            dependent .jar files. Therefore, the first run will take more time.
+        </p>
+    </body>
+</html>                                                 

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/release-notes.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/release-notes.xml b/products/cloud-controller/docs/xdoc/release-notes.xml
new file mode 100644
index 0000000..5f16e20
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/release-notes.xml
@@ -0,0 +1,239 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta content="text/html; charset=iso-8859-1" http-equiv="content-type"/>
+        <title>WSO2 Message Broker 2.0.1 Released!</title>
+        <link href="css/mb-docs.css" rel="stylesheet"/>
+        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
+              media="all"/>
+    </head>
+    <body>
+        <div id="header">
+        </div>
+
+        <div id="main-content">
+            <h1>The WSO2 Message Broker (MB) 2.0.1 Released!</h1>
+
+            <p>
+                The WSO2 Message Broker team is pleased to announce the release of version 2.0.1 of
+                the Open Source Message Broker (MB).
+            </p>
+            <p>WSO2 Message Broker (WSO2 MB) 2.0.1  is fast, lightweight and user friendly open source
+                distributed message brokering system under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html">
+                Apache Software License v2.0</a>. WSO2 MB allows system administrators and developers to
+                easily configure jms queues and topics which could be used in message routing, message stores,
+                message processors. It also supports transport ws eventing. WSO2 MB is compliant with Advanced
+                Message Queueing Protocol Version 0-91 and Java Message Service Specification version 1.1.
+            </p>
+            <p>
+                WSO2 MB 2.0.1 is developed on top of the revolutionary
+                <a href="http://wso2.org/projects/carbon">WSO2 Carbon platform</a> (Middleware a' la carte),
+                an OSGi based framework that provides seamless modularity to your SOA via
+                componentization. This release also contains many new features and a range of optional
+                components (add-ons) that can be installed to customize the behavior of the MB. Further, any
+                existing features of the MB which are not required to your environment can be easily
+                removed using the underlying provisioning framework of Carbon. In brief, WSO2 MB can
+                be fully customized and tailored to meet your exact SOA needs.
+            </p>
+
+            <p>
+                You can download this distribution from
+                <a href="http://wso2.org/downloads/message-broker">
+                    http://wso2.org/downloads/message-broker
+                </a>
+
+            </p>
+
+            <h2>How to Run </h2>
+            <ol>
+              <li>Extract the downloaded zip</li>
+              <li>Go to the bin directory in the extracted folder</li>
+              <li>Run the stratos.sh or stratos.bat as appropriate</li>
+              <li>Point your browser to the URL https://localhost:9443/carbon</li>
+              <li>Use "admin", "admin" as the username and password to login as an admin</li>
+              <li>If you need to start the OSGi console with the server use the property
+                -DosgiConsole when starting the server. The INSTALL.txt file found on the
+                installation directory will give you a comprehensive set of options and
+                properties that can be passed into the startup script</li>
+
+            </ol>
+
+
+            <h2>New Features of WSO2 MB 2.0.1</h2>
+
+            <p>
+              The major newly introduced feature of this MB release is support for distributed message
+              brokering. This release is backed with newly invented Andes distributed message brokering
+              system which use cassandra as its storage.
+            </p>
+
+
+            <h2>Key Features of WSO2 Message Broker</h2>
+
+            <p>WSO2 Message Broker brings messaging and eventing capabilities into your SOA
+                framework. Message Broker contains all the previously available features except
+                SQS support. Those are :
+            </p>
+            <ul>
+                <li>JMS Queuing</li>
+                <li>JMS Pub/Sub </li>
+                <li>WS-Eventing</li>
+            </ul>
+
+
+            <p>The underlying JMS engine handles WS-Eventing/JMS synchronisation that enables
+                exposing and consuming your events using two different standard API's.
+            </p>
+
+            <h2>Project Resources</h2>
+
+            <ul>
+                <li>
+                    <strong>Home page:</strong>
+                    <a href="http://wso2.com/products/message-broker/">
+                        http://wso2.com/products/message-broker/
+                    </a>
+
+                </li>
+                <li>
+                    <strong>Library:</strong>
+                    <a href="http://www.wso2.org/library/mb">http://www.wso2.org/library/mb</a>
+
+                </li>
+                <li>
+                    <strong>Wiki:</strong>
+                    <a href="http://www.wso2.org/wiki/display/mb/java">
+                        http://www.wso2.org/wiki/display/mb/java
+                    </a>
+
+                </li>
+                <li>
+                    <strong>JIRA-Issue Tracker:</strong>
+                    <a href="https://wso2.org/jira/browse/MB">https://wso2.org/jira/browse/MB</a>
+
+                </li>
+            </ul>
+
+            <h2>Bugs Fixed in This Release</h2>
+            <p>
+                This release of WSO2 MB comes with a number of bug fixes, both in the base
+                framework and the MB specific components. All the issues which have been
+                fixed in MB 2.0.1 are recorded at following locations:
+            </p>
+            <ul>
+                                                            
+                <li><a href="https://wso2.org/jira/secure/IssueNavigator.jspa?mode=hide&amp;requestId=10787">
+                    Fixed MB specific issues</a></li>
+
+            </ul>
+            <h2>Known Issues</h2>
+            <p>
+                All the open issues pertaining to WSO2 MB 2.0.1 are reported at following
+                locations:
+            </p>
+            <ul>
+                <li><a href="https://wso2.org/jira/secure/IssueNavigator.jspa?mode=hide&amp;requestId=10788">
+                    WSO2 MB 2.0.1 component issues</a></li>
+            </ul>
+
+
+
+            <h2>How You Can Contribute</h2>
+            <h3>
+                Mailing Lists
+            </h3>
+            <p>
+                Join our mailing list and correspond with the developers directly.
+            </p>
+            <ul>
+                <li>
+                    Developer List :
+                    <a href="mailto:carbon-dev@wso2.org">carbon-dev@wso2.org</a>
+                    |
+                    <a href="mailto:carbon-dev-request@wso2.org?subject=subscribe">Subscribe</a>
+                    |
+                    <a href="http://wso2.org/mailarchive/carbon-dev/">Mail Archive</a>
+                </li>
+                <li>
+                    User List :
+                    <a href="mailto:mb-user@wso2.org">mb-user@wso2.org</a>
+                    |
+                    <a href="mailto:mb-user-request@wso2.org?subject=subscribe">Subscribe</a>
+                    |
+                    <a href="http://wso2.org/mailarchive/mb-user/">Mail Archive</a>
+                </li>
+            </ul>
+
+            <h3>
+                Reporting Issues
+            </h3>
+            <p>
+                WSO2 encourages you to report issues and your enhancement requests for the
+                WSO2 MB using the public<a
+                    href="https://wso2.org/jira/browse/MB">JIRA</a>.
+            </p>
+            <p>
+                You can also watch how they are resolved, and comment on the progress..
+            </p>
+            <h3>
+                Discussion Forums
+            </h3>
+            <p>
+                Alternatively, questions could be raised using the forums available.
+            </p>
+            <p>
+                <a href="http://wso2.org/forum/1225">WSO2 MB Forum</a>
+                :
+                Discussion forum for WSO2 MB developers/users
+            </p>
+
+
+            <h2>Support</h2>
+            <p>We are committed to ensuring that your enterprise middleware deployment is completely
+                supported from evaluation to production. Our unique approach ensures that all
+                support leverages our open development methodology and is provided by the very same
+                engineers who build the technology.
+            </p>
+
+            <p>For more details and to take advantage of this unique opportunity please visit
+                <a href="http://wso2.com/support/">http://wso2.com/support/</a>
+            </p>
+
+            <p>For more information on WSO2 MB Please see<a
+                    href="http://wso2.com/products/message-broker/">
+                http://wso2.com/products/message-broker/</a>, visit the WSO2 Oxygen Tank developer
+                portal for additional
+                resources.
+            </p>
+
+            <p>Thank you for your interest in WSO2 Message Broker.
+            </p>
+
+            <p>
+                <i>-- The WSO2 MB Team --</i>
+            </p>
+        </div>
+    </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/samples/jms_queue_sample.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/samples/jms_queue_sample.xml b/products/cloud-controller/docs/xdoc/samples/jms_queue_sample.xml
new file mode 100644
index 0000000..d9fcb84
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/samples/jms_queue_sample.xml
@@ -0,0 +1,267 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>WSO2 MB Samples - JMS Queue Sample</title>
+        <link href="../css/mb-docs.css" rel="stylesheet"/>
+        <link href="../styles/dist-docs.css" rel="stylesheet" type="text/css"
+              media="all"/>
+    </head>
+
+    <body>
+        <p>[<a href="../docs_index.html">Documentation Index</a>] </p>
+            <h1>WSO2 MB - Samples :JMS Queue Sample</h1>
+
+            <p>This guide demonstrates how persistent queues can be created and used in Message
+                Broker using JMS API.
+            </p>
+
+            <h2>Contents</h2>
+
+            <div class="toc">
+                <ul>
+                    <li>
+                        <a href="#jms_queue_sample">JMS Queue Sample</a>
+                    </li>
+                </ul>
+            </div>
+
+            <h2 id="jms_queue_sample">JMS Queue Sample</h2>
+
+            <p>Following JMS client is used to send messages to a known created queue in WSO2 Message Broker. Queue Receiver
+               can receive messages and message is printed in console.
+            </p>
+
+            <p>
+                First log into WSO2 Message Broker Management console and create a queue named 'testQueue'. Click on the
+                'Add' menu item under the 'Queues' menu to create a queue. To create a queue , the only thing needed to
+                be provided is the name of the queue.
+            </p>
+
+            <p>
+                note: To run this code sample, you need to have dependencies located at
+                $CARBON_HOME/client-lib in class path. You need to run QueueReceiver class prior to QueueSender class
+                when testing this sample.
+            </p>
+            <p>
+                Using following QueueSender JMS client messages can be sent to 'testQueue'.
+            </p>
+            <pre xml:space="preserve">
+                package com.org.wso2.mb.jms.sample;
+                /**
+                 * Licensed to the Apache Software Foundation (ASF) under one
+                 * or more contributor license agreements.  See the NOTICE file
+                 * distributed with this work for additional information
+                 * regarding copyright ownership.  The ASF licenses this file
+                 * to you under the Apache License, Version 2.0 (the
+                 * "License"); you may not use this file except in compliance
+                 * with the License.  You may obtain a copy of the License at
+                 *
+                 *    http://www.apache.org/licenses/LICENSE-2.0
+                 *
+                 * Unless required by applicable law or agreed to in writing,
+                 * software distributed under the License is distributed on an
+                 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+                 * KIND, either express or implied.  See the License for the
+                 * specific language governing permissions and limitations
+                 * under the License.
+                 */
+
+                import javax.jms.JMSException;
+                import javax.jms.Queue;
+                import javax.jms.QueueConnection;
+                import javax.jms.QueueConnectionFactory;
+                import javax.jms.QueueSession;
+                import javax.jms.TextMessage;
+                import javax.naming.Context;
+                import javax.naming.InitialContext;
+                import javax.naming.NamingException;
+                import java.util.Properties;
+
+                public class QueueSender {
+                    public static final String QPID_ICF = "org.wso2.andes.jndi.PropertiesFileInitialContextFactory";
+                    private static final String CF_NAME_PREFIX = "connectionfactory.";
+                    private static final String QUEUE_NAME_PREFIX = "queue.";
+                    private static final String CF_NAME = "qpidConnectionfactory";
+                    String userName = "admin";
+                    String password = "admin";
+
+                    private static String CARBON_CLIENT_ID = "carbon";
+                    private static String CARBON_VIRTUAL_HOST_NAME = "carbon";
+                    private static String CARBON_DEFAULT_HOSTNAME = "localhost";
+                    private static String CARBON_DEFAULT_PORT = "5672";
+                    String queueName = "testQueue";
+
+
+                    public static void main(String[] args) throws NamingException, JMSException {
+                        QueueSender queueSender = new QueueSender();
+                        queueSender.sendMessages();
+                    }
+
+                    public void sendMessages() throws NamingException, JMSException {
+                        Properties properties = new Properties();
+                        properties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
+                        properties.put(CF_NAME_PREFIX + CF_NAME, getTCPConnectionURL(userName, password));
+                        properties.put(QUEUE_NAME_PREFIX + queueName, queueName);
+
+                        System.out.println("getTCPConnectionURL(userName,password) = " + getTCPConnectionURL(userName, password));
+
+                        InitialContext ctx = new InitialContext(properties);
+                        // Lookup connection factory
+                        QueueConnectionFactory connFactory = (QueueConnectionFactory) ctx.lookup(CF_NAME);
+                        QueueConnection queueConnection = connFactory.createQueueConnection();
+                        queueConnection.start();
+                        QueueSession queueSession =
+                                queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+
+                        // Send message
+                        Queue queue = (Queue)ctx.lookup(queueName);
+
+                        // create the message to send
+                        TextMessage textMessage = queueSession.createTextMessage("Test Message Content");
+
+                        javax.jms.QueueSender queueSender = queueSession.createSender(queue);
+                        queueSender.send(textMessage);
+
+                        queueSender.close();
+                        queueSession.close();
+                        queueConnection.close();
+
+                    }
+
+                    public String getTCPConnectionURL(String username, String password) {
+                        // amqp://{username}:{password}@carbon/carbon?brokerlist='tcp://{hostname}:{port}'
+                        return new StringBuffer()
+                                .append("amqp://").append(username).append(":").append(password)
+                                .append("@").append(CARBON_CLIENT_ID)
+                                .append("/").append(CARBON_VIRTUAL_HOST_NAME)
+                                .append("?brokerlist='tcp://").append(CARBON_DEFAULT_HOSTNAME).append(":").append(CARBON_DEFAULT_PORT).append("'")
+                                .toString();
+                    }
+
+
+                }
+
+            </pre>
+             <p>
+                 You can view created queue and its increased message count using Message Broker management console.
+             </p>
+            <p>
+                Now to receive the messages from the 'testQueue' following QueueReceiver class can be used. Message received gets printed on the
+                console.
+            </p>
+            <pre xml:space="preserve">
+                package com.org.wso2.mb.jms.sample;
+                /**
+                 * Licensed to the Apache Software Foundation (ASF) under one
+                 * or more contributor license agreements.  See the NOTICE file
+                 * distributed with this work for additional information
+                 * regarding copyright ownership.  The ASF licenses this file
+                 * to you under the Apache License, Version 2.0 (the
+                 * "License"); you may not use this file except in compliance
+                 * with the License.  You may obtain a copy of the License at
+                 *
+                 *    http://www.apache.org/licenses/LICENSE-2.0
+                 *
+                 * Unless required by applicable law or agreed to in writing,
+                 * software distributed under the License is distributed on an
+                 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+                 * KIND, either express or implied.  See the License for the
+                 * specific language governing permissions and limitations
+                 * under the License.
+                 */
+
+                import javax.jms.*;
+                import javax.naming.Context;
+                import javax.naming.InitialContext;
+                import javax.naming.NamingException;
+                import java.util.Properties;
+
+                public class QueueReceiver {
+
+                    public static final String QPID_ICF = "org.wso2.andes.jndi.PropertiesFileInitialContextFactory";
+                    private static final String CF_NAME_PREFIX = "connectionfactory.";
+                    private static final String CF_NAME = "qpidConnectionfactory";
+                    String userName = "admin";
+                    String password = "admin";
+
+                    private static String CARBON_CLIENT_ID = "carbon";
+                    private static String CARBON_VIRTUAL_HOST_NAME = "carbon";
+                    private static String CARBON_DEFAULT_HOSTNAME = "localhost";
+                    private static String CARBON_DEFAULT_PORT = "5672";
+                    String queueName = "testQueue";
+
+
+                    public static void main(String[] args) throws NamingException, JMSException {
+                        QueueReceiver queueReceiver = new QueueReceiver();
+                        queueReceiver.receiveMessages();
+                    }
+
+                    public void receiveMessages() throws NamingException, JMSException {
+                        Properties properties = new Properties();
+                        properties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
+                        properties.put(CF_NAME_PREFIX + CF_NAME, getTCPConnectionURL(userName, password));
+                        properties.put("queue."+ queueName,queueName);
+
+                        System.out.println("getTCPConnectionURL(userName,password) = " + getTCPConnectionURL(userName, password));
+
+                        InitialContext ctx = new InitialContext(properties);
+                        // Lookup connection factory
+                        QueueConnectionFactory connFactory = (QueueConnectionFactory) ctx.lookup(CF_NAME);
+                        QueueConnection queueConnection = connFactory.createQueueConnection();
+                        queueConnection.start();
+                        QueueSession queueSession =
+                                queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+
+                        //Receive message
+                        Queue queue =  (Queue) ctx.lookup(queueName);
+                        MessageConsumer queueReceiver = queueSession.createConsumer(queue);
+                        TextMessage message = (TextMessage) queueReceiver.receive();
+                        System.out.println("Got message ==>" + message.getText());
+
+                        queueReceiver.close();
+                        queueSession.close();
+                        queueConnection.stop();
+                        queueConnection.close();
+
+                    }
+
+                    public String getTCPConnectionURL(String username, String password) {
+                        // amqp://{username}:{password}@carbon/carbon?brokerlist='tcp://{hostname}:{port}'
+                        return new StringBuffer()
+                                .append("amqp://").append(username).append(":").append(password)
+                                .append("@").append(CARBON_CLIENT_ID)
+                                .append("/").append(CARBON_VIRTUAL_HOST_NAME)
+                                .append("?brokerlist='tcp://").append(CARBON_DEFAULT_HOSTNAME).append(":").append(CARBON_DEFAULT_PORT).append("'")
+                                .toString();
+                    }
+
+
+                }
+
+            </pre>
+        <p>
+            Now you should be able to see message count gets decreased for 'testQueue' using Management Console.
+        </p>
+    </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/samples/jms_topic_sample.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/samples/jms_topic_sample.xml b/products/cloud-controller/docs/xdoc/samples/jms_topic_sample.xml
new file mode 100644
index 0000000..bd05667
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/samples/jms_topic_sample.xml
@@ -0,0 +1,260 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>WSO2 MB Samples - JMS Topic Sample</title>
+        <link href="../css/mb-docs.css" rel="stylesheet"/>
+        <link href="../styles/dist-docs.css" rel="stylesheet" type="text/css"
+              media="all"/>
+    </head>
+
+    <body>
+        <p>[<a href="../docs_index.html">Documentation Index</a>]  </p>
+            <h1>WSO2 MB - Samples :JMS Topic Sample</h1>
+
+            <p>This guide demonstrates how topics can be created and used in Message
+                Broker using JMS API.
+            </p>
+
+            <h2>Contents</h2>
+
+            <div class="toc">
+                <ul>
+                    <li>
+                        <a href="#jms_queue_sample">JMS Topic Sample</a>
+                    </li>
+                </ul>
+            </div>
+
+            <h2 id="jms_queue_sample">JMS Topic Sample</h2>
+
+            <p>Following code is used to create a topic, subscribe to it and publish messages. To
+                run this code sample, you need to have dependencies located at
+                $CARBON_HOME/client-lib in class path.
+                To try out following code fragment, Run the Topic Subscriber first and then run
+                Topic Publisher code. You should see, published message in Topic subscriber console.
+
+                You can see created topics in management console as well.
+            </p>
+
+            <p>Topic Publisher: This code is used to publish messages to a given topic.</p>
+
+            <pre xml:space="preserve">
+                package com.org.wso2.mb.jms.sample;
+
+                /**
+                 * Licensed to the Apache Software Foundation (ASF) under one
+                 * or more contributor license agreements.  See the NOTICE file
+                 * distributed with this work for additional information
+                 * regarding copyright ownership.  The ASF licenses this file
+                 * to you under the Apache License, Version 2.0 (the
+                 * "License"); you may not use this file except in compliance
+                 * with the License.  You may obtain a copy of the License at
+                 *
+                 *    http://www.apache.org/licenses/LICENSE-2.0
+                 *
+                 * Unless required by applicable law or agreed to in writing,
+                 * software distributed under the License is distributed on an
+                 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+                 * KIND, either express or implied.  See the License for the
+                 * specific language governing permissions and limitations
+                 * under the License.
+                 */
+
+                import javax.jms.JMSException;
+                import javax.jms.QueueSession;
+                import javax.jms.TextMessage;
+                import javax.jms.Topic;
+                import javax.jms.TopicConnection;
+                import javax.jms.TopicConnectionFactory;
+                import javax.jms.TopicSession;
+                import javax.naming.Context;
+                import javax.naming.InitialContext;
+                import javax.naming.NamingException;
+                import java.util.Properties;
+
+
+                public class TopicPublisher {
+                    public static final String QPID_ICF = "org.wso2.andes.jndi.PropertiesFileInitialContextFactory";
+                    private static final String CF_NAME_PREFIX = "connectionfactory.";
+                    private static final String CF_NAME = "qpidConnectionfactory";
+                    String userName = "admin";
+                    String password = "admin";
+
+                    private static String CARBON_CLIENT_ID = "carbon";
+                    private static String CARBON_VIRTUAL_HOST_NAME = "carbon";
+                    private static String CARBON_DEFAULT_HOSTNAME = "localhost";
+                    private static String CARBON_DEFAULT_PORT = "5672";
+                    String topicName = "MYTopic";
+
+
+                    public static void main(String[] args) throws NamingException, JMSException {
+                        TopicPublisher topicPublisher = new TopicPublisher();
+                        topicPublisher.publishMessage();
+                    }
+
+                    public void publishMessage() throws NamingException, JMSException {
+                        Properties properties = new Properties();
+                        properties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
+                        properties.put(CF_NAME_PREFIX + CF_NAME, getTCPConnectionURL(userName, password));
+
+                        System.out.println("getTCPConnectionURL(userName,password) = " + getTCPConnectionURL(userName, password));
+
+                        InitialContext ctx = new InitialContext(properties);
+                        // Lookup connection factory
+                        TopicConnectionFactory connFactory = (TopicConnectionFactory) ctx.lookup(CF_NAME);
+                        TopicConnection topicConnection = connFactory.createTopicConnection();
+                        topicConnection.start();
+                        TopicSession topicSession =
+                                topicConnection.createTopicSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+
+                        // Send message
+                        Topic topic = topicSession.createTopic(topicName);
+
+                        // create the message to send
+                        TextMessage textMessage = topicSession.createTextMessage("Test Message");
+
+                        javax.jms.TopicPublisher topicPublisher = topicSession.createPublisher(topic);
+                        topicPublisher.publish(textMessage);
+
+                        topicSession.close();
+                        topicConnection.close();
+                    }
+
+                    public String getTCPConnectionURL(String username, String password) {
+                        // amqp://{username}:{password}@carbon/carbon?brokerlist='tcp://{hostname}:{port}'
+                        return new StringBuffer()
+                                .append("amqp://").append(username).append(":").append(password)
+                                .append("@").append(CARBON_CLIENT_ID)
+                                .append("/").append(CARBON_VIRTUAL_HOST_NAME)
+                                .append("?brokerlist='tcp://").append(CARBON_DEFAULT_HOSTNAME).append(":").append(CARBON_DEFAULT_PORT).append("'")
+                                .toString();
+                    }
+
+                }
+
+
+            </pre>
+
+            <p>Topic Subscriber: This code is used to Subscribe for topics.
+                topicSubscriber.receive() will wait till a message is received and exit the main
+                thread.
+            </p>
+            <pre xml:space="preserve">
+                package com.org.wso2.mb.jms.sample;
+                /**
+                 * Licensed to the Apache Software Foundation (ASF) under one
+                 * or more contributor license agreements.  See the NOTICE file
+                 * distributed with this work for additional information
+                 * regarding copyright ownership.  The ASF licenses this file
+                 * to you under the Apache License, Version 2.0 (the
+                 * "License"); you may not use this file except in compliance
+                 * with the License.  You may obtain a copy of the License at
+                 *
+                 *    http://www.apache.org/licenses/LICENSE-2.0
+                 *
+                 * Unless required by applicable law or agreed to in writing,
+                 * software distributed under the License is distributed on an
+                 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+                 * KIND, either express or implied.  See the License for the
+                 * specific language governing permissions and limitations
+                 * under the License.
+                 */
+
+                import javax.jms.JMSException;
+                import javax.jms.Message;
+                import javax.jms.QueueSession;
+                import javax.jms.TextMessage;
+                import javax.jms.Topic;
+                import javax.jms.TopicConnection;
+                import javax.jms.TopicConnectionFactory;
+                import javax.jms.TopicSession;
+                import javax.naming.Context;
+                import javax.naming.InitialContext;
+                import javax.naming.NamingException;
+                import java.util.Properties;
+
+
+                public class TopicSubscriber {
+                    public static final String QPID_ICF = "org.wso2.andes.jndi.PropertiesFileInitialContextFactory";
+                    private static final String CF_NAME_PREFIX = "connectionfactory.";
+                    private static final String CF_NAME = "qpidConnectionfactory";
+                    String userName = "admin";
+                    String password = "admin";
+
+                    private static String CARBON_CLIENT_ID = "carbon";
+                    private static String CARBON_VIRTUAL_HOST_NAME = "carbon";
+                    private static String CARBON_DEFAULT_HOSTNAME = "localhost";
+                    private static String CARBON_DEFAULT_PORT = "5672";
+                    String topicName = "MYTopic";
+
+
+                    public static void main(String[] args) throws NamingException, JMSException {
+                        TopicSubscriber topicSubscriber = new TopicSubscriber();
+                        topicSubscriber.subscribe();
+                    }
+
+                    public void subscribe() throws NamingException, JMSException {
+                        Properties properties = new Properties();
+                        properties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
+                        properties.put(CF_NAME_PREFIX + CF_NAME, getTCPConnectionURL(userName, password));
+
+                        System.out.println("getTCPConnectionURL(userName,password) = " + getTCPConnectionURL(userName, password));
+
+                        InitialContext ctx = new InitialContext(properties);
+                        // Lookup connection factory
+                        TopicConnectionFactory connFactory = (TopicConnectionFactory) ctx.lookup(CF_NAME);
+                        TopicConnection topicConnection = connFactory.createTopicConnection();
+                        topicConnection.start();
+                        TopicSession topicSession =
+                                topicConnection.createTopicSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+
+                        // Send message
+                        Topic topic = topicSession.createTopic(topicName);
+                        javax.jms.TopicSubscriber topicSubscriber = topicSession.createSubscriber(topic);
+                        Message message = topicSubscriber.receive();
+                        if (message instanceof TextMessage) {
+                            TextMessage textMessage = (TextMessage) message;
+                            System.out.println("textMessage.getText() = " + textMessage.getText());
+                        }
+                        topicSession.close();
+                        topicConnection.close();
+                    }
+
+                    public String getTCPConnectionURL(String username, String password) {
+                        // amqp://{username}:{password}@carbon/carbon?brokerlist='tcp://{hostname}:{port}'
+                        return new StringBuffer()
+                                .append("amqp://").append(username).append(":").append(password)
+                                .append("@").append(CARBON_CLIENT_ID)
+                                .append("/").append(CARBON_VIRTUAL_HOST_NAME)
+                                .append("?brokerlist='tcp://").append(CARBON_DEFAULT_HOSTNAME).append(":").append(CARBON_DEFAULT_PORT).append("'")
+                                .toString();
+                    }
+
+                }
+
+
+            </pre>
+        <p>Also note that a MessageListener can be set to topicSubscriber to receive messages asynchronously.</p>
+    </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/samples/jms_transport_sample.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/samples/jms_transport_sample.xml b/products/cloud-controller/docs/xdoc/samples/jms_transport_sample.xml
new file mode 100644
index 0000000..7978254
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/samples/jms_transport_sample.xml
@@ -0,0 +1,374 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>WSO2 MB Samples - JMS Transport Sample</title>
+        <link href="../css/mb-docs.css" rel="stylesheet"/>
+        <link href="../styles/dist-docs.css" rel="stylesheet" type="text/css"
+              media="all"/>
+    </head>
+
+    <body>
+        <p>[<a href="../docs_index.html">Documentation Index</a>]  </p>
+        <h1>WSO2 MB - Samples :JMS Transport Sample</h1>
+        <p>Apache AXIS2 support a JMS transport layer in addition to the existing HTTP transport. This allows Web
+            service clients and servers to communicate via JMS queues and topics instead of HTTP connections.
+            Both one-way and synchronous two-way requests are supported.</p>
+        <p>The benefits of using JMS as an alternative to HTTP include the following:</p>
+        <ul>
+            <li>
+                Request and response messages are sent by way of reliable messaging.
+            </li>
+            <li>One-way requests allow client and server to be more loosely-coupled (the server does not have to be
+                active when the client sends the one-way request).
+            </li>
+            <li>One-way requests can be sent to multiple servers simultaneously through the use of a topic.
+            </li>
+        </ul>
+        <p>If a web service is to be accessible on the JMS transport, then the corresponding WSDL document should include
+            a JMS binding and a SOAP address which specifies a JMS endpoint URL string. A JMS binding is simply
+            a <b>wsdl:binding </b> element which contains a <b
+            >wsdlsoap:binding</b> element whose transport attribute ends in soap/jms,
+            rather than the normal soap/http value. In addition to the JMS binding, a <b>wsdl:port</b> element which references
+            the JMS binding should be included in the <b>wsdl:service</b> element within the WSDL document. This <b>wsdl:port</b> element
+            should contain a <b>wsdlsoap:address</b> element whose location attribute specifies a JMS endpoint URL string.
+        </p>
+        <p>
+            You also need to decide on the names and types of JMS objects that your application will use. For example,
+            you must decide whether your web service will receive its requests from a queue or a topic. You also must
+            decide whether to use a secure destination (queue or topic). Finally, you will need to decide on the names
+            for your destination, connection factory, and listener port.   The following list provides an example of the
+            names that might be used for the sample MessageReceiveService web service:
+        </p>
+        <table>
+            <tr>
+                <td>Queue</td>  <td>MessageReceiveService, JNDI name: MessageReceiveService</td>
+            </tr>
+            <tr>
+                <td>QueueConnectionFactory</td> <td></td>
+            </tr>
+        </table>
+        <h2>Creating A Simple Service</h2>
+        <p>Following java class with its two operations are hosted in Axis2 server as a web service</p>
+        <pre xml:space="preserve">
+           /**
+            * Licensed to the Apache Software Foundation (ASF) under one
+            * or more contributor license agreements.  See the NOTICE file
+            * distributed with this work for additional information
+            * regarding copyright ownership.  The ASF licenses this file
+            * to you under the Apache License, Version 2.0 (the
+            * "License"); you may not use this file except in compliance
+            * with the License.  You may obtain a copy of the License at
+            *
+            *    http://www.apache.org/licenses/LICENSE-2.0
+            *
+            * Unless required by applicable law or agreed to in writing,
+            * software distributed under the License is distributed on an
+            * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+            * KIND, either express or implied.  See the License for the
+            * specific language governing permissions and limitations
+            * under the License.
+            */
+
+            public class MessageReceiveService {
+                public void receive(String message) {
+                    System.out.println("Got the message ==> " + message);
+                }
+                public String echo(String message) {
+                    System.out.println("Got the message ==> " + message);
+                    return message;
+                }
+            }
+        </pre>
+        <p>As WSDL of the service following will be used. Note how JMS bindings are defined. receive operation is an
+            "in only" operation having only input message. But echo is "in-out" operation which is having an output
+            message as well as an input message.
+        </p>
+
+        <pre xml:space="preserve">
+            &lt;wsdl:definitions xmlns:wsdl=&quot;http://schemas.xmlsoap.org/wsdl/&quot; xmlns:ns1=&quot;http://org.apache.axis2/xsd&quot; xmlns:ns=&quot;http://transport.sample.org&quot; xmlns:wsaw=&quot;http://www.w3.org/2006/05/addressing/wsdl&quot; xmlns:http=&quot;http://schemas.xmlsoap.org/wsdl/http/&quot; xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:mime=&quot;http://schemas.xmlsoap.org/wsdl/mime/&quot; xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot; xmlns:soap12=&quot;http://schemas.xmlsoap.org/wsdl/soap12/&quot; targetNamespace=&quot;http://transport.sample.org&quot;&gt;
+                &lt;wsdl:types&gt;
+                    &lt;xs:schema attributeFormDefault=&quot;qualified&quot; elementFormDefault=&quot;unqualified&quot; targetNamespace=&quot;http://transport.sample.org&quot;&gt;
+                        &lt;xs:element name=&quot;receive&quot;&gt;
+                            &lt;xs:complexType&gt;
+                                &lt;xs:sequence&gt;
+                                    &lt;xs:element minOccurs=&quot;0&quot; name=&quot;message&quot; nillable=&quot;true&quot; type=&quot;xs:string&quot;/&gt;
+                                &lt;/xs:sequence&gt;
+                            &lt;/xs:complexType&gt;
+                        &lt;/xs:element&gt;
+                        &lt;xs:element name=&quot;echo&quot;&gt;
+                            &lt;xs:complexType&gt;
+                                &lt;xs:sequence&gt;
+                                    &lt;xs:element minOccurs=&quot;0&quot; name=&quot;message&quot; nillable=&quot;true&quot; type=&quot;xs:string&quot;/&gt;
+                                &lt;/xs:sequence&gt;
+                            &lt;/xs:complexType&gt;
+                        &lt;/xs:element&gt;
+                        &lt;xs:element name=&quot;echoResponse&quot;&gt;
+                            &lt;xs:complexType&gt;
+                                &lt;xs:sequence&gt;
+                                    &lt;xs:element minOccurs=&quot;0&quot; name=&quot;return&quot; nillable=&quot;true&quot; type=&quot;xs:string&quot;/&gt;
+                                &lt;/xs:sequence&gt;
+                            &lt;/xs:complexType&gt;
+                        &lt;/xs:element&gt;
+                    &lt;/xs:schema&gt;
+                &lt;/wsdl:types&gt;
+                &lt;wsdl:message name=&quot;echoRequest&quot;&gt;
+                    &lt;wsdl:part name=&quot;parameters&quot; element=&quot;ns:echo&quot;/&gt;
+                &lt;/wsdl:message&gt;
+                &lt;wsdl:message name=&quot;echoResponse&quot;&gt;
+                    &lt;wsdl:part name=&quot;parameters&quot; element=&quot;ns:echoResponse&quot;/&gt;
+                &lt;/wsdl:message&gt;
+                &lt;wsdl:message name=&quot;receiveRequest&quot;&gt;
+                    &lt;wsdl:part name=&quot;parameters&quot; element=&quot;ns:receive&quot;/&gt;
+                &lt;/wsdl:message&gt;
+                &lt;wsdl:portType name=&quot;MessageReceiveServicePortType&quot;&gt;
+                    &lt;wsdl:operation name=&quot;echo&quot;&gt;
+                        &lt;wsdl:input message=&quot;ns:echoRequest&quot; wsaw:Action=&quot;urn:echo&quot;/&gt;
+                        &lt;wsdl:output message=&quot;ns:echoResponse&quot; wsaw:Action=&quot;urn:echoResponse&quot;/&gt;
+                    &lt;/wsdl:operation&gt;
+                    &lt;wsdl:operation name=&quot;receive&quot;&gt;
+                        &lt;wsdl:input message=&quot;ns:receiveRequest&quot; wsaw:Action=&quot;urn:receive&quot;/&gt;
+                    &lt;/wsdl:operation&gt;
+                &lt;/wsdl:portType&gt;
+                &lt;wsdl:binding name=&quot;MessageReceiveServiceSoap11Binding&quot; type=&quot;ns:MessageReceiveServicePortType&quot;&gt;
+                    &lt;soap:binding transport=&quot;http://schemas.xmlsoap.org/soap/http&quot; style=&quot;document&quot;/&gt;
+                    &lt;wsdl:operation name=&quot;echo&quot;&gt;
+                        &lt;soap:operation soapAction=&quot;urn:echo&quot; style=&quot;document&quot;/&gt;
+                        &lt;wsdl:input&gt;
+                            &lt;soap:body use=&quot;literal&quot;/&gt;
+                        &lt;/wsdl:input&gt;
+                        &lt;wsdl:output&gt;
+                            &lt;soap:body use=&quot;literal&quot;/&gt;
+                        &lt;/wsdl:output&gt;
+                    &lt;/wsdl:operation&gt;
+                    &lt;wsdl:operation name=&quot;receive&quot;&gt;
+                        &lt;soap:operation soapAction=&quot;urn:receive&quot; style=&quot;document&quot;/&gt;
+                        &lt;wsdl:input&gt;
+                            &lt;soap:body use=&quot;literal&quot;/&gt;
+                        &lt;/wsdl:input&gt;
+                    &lt;/wsdl:operation&gt;
+                &lt;/wsdl:binding&gt;
+                &lt;wsdl:binding name=&quot;MessageReceiveServiceSoap12Binding&quot; type=&quot;ns:MessageReceiveServicePortType&quot;&gt;
+                    &lt;soap12:binding transport=&quot;http://schemas.xmlsoap.org/soap/http&quot; style=&quot;document&quot;/&gt;
+                    &lt;wsdl:operation name=&quot;echo&quot;&gt;
+                        &lt;soap12:operation soapAction=&quot;urn:echo&quot; style=&quot;document&quot;/&gt;
+                        &lt;wsdl:input&gt;
+                            &lt;soap12:body use=&quot;literal&quot;/&gt;
+                        &lt;/wsdl:input&gt;
+                        &lt;wsdl:output&gt;
+                            &lt;soap12:body use=&quot;literal&quot;/&gt;
+                        &lt;/wsdl:output&gt;
+                    &lt;/wsdl:operation&gt;
+                    &lt;wsdl:operation name=&quot;receive&quot;&gt;
+                        &lt;soap12:operation soapAction=&quot;urn:receive&quot; style=&quot;document&quot;/&gt;
+                        &lt;wsdl:input&gt;
+                            &lt;soap12:body use=&quot;literal&quot;/&gt;
+                        &lt;/wsdl:input&gt;
+                    &lt;/wsdl:operation&gt;
+                &lt;/wsdl:binding&gt;
+                &lt;wsdl:service name=&quot;MessageReceiveService&quot;&gt;
+                    &lt;wsdl:port name=&quot;MessageReceiveServiceJmsSoap11Endpoint&quot; binding=&quot;ns:MessageReceiveServiceSoap11Binding&quot;&gt;
+                        &lt;soap:address location=&quot;jms:/MessageReceiveService?transport.jms.DestinationType=queue&amp;amp;transport.jms.ContentTypeProperty=Content-Type&amp;amp;java.naming.provider.url=conf/jndi.properties&amp;amp;java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&amp;amp;transport.jms.ConnectionFactoryType=queue&amp;amp;transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&quot;/&gt;
+                    &lt;/wsdl:port&gt;
+                    &lt;wsdl:port name=&quot;MessageReceiveServiceJmsSoap12Endpoint&quot; binding=&quot;ns:MessageReceiveServiceSoap12Binding&quot;&gt;
+                        &lt;soap12:address location=&quot;jms:/MessageReceiveService?transport.jms.DestinationType=queue&amp;amp;transport.jms.ContentTypeProperty=Content-Type&amp;amp;java.naming.provider.url=conf/jndi.properties&amp;amp;java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&amp;amp;transport.jms.ConnectionFactoryType=queue&amp;amp;transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&quot;/&gt;
+                    &lt;/wsdl:port&gt;
+                &lt;/wsdl:service&gt;
+            &lt;/wsdl:definitions&gt;
+        </pre>
+
+         <h2>Axi2 Configurations</h2>
+        <p>axi2.xml file, which configures the axis2 server on which above service is hosted, should be enabled with JMS
+            transport.</p>
+        <pre xml:space="preserve">
+            &lt;transportReceiver name=&quot;jms&quot; class=&quot;org.apache.axis2.transport.jms.JMSListener&quot;&gt;
+                &lt;parameter name=&quot;default&quot; locked=&quot;false&quot;&gt;
+                &lt;parameter name=&quot;java.naming.factory.initial&quot; locked=&quot;false&quot;&gt;org.wso2.andes.jndi.PropertiesFileInitialContextFactory&lt;/parameter&gt;
+                &lt;parameter name=&quot;java.naming.provider.url&quot; locked=&quot;false&quot;&gt;conf/jndi.properties&lt;/parameter&gt;
+                &lt;parameter name=&quot;transport.jms.ConnectionFactoryJNDIName&quot; locked=&quot;false&quot;&gt;QueueConnectionFactory&lt;/parameter&gt;
+                &lt;parameter name=&quot;transport.jms.ConnectionFactoryType&quot; locked=&quot;false&quot;&gt;queue&lt;/parameter&gt;
+                &lt;/parameter&gt;
+            &lt;/transportReceiver&gt;
+        </pre>
+        <br></br>
+        <pre xml:space="preserve">
+            <transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"/>
+        </pre>
+
+        <h2>Message Broker Bindings</h2>
+        <p>conf/jndi.properties file is having all JMS bindings (Queue/QueueConnectionFactory) mentioned above.</p>
+
+        <pre xml:space="preserve">
+
+            connectionfactory.QueueConnectionFactory=amqp://admin:admin@clientid/carbon?brokerlist='tcp://localhost:5672'
+            queue.MessageReceiveService=MessageReceiveService
+        </pre>
+        <p>Note that WSO2 Message Broker should be running at localhost port 5672 as per this sample.</p>
+        <h2>Start Axis2 Server</h2>
+        <p>Axis2 server is started with above configurations, hosting the above MessageReceiveService service.</p>
+        <pre xml:space="preserve">
+
+            private AxisServer axisServer;
+            public void start(){
+            try {
+                ConfigurationContext configurationContext =
+                ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,"conf/axis2.xml");
+                this.axisServer = new AxisServer();
+                this.axisServer.setConfigurationContext(configurationContext);
+                this.axisServer.deployService(MessageReceiveService.class.getName());
+                try {
+                Thread.sleep(2000);
+                } catch (InterruptedException e) {
+                }
+                } catch (AxisFault axisFault) {
+                axisFault.printStackTrace();
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+            }
+        </pre>
+
+        <h2>Send A Message To MessageReceiveService Service</h2>
+        <p>Now using axis2_client.xml as the config file a ConfigurationContext can be created and a message can be sent
+            to the service. Note that fist "in-only" message is sent and then "in-out" message is sent. Client stub is
+            generated from the above WSDL using WSDL-To-Java tool (when complied using build.xml at &amp; MB_HOME &amp;
+            /Samples/jmstransport using ant this will be done).
+        </p>
+        <p>Using WSO2 MB management console you can see how  MessageReceiveService queue is created. See Message Broker
+            Queues - User Guide for more information.</p>
+        <pre xml:space="preserve">
+
+            public void sendMessage(){
+            try {
+
+            ConfigurationContext configurationContext =
+            ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, "conf/axis2_client.xml");
+            MessageReceiveServiceStub stub = new MessageReceiveServiceStub(configurationContext,"http://localhost:8080/axis2/services/MessageReceiveService.MessageReceiveServiceHttpSoap11Endpoint/");
+            //first send the in only message
+            stub.receive("Test message to receive ");
+            // inout message
+            String response = stub.echo("Test message to echo");
+            System.out.println("Response ==> " + response);
+
+            try {
+            Thread.sleep(10000);
+            } catch (InterruptedException e) {
+            e.printStackTrace();
+            }
+            } catch (AxisFault axisFault) {
+            axisFault.printStackTrace();
+            } catch (java.rmi.RemoteException e) {
+            e.printStackTrace();
+            }
+            }
+        </pre>
+        <p>
+            The complete sample code demonstrating the scenario will be as follows.
+        </p>
+        <pre xml:space="preserve">
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.engine.AxisServer;
+import org.sample.transport.stub.MessageReceiveServiceStub;
+
+public class JMSTransportClient {
+        private AxisServer axisServer;
+        public void start(){
+            try {
+                ConfigurationContext configurationContext =
+                        ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,"conf/axis2.xml");
+                this.axisServer = new AxisServer();
+                this.axisServer.setConfigurationContext(configurationContext);
+                this.axisServer.deployService(MessageReceiveService.class.getName());
+                try {
+                    Thread.sleep(2000);
+                } catch (InterruptedException e) {
+                }
+            } catch (AxisFault axisFault) {
+                axisFault.printStackTrace();
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+        }
+        public void stop(){
+            try {
+                this.axisServer.stop();
+            } catch (AxisFault axisFault) {
+                axisFault.printStackTrace();
+            }
+        }
+        public void sendMessage(){
+            try {
+
+                ConfigurationContext configurationContext =
+                        ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, "conf/axis2_client.xml");
+                MessageReceiveServiceStub stub = new                    MessageReceiveServiceStub(configurationContext,"http://localhost:8080/axis2/services/MessageReceiveService.MessageReceiveServiceHttpSoap11Endpoint/");
+                //first send the in only message
+                stub.receive("Test message to receive ");
+                // inout message
+                String response = stub.echo("Test message to echo");
+                System.out.println("Response ==> " + response);
+
+                try {
+                    Thread.sleep(10000);
+                } catch (InterruptedException e) {
+                    e.printStackTrace();
+                }
+            } catch (AxisFault axisFault) {
+                axisFault.printStackTrace();
+            } catch (java.rmi.RemoteException e) {
+                e.printStackTrace();
+            }
+        }
+        public static void main(String[] args) {
+
+            JMSTransportClient jmsTransportClient = new JMSTransportClient();
+            jmsTransportClient.start();
+            jmsTransportClient.sendMessage();
+            jmsTransportClient.stop();
+        }
+
+    }
+        </pre>
+    </body>
+</html>


[18/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/domain_rename_checker_ajaxprocessor.jsp
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/domain_rename_checker_ajaxprocessor.jsp b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/domain_rename_checker_ajaxprocessor.jsp
new file mode 100644
index 0000000..417bb87
--- /dev/null
+++ b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/domain_rename_checker_ajaxprocessor.jsp
@@ -0,0 +1,47 @@
+<%-- 
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~ 
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~ 
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  --%>
+<%@ page import="org.wso2.stratos.gaas.login.ui.utils.TenantConfigUtil" %><%
+/* this script is used to alter the old registrants to */
+String domain = request.getParameter("domain");
+
+try {
+    if (TenantConfigUtil.isDomainRegistered(domain, config, session)) {
+%>
+----success----
+<%
+    }
+    else {
+        String trialDomain = domain + "-trial";
+        if (TenantConfigUtil.isDomainRegistered(trialDomain, config, session)) {
+%>
+----trial----
+<%
+        }
+        else {
+%>
+----failed----
+<%
+        }
+    }
+} catch (Exception e) {
+%>
+----failed----
+<%
+}
+%>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/body-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/body-bg.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/body-bg.gif
new file mode 100644
index 0000000..950ebf7
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/body-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-01-icon.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-01-icon.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-01-icon.gif
new file mode 100644
index 0000000..ff3ba26
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-01-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-02-icon.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-02-icon.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-02-icon.gif
new file mode 100644
index 0000000..ee4cb66
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-02-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-03-icon.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-03-icon.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-03-icon.gif
new file mode 100644
index 0000000..8f3c2a1
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/feature-03-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/google-apps-login.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/google-apps-login.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/google-apps-login.gif
new file mode 100644
index 0000000..6eb5c9b
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/google-apps-login.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/link-icon.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/link-icon.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/link-icon.gif
new file mode 100644
index 0000000..5598f59
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/link-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/login-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/login-bg.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/login-bg.gif
new file mode 100644
index 0000000..3f34a69
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/login-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/logo.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/logo.gif
new file mode 100755
index 0000000..837f813
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/paas-login-1pix-1.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/paas-login-1pix-1.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/paas-login-1pix-1.gif
new file mode 100644
index 0000000..439f27d
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/paas-login-1pix-1.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/paas-login-1pix.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/paas-login-1pix.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/paas-login-1pix.gif
new file mode 100644
index 0000000..439f27d
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/paas-login-1pix.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/powered.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/powered.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/powered.gif
new file mode 100755
index 0000000..fb478bf
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/powered.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/reg-button-hover.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/reg-button-hover.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/reg-button-hover.gif
new file mode 100644
index 0000000..89f2c54
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/reg-button-hover.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/reg-button.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/reg-button.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/reg-button.gif
new file mode 100644
index 0000000..5d8e2e4
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/reg-button.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/register.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/register.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/register.gif
new file mode 100755
index 0000000..f225e38
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/register.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-body-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-body-bg.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-body-bg.gif
new file mode 100755
index 0000000..dc2c240
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-body-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-content-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-content-bg.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-content-bg.gif
new file mode 100755
index 0000000..9624125
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-content-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-footer-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-footer-bg.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-footer-bg.gif
new file mode 100755
index 0000000..dc317e5
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-footer-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-header-bg.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-header-bg.gif
new file mode 100755
index 0000000..bd228c9
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/st-login-header-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/t-right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/t-right-logo.gif b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/t-right-logo.gif
new file mode 100644
index 0000000..0c13371
Binary files /dev/null and b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/images/t-right-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/js/login.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/js/login.js b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/js/login.js
new file mode 100644
index 0000000..6033803
--- /dev/null
+++ b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/js/login.js
@@ -0,0 +1,27 @@
+
+function getDomainFromUserName() {
+    var tenantDomain = "";
+    var userName = document.getElementById("txtUserName").value;
+    if (userName != null) {
+        atIndex = userName.lastIndexOf('@');
+        if (atIndex != -1) {
+            tenantDomain = userName.substring(atIndex + 1, userName.length);
+        }
+    }
+    return tenantDomain;
+}
+
+
+function getTenantAwareUserName() {
+    var userName = document.getElementById("txtUserName").value;
+    if (userName != null) {
+        atIndex = userName.lastIndexOf('@');
+        if (atIndex != -1) {
+            userName = userName.substring(0, atIndex);
+        }
+    }
+    return userName;
+}
+
+
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/login_ajaxprocessor.jsp
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/login_ajaxprocessor.jsp b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/login_ajaxprocessor.jsp
new file mode 100644
index 0000000..5b23fbf
--- /dev/null
+++ b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/login_ajaxprocessor.jsp
@@ -0,0 +1,331 @@
+<%-- 
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~ 
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~ 
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  --%>
+<%@ page import="org.wso2.carbon.CarbonConstants" %>
+
+<%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %>
+<%@ page import="org.wso2.carbon.utils.multitenancy.MultitenantConstants" %>
+
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib prefix="carbon" uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" %>
+
+ 
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+
+<head>
+    <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
+    <title>WSO2 Stratos Manager</title>
+    <link href="../admin/css/global.css" rel="stylesheet" type="text/css" media="all"/>
+    <link href="../styles/css/main.css" rel="stylesheet" type="text/css" media="all"/>
+
+    <link href="../dialog/css/jqueryui/jqueryui-themeroller.css" rel="stylesheet" type="text/css"
+          media="all"/>
+    <link href="../dialog/css/dialog.css" rel="stylesheet" type="text/css" media="all"/>
+    <link rel="icon" href="../admin/images/favicon.ico" type="image/x-icon"/>
+    <link rel="shortcut icon" href="../admin/images/favicon.ico" type="image/x-icon"/>
+
+    <script type="text/javascript" src="../admin/js/jquery.js"></script>
+    <script type="text/javascript" src="../admin/js/jquery.form.js"></script>
+    <script type="text/javascript" src="../dialog/js/jqueryui/jquery-ui.min.js"></script>
+
+    <script type="text/javascript" src="../admin/js/main.js"></script>
+    <script type="text/javascript" src="../admin/js/WSRequest.js"></script>
+    <script type="text/javascript" src="../admin/js/cookies.js"></script>
+    <script type="text/javascript" src="../tenant-login/js/login.js"></script>
+    <script type="text/javascript" src="../ajax/js/prototype.js"></script>
+
+</head>
+
+<body>
+<div id="dcontainer"></div>
+<script type="text/javascript" src="../dialog/js/dialog.js"></script>
+
+<%
+    String registerPath = "../tenant-register/select_domain.jsp";
+    String forgotPasswordPath = "../admin-mgt/forgot_password.jsp";
+    //register path changes if the tenant is in others domain
+    if (request.getAttribute(MultitenantConstants.TENANT_DOMAIN) != null) {
+        registerPath = "/carbon/tenant-register/select_domain.jsp";
+    }
+
+    if("true".equals(session.getAttribute("domain-validation-success"))) {
+        session.removeAttribute("domain-validation-success");
+        %>
+
+    <script type="text/javascript">
+        jQuery(document).ready(function() {
+            CARBON.showWarningDialog("You have succesfully validated your domain name. " + 
+            "Please re-login to your account to continue working.");
+        });
+    </script>
+<%
+    }
+    if("true".equals(session.getAttribute("temp-email-verfication"))){
+        session.removeAttribute("temp-email-verfication");
+        %>
+    <script type="text/javascript">
+        jQuery(document).ready(function() {
+            CARBON.showWarningDialog('Please login to your email and confirm the given email to proceed with the registration.');
+        });
+    </script>
+<%
+    }
+    String tenantdomain = (String)request.getAttribute(MultitenantConstants.TENANT_DOMAIN);
+
+    if ("true".equals(session.getAttribute("temp-suffixed-trial"))) {
+        session.removeAttribute("temp-suffixed-trial");
+%>
+    <script type="text/javascript">
+        jQuery(document).ready(function() {
+            // we know the tenant domain 
+            var newTenantDomain = "<%=tenantdomain%>";
+            var exitCode = function() {
+                var redirectUrl = "/t/" + newTenantDomain + "/carbon/admin/login.jsp";
+                window.location.href = redirectUrl;
+            };
+            CARBON.showWarningDialog("The domain name of your account is renamed to " + newTenantDomain + " "  +
+                      "as the ownership of the domain is not confirmed. You can login to the account under the " +
+                      "changed domain name and confirm the ownership of your domain from the 'Account management' page", exitCode, exitCode);
+        });
+    </script>    
+<%
+    }
+
+    String tip = "";
+    if(tenantdomain == null){
+        tenantdomain = "";
+        tip = "Enter the username in the format: user  name@yourdomain, Example: foo@abc.com";
+    }
+    else{
+        tenantdomain = "@" + tenantdomain;
+    }
+    String userForumURL = (String) config.getServletContext().getAttribute(CarbonConstants.PRODUCT_XML_WSO2CARBON + CarbonConstants.PRODUCT_XML_USERFORUM);
+    String userGuideURL = (String) config.getServletContext().getAttribute(CarbonConstants.PRODUCT_XML_WSO2CARBON + CarbonConstants.PRODUCT_XML_USERGUIDE);
+    String mailinglistURL = (String) config.getServletContext().getAttribute(CarbonConstants.PRODUCT_XML_WSO2CARBON + CarbonConstants.PRODUCT_XML_MAILINGLIST);
+    String issuetrackerURL = (String) config.getServletContext().getAttribute(CarbonConstants.PRODUCT_XML_WSO2CARBON + CarbonConstants.PRODUCT_XML_ISSUETRACKER);
+    if (userForumURL == null) {
+        userForumURL = "#";
+    }
+    if (userGuideURL == null) {
+        userGuideURL = "#";
+    }
+    if (mailinglistURL == null) {
+        mailinglistURL = "#";
+    }
+    if (issuetrackerURL == null) {
+        issuetrackerURL = "#";
+    }
+%>
+<fmt:bundle basename="org.wso2.carbon.i18n.Resources">
+    <%
+        String loginStatus = request.getParameter("loginStatus");
+        if (loginStatus != null && "false".equalsIgnoreCase(loginStatus)) {
+    %>
+    <script type="text/javascript">
+        jQuery(document).ready(function() {
+            CARBON.showWarningDialog('<fmt:message key="login.fail.message"/>');
+        });
+    </script>
+    <%
+        }
+                                          
+        if (loginStatus != null && "failed".equalsIgnoreCase(loginStatus)) {
+    %>
+    <script type="text/javascript">
+        jQuery(document).ready(function() {
+            CARBON.showWarningDialog('<fmt:message key="login.fail.message"/>');
+        });
+    </script>
+    <%
+        }
+        String backendURL = CarbonUIUtil.getServerURL(config.getServletContext(), session);
+    %>
+    <%--New page design begings--%>
+    <link rel="stylesheet" type="text/css" href="../tenant-login/css/loginpage.css"/>
+		<div id="login-content">
+					<div class="main-text">
+						WSO2 Stratos deploys the powerful WSO2 Carbon platform as Platform-as-a-Service on cloud infrastructure, thereby providing all the advantages expected from the cloud: world-class time-to-market, optimum resource utilization and automatic governance and monitoring.
+					</div>
+					<div class="clear"></div>
+					<div class="feature feature-left">
+						<img src="../tenant-login/images/feature-01-icon.gif"/>
+						<h2>Elasticity</h2>
+						<p>
+							Stratos manages your underlying cloud infrastructure to seamlessly handle the scalability demands of your application. 
+						</p>
+					</div>
+					<div class="feature">
+						<img src="../tenant-login/images/feature-02-icon.gif"/>
+						<h2>Multi-tenancy</h2>
+						<p>
+							Departments, developer groups, or projects run fully independently, but share the same middleware platform for maximum resource utilization. 
+						</p>
+					</div>
+					<div class="feature">
+					 	<img src="../tenant-login/images/feature-03-icon.gif"/>
+						<h2>Self Provisioning</h2>
+						<p>
+							Authorized users can provision new tenants from a web portal in moments.
+						</p>
+					</div>
+					<div class="clear"></div>
+							<a class="register-button" href="<%=registerPath%>">Get Started Now for FREE!</a>
+				       	<table class="adv">
+						<tr>
+						<td>
+
+			                                <h2 class="stratos-Signin"><fmt:message key="sign.in"/></h2>
+			                                <div class="sign-in-box">
+			                                    <table style="width:100%">
+			    `                                   <tr>
+			                                            <td class="user_pass_td">
+			                                                <h3>Login Using Username & Password</h3>
+			
+			                                                <form action='../admin/login_action.jsp' method="POST" target="_self">
+		                                    			<!-- making the backend url a hidden text box -->
+		                                    			<input type="hidden" id="txtbackendURL" name="backendURL" class="user" tabindex="1" value="<%=backendURL%>"/>
+			                                                    <table class="user_pass_table">
+			                                                    <tr>
+											<td><label for="txtUserName"><fmt:message key="username"/></label></td>
+											<td><input type="text" id="txtUserName" name="username" tabindex="1"/> <%=tenantdomain%></td>
+										</tr>
+										<tr>
+											<td></td>
+											<td><%=tip%></td>
+										</tr>
+										<tr>
+											<td><label for="txtPassword"><fmt:message key="password"/></label></td>
+											<td><input type="password" id="txtPassword" name="password" tabindex="2"/></td>
+										</tr>
+										<tr>
+											<td></td>
+											<td><input type="submit" value="<fmt:message key="sign.in"/>" tabindex="3"/></td>
+										</tr>
+										<%
+										if (registerPath != null) {
+										%>
+										                                <tr>
+										                                    <td colspan="2">
+										                                        If your organization doesn't have an account, please <a href="<%=registerPath%>" alt="Go To Register Page">register</a>.
+										                                    </td>
+										                                </tr>
+										<%
+										}
+										%>
+										<tr>
+			                                                            <td colspan="2"><a tabindex="4" href="../tenant-login/docs/userguide.html" target="_blank" class="help"><fmt:message key="sign.in.help"/></a>&nbsp;|&nbsp;<a tabindex="5" class="help" href="<%=forgotPasswordPath%>" target="_blank" class="password">Forgot Password</a></td>
+			                                                        </tr>
+			                                                    </table>
+                                                    
+
+                                                    			</form>
+                                            			</td>
+                                        			<td class="google-app-td">
+			                                            <h3>Or login using Google Apps Account</h3>
+			
+			                                            <img alt="Google App Account"
+			                                                 src="../tenant-login/images/google-apps-login.gif"
+			                                                 onclick="showHidePanel()"/>
+			
+			                                            <div id="loginBoxGoogle">
+			                                                <div class="help_txt"> Enter Google App domain</div>
+			                                                <form action="../relyingparty/openid.jsp" name="googleAppLogin"
+			                                                      method="POST">
+			                                                    <table class="styledLeft noBorders">
+			                                                        <tbody>
+			                                                        <tr>
+			                                                            <td><input type="text" name="gAppDomainOpenId"
+			                                                                       tabindex="3"/></td>
+			                                                            <td><input type="button" class="button" value="GO" style="background-image:none"
+			                                                                       onclick="document.googleAppLogin.submit()"/></td>
+			                                                        </tr>
+			                                                        </tbody>
+			                                                    </table>
+			                                                </form>
+			                                            </div>
+			                                            <script type="text/javascript">
+			                                                function showHidePanel() {
+			                                                    jQuery('#loginBoxGoogle').slideToggle("fast");
+			                                                }
+			                                                jQuery(document).ready(function() {
+			                                                    jQuery('#loginBoxGoogle').hide();
+			                                                    document.getElementById('txtUserName').focus();
+			                                                });
+			
+			                                            </script>
+                                        			</td>
+                                    				</tr>
+                                    			</table>
+                                			</div>
+						</td>
+						</tr>
+					</table>
+				<div class="clear"></div>
+				<div id="footer">
+					<div class="powered">
+						<span>Powered by</span><a target="_blank" href="http://wso2.org/projects/stratos"><img src="../tenant-login/images/powered.gif"/></a>
+					</div>
+					&copy; appserver.stratoslive.wso2.com copyright 2010 WSO2, Inc. &nbsp;
+					<a target="_blank" href="http://www.wso2.com/cloud/services/terms-of-use">Terms of Service</a>
+					|
+					<a target="_blank"  href="http://www.wso2.com/cloud/services/privacy-policy">Privacy Policy</a>
+					|
+					<a target="_blank"  href="http://www.wso2.com/cloud/services/support">Support</a>
+				</div>
+			</div>
+
+
+
+
+		
+    <script type="text/javascript">
+
+ function checkform()
+{
+    var username=document.getElementById('txtUserName').value;
+    username=username.trim();
+    document.getElementById('txtUserName').value=username;
+    return true;
+}                 
+ String.prototype.trim = function ()
+ {
+     return this.replace(/^\s*/, "").replace(/\s*$/, "");
+ }
+
+        function init(loginStatus) {
+            // intialize the code and call to the back end
+            /*wso2.wsf.Util.initURLs();*/
+            /*Initialize the XSLT cache*/
+            /*wso2.wsf.XSLTHelper.init();*/
+
+            if (loginStatus == 'true') {
+            } else if (loginStatus == 'null') {
+            } else if (loginStatus == 'false') {
+                wso2.wsf.Util.alertWarning("Login failed. Please recheck the username and password and try again")
+            }
+        }
+        document.getElementById('txtUserName').focus();
+    </script>
+
+</fmt:bundle>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/policy.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/policy.html b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/policy.html
new file mode 100644
index 0000000..76b4cf2
--- /dev/null
+++ b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/policy.html
@@ -0,0 +1,72 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+
+<head><title>Governance.stratoslive.wso2.com - Privacy Policy</title>
+<link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" /></head>
+
+<body>
+
+<h1>Governance.stratoslive.wso2.com - Privacy Policy</h1>
+
+<p>Governance.stratoslive.wso2.com takes your privacy seriously. Please read the following to learn more about our privacy policy.</p>
+
+<p>INFORMATION COLLECTION AND USE</p>
+
+<ul><li><p>When you register with Governance.stratoslive.wso2.com we ask for personal information such as your name, email address, and
+       biographical information.  When you sign into Governance.stratoslive.wso2.com using your account, you are not anonymous to us.</p></li><li><p>Governance.stratoslive.wso2.com may collect information about your activities on the site from your computer and browser,
+        including your IP address, Governance.stratoslive.wso2.com cookie information, your software and hardware attributes, and the
+        content you access on our site.</p></li><li><p>Governance.stratoslive.wso2.com may use this information to customize content you see, to fulfil request for products or
+        services, to improve our services, and to provide anonymous reporting to internal and external clients.</p></li><li><p>Governance.stratoslive.wso2.com may also use this information to contact you or to conduct research.</p></li></ul><br>
+
+<p>INFORMATION DISCLOSURE</p>
+
+<p>Governance.stratoslive.wso2.com does not rent, sell or share personal information about you with others except to provide products or
+    services that you've requested, unless:</p>
+    <ul><li><p>You or your legal guardian authorize to do so.</p></li><li><p>The information is shared under a confidentiality agreement with a partner for the purpose of communicating
+        with you about Governance.stratoslive.wso2.com offers.  These partners are prohibited from sharing your information with others.</p></li><li><p>The information is requested under subpoena, court order or legal process.</p></li><li><p>The information is needed to establish or exercise our legal rights or defend against legal claims.</p></li><li><p>We believe the information is needed to investigate, prevent, or take action against illegal activities, violations
+        of our Terms of Service, or as otherwise required by law.</p></li><li><p>Governance.stratoslive.wso2.com or its owner WSO2, Inc. is acquired or merged with another company.  Governance.stratoslive.wso2.com will make efforts to
+            announce any such change of ownership and any consequent change of privacy policy.</p></li></ul>
+
+    <p>Governance.stratoslive.wso2.com may set and access Governance.stratoslive.wso2.com cookies on your computer.</p><p><br></p><p><br></p>
+
+<p>CHANGING PERSONAL INFORMATION</p>
+
+<p>You can change or delete your Governance.stratoslive.wso2.com account profile at any time.</p>   <p><br></p>
+
+<p>CONFIDENTIALITY AND SECURITY</p>
+
+<ul><li><p>Access to personal information about you is limited to WSO2 employees who we believe reasonably need to
+   access that information in order to maintain Governance.stratoslive.wso2.com, to fulfill services you've requested, or to
+   otherwise do their jobs.</p></li><li><p>Governance.stratoslive.wso2.com takes precautions to secure personal information against accidental or malicious release.</p></li></ul><p><br></p>
+
+<p>CHANGES TO THIS PRIVACY POLICY</p>
+
+<p>Governance.stratoslive.wso2.com may update this policy at any time.  We will notify you of significant changes in the policy by sending a
+notice to the email address associated with each account or by placing a prominent notice on our site.</p>
+
+<p>If you have questions or suggestions about our privacy policy, please contact Support.</p><p><br></p>
+
+        <p><i>Effective 1st November 2009</i></p>
+
+
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/support.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/support.html b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/support.html
new file mode 100644
index 0000000..a15905a
--- /dev/null
+++ b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/support.html
@@ -0,0 +1,39 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+    <title>Governance.stratoslive.wso2.com - Support</title>
+    <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
+</head>
+
+<body>
+<div id="text-content">
+        <h1>Governance.stratoslive.wso2.com - Support</h1>
+
+        <p>Visit <a href="http://wso2.com/cloud/services/governance">http://wso2.com/cloud/services/governance</a> for more details about the Governance as as Service (GaaS) support.</p>
+        <p>For support with technical aspects of Governance.stratoslive.wso2.com or Governance Registry instance, visit the
+            <a href="http://wso2.org/forum/351">Governance Registry Forum</a>.</p>
+
+        <p>If you have suggestions on how to improve Governance.stratoslive.wso2.com or found bugs, please let us know in the registry user mailing list, <a href="mailto:registry-user@wso2.org">registry-user@wso2.org</a>.</p>
+
+    </div>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/terms.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/terms.html b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/terms.html
new file mode 100644
index 0000000..98a399b
--- /dev/null
+++ b/products/stratos-controller/modules/login/src/main/resources/web/tenant-login/terms/terms.html
@@ -0,0 +1,74 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+
+<head><title>Governance.stratoslive.wso2.com - Terms of Service</title>
+<link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" /></head>
+
+<body>
+
+<h1>Governance.stratoslive.wso2.com - Terms of Service</h1>
+
+<p>THE FOLLOWING TERMS AND CONDITIONS ARE APPLIED TO GOVERNANCE.CLOUD.WSO2.COM ACCOUNTS</p>
+<p><br></p>
+<p>1. ACCEPTANCE OF GOVERNANCE.CLOUD.WSO2.COM TERMS</p>
+
+<p>Welcome to Governance.stratoslive.wso2.com! By requesting a membership account on Governance.stratoslive.wso2.com, you agree to these terms. WSO2 Inc. (WSO2), as the owner of Governance.stratoslive.wso2.com, reserves the right to update and change these Terms and all documents incorporated by reference at any time. You can always find the most recent version of the Terms at http://www.Governance.stratoslive.wso2.com/carbon/tenant-login/terms/terms.html.</p>
+<p><br></p>
+<p>2. DESCRIPTION OF SERVICE</p>
+<p>2.1 GOVERNANCE.CLOUD.WSO2.COM</p>
+<p>Governance.stratoslive.wso2.com provides members with the ability to store the enterprise metadata in their SOA platform and govern them. WSO2 reserves the right to limit the amount of resources members under a particular domain can upload, the number of users, the roles or permission a domain can have, the available features, and particular accounts based on the processing power they require, the bandwidth they consume, or any other deleterious technical or social side effects it may cause. WSO2 reserves the right to remove or bar a member for any reason.</p>
+<p><br></p>
+
+<p>3. GOVERNANCE.CLOUD.WSO2.COM ACCOUNTS</p>
+<p>To participate in Governance.stratoslive.wso2.com, you must have a valid email address. In consideration of your use of Governance.stratoslive.wso2.com, you agree to: (a) provide true, accurate, current and complete information about yourself and (b) maintain and promptly update the Registration Data to keep it true, accurate, current and complete. If you provide any information that is untrue, inaccurate, not current or incomplete, or WSO2 has reasonable grounds to suspect that such information is untrue, inaccurate, not current or incomplete, WSO2 has the right to suspend or terminate your Governance.stratoslive.wso2.com account and delete any information or content therein without liability to WSO2.</p>
+<p>By providing us with a valid email address you agree that WSO2 may contact you at that address for purposes of managing and maintaining your Governance.stratoslive.wso2.com account. In addition we reserve the right to send announcements regarding Governance.stratoslive.wso2.com and WSO2 products or services to that account. WSO2 will not sell your email address or provide it to third parties without your prior approval.</p>
+<p><br></p>
+<p>4. PAYMENT TERMS</p>
+<p>4.1 General Terms</p>
+<p>Governance.stratoslive.wso2.com beta is currently a free service. WSO2 Inc. retains the right to cease offering free memberships at any time, to transition current accounts to paid subscriptions when the beta period ends, to convert existing features to premium (paid) features, or to introduce new premium features. Users of the beta are under no obligation to subscribe to a paid account, in which case Governance.stratoslive.wso2.com reserves the right to suspend or terminate the member account.</p>
+<p><br></p>
+<p>4.2 Cancellation of Membership</p>
+<p>Memberships can be cancelled online at any time. Any difficulty encountered with deleting a membership account should be addressed to the Governance.stratoslive.wso2.com support group, whose contact information can be found at http://www.Governance.stratoslive.wso2.com/carbon/tenant-login/terms/support.html.</p>
+
+<p><br></p>
+<p>5. GOVERNANCE.CLOUD.WSO2.COM's RESERVATION OF RIGHTS</p>
+<p>WSO2 expressly reserves the right to immediately modify, delete content from, suspend or terminate your account and refuse current or future use of Governance.stratoslive.wso2.com or any other service run by WSO2, if WSO2 in its sole discretion believes you have: (i) violated or tried to violate the rights of others; or (ii) acted inconsistently with the spirit or letter of these Terms of Service. In such event, your Governance.stratoslive.wso2.com account may be suspended or cancelled immediately in our discretion, all the information and content contained within it will be deleted permanently and you will not be entitled to any refund of any of the amounts you've paid for such account. WSO2 accepts no liability for information or content that is deleted.</p>
+<p>WSO2 also reserves the right to cease offering the Governance.stratoslive.wso2.com service, temporarily or permanently, at any time.</p>
+<p><br></p>
+<p>6. INDEMNITY</p>
+<p>You agree to indemnify and hold harmless WSO2, and its subsidiaries, affiliates, officers, agents, or other partners, and employees, from any claim or demand, including reasonable attorneys' fees, made by any third party due to or arising out of your use of and access to Governance.stratoslive.wso2.com, your violation of the Terms of Service, your violation of any rights of another person or entity, or your violation of any applicable laws or regulations.</p>
+<p><br></p>
+<p>7. PRIVACY</p>
+<p>Registration Data and certain other information about you are subject to our Privacy Policy. For more information, see our full privacy policy at http://www.Governance.stratoslive.wso2.com/carbon/tenant-login/privacy.html.</p>
+
+<p><br></p>
+<p>8. AGE REQUIREMENTS FOR USE OF GOVERNANCE.CLOUD.WSO2.COM</p>
+<p>Governance.stratoslive.wso2.com is available for individuals aged 13 years or older. If you are 13 or older but under the age of 18, you should review these terms and conditions with your parent or guardian to make sure that you and your parent or guardian understand and agree to these terms and conditions.</p>
+<p><br></p>
+<p>9. INTELLECTUAL PROPERTY RIGHTS</p>
+<p>Governance.stratoslive.wso2.com provides the capacity to store and host member content, including service meta data (WSDLS, Schemas, Policies), images and other media, and any other document type. By uploading and creating content on Governance.stratoslive.wso2.com, you assert that you are the copyright holder or licensee of that content.</p>
+<p><br></p>
+<p>10. LOCATION OF LAWSUIT</p>
+<p>By agreeing to these Terms of Service you agree in case of a legal dispute to submit to the personal and exclusive jurisdiction of the courts located within the county of Santa Clara, California.</p>
+<p><i>Effective 1st November 2009</i></p>
+    
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/p2-profile-gen/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/p2-profile-gen/pom.xml b/products/stratos-controller/modules/p2-profile-gen/pom.xml
new file mode 100644
index 0000000..a9a600c
--- /dev/null
+++ b/products/stratos-controller/modules/p2-profile-gen/pom.xml
@@ -0,0 +1,417 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+    	<artifactId>stratos-controller-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+	<relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>stratos-controller-profile-gen</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Controller Profile Generation</name>
+    <url>http://apache.org</url>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <version>2.0-alpha-4</version>
+                <inherited>false</inherited>
+                <executions>
+                   <execution>
+                        <id>1-unpack-p2-agent-distribution</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>unpack</goal>
+                        </goals>
+                        <configuration>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.wso2.carbon</groupId>
+                                    <artifactId>wso2carbon-core</artifactId>
+                                    <version>${wso2carbon.version}</version>
+                                    <type>zip</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target</outputDirectory>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+		    <execution>
+                        <id>2-unpack-kernel-patch</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>unpack</goal>
+                        </goals>
+                        <configuration>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.wso2.carbon</groupId>
+                                    <artifactId>WSO2-CARBON-PATCH-4.1.0</artifactId>
+                                    <version>0002</version>
+                                    <type>zip</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target</outputDirectory>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.wso2.maven</groupId>
+                <artifactId>carbon-p2-plugin</artifactId>
+                <version>${carbon.p2.plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>2-p2-repo-generation</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>p2-repo-gen</goal>
+                        </goals>
+                        <configuration>
+                            <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
+                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
+                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
+                            <publishArtifacts>true</publishArtifacts>
+                            <publishArtifactRepository>true</publishArtifactRepository>
+                            <featureArtifacts>
+				<!--**************************************************Manager features start*********************************************-->
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.logging.mgt.feature:4.1.1</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.databridge.datapublisher.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.ntask.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.coordination.core.feature:${carbon.version}</featureArtifactDef>
+				    <!-- registry related features-->
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.registry.core.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.registry.resource.properties.feature:${carbon.version}</featureArtifactDef>
+				    <!-- Features related to Cloud Manger -->
+				    <featureArtifactDef>
+					org.apache.stratos:org.apache.stratos.feature:${project.version}
+				    </featureArtifactDef>
+				    <featureArtifactDef>
+					org.apache.stratos:org.apache.stratos.common.feature:${project.version}
+				    </featureArtifactDef>
+				    <featureArtifactDef>
+					org.apache.stratos:org.apache.stratos.tenant.activity.server.feature:${project.version}
+				    </featureArtifactDef>
+				    <featureArtifactDef>
+					org.apache.stratos:org.apache.stratos.usage.feature:${project.version}
+				    </featureArtifactDef>
+				    <featureArtifactDef>
+					org.apache.stratos:org.apache.stratos.usage.agent.feature:${project.version}
+				    </featureArtifactDef>
+				    <!--featureArtifactDef>
+					org.apache.stratos:org.apache.stratos.throttling.manager.feature:${project.version}
+				    </featureArtifactDef-->
+				    <featureArtifactDef>
+					org.apache.stratos:org.apache.stratos.throttling.agent.feature:${project.version}
+				    </featureArtifactDef>
+				    <!--featureArtifactDef>
+					org.wso2.carbon:org.wso2.carbon.billing.server.feature:2.1.3
+				    </featureArtifactDef-->
+				    <featuredArtifactDef>
+					org.wso2.carbon:org.wso2.carbon.rule.service.server.feature:${carbon.version}
+				    </featuredArtifactDef>
+				    <!--featureArtifactDef>
+					org.wso2.carbon:org.wso2.carbon.billing.ui.feature:${stratos.component.version}
+				    </featureArtifactDef-->
+				    <!-- Security Mgt feature to manage key stores -->
+				    <featureArtifactDef>
+					org.wso2.carbon:org.wso2.carbon.security.mgt.feature:${carbon.version}
+				    </featureArtifactDef>
+				    <featureArtifactDef>
+					org.wso2.carbon:org.wso2.carbon.webapp.mgt.server.feature:${carbon.version}
+				    </featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.admin.mgt.server.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.admin.mgt.ui.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.captcha.mgt.server.feature:${carbon.version}</featureArtifactDef>
+				    <!-- start BAM feature -->
+				    <featureArtifactDef>org.wso2.carbon:org.apache.synapse.wso2.feature:2.1.1-wso2v4</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.task.server.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.datasource.server.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.transaction.manager.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.service.mgt.server.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.transport.mgt.server.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.event.common.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.event.server.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.reporting.server.feature:${carbon.version}</featureArtifactDef>
+				    <!--  end BAM features -->
+				    <!-- GApp SSO features -->
+
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.identity.relying.party.feature:${carbon.version}
+				    </featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.identity.core.feature:${carbon.version}
+				    </featureArtifactDef>
+				    <!-- End GApp SSO features -->
+
+				    <featureArtifactDef>org.apache.stratos:org.apache.stratos.lb.agent.server.feature:${project.version}
+				    </featureArtifactDef>
+
+				    <!-- Status Monitor Feature. Uncomment, if you want the manager to be used as a Stratos Status Monitor -->
+				    <!--featureArtifactDef>org.wso2.carbon:org.wso2.carbon.status.monitor.feature:${stratos.version}</featurecomponent.ArtifactDef-->
+
+				    <!--Adding sso and registry ui features to make the manager self contained-->
+				    <featureArtifactDef>
+					org.wso2.carbon:org.wso2.carbon.identity.sso.saml.feature:${carbon.version}
+				    </featureArtifactDef>
+				    <featureArtifactDef>
+					org.wso2.carbon:org.wso2.stratos.identity.saml2.sso.mgt.feature:${stratos.component.version}
+				    </featureArtifactDef>
+
+				    <featureArtifactDef>
+					org.wso2.carbon:org.wso2.carbon.registry.ui.menu.feature:${carbon.version}
+				    </featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.module.mgt.server.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.throttle.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.caching.feature:${carbon.version}</featureArtifactDef>
+				    <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.rm.server.feature:4.0.0</featureArtifactDef>
+				    <featureArtifactDef>org.apache.stratos:org.apache.stratos.adc.mgt.feature:${project.version}</featureArtifactDef>
+				<featureArtifactDef>
+                                    org.apache.stratos:org.apache.stratos.cartridge.mgt.ui.feature:${project.version}
+                                </featureArtifactDef>
+				 <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.identity.authenticator.saml2.sso.server.feature:${wso2carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature:${wso2carbon.version}
+                                </featureArtifactDef>
+				<!--**************************************************Manager features end*********************************************-->
+
+				
+			</featureArtifacts>
+        	</configuration>
+        	</execution>
+
+		
+
+		<execution>
+			<id>3-p2-profile-generation</id>
+			<phase>package</phase>
+			<goals>
+			    <goal>p2-profile-gen</goal>
+			</goals>
+			<configuration>
+			    <profile>WSO2CarbonProfile</profile>
+			    <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
+			    <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
+			    <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
+			    <destination>${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components</destination>
+			    <deleteOldProfileFiles>true</deleteOldProfileFiles>
+			    <features>
+				<!--****************************************Manager features start*********************************************--> 
+				<feature>
+				    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.identity.sso.saml.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.stratos.identity.saml2.sso.mgt.feature.group</id>
+				    <version>${stratos.component.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.logging.mgt.feature.group</id>
+				    <version>4.1.1</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.security.mgt.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.registry.core.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.registry.resource.properties.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.ntask.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.coordination.core.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+
+				<feature>
+				    <id>org.apache.stratos.feature.group</id>
+				    <version>${project.version}</version>
+				</feature>
+				<feature>
+				    <id>org.apache.stratos.common.feature.group</id>
+				    <version>${project.version}</version>
+				</feature>
+				<!-- start BAM -->
+				<feature>
+				    <id>org.apache.synapse.wso2.feature.group</id>
+				    <version>2.1.1-wso2v4</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.task.server.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.transaction.manager.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.transport.mgt.server.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.event.server.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.event.common.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.admin.mgt.server.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.admin.mgt.ui.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.captcha.mgt.server.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+
+				<!-- Status Monitor Feature. Uncomment, if you want the manager to be used as a Stratos Status Monitor -->
+				<!--feature>
+				    <id>org.wso2.carbon.status.monitor.feature.group</id>
+				    <version>${stratos.version}</version>
+				</feature-->
+
+				<!-- GApp SSO features -->
+				<feature>
+				    <id>org.wso2.carbon.identity.core.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.identity.relying.party.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<!--End GApp SSO features -->
+
+				<feature>
+				    <id>org.apache.stratos.lb.agent.server.feature.group</id>
+				    <version>${project.version}</version>
+				</feature>
+				<feature>
+				    <id>org.apache.stratos.usage.feature.group</id>
+				    <version>${project.version}</version>
+				</feature>
+				<feature>
+				    <id>org.apache.stratos.usage.agent.feature.group</id>
+				    <version>${project.version}</version>
+				</feature>
+				<!--feature>
+				    <id>org.apache.stratos.throttling.manager.feature.group</id>
+				    <version>${project.version}</version>
+				</feature-->
+				<feature>
+				    <id>org.apache.stratos.throttling.agent.feature.group</id>
+				    <version>${project.version}</version>
+				</feature>
+				<!--feature>
+				    <id>org.wso2.carbon.billing.server.feature.group</id>
+				    <version>2.1.3</version>
+				</feature-->
+				<!--feature>
+				    <id>org.wso2.carbon.billing.ui.feature.group</id>
+				    <version>${stratos.component.version}</version>
+				</feature-->
+				<feature>
+				    <id>org.wso2.carbon.rule.service.server.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.wso2.carbon.reporting.server.feature.group</id>
+				    <version>${carbon.version}</version>
+				</feature>
+				<feature>
+				    <id>org.apache.stratos.tenant.activity.server.feature.group</id>
+				    <version>${project.version}</version>
+				</feature>
+				<feature>
+                                    <id>org.apache.stratos.adc.mgt.feature.group</id>
+                                    <version>${project.version}</version>
+                                </feature>
+				<feature>
+                                    <id>org.apache.stratos.cartridge.mgt.ui.feature.group</id>
+                                    <version>${project.version}</version>
+                                </feature>
+				 <feature>
+                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group</id>
+                                    <version>${wso2carbon.version}</version>
+                                </feature>
+				<!--****************************************Manager features end*********************************************--> 
+               		 </features>
+
+			 </configuration>
+                    </execution>
+
+		</executions>
+            </plugin>
+		<plugin>
+	<groupId>org.apache.maven.plugins</groupId>
+	<artifactId>maven-antrun-plugin</artifactId>
+	<version>1.1</version>
+	<executions>
+	    <execution>
+		<phase>package</phase>
+		<configuration>
+		    <tasks>
+			<replace token="false" value="true"
+						dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components">
+			    <include name="**/bundles.info"/>
+			</replace>
+		    </tasks>
+		</configuration>
+		<goals>
+		    <goal>run</goal>
+		</goals>
+	    </execution>
+	</executions>
+	</plugin>
+        </plugins>
+    </build>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/pom.xml b/products/stratos-controller/modules/styles/pom.xml
new file mode 100644
index 0000000..57e7cf5
--- /dev/null
+++ b/products/stratos-controller/modules/styles/pom.xml
@@ -0,0 +1,48 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-controller-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>manager-styles-parent</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Manager Styles Parent</name>
+    <url>http://apache.org</url>
+    <description>Apache Manager Styles Parent</description>
+
+    <licenses>
+        <license>
+            <name>Apache License Version 2.0</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+        </license>
+    </licenses>
+
+    <modules>
+        <module>product</module>
+	<module>service</module>
+    </modules>
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/pom.xml b/products/stratos-controller/modules/styles/product/pom.xml
new file mode 100644
index 0000000..99deb06
--- /dev/null
+++ b/products/stratos-controller/modules/styles/product/pom.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+    	<artifactId>manager-styles-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.manager.styles</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Stratos - Carbon Cloud Manager UI styles</name>
+    <url>http://apache.org</url>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-eclipse-plugin</artifactId>
+                <version>2.6</version>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+                        <Bundle-Name>${project.artifactId}</Bundle-Name>
+                        <Fragment-Host>org.wso2.carbon.ui</Fragment-Host>
+                        <Carbon-Component>UIBundle</Carbon-Component>
+                        <Private-Package>*</Private-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <includes>
+                    <include>META-INF/product.xml</include>
+                </includes>
+                <filtering>true</filtering>
+            </resource>
+            <resource>
+                <directory>src/main/resources</directory>
+                <excludes>
+                    <exclude>META-INF/product.xml</exclude>
+                </excludes>
+            </resource>
+        </resources>
+    </build>
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/META-INF/product.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/META-INF/product.xml b/products/stratos-controller/modules/styles/product/src/main/resources/META-INF/product.xml
new file mode 100644
index 0000000..60f70ca
--- /dev/null
+++ b/products/stratos-controller/modules/styles/product/src/main/resources/META-INF/product.xml
@@ -0,0 +1,28 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<product xmlns="http://products.wso2.org/carbon">
+    <properties>
+       <property name="userforum">http://stackoverflow.com/questions/tagged/wso2</property>
+       <property name="userguide">http://docs.wso2.org/stratos</property>
+       <property name="mailinglist">http://wso2.org/mail</property>
+       <property name="issuetracker">https://wso2.org/jira/browse/SPI</property>
+       <property name="collapsedmenus">region1_configure_menu,region3_registry_menu,region4_monitor_menu,region5_tools_menu</property>
+       <property name="webAdminConsoleTitle">WSO2 Stratos Controller (WSO2 SC)</property>
+    </properties>
+</product>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/web/product/about.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/web/product/about.html b/products/stratos-controller/modules/styles/product/src/main/resources/web/product/about.html
new file mode 100644
index 0000000..00513e4
--- /dev/null
+++ b/products/stratos-controller/modules/styles/product/src/main/resources/web/product/about.html
@@ -0,0 +1,132 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head><title>WSO2 ESB - About</title>
+
+<link href="../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all"/>
+</head>
+<body>
+<h1>Version 4.7.0</h1>
+<h2>About WSO2 ESB </h2>
+<p>WSO2 ESB is a lightweight and easy-to-use Open Source Enterprise Service Bus
+(ESB) available under the Apache Software License v2.0. WSO2 ESB allows
+administrators to simply and easily configure message routing, intermediation,
+transformation, logging, task scheduling, load balancing, failover routing,
+event brokering, etc.. The runtime has been designed to be completely
+asynchronous, non-blocking and streaming based on the Apache Synapse core.</p>
+
+<p>WSO2 ESB 4.7.0 is developed on top of the revolutionary
+    <a href="http://wso2.org/projects/carbon">Carbon platform</a>
+(Middleware a' la carte), and is based on the OSGi framework to achieve the
+better modularity for your SOA architecture. This also contains a lots of new
+features and many other optional components to customize the behavior of the
+server. Further, if you do not want any of the built in features, you can
+uninstall those features without any trouble. In other words, this ESB can be
+customized to your SOA needs.</p>
+<h2>About WSO2 Carbon </h2>
+<p>WSO2 Carbon is a component based Enterprise SOA platform. The
+design of
+WSO2 Carbon focuses on separating the key functionality of the SOA
+platform
+into separate pluggable Carbon components that can be mixed and
+matched, like
+customizable building blocks. This allows you to add only the
+functionality
+you need to start up, and continue to add product capabilities
+as your
+requirements grow. This helps a business to quickly adapt to
+changes.</p>
+<p>OSGi is used as the underlying core modularization technology
+to build the
+Carbon platform. The Carbon framework is shipped with Eclipse Equinox
+by
+default, but can be supported on Spring dm Server, Felix or Knoplerfish
+if
+required. The OSGi technology even allows you to write your business
+functionality as an OSGi component and deploy it in the existing Carbon
+platform. </p>
+<p> For a quick start on using the WSO2 Carbon
+platform, the Carbon components are pre-assembled into the following
+products: </p>
+<ul id="CarbonProducts"> 
+<li><a href="http://wso2.com/products/governance-registry/">WSO2
+Governance Registry</a></li> 
+<li><a href="http://wso2.com/products/application-server/">WSO2
+Application Server</a></li> 
+<li><a href="http://wso2.com/products/business-rules-server/">WSO2
+Business Rules Server</a></li> 
+<li><a href="http://wso2.com/products/business-process-server/">WSO2
+Business Process Server</a></li> 
+<li><a href="http://wso2.com/products/identity-server/">WSO2
+Identity Server</a></li> 
+<li><a href="http://wso2.com/products/data-services-server">WSO2
+Data Services Server</a></li> 
+<li><a href="http://wso2.com/products/business-activity-monitor/">WSO2
+Business Activity Monitor</a></li> 
+<li><a href="http://wso2.com/products/gadget-server/">WSO2
+Gadget Server</a></li> 
+<li><a href="http://wso2.com/products/mashup-server/">WSO2
+Mashup Server</a></li> 
+</ul> 
+<p>You can assemble your own products by combining
+components and
+deploying them in a preferred architecture. </p>
+<p>The WSO2 Carbon platform gives maximum flexibility to adapt
+the middleware
+to your enterprise architecture, rather than adapt your architecture to
+the
+middleware. </p>
+
+<h2>About WSO2</h2>
+<p>WSO2 is a Open Source technology company building Open Source
+middleware
+platforms for Web services and SOA. WSO2 delivers integrated middleware
+stacks based on components developed at Apache, offering industry
+leading
+performance and convenience for customers. </p>
+<p>Founded in August 2005 by pioneers in Web services and Open
+Source, WSO2
+engineers contribute heavily to many key Apache Web services projects. </p>
+
+<h3>Have you tried...</h3>
+<p><a href="http://wso2.com/products/governance-registry/"><img src="../admin/images/registry_logo_h23.gif" alt="Governance Registry"/></a></p> 
+<p><a href="http://wso2.com/products/application-server/"><img src="../admin/images/appserver_logo_h23.gif" alt="AS"/></a></p> 
+<p><a href="http://wso2.com/products/business-rules-server/"><img src="../admin/images/brs_logo_h23.gif" alt="BRS"/></a></p> 
+<p><a href="http://wso2.com/products/business-process-server/"><img src="../admin/images/bps_logo_h23.gif" alt="BPS"/></a></p> 
+<p><a href="http://wso2.com/products/identity-server/"><img src="../admin/images/identity_logo_h23.gif" alt="IS"/></a></p> 
+<p><a href="http://wso2.com/products/data-services-server"><img src="../admin/images/ds_logo_h23.gif" alt="DS"/></a></p> 
+<p><a href="http://wso2.com/products/business-activity-monitor/"><img src="../admin/images/bam_logo_h23.gif" alt="BAM"/></a></p> 
+<p><a href="http://wso2.com/products/gadget-server/"><img src="../admin/images/gadgetserver_logo_h23.gif" alt="GS"/></a></p> 
+<p><a href="http://wso2.com/products/mashup-server/"><img src="../admin/images/mashup_logo_h23.gif" alt="MS"/></a></p> 
+<h3>Stay connected </h3> 
+<p><a href="http://wso2.org/user/login?destination=newsletter/subscriptions">Subscribe</a>
+to the WSO2 newsletter - project updates, events, articles, SOA news
+and much
+more.</p>
+<h3>Need more help?</h3>
+<ul>
+<li><a href="http://wso2.org/project/esb/java/4.7.0/docs/index.html">Online Documentation</a></li>
+<li><a href="http://wso2.org/library/esb">Read articles</a></li>
+<li><a href="http://wso2.org/forum/187">Post to the ESB forum</a></li>
+<li><a href="http://wso2.org/mail">Subscribe to the mailing list</a></li>
+<li><a href="https://wso2.org/jira/browse/ESBJAVA">Report an Issue</a></li>
+<li><a href="http://wso2.com/services/">Get commercial support</a></li>
+</ul>
+</body></html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/css/main.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/css/main.css b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/css/main.css
new file mode 100644
index 0000000..e9b2b82
--- /dev/null
+++ b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/css/main.css
@@ -0,0 +1,155 @@
+/* ---------------- template styles ------------------------- */
+
+table#main-table td#header {
+	background-image: url( ../images/sc-header-repeat.png);
+	border-bottom: 1px solid #464646;
+	height:84px;
+}
+
+/* ---------------- header styles ------------------ */
+div#header-div {
+    background-image: url( ../images/sc-back.png);
+	height:84px;
+}
+
+div#header-div div.left-logo {
+	background-image: url( ../images/sclogo.png );
+    margin-left: 24px;
+    margin-top: 27px;
+}
+
+div#header-div div.right-logo {
+	color: #02516b;
+    height: 27px;
+    line-height: 27px;
+    margin-right: 20px;
+    margin-top: 10px;
+    padding-right: 0;
+    padding-top: 5px;
+}
+div#header-div div.header-links {
+	margin-top:-10px;
+}
+div#header-div div.header-links div.right-links {
+	margin-right: 0px;
+	height: 35px;
+	padding-top: 0px;
+}
+div#header-div div.header-links div.right-links ul {
+	background-image:url("../images/right-links-bg.gif");
+	background-position:left top;
+	background-repeat:repeat-x;
+	padding-left: 25px;
+	padding-right: 15px;
+	padding-top: 9px;
+	padding-bottom: 7px;
+}
+div#middle h2{
+	color:#34323b;
+}
+/* ------------- menu styles ---------------------- */
+div#menu {
+}
+
+div#menu ul.main {
+}
+
+div#menu ul.main li {
+}
+
+div#menu ul.main li.normal {
+}
+
+div#menu ul.main li a.menu-home {
+background-image:url(../images/menu_header.png);
+height:28px;
+}
+
+div#menu ul.main li.menu-header {
+	background-image: url(../images/menu_header.png);
+	background-position: left bottom;
+	background-repeat: repeat-x;
+	height: 32px;
+	line-height: 32px;
+}
+
+div#menu ul.main li a.menu-default {
+}
+
+div#menu ul.main li a.menu-default:hover {
+	background-color: #EFECF5;
+	border-bottom: solid 1px #C2B7D8;
+	border-top: solid 1px #C2B7D8;
+	color: #00447C;
+}
+
+div#menu ul.sub {
+}
+/* -------------- Sidew menu styles --------------- */
+
+.menu-panel-buttons{
+  
+
+    background-color: #827d91;
+    border-right: 1px solid #CCCCCC;
+    border-top: 1px solid #CCCCCC;
+    border-bottom: 1px solid #CCCCCC;
+
+    -moz-border-radius: 2px;
+    -moz-border-radius: 2px;
+    border-radius: 2px;
+    border-radius: 2px;
+
+    margin-bottom:10px;
+    height:48px;
+    padding: 10px 4px;
+    padding-bottom:10px;
+
+
+    text-align: center;
+}
+.menu-panel-buttons span{
+    color: #fff;
+	background-color:transparent;
+}
+.menu-panel-buttons span.ie{
+	margin-left:0px;
+    *margin-left:-10px;
+    margin-top:-10px;
+}
+div.selected{
+    border:solid 1px #000;
+}
+div.selected{
+    -moz-box-shadow: 3px 3px 3px #888;
+    -webkit-box-shadow: 3px 3px 3px #888;
+    box-shadow: 3px 3px 3px #888;
+}
+div.selected span{
+    color:#c9e3f2;  
+	background-color:transparent;
+}
+#menu-panel-button0{
+    height:20px;
+    margin-top:5px;
+    margin-bottom:5px;
+    margin-left:2px;
+    cursor:pointer;
+}
+
+.showToHidden{
+    background:transparent url(../images/leftRightSlider-dark.png) no-repeat 0 0;
+}
+.hiddenToShow{
+    background:transparent url(../images/leftRightSlider-dark.png) no-repeat -35px 0;
+}
+.vertical-menu{
+    background-color: #b0bcc3;
+    width:20px;
+}
+
+/* -- Footer Styles */
+
+table#main-table td#footer {
+    background-color: #464646;
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif
new file mode 100644
index 0000000..f866f1d
Binary files /dev/null and b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/esb-server-menu-header.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/esb-server-menu-header.gif b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/esb-server-menu-header.gif
new file mode 100644
index 0000000..1c78bbf
Binary files /dev/null and b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/esb-server-menu-header.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png
new file mode 100644
index 0000000..36477e0
Binary files /dev/null and b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png differ


[07/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/js/jquery.orbit-1.2.3.min.js
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/js/jquery.orbit-1.2.3.min.js b/products/stratos_controller/modules/distribution/lib/home/js/jquery.orbit-1.2.3.min.js
deleted file mode 100755
index 13acb8d..0000000
--- a/products/stratos_controller/modules/distribution/lib/home/js/jquery.orbit-1.2.3.min.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * jQuery Orbit Plugin 1.2.3
- * www.ZURB.com/playground
- * Copyright 2010, ZURB
- * Free to use under the MIT license.
- * http://www.opensource.org/licenses/mit-license.php
-*/
-
-(function(d){d.fn.orbit=function(a){a=d.extend({animation:"horizontal-push",animationSpeed:600,timer:!0,advanceSpeed:4E3,pauseOnHover:!1,startClockOnMouseOut:!1,startClockOnMouseOutAfter:1E3,directionalNav:!0,captions:!0,captionAnimation:"fade",captionAnimationSpeed:600,bullets:!1,bulletThumbs:!1,bulletThumbLocation:"",afterSlideChange:function(){}},a);return this.each(function(){function q(){if(!a.timer||a.timer=="false")return!1;else r.is(":hidden")?s=setInterval(function(){l("next")},a.advanceSpeed):
-(o=!0,x.removeClass("active"),s=setInterval(function(){var a="rotate("+m+"deg)";m+=2;t.css({"-webkit-transform":a,"-moz-transform":a,"-o-transform":a});m>180&&(t.addClass("move"),z.addClass("move"));m>360&&(t.removeClass("move"),z.removeClass("move"),m=0,l("next"))},a.advanceSpeed/180))}function n(){if(!a.timer||a.timer=="false")return!1;else o=!1,clearInterval(s),x.addClass("active")}function A(){if(!a.captions||a.captions=="false")return!1;else{var y=e.eq(b).data("caption");(_captionHTML=d(y).html())?
-(j.attr("id",y).html(_captionHTML),a.captionAnimation=="none"&&j.show(),a.captionAnimation=="fade"&&j.fadeIn(a.captionAnimationSpeed),a.captionAnimation=="slideOpen"&&j.slideDown(a.captionAnimationSpeed)):(a.captionAnimation=="none"&&j.hide(),a.captionAnimation=="fade"&&j.fadeOut(a.captionAnimationSpeed),a.captionAnimation=="slideOpen"&&j.slideUp(a.captionAnimationSpeed))}}function B(){if(a.bullets)D.children("li").removeClass("active").eq(b).addClass("active");else return!1}function l(d){function c(){e.eq(f).css({"z-index":1});
-u=!1;a.afterSlideChange.call(this)}var f=b,g=d;if(f==g)return!1;if(e.length=="1")return!1;u||(u=!0,d=="next"?(b++,b==p&&(b=0)):d=="prev"?(b--,b<0&&(b=p-1)):(b=d,f<b?g="next":f>b&&(g="prev")),B(),e.eq(f).css({"z-index":2}),a.animation=="fade"&&e.eq(b).css({opacity:0,"z-index":3}).animate({opacity:1},a.animationSpeed,c),a.animation=="horizontal-slide"&&(g=="next"&&e.eq(b).css({left:h,"z-index":3}).animate({left:0},a.animationSpeed,c),g=="prev"&&e.eq(b).css({left:-h,"z-index":3}).animate({left:0},a.animationSpeed,
-c)),a.animation=="vertical-slide"&&(g=="prev"&&e.eq(b).css({top:v,"z-index":3}).animate({top:0},a.animationSpeed,c),g=="next"&&e.eq(b).css({top:-v,"z-index":3}).animate({top:0},a.animationSpeed,c)),a.animation=="horizontal-push"&&(g=="next"&&(e.eq(b).css({left:h,"z-index":3}).animate({left:0},a.animationSpeed,c),e.eq(f).animate({left:-h},a.animationSpeed)),g=="prev"&&(e.eq(b).css({left:-h,"z-index":3}).animate({left:0},a.animationSpeed,c),e.eq(f).animate({left:h},a.animationSpeed))),A())}var b=0,
-p=0,h,v,u,f=d(this).addClass("orbit"),c=f.wrap('<div class="orbit-wrapper" />').parent();f.add(h).width("1px").height("1px");var e=f.children("img, a, div");e.each(function(){var a=d(this),b=a.width(),a=a.height();b>f.width()&&(f.add(c).width(b),h=f.width());a>f.height()&&(f.add(c).height(a),v=f.height());p++});if(e.length==1)a.directionalNav=!1,a.timer=!1,a.bullets=!1;e.eq(b).css({"z-index":3}).fadeIn(function(){e.css({display:"block"})});if(a.timer){c.append('<div class="timer"><span class="mask"><span class="rotator"></span></span><span class="pause"></span></div>');
-var r=d("div.timer"),o;if(r.length!=0){var t=d("div.timer span.rotator"),z=d("div.timer span.mask"),x=d("div.timer span.pause"),m=0,s;q();r.click(function(){o?n():q()});if(a.startClockOnMouseOut){var C;c.mouseleave(function(){C=setTimeout(function(){o||q()},a.startClockOnMouseOutAfter)});c.mouseenter(function(){clearTimeout(C)})}}}a.pauseOnHover&&c.mouseenter(function(){n()});if(a.captions){c.append('<div class="orbit-caption"></div>');var j=c.children(".orbit-caption");A()}if(a.directionalNav){if(a.directionalNav==
-"false")return!1;c.append('<div class="slider-nav"><span class="right">Right</span><span class="left">Left</span></div>');var k=c.children("div.slider-nav").children("span.left"),w=c.children("div.slider-nav").children("span.right");k.click(function(){n();l("prev")});w.click(function(){n();l("next")})}if(a.bullets){c.append('<ul class="orbit-bullets"></ul>');var D=d("ul.orbit-bullets");for(i=0;i<p;i++){k=d("<li>"+(i+1)+"</li>");if(a.bulletThumbs&&(w=e.eq(i).data("thumb")))k=d('<li class="has-thumb">'+
-i+"</li>"),k.css({background:"url("+a.bulletThumbLocation+w+") no-repeat"});d("ul.orbit-bullets").append(k);k.data("index",i);k.click(function(){n();l(d(this).data("index"))})}B()}})}})(jQuery);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/js/orbit-1.2.3.css
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/js/orbit-1.2.3.css b/products/stratos_controller/modules/distribution/lib/home/js/orbit-1.2.3.css
deleted file mode 100755
index bff4f1f..0000000
--- a/products/stratos_controller/modules/distribution/lib/home/js/orbit-1.2.3.css
+++ /dev/null
@@ -1,202 +0,0 @@
-/* CSS for jQuery Orbit Plugin 1.2.3
- * www.ZURB.com/playground
- * Copyright 2010, ZURB
- * Free to use under the MIT license.
- * http://www.opensource.org/licenses/mit-license.php
- 
- 
- 
-/* PUT IN YOUR SLIDER ID AND SIZE TO MAKE LOAD BEAUTIFULLY
-   ================================================== */
-#featured { 
-	width: 940px;
-	height: 450px;
-	url('orbit/loading.gif') no-repeat center center;
-	overflow: hidden; }
-#featured>img,  
-#featured>div,
-#featured>a { display: none; }
-
-
-
-
-/* CONTAINER
-   ================================================== */
-
-div.orbit-wrapper {
-    width: 1px;
-    height: 1px;
-    position: relative; }
-
-div.orbit {
-    width: 1px;
-    height: 1px;
-    position: relative;
-    overflow: hidden }
-
-div.orbit>img {
-    position: absolute;
-    top: 0;
-    left: 0;
-    display: none; }
-
-div.orbit>a {
-    border: none;
-    position: absolute;
-    top: 0;
-    left: 0;
-    line-height: 0; 
-    display: none; }
-
-.orbit>div {
-    position: absolute;
-    top: 0;
-    left: 0;
-    width: 100%;
-    height: 100%; }
-
-/* Note: If your slider only uses content or anchors, you're going to want to put the width and height declarations on the ".orbit>div" and "div.orbit>a" tags in addition to just the .orbit-wrapper */
-
-
-/* TIMER
-   ================================================== */
-
-div.timer {
-    width: 40px;
-    height: 40px;
-    overflow: hidden;
-    position: absolute;
-    top: 10px;
-    right: 10px;
-    opacity: .6;
-    cursor: pointer;
-    z-index: 1001; }
-
-span.rotator {
-    display: block;
-    width: 40px;
-    height: 40px;
-    position: absolute;
-    top: 0;
-    left: -20px;
-    background: url(orbit/rotator-black.png) no-repeat;
-    z-index: 3; }
-
-span.mask {
-    display: block;
-    width: 20px;
-    height: 40px;
-    position: absolute;
-    top: 0;
-    right: 0;
-    z-index: 2;
-    overflow: hidden; }
-
-span.rotator.move {
-    left: 0 }
-
-span.mask.move {
-    width: 40px;
-    left: 0;
-    background: url(orbit/timer-black.png) repeat 0 0; }
-
-span.pause {
-    display: block;
-    width: 40px;
-    height: 40px;
-    position: absolute;
-    top: 0;
-    left: 0;
-    background: url(orbit/pause-black.png) no-repeat;
-    z-index: 4;
-    opacity: 0; }
-
-span.pause.active {
-    background: url(orbit/pause-black.png) no-repeat 0 -40px }
-
-div.timer:hover span.pause,
-span.pause.active {
-    opacity: 1 }
-
-
-/* CAPTIONS
-   ================================================== */
-
-.orbit-caption {
-    display: none;
-    font-family: "HelveticaNeue", "Helvetica-Neue", Helvetica, Arial, sans-serif; }
-
-.orbit-wrapper .orbit-caption {
-    background: #000;
-    background: rgba(0,0,0,.6);
-    z-index: 1000;
-    color: #fff;
-	text-align: center;
-	padding: 7px 0;
-    font-size: 13px;
-    position: absolute;
-    right: 0;
-    bottom: 0;
-    width: 100%; }
-
-
-/* DIRECTIONAL NAV
-   ================================================== */
-
-div.slider-nav {
-    display: block }
-
-div.slider-nav span {
-    width: 30px;
-    height: 41px;
-    text-indent: -9999px;
-    position: absolute;
-    z-index: 1000;
-    background-color: #fffff;
-    top: 50%;
-    margin-top: -22px;
-    cursor: pointer; }
-
-div.slider-nav span.right {
-    background: url(orbit/right-arrow.png);
-    right: 0; }
-
-div.slider-nav span.left {
-    background: url(orbit/left-arrow.png);
-    left: 0; }
-
-/* BULLET NAV
-   ================================================== */
-
-.orbit-bullets {
-    position: absolute;
-    z-index: 1000;
-    list-style: none;
-    bottom: -40px;
-    left: 50%;
-	margin-left: -50px;
-    padding: 0; }
-
-.orbit-bullets li {
-    float: left;
-    margin-left: 5px;
-    cursor: pointer;
-    color: #999;
-    text-indent: -9999px;
-    background: url(orbit/bullets.jpg) no-repeat 4px 0;
-    width: 13px;
-    height: 12px;
-    overflow: hidden; }
-
-.orbit-bullets li.active {
-    color: #222;
-    background-position: -8px 0; }
-    
-.orbit-bullets li.has-thumb {
-    background: none;
-    width: 100px;
-    height: 75px; }
-
-.orbit-bullets li.active.has-thumb {
-    background-position: 0 0;
-    border-top: 2px solid #000; }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/js/orbit/left-arrow.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/js/orbit/left-arrow.png b/products/stratos_controller/modules/distribution/lib/home/js/orbit/left-arrow.png
deleted file mode 100755
index bd65cb1..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/js/orbit/left-arrow.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/js/orbit/loading.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/js/orbit/loading.gif b/products/stratos_controller/modules/distribution/lib/home/js/orbit/loading.gif
deleted file mode 100755
index 969f505..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/js/orbit/loading.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/js/orbit/mask-black.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/js/orbit/mask-black.png b/products/stratos_controller/modules/distribution/lib/home/js/orbit/mask-black.png
deleted file mode 100755
index e4e77b5..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/js/orbit/mask-black.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/js/orbit/right-arrow.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/js/orbit/right-arrow.png b/products/stratos_controller/modules/distribution/lib/home/js/orbit/right-arrow.png
deleted file mode 100755
index 2c9baab..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/js/orbit/right-arrow.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/js/orbit/rotator-black.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/js/orbit/rotator-black.png b/products/stratos_controller/modules/distribution/lib/home/js/orbit/rotator-black.png
deleted file mode 100755
index a0d24a7..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/js/orbit/rotator-black.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/js/orbit/timer-black.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/js/orbit/timer-black.png b/products/stratos_controller/modules/distribution/lib/home/js/orbit/timer-black.png
deleted file mode 100755
index e4e77b5..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/js/orbit/timer-black.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/style.css
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/style.css b/products/stratos_controller/modules/distribution/lib/home/style.css
deleted file mode 100755
index 587c997..0000000
--- a/products/stratos_controller/modules/distribution/lib/home/style.css
+++ /dev/null
@@ -1,160 +0,0 @@
-body { font-family: "Calibri","Lucida Grande","Lucida Sans","Microsoft Sans Serif","Lucida Sans Unicode","Verdana","Sans-serif","trebuchet ms"; font-size: .85em; line-height: 135%; color: #434343; margin: 0px; padding: 0px; background-color: #94C8EC;}
-
-p { }
-
-td { }
-
-a:link { text-decoration: none; }
-
-a:visited { text-decoration: none; }
-
-a:hover { text-decoration: none; }
-
-a:active { text-decoration: none; }
-
-a img { border: 0px; }
-div.clear { clear: both; }
-
-div#main-content { width: 960px; margin: auto; background-image: url(images/top.gif); background-repeat: no-repeat; background-position: left 15px; }
-
-div#header { height: 140px; }
-div.top-nav {
-	float: right;
-}
-div.top-nav ul {
-	list-style: none;
-	margin: 0px;
-	padding: 0px;
-}
-div.top-nav ul li {
-	position: relative;
-	float: left;
-	padding-left: 10px;
-	padding-right: 10px;
-	padding-top: 10px;
-	padding-bottom: 0px;
-	border-right: solid 1px #005577;
-}
-div.top-nav ul li.right {
-	border-right: 0px;
-}
-div.top-nav ul li a {
-	color: #005577;
-	font-weight: bold;
-	font-size: 16px;
-}
-div.top-nav ul li a:hover {
-	color: #ffffff;
-}
-div.logo { float: left; margin-top: 25px; }
-div#content { background-color: #ffffff; background-image: url(images/content-bg.gif); background-repeat: repeat-y; background-position: left top; }
-div#left {
-	float: left;
-	width: 400px;
-	background-image: url(images/left-bg.gif);
-	background-position: right top;
-	background-repeat: no-repeat;
-}
-div#left div.stratos-products div.title {
-	margin-left: 30px;
-	margin-top: 5px;
-	font-size: 24px;
-	font-weight: normal;
-	line-height: 32px;
-}
-div#left div.stratos-products div.products {
-	margin-left: 30px;
-	margin-top: 25px;
-	padding-bottom: 40px;
-}
-div#left div.stratos-products div.products a {
-	display: block;
-	height: 24px;
-	margin-bottom: 7px;
-	background-image: url(images/stratos-products.gif);
-	background-repeat: no-repeat;
-	background-position: left top;
-}
-div#left div.stratos-products div.products a {
-	background: url(images/stratos-products-new.jpg) no-repeat top left;
-}
-div#left div.stratos-products div.products a.as-new{ background-position: 0 0; width: 170px; height: 24px; } 
-div#left div.stratos-products div.products a.bam-new{ background-position: 0 -74px; width: 204px; height: 23px; } 
-div#left div.stratos-products div.products a.bps-new{ background-position: 0 -147px; width: 198px; height: 23px; } 
-div#left div.stratos-products div.products a.brs-new{ background-position: 0 -220px; width: 183px; height: 23px; } 
-div#left div.stratos-products div.products a.cep-new{ background-position: 0 -293px; width: 231px; height: 22px; } 
-div#left div.stratos-products div.products a.cg-new{ background-position: 0 -365px; width: 148px; height: 24px; } 
-div#left div.stratos-products div.products a.dss-new{ background-position: 0 -439px; width: 181px; height: 24px; } 
-div#left div.stratos-products div.products a.esb-new{ background-position: 0 -513px; width: 192px; height: 24px; }
-div#left div.stratos-products div.products a.greg-new{ background-position: 0 -587px; width: 180px; height: 23px; } 
-div#left div.stratos-products div.products a.is-new{ background-position: 0 -660px; width: 147px; height: 23px; } 
-div#left div.stratos-products div.products a.mb-new{ background-position: 0 -733px; width: 157px; height: 23px; } 
-div#left div.stratos-products div.products a.ss-new{ background-position: 0 -806px; width: 142px; height: 23px; } 
-div#left div.stratos-products div.products a.ts-new{ background-position: 0 -879px; width: 130px; height: 23px; } 
-div#left div.stratos-products div.products a:hover { opacity:0.7;filter:alpha(opacity=70) }
-div#right {
-	float: left;
-	width: 560px;
-}
-
-div#right div.register { width: 555px; margin-top: 15px; margin-right: 0px; padding-bottom: 10px; text-align: center;
-background-image: url(images/intro-bg.gif);background-position: center bottom; background-repeat: no-repeat;
-}
-div#right div.register a { display: block; height: 62px; margin-bottom: 10px; }
-div#right div.register a img { margin-bottom: 7px; }
-div#right div.register a:hover img { opacity:0.7;filter:alpha(opacity=70) }
-
-div#right div.banner{
-	width: 500px;
-	margin: auto;
-	height: 297px;
-	margin-top: 30px;
-}
-div#right div.banner div#featured {
-	width: 500px;
-	height: 297px;
-}
-div#right div.banner div#featured div.screencast {
-	width: 500px;
-	height: 297px;
-	text-align: center;
-}
-div#right div.banner div#featured div.screencast h2 {
-	font-size: 16px;
-	margin-top: 0px;
-	margin-bottom: 0px;
-	padding-bottom: 8px;
-	padding-top: 8px;
-	line-height: 16px;
-	background-color: #000000;
-	color: #ffffff;
-	margin-left: 30px;
-	margin-right: 30px;
-}
-div#right div.banner div#featured div.whitepaper, div#right div.banner div#featured div.webinar {
-	width: 500px;
-	height: 297px;
-	text-align: center;
-	margin-top: 23px;
-}
-div#bottom { 
-	background-image: url(images/feature-middle-bg.gif);
-	background-position: center top;
-	background-repeat: no-repeat; 
-	}
-div#bottom div.feature {
-	float: left; 
-	width: 240px;
-	padding-left: 40px;
-	padding-right: 40px;
-	font-size: 20px;
-	line-height: 25px;
-	font-weight: bold;
-	text-align: center;
-	padding-bottom: 20px;
-}
-div#footer { height: 80px; background-image: url(images/bottom.gif); background-position: left top; background-repeat: no-repeat; padding-top: 25px;}
-div#footer div.powered { color: #333333; float: right; font-size: 85%; margin-right: 10px; }
-div#footer div.powered span { float: left; line-height: 23px; margin-right: 5px; }
-div.footer-links { padding-bottom: 5px; padding-left: 10px; border-bottom: solid 1px #4E84C4; margin-bottom: 10px; color: #4E84C4; }
-div#footer span.copyright { font-size: 90%; padding-left: 10px; }

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/pom.xml b/products/stratos_controller/modules/distribution/pom.xml
deleted file mode 100755
index dcbe288..0000000
--- a/products/stratos_controller/modules/distribution/pom.xml
+++ /dev/null
@@ -1,770 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-    <parent>
-        <groupId>org.apache.stratos</groupId>
-        <artifactId>stratos-controller-parent</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
-        <relativePath>../../pom.xml</relativePath>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>apache-stratos-sc</artifactId>
-    <packaging>jar</packaging>
-    <name>Apache Stratos - Distribution</name>
-    <description>Apache Stratos - Distribution</description>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.rampart</groupId>
-            <artifactId>rampart</artifactId>
-            <version>${rampart.mar.version}</version>
-            <type>mar</type>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.andes.wso2</groupId>
-            <artifactId>andes-client</artifactId>
-            <version>0.13.wso2v6</version>
-            <type>jar</type>
-        </dependency>
-        <!--dependency>
-                <groupId>org.wso2.carbon</groupId>
-                <artifactId>features-dashboard</artifactId>
-                <version>${features-dashboard.war.version}</version>
-                <type>war</type>
-            </dependency-->
-        <!--dependency>
-            <groupId>com.h2database.wso2</groupId>
-            <artifactId>h2-database-engine</artifactId>
-            <version>${orbit.version.h2.engine}</version>
-        </dependency-->
-        <!-- Carbon core distribution -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>wso2carbon-core</artifactId>
-            <version>${carbon.kernel.version}</version>
-            <type>zip</type>
-        </dependency>
-
-        <!-- Synapse dependencies -->
-        <!--dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-commons</artifactId>
-            <version>${synapse.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-nhttp-transport</artifactId>
-            <version>${synapse.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-pipe-transport</artifactId>
-            <version>${synapse.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-core</artifactId>
-            <version>${synapse.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-tasks</artifactId>
-            <version>${synapse.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-extensions</artifactId>
-            <version>${synapse.version}</version>
-        </dependency-->
-
-        <!-- Carbon mediation initializer -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediation.initializer</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.bridge</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediation.dependency.mgt</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-
-
-        <!-- ### Required Carbon components ### -->
-        <!-- Transport managament components -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.transport.mgt</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Transport components -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.transport.http</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.transport.nhttp</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.transport.https</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.transport.mail</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Sequence management components -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.service</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.sequences.common</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.sequences</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.router.impl</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.clazz.services</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.command.services</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-
-        <!--Entitlement mediator dependency -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.identity.entitlement.mediator</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-
-        <!--OAuth mediator dependency -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.identity.oauth.mediator</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-
-        <!--Drools dependency-->
-        <dependency>
-            <groupId>org.drools.wso2</groupId>
-            <artifactId>drools</artifactId>
-            <version>5.0.1.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>jsr94.wso2</groupId>
-            <artifactId>jsr94</artifactId>
-            <version>1.1.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.mvel.wso2</groupId>
-            <artifactId>mvel2</artifactId>
-            <version>2.0.10.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>joda-time.wso2</groupId>
-            <artifactId>joda-time</artifactId>
-            <version>1.6.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.antlr.wso2</groupId>
-            <artifactId>antlr-runtime</artifactId>
-            <version>3.1.1.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>janino.wso2</groupId>
-            <artifactId>janino</artifactId>
-            <version>2.5.15.wso2v1</version>
-        </dependency>
-        <!-- Endpoints component -->
-        <!--dependency>
-          <groupId>org.wso2.carbon</groupId>
-          <artifactId>org.wso2.carbon.endpoint.common</artifactId>
-          <version>${carbon.version}</version>
-      </dependency-->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.endpoint</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Local Entries component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.localentry</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Service management component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.service.mgt</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Operation management component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.operation.mgt</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Module Management component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.module.mgt</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Security components (orbit) -->
-        <dependency>
-            <groupId>org.apache.rampart.wso2</groupId>
-            <artifactId>rampart-policy</artifactId>
-            <version>1.6.1.wso2v1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.rampart.wso2</groupId>
-            <artifactId>rampart-trust</artifactId>
-            <version>1.6.1.wso2v1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.rampart.wso2</groupId>
-            <artifactId>rampart-core</artifactId>
-            <version>1.6.1.wso2v1</version>
-        </dependency>
-
-        <!-- Policy Editor component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.policyeditor</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Task component with startups -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.startup</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.task</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.task.services</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Synapse Config admin component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediation.configadmin</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Synapse Registry component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediation.registry</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Datasources component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.datasource</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Throttle component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.throttle</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Caching component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.caching</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- RM component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.rm</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-
-        <!-- Menus -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.ui.menu.registry</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- ### Required Carbon orbit dependencies ### -->
-        <dependency>
-            <groupId>org.apache.geronimo.specs.wso2</groupId>
-            <artifactId>geronimo-jms_1.1_spec</artifactId>
-            <version>1.1.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>commons-net.wso2</groupId>
-            <artifactId>commons-net</artifactId>
-            <version>2.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>jsch.wso2</groupId>
-            <artifactId>jsch</artifactId>
-            <version>0.1.41-wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.httpcomponents.wso2</groupId>
-            <artifactId>httpcore-nio</artifactId>
-            <version>4.1.0.wso2v2</version>
-        </dependency>
-        <dependency>
-            <groupId>org.quartz-scheduler.wso2</groupId>
-            <artifactId>quartz</artifactId>
-            <version>2.1.1.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.codehaus.woodstox</groupId>
-            <artifactId>wstx-asl</artifactId>
-            <version>3.2.1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-stax-api_1.0_spec</artifactId>
-            <version>1.0.1</version>
-        </dependency>
-        <dependency>
-            <groupId>net.sf.saxon.wso2</groupId>
-            <artifactId>saxon</artifactId>
-            <version>8.9.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.abdera.wso2</groupId>
-            <artifactId>abdera</artifactId>
-            <version>1.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.springframework.ws.wso2</groupId>
-            <artifactId>spring.framework</artifactId>
-            <version>2.5.1.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>commons-io.wso2</groupId>
-            <artifactId>commons-io</artifactId>
-            <version>2.0.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>commons-collections.wso2</groupId>
-            <artifactId>commons-collections</artifactId>
-            <version>3.2.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.ws.savan.wso2</groupId>
-            <artifactId>savan-core</artifactId>
-            <version>1.0.0-wso2v2</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.caching</groupId>
-            <artifactId>wso2caching-core</artifactId>
-            <version>3.5.0</version>
-        </dependency>
-        <!--Bouncycastle dependency for clients and servers-->
-        <dependency>
-            <groupId>bouncycastle</groupId>
-            <artifactId>bcprov-jdk15</artifactId>
-            <version>132</version>
-        </dependency>
-
-        <!-- autoscale components -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.autoscale</artifactId>
-            <version>4.0.3</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.discovery.core</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.relay</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>maven-buildnumber-plugin</artifactId>
-                <version>0.9.4</version>
-                <configuration>
-                    <format>{0,date,dd MMM yyyy}</format>
-                    <items>
-                        <item>timestamp</item>
-                    </items>
-                    <doCheck>false</doCheck>
-                    <doUpdate>false</doUpdate>
-                </configuration>
-                <executions>
-                    <execution>
-                        <phase>validate</phase>
-                        <goals>
-                            <goal>create</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-dependency-plugin</artifactId>
-                <version>2.0-alpha-4</version>
-                <inherited>false</inherited>
-                <executions>
-                    <execution>
-                        <id>2-unpack-wso2carbon</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>unpack</goal>
-                        </goals>
-                        <configuration>
-                            <artifactItems>
-                                <artifactItem>
-                                    <groupId>org.wso2.carbon</groupId>
-                                    <artifactId>wso2carbon-core</artifactId>
-                                    <version>${carbon.kernel.version}</version>
-                                    <type>zip</type>
-                                    <overWrite>true</overWrite>
-                                    <outputDirectory>target</outputDirectory>
-                                </artifactItem>
-                                <artifactItem>
-                                    <groupId>com.acme.shoppingcart.global</groupId>
-                                    <artifactId>shopping-cart-global</artifactId>
-                                    <version>${shoppingcart.global.version}</version>
-                                    <type>zip</type>
-                                    <overWrite>true</overWrite>
-                                    <outputDirectory>target</outputDirectory>
-                                </artifactItem>
-                            </artifactItems>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <version>1.1</version>
-                <executions>
-                    <execution>
-                        <id>1-run-ant</id>
-                        <phase>test</phase>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                        <configuration>
-                            <tasks>
-                                <path id="h2.classpath">
-                                    <path refid="maven.compile.classpath"/>
-                                </path>
-                                <echo
-                                        message="########### Create Billing Database ##############"/>
-                                <sql
-                                        driver="org.h2.Driver"
-                                        url="jdbc:h2:${basedir}/target/database/WSO2BILLING_DB"
-                                        userid="wso2carbon" password="wso2carbon" autocommit="true"
-                                        onerror="continue">
-                                    <classpath>
-                                        <path refid="h2.classpath"/>
-                                    </classpath>
-                                    <fileset file="../../billing-script/billing-h2.sql"/>
-                                    <fileset file="../../billing-script/metering_h2.sql"/>
-                                </sql>
-                                <echo
-                                        message="##################### END ########################"/>
-                            </tasks>
-                        </configuration>
-                    </execution>
-
-                    <execution>
-                        <id>1-run-ant2</id>
-                        <phase>test</phase>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                        <configuration>
-                            <tasks>
-                                <path id="h2.classpath">
-                                    <path refid="maven.compile.classpath"/>
-                                </path>
-                                <echo
-                                        message="########### Create S2 Foundation Schema Database ##############"/>
-                                <sql
-                                        driver="org.h2.Driver"
-                                        url="jdbc:h2:${basedir}/target/database/WSO2S2_DB"
-                                        userid="wso2carbon" password="wso2carbon" autocommit="true"
-                                        onerror="continue">
-                                    <classpath>
-                                        <path refid="h2.classpath"/>
-                                    </classpath>
-                                    <fileset file="../../billing-script/s2_h2.sql"/>
-                                </sql>
-                                <echo
-                                        message="##################### END ########################"/>
-                            </tasks>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>3-extract-docs-from-components</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                        <configuration>
-                            <tasks>
-                                <property name="tempdir" value="target/docs-temp"/>
-                                <mkdir dir="${tempdir}"/>
-                                <unzip dest="${tempdir}">
-                                    <fileset dir="target">
-                                        <include name="${project.artifactId}-${project.version}.zip"/>
-                                    </fileset>
-                                </unzip>
-                                <copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components"
-                                      overwrite="true">
-                                    <fileset
-                                            dir="${tempdir}/${project.artifactId}-${project.version}/repository/components">
-                                    </fileset>
-                                </copy>
-                                <copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/conf"
-                                      overwrite="true">
-                                    <fileset dir="../../conf">
-                                        <include name="user-mgt.xml"/>
-                                    </fileset>
-                                </copy>
-                                <delete file="target/${project.artifactId}-${project.version}.zip"/>
-                                <delete dir="${tempdir}"/>
-                                <mkdir dir="${tempdir}"/>
-                                <unzip dest="${tempdir}">
-                                    <fileset
-                                            dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/">
-                                        <include name="*.ui*.jar"/>
-                                    </fileset>
-                                </unzip>
-                                <move todir="${tempdir}/web/" includeemptydirs="false">
-                                    <fileset dir="${tempdir}/web/">
-                                        <exclude name="**/yui/**"/>
-                                        <exclude name="**/ajax/**"/>
-                                        <exclude name="**/WEB-INF/**"/>
-                                        <include name="**/*.html"/>
-                                    </fileset>
-                                    <mapper type="glob" from="*.html" to="*.xml"/>
-                                </move>
-                                <mkdir dir="src/site/xdoc"/>
-                                <copy todir="src/site/xdoc" overwrite="false" includeemptydirs="false">
-                                    <fileset dir="${tempdir}/web">
-                                        <exclude name="**/yui/**"/>
-                                        <exclude name="**/ajax/**"/>
-                                        <exclude name="**/WEB-INF/**"/>
-                                        <exclude name="**/*.html"/>
-                                        <exclude name="**/*.js"/>
-                                        <exclude name="**/*.jsp"/>
-                                        <exclude name="**/*.xsl"/>
-                                        <exclude name="*.*"/>
-                                    </fileset>
-                                </copy>
-                                <copy todir="target/site/" overwrite="false" includeemptydirs="false">
-                                    <fileset dir="src/site/xdoc/">
-                                        <include name="**/images/**/*.*"/>
-                                    </fileset>
-                                </copy>
-                                <delete dir="${tempdir}"/>
-                            </tasks>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>clean_target</id>
-                        <phase>install</phase>
-                        <configuration>
-                            <tasks>
-                                <delete dir="target/archive-tmp"/>
-                                <delete dir="target/dependency-maven-plugin-markers"/>
-                                <delete dir="target/maven-archiver"/>
-                                <delete dir="target/wso2carbon-core-${carbon.kernel.version}"/>
-                                <delete dir="target/shopping-cart-global-${shoppingcart.global.version}"/>
-                                <delete file="target/${project.artifactId}-${project.version}.jar"/>
-                                <delete dir="target/sources"/>
-                                <delete dir="target/site"/>
-                                <delete dir="target/database"/>
-				<delete dir="src/site"/>
-                            </tasks>
-                        </configuration>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-site-plugin</artifactId>
-                <version>3.0</version>
-                <executions>
-                    <execution>
-                        <phase>5-package</phase>
-                        <goals>
-                            <goal>site</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
-    <profiles>
-        <profile>
-            <id>default</id>
-            <activation>
-                <activeByDefault>true</activeByDefault>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-assembly-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>1-pre_dist</id>
-                                <phase>test</phase>
-                                <goals>
-                                    <goal>attached</goal>
-                                </goals>
-                                <configuration>
-                                    <filters>
-                                        <filter>${basedir}/src/assembly/filter.properties</filter>
-                                    </filters>
-                                    <descriptors>
-                                        <descriptor>${basedir}/src/assembly/dist.xml</descriptor>
-                                    </descriptors>
-                                </configuration>
-                            </execution>
-                            <execution>
-                                <id>4-dist</id>
-                                <phase>package</phase>
-                                <goals>
-                                    <goal>attached</goal>
-                                </goals>
-                                <configuration>
-                                    <filters>
-                                        <filter>${basedir}/src/assembly/filter.properties</filter>
-                                    </filters>
-                                    <descriptors>
-                                        <descriptor>${basedir}/src/assembly/bin.xml</descriptor>
-                                        <!--<descriptor>${basedir}/src/assembly/src.xml</descriptor>-->
-                                        <!--<descriptor>${basedir}/src/assembly/docs.xml</descriptor>-->
-                                    </descriptors>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-        <profile>
-            <id>fix_configuration</id>
-            <activation>
-                <property>
-                    <name>build</name>
-                    <value>box</value>
-                </property>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-assembly-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>1-pre_dist</id>
-                                <phase>test</phase>
-                                <goals>
-                                    <goal>attached</goal>
-                                </goals>
-                                <configuration>
-                                    <filters>
-                                        <filter>${basedir}/src/assembly/filter.properties</filter>
-                                    </filters>
-                                    <descriptors>
-                                        <descriptor>${basedir}/src/assembly/dist.xml</descriptor>
-                                    </descriptors>
-                                </configuration>
-                            </execution>
-                            <execution>
-                                <id>4-dist</id>
-                                <phase>package</phase>
-                                <goals>
-                                    <goal>attached</goal>
-                                </goals>
-                                <configuration>
-                                    <filters>
-                                        <filter>${basedir}/src/assembly/filter.properties</filter>
-                                    </filters>
-                                    <descriptors>
-                                        <descriptor>${basedir}/src/assembly/bin.xml</descriptor>
-                                        <!--<descriptor>${basedir}/src/assembly/src.xml</descriptor>-->
-                                        <!--<descriptor>${basedir}/src/assembly/docs.xml</descriptor>-->
-                                    </descriptors>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/qpid-resources/etc/config.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/qpid-resources/etc/config.xml b/products/stratos_controller/modules/distribution/qpid-resources/etc/config.xml
deleted file mode 100755
index a54dd98..0000000
--- a/products/stratos_controller/modules/distribution/qpid-resources/etc/config.xml
+++ /dev/null
@@ -1,101 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<broker>
-    <prefix>${QPID_HOME}</prefix>
-    <work>${QPID_WORK}</work>
-    <conf>${prefix}/etc</conf>
-
-    <plugin-directory>${QPID_HOME}/lib/plugins</plugin-directory>
-    <cache-directory>${QPID_WORK}/cache</cache-directory>
-    
-    <connector>
-        <!-- To enable SSL edit the keystorePath and keystorePassword
-	     and set enabled to true. 
-             To disasble Non-SSL port set sslOnly to true -->
-        <ssl>
-            <enabled>false</enabled>
-            <sslOnly>false</sslOnly>
-            <keystorePath>/path/to/keystore.ks</keystorePath>
-            <keystorePassword>keystorepass</keystorePassword>
-        </ssl>
-        <qpidnio>false</qpidnio>
-        <protectio>
-            <enabled>false</enabled>
-            <readBufferLimitSize>262144</readBufferLimitSize>
-            <writeBufferLimitSize>262144</writeBufferLimitSize>	    
-        </protectio>
-        <transport>nio</transport>
-        <port>5672</port>
-        <sslport>8672</sslport>
-        <socketReceiveBuffer>32768</socketReceiveBuffer>
-        <socketSendBuffer>32768</socketSendBuffer>
-    </connector>
-    <management>
-        <enabled>true</enabled>
-        <jmxport>8999</jmxport>
-        <ssl>
-            <enabled>false</enabled>
-            <!-- Update below path to your keystore location, or run the bin/create-example-ssl-stores(.sh|.bat)
-                 script from within the etc/ folder to generate an example store with self-signed cert -->
-            <keyStorePath>${conf}/qpid.keystore</keyStorePath>
-            <keyStorePassword>password</keyStorePassword>
-        </ssl>
-    </management>
-    <advanced>
-        <filterchain enableExecutorPool="true"/>
-        <enablePooledAllocator>false</enablePooledAllocator>
-        <enableDirectBuffers>false</enableDirectBuffers>
-        <framesize>65535</framesize>
-        <compressBufferOnQueue>false</compressBufferOnQueue>
-        <enableJMSXUserID>false</enableJMSXUserID>
-        <locale>en_US</locale>	
-    </advanced>
-
-    <security>
-        <principal-databases>
-            <principal-database>
-                <name>carbon-user-store</name>
-                <class>org.wso2.carbon.qpid.authentication.qpid.CarbonBasedPrincipalDatabase</class>
-            </principal-database>
-        </principal-databases>
-
-        <msg-auth>false</msg-auth>
-        
-        <jmx>
-            <access>${conf}/jmxremote.access</access>
-            <principal-database>carbon-user-store</principal-database>
-        </jmx>
-    </security>
-
-    <virtualhosts>${conf}/virtualhosts.xml</virtualhosts>
-    
-    <heartbeat>
-        <delay>0</delay>
-        <timeoutFactor>2.0</timeoutFactor>
-    </heartbeat>
-    <queue>
-        <auto_register>true</auto_register>
-    </queue>
-
-    <status-updates>ON</status-updates>
-
-</broker>
-
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/qpid-resources/etc/jmxremote.access
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/qpid-resources/etc/jmxremote.access b/products/stratos_controller/modules/distribution/qpid-resources/etc/jmxremote.access
deleted file mode 100755
index f496e92..0000000
--- a/products/stratos_controller/modules/distribution/qpid-resources/etc/jmxremote.access
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-#Generated by JMX Console : Last edited by user:admin
-#Tue Jun 12 16:46:39 BST 2007
-#admin=admin
-#guest=readonly
-#user=readwrite

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/qpid-resources/etc/virtualhosts.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/qpid-resources/etc/virtualhosts.xml b/products/stratos_controller/modules/distribution/qpid-resources/etc/virtualhosts.xml
deleted file mode 100755
index f55e8c8..0000000
--- a/products/stratos_controller/modules/distribution/qpid-resources/etc/virtualhosts.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<virtualhosts>
-    <default>carbon</default>
-    <virtualhost>
-        <name>carbon</name>
-        <carbon>
-            <store>
-                <!--class>org.apache.qpid.server.store.MemoryMessageStore</class-->
-		<class>org.apache.qpid.server.store.DerbyMessageStore</class>
-		<environment-path>repository/database/qpid/derbystore</environment-path>
-            </store>
-
-            <housekeeping>
-                <threadCount>2</threadCount>
-                <expiredMessageCheckPeriod>20000</expiredMessageCheckPeriod>
-            </housekeeping>
-
-            <exchanges>
-                <exchange>
-                    <type>direct</type>
-                    <name>carbon.direct</name>
-                    <durable>true</durable>
-                </exchange>
-                <exchange>
-                    <type>topic</type>
-                    <name>carbon.topic</name>
-                </exchange>
-            </exchanges>
-            
-	    <queues>
-                <maximumQueueDepth>4235264</maximumQueueDepth>
-                <!-- 4Mb -->
-                <maximumMessageSize>2117632</maximumMessageSize>
-                <!-- 2Mb -->
-                <maximumMessageAge>600000</maximumMessageAge>
-                <!-- 10 mins -->
-                <maximumMessageCount>50</maximumMessageCount>
-                <!-- 50 messages -->
-            </queues>
-        </carbon>
-    </virtualhost>
-</virtualhosts>
-
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/qpid-resources/qpid.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/qpid-resources/qpid.xml b/products/stratos_controller/modules/distribution/qpid-resources/qpid.xml
deleted file mode 100755
index 086fb08..0000000
--- a/products/stratos_controller/modules/distribution/qpid-resources/qpid.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<Qpid>
-    <!-- Start Qpid broker when Carbon starts up -->
-    <AutoStart>true</AutoStart>
-    <RegistryRoot>event</RegistryRoot>
-</Qpid>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/release-notes.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/release-notes.html b/products/stratos_controller/modules/distribution/release-notes.html
deleted file mode 100755
index 76a379d..0000000
--- a/products/stratos_controller/modules/distribution/release-notes.html
+++ /dev/null
@@ -1,134 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<html>
-<head>
-    <meta http-equiv="content-type" content=""/>
-    <title>Apache Stratos Manager 3.0.0-SNAPSHOT Release Notes</title>
-    <link href="./tools/cmd/css/appserver-dist-doc.css" rel="stylesheet"
-          type="text/css" media="all"/>
-</head>
-
-<body>
-<h1>Apache Stratos Manager 3.0.0-SNAPSHOT Release Notes</h1>
-
-<h3>${buildNumber}</h3>
-
-<p> Apache Stratos is a complete cloud middleware platform for implementing an enterprise service-oriented
-architecture (SOA). Apache Stratos is open source and is available under Apache license. It is built on
-top of and extends <a target="_blank" href="http://wso2.com/products/carbon/">WSO2 Carbon</a>, 
-the award-winning, comprehensive, concise, lean enterprise middleware platform.</p>
-
-<p>With Apache Stratos, IT professionals have a fully hosted platform-as-a-service (PaaS) for rapidly
-building and deploying services and composite applications, with instant provisioning capability.
-Apache Stratos delivers on the promise of cloud computing with a complete, enterprise middleware
-platform for delivering applications that can run on, and integrate with, any combination of private
-clouds, public clouds and on-premise systems. Apache Stratos is equipped with features for auto-scaling
-and single sign-on, as well as enhanced functionality for automatic activity monitoring, usage metering,
-and centralized governance and identity management.</p>
-
-
-<p>An open source product, Apache Stratos is available under the <a target="_blank" href="http://www.apache.org/licenses/LICENSE-2.0.html">
-        Apache Software License (v2.0)
-    </a>
-   . This includes all of the extra integration and management
-   functionality as well.
-</p>
-
-<h2>New Features In This Release</h2> <ul>
-    <li>Service Aware Dynamic Load Balancing - Improved load balancing and auto-scaling</li>
-    <li>Registry Database performance improvements through storage optimization</li>
-    <li>Subversion backed deployment artifacts storage</li>
-    <li>Local transport improvements</li>
-	<li>Tenant aware logging</li>
-	<li>Ability to facilitate billing upon tenant registration</li>
-	<li>Migrated usage metering to WSO2 BAM2</li>
-    <li>Ghost deployer improvements</li>
-	<li>Stratos Manager can now act as a Single Sign On (SSO) provider</li>
-</ul>
-
-<h2>Key Features</h2>
-
-<ul>
-    <li>Auto-scaling capabilities.
-        Apache Stratos automatically adjusts the use of cloud resources to meet increased or decreased demand.</li>
-    <li>Single sign-on functionality.
-        Users only need to sign on once to access all Apache Stratos services that they are authorized to use.</li>
-    <li>Enhanced automatic activity monitoring.
-        Activity monitoring is available in real time, so there is no time gap between data collection and
-        the availability of data for monitoring.</li>
-    <li>Enhanced usage metering.
-        Metering is automated so that every operation by tenant users will be monitored and recorded.
-        The metering information can be used for billing and for offering constrained access for certain services.
-    </li>
-    <li>Enhanced centralized governance and identity management.
-        All the resources of all Stratos services can be monitored and governed from a single point - from WSO2
-        Stratos governance. When a modification, such as changing a security policy, or changing the keystore,
-        is done from a single place, it is immediately visible to all other services. In addition to that,
-        all services share a single user store. When a user is added from a service, that new user can immediately
-        access all other services available for the tenant.</li>
-	<li>Tenant aware logging.
-		Tenants can view their logs in order to monitor the status of the deployed services
-		of and applications. It is also helpful for debugging purposes.</li>
-    <li>Data-as-a-Service
-        Data-as-a-service offers storage for tenant's application data. In this release of Stratos, we offer two
-        built-in storage options. WSO2 RSS (Relational Storage Service) & CSS (Cassandra Storage Service).
-        RSS allows creating tenant specific MySQL databases instances and CSS allows creating column family
-        based storage. In addition, one can use other RDBMS engines to store data as well.</li>
-</ul>
-
-<h2>Reporting Problems</h2>
-<br/>
-Issues can be reported using the public JIRA available at
-<a href="https://wso2.org/jira/browse/STRATOS" target="_blank">
-    https://wso2.org/jira/browse/STRATOS</a>
-
-<h2>Contact us</h2>
-Apache Stratos team can be contacted via the mailing list:
-<br/>
-<strong>For Stratos Cloud Middleware Platform:</strong>
-<a href="mailto:dev@stratos.incubator.apache.org">Apache Developer Mailing List</a>
-<br/>
-
-<br/>
-<strong>Forum</strong>
-WSO2 participates in community support for the products using the excellent Q&A site 
-<a href="http://stackoverflow.com/questions/tagged/wso2" target="_blank">stackoverflow.com</a> with tags "WSO2", "Stratos" etc.
-<br/>
-
-<h2>Support</h2>
-
-<p>
-As a fully open source solution Apache Stratos does not require any licensing fees.
-
-WSO2 offers a range of service and support options, including evaluation support, CloudStart(SM)
-consulting program, development support, and production support.    <br/>
-    <br/>
-
-    For additional support information please refer to
-    <a target="_blank"
-       href="http://wso2.com/support/">http://wso2.com/support/</a>
-</p>
-<p>Thank you for your interest in WSO2 Stratos</p>
-<strong>
-    <em>-The WSO2 Stratos Team</em>
-</strong>
-<hr/>
-
-</body>
-</html>


[13/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/embedded-ldap.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/embedded-ldap.xml b/products/stratos_controller/conf/embedded-ldap.xml
deleted file mode 100644
index 144628e..0000000
--- a/products/stratos_controller/conf/embedded-ldap.xml
+++ /dev/null
@@ -1,165 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!--
-	All carbon based products comes with a LDAP user store.
-	For this we use an embedded LDAP in carbon based products.
-	This file contains necessary configurations to control the behavior of embedded LDAP.
-	You may use this file to enable, disable LDAP server, configure connection admin password, etc ...
-	In addition to embedded-ldap server configurations this file also has Kerberos KDC (Key Distribution Center)
-	specific configurations.
--->
-
-<EmbeddedLDAPConfig>
-
-  <!--
-	LDAP server configurations
-	==========================
-	This section contains LDAP server specific configurations.
-
-	Property                Usage
-	=======                 ====
-	enable                  If true the embedded LDAP server will start when server starts up.
-				            Else embedded LDAP server will not start. Thus user has to use a different
-				            user store.
-	instanceid              An id given to the LDAP server instance.
-	connectionPassword      The password of the admin. (uid=admin,ou=system)
-	workingDirectory        Location where LDAP will store its schema files.
-	AdminEntryObjectClass   Object class which encapsulate attributes needed by claims.
-	allowAnonymousAccess    Should allow users to access LDAP server without credentials. Default false.
-	accessControlEnabled    Should access control be enabled among partitions. Default true.
-	saslHostName            Default host name to be used in SASL (Simple Authentication and Security Layer).
-				            This property comes from apacheds implementation itself.
-	saslPrincipalName       Default SASL principal name. Again this property also comes from apacheds implementation
-				            itself.
-  -->
-  <EmbeddedLDAP>
-    <Property name="enable">false</Property>
-    <Property name="port">${Ports.EmbeddedLDAP.LDAPServerPort}</Property>
-    <Property name="instanceId">default</Property>
-    <Property name="connectionPassword">admin</Property>
-    <Property name="workingDirectory">.</Property>
-    <Property name="AdminEntryObjectClass">wso2Person</Property>
-    <Property name="allowAnonymousAccess">false</Property>
-    <Property name="accessControlEnabled">true</Property>
-    <Property name="denormalizeOpAttrsEnabled">false</Property>
-    <Property name="maxPDUSize">2000000</Property>
-    <Property name="saslHostName">localhost</Property>
-    <Property name="saslPrincipalName">ldap/localhost@EXAMPLE.COM</Property>
-  </EmbeddedLDAP>
-
-  <!--
-	Default partition configurations
-	================================
-	When embedded LDAP server starts for the first time it will create a default partition.
-	Following properties configure values for the default partition.
-
-	Property                        Usage
-	=======                         =====
-	id                              Each partition is given an id. The id given to the default paritition.
-	realm                           Realm is the place where we store user principals and service principals.
-                                        The name of the realm for default partition.
-	kdcPassword                     This parameter is used when KDC (Key Distribution Center) is enabled. In apacheds
-                                        KDC also has a server principal. This defines a password for KDC server principal.
-	ldapServerPrinciplePassword     If LDAP server is also defined as a server principal, this will be the password.
-
-  -->
-  <DefaultPartition>
-    <Property name="id">root</Property>
-    <Property name="realm">wso2.org</Property>
-    <Property name="kdcPassword">secret</Property>
-    <Property name="ldapServerPrinciplePassword">randall</Property>
-  </DefaultPartition>
-
-  <!--
-	Default partition admin configurations
-	======================================
-	In a multi-tenant scenario each tenant will have a separate partition. Thus tenant admin will be the partition admin.
-	Following configurations define admin attributes for above created default partition.
-
-	Property            Usage
-	========            =====
-	uid                 UID attribute for partition admin.
-	commonName          The cn attribute for admin
-	lastName            The sn attribute for admin
-	email               The email attribute for admin
-	passwordType        The password hashing mechanism. Following hashing mechanisms are available, "SHA", "MD5".
-                        "Plaintext" is also a valid value. If KDC is enabled password type will be enforced to be
-                        plain text.
-  -->
-  <PartitionAdmin>
-    <Property name="uid">admin</Property>
-    <Property name="firstName">admin</Property>
-    <Property name="lastName">admin</Property>
-    <Property name="email">admin@wso2.com</Property>
-    <Property name="password">admin</Property>
-    <Property name="passwordType">SHA</Property>
-  </PartitionAdmin>
-
-  <!--
-	Default partition admin's group configuration
-	=============================================
-	Embedded LDAP is capable of keeping group information also.
-	If LDAP groups are enabled in user store (usr-mgt.xml) group information will be
-	recorded in a separate sub-context. Following configuration defines the group
-	properties.
-
-	Property                Usage
-	=======                 =====
-	adminRoleName		    The name of the role/group that admin should be included.
-	groupNameAttribute	    The attribute which group name will be recorded.
-	memberNameAttribute	    The attribute which memebers are recorded.
-  -->
-  <PartitionAdminGroup>
-    <Property name="adminRoleName">admin</Property>
-    <Property name="groupNameAttribute">cn</Property>
-    <Property name="memberNameAttribute">member</Property>
-  </PartitionAdminGroup>
-
-    <!--
-      KDC configurations
-      =================
-      Following configurations are applicable to KDC server. Generally, the KDC is only enabled in
-      Identity Server. You may enable KDC server if you wish to do so. But if you dont have any Kerberos specific
-      programs, it is recommended to disable KDC server.
-
-      Property                          Usage
-      =======                           =====
-      name                              Name given to default KDC server.
-      enabled                           If true a KDC server will start when starting LDAP server.
-                                          Else a KDC server will not start with a LDAP server.
-      protocol                          Default protocol to be used in KDC communication. Default is UDP.
-      maximumTicketLifeTime             The maximum life time of a ticket issued by the KDC.
-      maximumRenewableLifeTime          Life time which a ticket can be used by renewing it several times.
-      preAuthenticationTimeStampEnabled Pre-authentication is a feature in latest Kerberos protocol.
-                                          This property says whether to enable it or disable it.
-    -->
-  <KDCServer>
-    <Property name="name">defaultKDC</Property>
-    <Property name="enabled">false</Property>
-    <Property name="protocol">UDP</Property>
-    <Property name="host">localhost</Property>
-    <Property name="port">${Ports.EmbeddedLDAP.KDCServerPort}</Property>
-    <Property name="maximumTicketLifeTime">8640000</Property>
-    <Property name="maximumRenewableLifeTime">604800000</Property>
-    <Property name="preAuthenticationTimeStampEnabled">true</Property>
-  </KDCServer>
-
-</EmbeddedLDAPConfig>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/event-broker.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/event-broker.xml b/products/stratos_controller/conf/event-broker.xml
deleted file mode 100644
index 296c7cd..0000000
--- a/products/stratos_controller/conf/event-broker.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!--
-this is the configuration file for the carbon event broker component. this configuration file configures the various subsystems of the event
-broker compoent and parameters.
--->
-<eventBrokerConfig xmlns="http://wso2.org/carbon/event/broker">
-    <eventBroker name="carbonEventBroker" class = "org.wso2.carbon.event.core.internal.CarbonEventBrokerFactory">
-         <!-- topic manager implemenation class.-->
-        <topicManager name="TopicManager" class="org.wso2.carbon.event.core.internal.topic.registry.RegisistryTopicManagerFactory">
-            <!-- root node of the topic tree -->
-            <topicStoragePath>event/topics</topicStoragePath>
-        </topicManager>
-        <!-- subscriptionmnager implementaion. subscription manager persits the
-        subscriptions at the registry.  users can configure the topics root node and the topicIndex path -->
-        <subscriptionManager name="subscriptionManager"
-                             class="org.wso2.carbon.event.core.internal.subscription.registry.RegistrySubscriptionManagerFactory">
-            <topicStoragePath>event/topics</topicStoragePath>
-            <indexStoragePath>event/topicIndex</indexStoragePath>
-        </subscriptionManager>
-
-        <!-- delivary manager inmplementation. delivary manager does actual delivary part of the event broker -->
-        <deliveryManager name="deliveryManager"
-                         class="org.wso2.carbon.event.core.internal.delivery.jms.QpidJMSDeliveryManagerFactory"
-                         type="local">
-           <!--  <remoteMessageBroker>
-                <hostName>localhost</hostName>
-                <servicePort>9443</servicePort>
-                <webContext>/</webContext>
-                <userName>admin</userName>
-                <password>admin</password>
-                <qpidPort>5672</qpidPort>
-                <clientID>clientID</clientID>
-                <virtualHostName>carbon</virtualHostName>
-            </remoteMessageBroker> -->
-        </deliveryManager>
-
-         <!-- when publising an event event broker uses a seperate thread pool with an executor. following parameters configure different parameters of that -->
-        <eventPublisher>
-            <minSpareThreads>5</minSpareThreads>
-            <maxThreads>50</maxThreads>
-            <maxQueuedRequests>1000</maxQueuedRequests>
-            <keepAliveTime>1000</keepAliveTime>
-        </eventPublisher>
-    </eventBroker>
-</eventBrokerConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/features-dashboard.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/features-dashboard.xml b/products/stratos_controller/conf/features-dashboard.xml
deleted file mode 100755
index b815dd9..0000000
--- a/products/stratos_controller/conf/features-dashboard.xml
+++ /dev/null
@@ -1,826 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<data>
-	<service name="Cloud Services" link="https://cloud.wso2.com"
-		key="manager">
-		<story title="Billing">
-			<story-content>Billing is the process where the cloud computing
-				service subscribers are charged
-				based on the metered data. Billing
-				usually happens on a monthly basis.
-				Billing uses
-				pricing rates defined
-				against usage plans and compute the invoice against
-				the usage
-				data.
-			</story-content>
-			<story-links>
-				<link url="/carbon/tenant-billing/past_invoice.jsp">Billing...</link>
-				<link url="/carbon/tenant-billing/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Metering">
-			<story-content>Metering measures levels of resource utilization, such
-				as network bandwidth usage and
-				data storage volume, consumed by the
-				cloud services subscribers, aka
-				tenants.
-				Resource utilization's
-				(bandwidth and storage usage) are measured on the fly
-				and the
-				measured data is stored for summarizing and analyzing.
-			</story-content>
-			<story-links>
-				<link url="/carbon/tenant-usage/tenant_usage.jsp">Go to Metering....</link>
-				<link url="/carbon/tenant-usage/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Account Management">
-			<story-content>Account management allows a tenant to update and
-				validate contact information,
-				update the usage plan, validate the
-				account and even de-activate the
-				account .</story-content>
-			<story-links>
-				<link url="/carbon/account-mgt/account_mgt.jsp">Manage account...</link>
-				<link url="/carbon/account-mgt/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Users and Roles">
-			<story-content>You can add users and define your own roles for a
-				tenant. The permission model is
-				role based. So a tenant admin can
-				define what actions a role can perform
-				by
-				configuring permissions for
-				that role.</story-content>
-			<story-links>
-				<link url="/carbon/userstore/index.jsp">Manage users/roles...</link>
-				<link url="/carbon/userstore/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="MT-Logging">
-			<story-content>Flexible logging support with integration to
-				enterprise logging systems. This facilitate to monitor your system
-				and application logs through a log viewer.</story-content>
-			<story-links>
-				<link url="/carbon/log-view/index.jsp">Go to Log Viewer....</link>
-				<link url="/carbon/log-view/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-<!--
-		<story title="Usage Metering and Throttling">
-			<story-content>&lt;a
-				href="http://wso2.org/library/articles/2011/09/usage-metering-throttling-cloud-computing"&gt;&lt;img
-				src="../../../../features-dashboard/dashboards/images/usage_metering_and_throttling.jpg"
-				alt=""/&gt;</story-content>
-				<story-links>
-					<link url=""></link>
-					<link url=""></link>
-				</story-links>
-		</story>
-		<story title="How WSO2 StratosLive meets Security Challenges in Cloud">
-			<story-content> &lt;a
-				href="http://wso2.org/library/articles/2011/08/wso2-stratoslive-meets-security-challenges-cloud"&gt;&lt;img
-				src="../../../../features-dashboard/dashboards/images/tenant_isolation.png"
-				alt=""/&gt;&lt;/a&gt; </story-content>
-		</story>
--->
-	</service>
-	<service name="Stratos Controller" link="https://cloud.wso2.com"
-		key="sc">
-		<story title="Multi-Tenant Cartridges">
-			<story-content>Stratos Cartridges, hosting WSO2 multi-tenant middleware 
-				services delivers multi-tenancy within each Cartridge instance 
-				where teams may define multiple tenants per Cartridge.
-			</story-content>
-			<story-links>
-				<link url="/carbon/cartridge-mgt/available_cartridges.jsp?item=available_multitenant_cartridges">Available Multi-Tenant Cartridges</link>
-			</story-links>
-		</story>
-		<story title="Single-Tenant Cartridges">
-			<story-content>Stratos Cartridges provide process-level isolation and 
-				instance-level dedicated tenancy with single-tenant containers and frameworks.
-			</story-content>
-			<story-links>
-				<link url="/carbon/cartridge-mgt/available_cartridges.jsp?item=available_singletenant_cartridges">Available Single-Tenant Cartridges</link>
-			</story-links>
-		</story>
-		<story title="Subscribed Cartridges">
-			<story-content>The tenant user can see all details of the Subscribed Cartridges such as
-				the status and the number of running instances at the moment.
-			</story-content>
-			<story-links>
-				<link url="/carbon/cartridge-mgt/subscribed_cartridges.jsp">Subscribed Cartridges</link>
-			</story-links>
-		</story>
-	</service>
-<!--
-	<service name="Enterprise Service Bus" link="https://esb.cloud.wso2.com"
-		key="esb">
-		<story title="Proxy Service">
-			<story-content> Proxy services facilitate location transparency and
-				provides the means for the
-				integration between various other
-				services, on different formats
-			</story-content>
-			<story-links>
-				<link url="/carbon/proxyservices/templates.jsp">Got to services...</link>
-				<link url="/carbon/proxyservices/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Sequence">
-			<story-content>Sequence is a collection of mediators attached to
-				perform a given mediation flow in an
-				integration.
-			</story-content>
-			<story-links>
-				<link url="/carbon/sequences/list_sequences.jsp">Go to Web Applications...</link>
-				<link url="/carbon/sequences/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Endpoint">
-			<story-content>Endpoints represent the third party services or other
-				endpoints the ESB is talking to,
-				this configuration allows you to
-				record a set of meta data about the
-				external endpoint
-				apart from it's
-				EPR
-			</story-content>
-			<story-links>
-				<link url="/carbon/endpoints/index.jsp">Go to Message Tracing...</link>
-				<link url="/carbon/endpoints/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Scheduled Tasks">
-			<story-content>Job scheduling facility in the ESB with quartz
-				scheduler, helping several tasks to be
-				initiated and scheduled by the
-				ESB.</story-content>
-			<story-links>
-				<link url="/carbon/task/index.jsp">Go to WSDL2Java Tool..</link>
-				<link url="/carbon/task/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Store &amp; Forward">
-			<story-content>Message Stores and Processors can be used to persist
-				messages to queues and then process
-				preserving SLAs.</story-content>
-			<story-links>
-				<link url="/carbon/message_processor/index.jsp">Go to Java2WSDL Tool...</link>
-				<link url="/carbon/message_processor/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Priority Execution">
-			<story-content>Ability to categorize mediation flows with a priority
-				allowing certain messages or
-				mediation paths to get a high priority
-				with compared to other messages or
-				paths.</story-content>
-			<story-links>
-				<link url="/carbon/executors/list_executors.jsp">Go to Java2WSDL Tool...</link>
-				<link url="/carbon/executors/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-	</service>
-	<service name="Application Services" link="https://appserver.cloud.wso2.com"
-		key="as">
-		<story title="Service Hosting">
-			<story-content>Different types of Web Services such as Axis2
-				Services, JAXWS Services, Jar Services
-				or Spring Services can be
-				deployed in Application Server. All
-				configurations such as
-				QoS can be
-				easily configured here.</story-content>
-			<story-links>
-				<link url="/carbon/service-mgt/index.jsp">Got to services...</link>
-				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Web Applications">
-			<story-content>Web Application hosting features in AppServer
-				supports
-				deployment of Tomcat
-				compliant Webapps. Deployed Webapps can be
-				easily managed using the Webapp
-				management facilities available in
-				the management console.
-			</story-content>
-			<story-links>
-				<link url="/carbon/webapp-mgt/upload.jsp">Go to Web Applications...</link>
-				<link url="/carbon/webapp-mgt/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Message Tracing">
-			<story-content>Trace the request and responses to your service.
-				Message Tracing is a vital
-				debugging tool when you have clients from
-				heterogeneous platforms.
-			</story-content>
-			<story-links>
-				<link url="/carbon/tracer/index.jsp">Go to Message Tracing...</link>
-				<link url="/carbon/tracer/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="WSDL2Java Tool">
-			<story-content>Use WSDL2Java tool in Web Application Server to
-				convert Web Service WSDL to a set of
-				Java objects.</story-content>
-			<story-links>
-				<link url="/carbon/wsdl2code/index.jsp">Go to WSDL2Java Tool..</link>
-				<link url="/carbon/wsdl2code/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Java2WSDL Tool">
-			<story-content>Use Java2WSDL tool in Web Application Server make it
-				easy to develop a new web service.</story-content>
-			<story-links>
-				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
-				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-	</service>
-	<service name="Data Services" link="https://dss.cloud.wso2.com"
-		key="dss">
-		<story title="Data Service Hosting">
-			<story-content>Data Web Services can be deployed in Data Services
-				Server. All configurations such as
-				QoS can be easily configured here.
-			</story-content>
-			<story-links>
-				<link url="/carbon/service-mgt/index.jsp">Got to services...</link>
-				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Data as a Service">
-			<story-content>Create your databases on the cloud, and acess those as
-				you would do with regular
-				databases.</story-content>
-			<story-links>
-				<link url="/carbon/ds/scriptAddSource.jsp">Go to data sources...</link>
-				<link url="/carbon/ds/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Service Testing">
-			<story-content>Tryit tool can be used as a simple Web Service client
-				which can be used to try your
-				services within AppServer itself.
-			</story-content>
-			<story-links>
-				<link url="/carbon/tryit/index.jsp">Go
-					to Service Testing...</link>
-				<link url="/carbon/tryit/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Message Tracing">
-			<story-content>Trace the request and responses to your service.
-				Message Tracing is a vital
-				debugging tool when you have clients from
-				heterogeneous platforms.
-			</story-content>
-			<story-links>
-				<link url="/carbon/tracer/index.jsp">Go to Message
-					Tracing...</link>
-				<link url="/carbon/tracer/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="DB Explorer">
-			<story-content>Explore your databases using the explorer tool on
-				the cloud.</story-content>
-			<story-links>
-				<link url="/carbon/adminconsole/databases.jsp">Go to DB
-					Explorer Tool...</link>
-				<link url="/carbon/adminconsole/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Relational Storage Solutions on Cloud">
-			<story-content>&lt;a
-				href="http://wso2.org/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive"&gt;&lt;img
-				src="../../../../features-dashboard/dashboards/images/configure_db.png"
-				alt=""/&gt;</story-content>
-			<story-links>
-				<link
-					url="http://wso2.org/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive">Read
-					online...</link>
-			</story-links>
-		</story>
-	</service>
-	<service name="Governance Services" link="https://governance.cloud.wso2.com"
-		key="greg">
-		<story title="Service">
-			<story-content>Service is the basic entity of your SOA platform. You
-				can manage service metadata and
-				the service lifecycle as well as
-				maintain multiple versions of a given
-				service, and much
-				more.
-			</story-content>
-			<story-links>
-				<link url="/carbon/services/services.jsp">Got to services...</link>
-				<link url="/carbon/services/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="WSDL">
-			<story-content>WSDL defines the interface of a web service. You can
-				store, validate and manage WSDLs
-				with ease, keeping track of
-				dependencies and associations such as
-				services, schema and
-				policies.
-			</story-content>
-			<story-links>
-				<link url="/carbon/wsdl/wsdl.jsp">Go to WSDL</link>
-				<link url="/carbon/wsdl/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Schema">
-			<story-content>XML Schema defines data types in a WSDL. As in the
-				case of WSDLs, you can keep
-				associations of schema which helps in the
-				impact analysis process, when
-				maintaining the
-				data models associated
-				with your SOA.</story-content>
-			<story-links>
-				<link url="/carbon/schema/schema.jsp">Go to Schema...</link>
-				<link url="/carbon/schema/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Policy">
-			<story-content>Policies help standardize SOA behaviour. You can keep
-				track of the policies bound to a
-				service. It also supports policy
-				enforcement to control how SOA behaves as
-				desired by
-				both IT and
-				business personnel.</story-content>
-			<story-links>
-				<link url="/carbon/policy/policy.jsp">Go to Policy..</link>
-				<link url="/carbon/policy/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Search">
-			<story-content>The repository can store any arbitrary type of
-				resource. You can search for resources by
-				name, author, time created
-				or updated. You also can search for resources
-				by media type.
-			</story-content>
-			<story-links>
-				<link url="/carbon/search/advancedSearch.jsp">Go to Search...</link>
-				<link url="/carbon/search/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Activities">
-			<story-content>An activity log provide an invaluable insight to what
-				operations took place on the
-				repository. You can browse activities
-				while filtering them by date range, user
-				name, or
-				activity type.
-			</story-content>
-			<story-links>
-				<link url="/carbon/activities/activity.jsp">Go to Activities...</link>
-				<link url="/carbon/activities/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Notifications">
-			<story-content>The registry generates events when changes are made to
-				a particular resource or
-				collection. You can subscribe to these
-				events via e-mail, or forward them to a
-				web
-				service via SOAP or REST.
-			</story-content>
-			<story-links>
-				<link url="/carbon/notifications/notifications.jsp">Go to Notifications...</link>
-				<link url="/carbon/notifications/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Extensions">
-			<story-content>While we address most governance and registry related
-				scenarios out-of-the-box, you also
-				can upload your own extensions
-				that is capable of extending the basic
-				functionality of
-				the product
-			</story-content>
-			<story-links>
-				<link url="/carbon/extensions/add_extensions.jsp">Go to Activities...</link>
-				<link url="/carbon/extensions/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-	</service>
-	<service name="Identity Services" link="https://governance.cloud.wso2.com"
-		key="is">
-		<story title="User Profile">
-			<story-content>Update your user profile or add multiple user
-				profiles.The value from your profile will
-				be used to populate your
-				Information card and OpenID profiles.
-			</story-content>
-			<story-links>
-				<link url="/carbon/userprofile/index.jsp">Got to User Profile...</link>
-				<link url="/carbon/userprofile/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="OpenID">
-			<story-content>This OpenID can be used with any OpenID relying party
-				which trusts your domain for
-				login.</story-content>
-			<story-links>
-				<link url="/carbon/identity-provider/index.jsp">Go to OpenID...</link>
-				<link url="/carbon/identity-provider/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Information Card">
-			<story-content>This card can be used with any identity selector that
-				supports Microsoft CardSpace
-				specifications and will allow you to
-				login to web applications that support
-				information
-				card logins.
-			</story-content>
-			<story-links>
-				<link url="/carbon/identity-provider/index.jsp">Go to Information Card...</link>
-				<link url="/carbon/identity-provider/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="SAML 2.0 Single Sign-On">
-			<story-content>Use WSO2 Identity Server for Single Sign-on
-				configuration. Service Providers can be
-				added and removed.
-			</story-content>
-			<story-links>
-				<link url="/carbon/sso-saml/manage_service_providers.jsp">Go to SAML 2.0 Single Sign-On..</link>
-				<link url="/carbon/sso-saml/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Multifactor Authentication">
-			<story-content>Use WSO2 Identity Server to Enable XMPP based
-				multi-factor authentication.</story-content>
-			<story-links>
-				<link url="/carbon/multi-factor/xmpp-config.jsp">Go to Multifactor Authentication...</link>
-				<link url="/carbon/multi-factor/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Users and Roles">
-			<story-content>WSO2 Identity Server enables you to manage users and
-				roles in your system.</story-content>
-			<story-links>
-				<link url="/carbon/userstore/index.jsp">Go to Users and Roles...</link>
-				<link url="/carbon/userstore/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Relying Parties">
-			<story-content>Manage your Relying Parties with WSO2 Identity Server.
-			</story-content>
-			<story-links>
-				<link url="/carbon/identity-trusted-relying-parties/add-trusted-rp.jsp">Go to Relying Parties...</link>
-				<link url="/carbon/identity-trusted-relying-parties/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Key Stores">
-			<story-content>Manage your Key Stores with WSO2 Identity Server
-			</story-content>
-			<story-links>
-				<link url="/carbon/keystoremgt/keystore-mgt.jsp">Go to Activities...</link>
-				<link url="/carbon/keystoremgt/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-	</service>
-	<service name="Business Activity Monitor" link="https://bam.cloud.wso2.com"
-		key="bam">
-		<story title="Real Time Mediation Monitoring">
-			<story-content>Monitor proxy services, endpoints and sequences and
-				their operations in real time. The
-				results gathered from the
-				real-time monitoring are presented in a clear and
-				easy-to-view
-				format.</story-content>
-			<story-links>
-				<link url="/carbon/service-mgt/index.jsp">Got to services...</link>
-				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Mediation Analysis">
-			<story-content>Analyze the historical mediation trends over time with
-				the help of visualization
-				framework.</story-content>
-			<story-links>
-				<link url="/carbon/webapp-mgt/upload.jsp">Go to Web Applications...</link>
-				<link url="/carbon/webapp-mgt/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Summary Generation">
-			<story-content>Generate a summarised view of collected statistics and
-				write gadgets to display these
-				summarised data.</story-content>
-			<story-links>
-				<link url="/carbon/tracer/index.jsp">Go to Message Tracing...</link>
-				<link url="/carbon/tracer/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Service Invocation Analysis">
-			<story-content>rite gadgets to consume service statistics and present
-				to end user. Dashboard
-				support
-				Google Gadget specification.
-			</story-content>
-			<story-links>
-				<link url="/carbon/wsdl2code/index.jsp">Go to WSDL2Java Tool..</link>
-				<link url="/carbon/wsdl2code/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Dashboard">
-			<story-content>Monitor and correlate related business activities
-				across multiple server instances.
-				These activities can be used to
-				track and verify the smooth execution of
-				business.</story-content>
-			<story-links>
-				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
-				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Activity Correlation &amp; Monitoring">
-			<story-content>Monitor and correlate related business activities
-				across multiple server instances.
-				These activities can be used to
-				track and verify the smooth execution of
-				business.</story-content>
-			<story-links>
-				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
-				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Message Collection &amp; Archival">
-			<story-content>Collect messages coming into your SOA, analyze and
-				archive for future retrieval.</story-content>
-			<story-links>
-				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
-				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-	</service>
-	<service name="Business Process Services" link="https://bps.cloud.wso2.com"
-		key="bps">
-		<story title="WS-BPEL 2.0 &amp; BPELWS 1.1">
-			<story-content>WSO2 BPS supports both WS-BPEL 2.0 and BPEL4WS 1.1
-				standards. It also includes WSO2 BPS
-				specific extensions to enhance
-				the features provide by WS-BPEL.
-			</story-content>
-			<story-links>
-				<link url="">Got to Business Process Services...</link>
-				<link url="/carbon/admin/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Instance Data Cleanup">
-			<story-content>Allows multiple levels of instance data cleanup which
-				are accumulated during process
-				instance lifetime. XPath extensions,
-				Iteratable ForEach, Flexible Assigns,
-				XQuery 1.0 support and various
-				other extensions to BPEL language.</story-content>
-			<story-links>
-				<link url="">Go to OpenID...</link>
-				<link url="/carbon/admin/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="BPEL Extensions">
-			<story-content>Hot update BPEL processes and allows you to maintain
-				multiple versions of processes.</story-content>
-			<story-links>
-				<link url="">Go to Information Card...</link>
-				<link url="/carbon/admin/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-	</service>
-	<service name="Business Rule Server" link="https://brs.cloud.wso2.com"
-		key="brs">
-		<story title="Service Hosting Support">
-			<story-content>Service Hosting feature in Business Rules Server
-				enables deployment of Rule Services.</story-content>
-			<story-links>
-				<link url="/carbon/service-mgt/index.jsp">Got to Business Process Services...</link>
-				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Rule service creation support">
-			<story-content>Support for creating rule services with drools or
-				using rule services created with other
-				IDEs.</story-content>
-			<story-links>
-				<link url="/carbon/ruleservices/rule_service_wizard_step1.jsp">Go to Rule service creation...</link>
-				<link url="/carbon/ruleservices/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Registry as a Rule Repository">
-			<story-content>Registry as a Rule Repository.</story-content>
-			<story-links>
-				<link url="/carbon/resources/resource.jsp">Go to Registry Rule Repository..</link>
-				<link url="/carbon/resources/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Service testing">
-			<story-content>Tryit tool can be used as a simple Web Service client
-				which can be used to try your
-				services within AppServer itself.
-			</story-content>
-			<story-links>
-				<link url="/carbon/tryit/index.jsp">Go
-					to Service Testing...</link>
-				<link url="/carbon/tryit/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-	</service>
-	<service name="Cloud Gateway" link="https://cg.stratoslive.wso2.com"
-		key="cg">
-		<story title="Cloud Service">
-			<story-content>Publish a service or data residing behind a firewall
-				in a secure and controlled manner as a Cloud Service.
-			</story-content>
-			<story-links>
-				<link url="/carbon/service-mgt/index.jsp">Go to Cloud Services...</link>
-				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-	</service>
-	<service name="Complex Event Processing Services" link="https://cep.cloud.wso2.com"
-		key="cep">
-		<story title="Bring CEP to SOA">
-			<story-content>Bring CEP to SOA by processing XML events and produce
-				results as XML events.</story-content>
-			<story-links>
-				<link url="/carbon/CEP/cep_queries.jsp">Go to CEP buckets list...</link>
-				<link url="/carbon/CEP/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Registry Storage">
-			<story-content>Ability to define different event streams, queries and
-				out put streams and store them in
-				the registry as a bucket.
-			</story-content>
-			<story-links>
-				<link url="/carbon/resources/resource.jsp">Go to Registry Storage...</link>
-				<link url="/carbon/messagebox/docs/userguide.html">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Esper and Fusion">
-			<story-content>Support Esper and fusion back end runtimes..
-			</story-content>
-			<story-links>
-				<link url="">Go to Esper and Fusion..</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Filter data from the XML event">
-			<story-content>Ability to filter data from the XML event using xpath
-				and format the result as an XML
-				event.
-			</story-content>
-			<story-links>
-				<link url="">Go
-					to Filter data...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Support different types of brokers">
-			<story-content>Support different types of brokers WS-Event, JMS to
-				receive publish events.
-			</story-content>
-			<story-links>
-				<link url="">Go
-					to brokers...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Storing broker configurations">
-			<story-content>Define and store such different broker configurations.
-			</story-content>
-			<story-links>
-				<link url="">Go
-					to brokers...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Administrative Console support">
-			<story-content>Administrative Console to create buckets, add
-				subscriptions etc..
-			</story-content>
-			<story-links>
-				<link url="">Go
-					to Administrative Console ...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Specify CEP queries">
-			<story-content>Ability to specify CEP queries inline or pick from the
-				registry.
-			</story-content>
-			<story-links>
-				<link url="">Go
-					to CEP queries ...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-	</service>
-	<service name="Message Broker Services" link="https://mb.cloud.wso2.com"
-		key="mb">
-		<story title="Publish/Subscribe to Topics">
-			<story-content>WS-Eventing to publish/subscribe to topics using web
-				service standards.</story-content>
-			<story-links>
-				<link url="">Go to topics...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="AMQP">
-			<story-content>MS support thorough AMQP to publish/subscribe to
-				topics and Queues.</story-content>
-			<story-links>
-				<link url="">Go to AMQP...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Topic Authorization">
-			<story-content>MS support thorough AMQP to publish/subscribe to
-				topics and Queues.</story-content>
-			<story-links>
-				<link url="">Go to Topic Authorization...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Manage topics and queues permissions">
-			<story-content>Administrative console support to manage topics and
-				queues permissions.</story-content>
-			<story-links>
-				<link url="">Go to Manage topics and queues permissions...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="SQS support">
-			<story-content>SQS support to store retrieve messages using a web
-				service API.</story-content>
-			<story-links>
-				<link url="">Go to SQS ...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="User based authorization for queues">
-			<story-content>User based authorization for queues.</story-content>
-			<story-links>
-				<link url="">Go to User based authorization ...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Manage message boxes">
-			<story-content>Administrative console support to manage message boxes
-				and store/retrieve messages.</story-content>
-			<story-links>
-				<link url="">Go to message boxes...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-		<story title="Message box as event sink">
-			<story-content>Ability to use a message box as the event sink for a
-				subscription.</story-content>
-			<story-links>
-				<link url="">Go to event sink support...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-	</service>
-        <service name="Storage Server Services" link="https://ss.cloud.wso2.com" key="ss">
-		<story title="Storage Server Data">
-			<story-content>Storage Server</story-content>
-			<story-links>
-				<link url="">Go to topics...</link>
-				<link url="">Read more (docs)...</link>
-			</story-links>
-		</story>
-	</service>
--->
-</data>
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/identity.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/identity.xml b/products/stratos_controller/conf/identity.xml
deleted file mode 100755
index 1a20f09..0000000
--- a/products/stratos_controller/conf/identity.xml
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<Server xmlns="http://wso2.org/projects/carbon/carbon.xml">
-
-	<OpenIDServerUrl>https://localhost:9443/openidserver</OpenIDServerUrl>
-
-	<OpenIDUserPattern>https://localhost:9443/openid/</OpenIDUserPattern>
-
-     <JDBCPersistenceManager>
-        <DataSource>
-        	<!-- Include a data source name (jndiConfigName) from the set of data sources defined in master-datasources.xml -->
-        	<Name>jdbc/WSO2CarbonDB</Name>
-    	</DataSource>
-		<!-- If the identity database is created from another place and if it is required to skip schema initialization during the server start up, set the following
-		 property to "true". -->
-		<!-- <SkipDBSchemaCreation>false</SkipDBSchemaCreation> -->
-    </JDBCPersistenceManager>
-
-	<!--
-      Security configurations
-    -->
-	<Security>
-		<UserTrustedRPStore>
-			<Location>${carbon.home}/repository/resources/security/userRP.jks</Location>
-			<!-- Keystore type (JKS/PKCS12 etc.)-->
-			<Type>JKS</Type>
-			<!-- Keystore password-->
-			<Password>wso2carbon</Password>
-			<!-- Private Key password-->
-			<KeyPassword>wso2carbon</KeyPassword>
-		</UserTrustedRPStore>
-
-		<!--
-			The directory under which all other KeyStore files will be stored
-		-->
-		<KeyStoresDir>${carbon.home}/conf/keystores</KeyStoresDir>
-	</Security>
-
-	<Identity>
-		<IssuerPolicy>SelfAndManaged</IssuerPolicy>
-		<TokenValidationPolicy>CertValidate</TokenValidationPolicy>
-		<BlackList></BlackList>
-		<WhiteList></WhiteList>
-		<System>
-			<KeyStore></KeyStore>
-			<StorePass></StorePass>
-		</System>
-	</Identity>
-
-	<OAuth>
-		<RequestTokenUrl>https://localhost:9443/oauth/request-token</RequestTokenUrl>
-		<AccessTokenUrl>https://localhost:9443/oauth/access-token</AccessTokenUrl>
-		<AuthorizeUrl>https://localhost:9443/oauth/authorize-url</AuthorizeUrl>
-		<!-- Default validity period for Authorization Code in seconds -->
-		<AuthorizationCodeDefaultValidityPeriod>300</AuthorizationCodeDefaultValidityPeriod>
-		<!-- Default validity period for Access Token in seconds -->
-		<AccessTokenDefaultValidityPeriod>3600</AccessTokenDefaultValidityPeriod>
-		<!-- Timestamp skew in seconds -->
-		<TimestampSkew>300</TimestampSkew>
-		<!-- Enable OAuth caching. This cache has the replication support. -->
-		<EnableOAuthCache>true</EnableOAuthCache>
-		<!-- Configure the security measures needs to be done prior to store the token in the database,
-		such as hashing, encrypting, etc.-->
-		<TokenPersistencePreprocessor>org.wso2.carbon.identity.oauth.preprocessor.PlainTextTokenPersistencePreprocessor</TokenPersistencePreprocessor>
-		<!-- Supported Response Types -->
-		<SupportedResponseTypes>token,code</SupportedResponseTypes>
-		<!-- Supported Grant Types -->
-		<SupportedGrantTypes>authorization_code,password,refresh_token,client_credentials</SupportedGrantTypes>
-		<OAuthCallbackHandlers>		
-				<OAuthCallbackHandler Class="org.wso2.carbon.identity.oauth.callback.DefaultCallbackHandler"/>
-		</OAuthCallbackHandlers>
-	</OAuth>
-
-	<MultifactorAuthentication>
-		<XMPPSettings>
-			<XMPPConfig>
-				<XMPPProvider>gtalk</XMPPProvider>
-				<XMPPServer>talk.google.com</XMPPServer>
-				<XMPPPort>5222</XMPPPort>
-				<XMPPExt>gmail.com</XMPPExt>
-				<XMPPUserName>multifactor1@gmail.com</XMPPUserName>
-				<XMPPPassword>wso2carbon</XMPPPassword>
-			</XMPPConfig>
-		</XMPPSettings>
-	</MultifactorAuthentication>
-
-    	<SSOService>
-    	    <IdentityProviderURL>https://localhost:9443/samlsso</IdentityProviderURL>
-    	</SSOService>
-</Server>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/jaas.conf
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/jaas.conf b/products/stratos_controller/conf/jaas.conf
deleted file mode 100644
index 7a2a295..0000000
--- a/products/stratos_controller/conf/jaas.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-Server {
-       org.apache.zookeeper.server.auth.DigestLoginModule required
-       user_super="admin"
-       user_admin="admin";
-};
-Client {
-       org.apache.zookeeper.server.auth.DigestLoginModule required
-       username="admin"
-       password="admin";
-};

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/loadbalancer.conf
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/loadbalancer.conf b/products/stratos_controller/conf/loadbalancer.conf
deleted file mode 100644
index 138c087..0000000
--- a/products/stratos_controller/conf/loadbalancer.conf
+++ /dev/null
@@ -1,29 +0,0 @@
-services {
-    # default parameter values to be used in all services
-    defaults {
-        # minimum number of service instances required. WSO2 ELB will make sure that this much of instances
-        # are maintained in the system all the time, of course only when autoscaling is enabled.
-        min_app_instances       1;
-        # maximum number of service instances that will be load balanced by this ELB.
-        max_app_instances       5;
-        # you need to calibrate autoscaling parameters before start using. Please go through following blog post
-        # http://nirmalfdo.blogspot.com/2013/01/scale-up-early-scale-down-slowly.html
-        max_requests_per_second   5;
-        alarming_upper_rate 0.7;
-        alarming_lower_rate 0.2;
-        scale_down_factor 0.25;
-        rounds_to_average       2;
-        message_expiry_time     60000;
-    }
-    
-    identity {
-        hosts                   identity.aaaa.cloud-test.wso2.com;
-        domains   {
-            wso2.identity.aaaa.domain {
-                tenant_range    *;
-            }
-            
-        }
-    }
-    
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/metering-config-non-manager.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/metering-config-non-manager.xml b/products/stratos_controller/conf/metering-config-non-manager.xml
deleted file mode 100755
index e108687..0000000
--- a/products/stratos_controller/conf/metering-config-non-manager.xml
+++ /dev/null
@@ -1,104 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<meteringConfig xmlns="http://wso2.com/carbon/multitenancy/metering/config">
-    <tasks>
-        <task service="org.wso2.stratos.metering.agent.task.PerRegistryRequestTask">
-            <preHandlers>
-                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoRetriever">
-                </handler>
-                <handler service="org.wso2.stratos.metering.agent.handlers.RegistryActionValidator">
-                </handler>
-            </preHandlers>
-            <postHandlers>
-                <handler service="org.wso2.stratos.metering.agent.handlers.RemoteTaskInvoker"
-                        async="true" frequency="1"><!-- trigger per each request-->
-                    <parameter name="taskServiceUrl">https://localhost:9443/services/</parameter>
-                    <parameter name="userName">admin</parameter>
-                    <parameter name="password">admin</parameter>
-                    <parameter name="taskName">org.wso2.stratos.metering.manager.task.PerRegistryRequestRemoteTask</parameter>
-                </handler>
-            </postHandlers>
-        </task>
-        <task service="org.wso2.stratos.metering.agent.task.PerUserAddRequestTask">
-            <preHandlers>
-                <handler service="org.wso2.stratos.metering.agent.handlers.RemoteTaskInvoker"
-                        async="false" frequency="1"><!-- trigger per each request-->
-                    <parameter name="taskServiceUrl">https://localhost:9443/services/</parameter>
-                    <parameter name="userName">admin</parameter>
-                    <parameter name="password">admin</parameter>
-                    <parameter name="taskName">org.wso2.stratos.metering.manager.task.PerUserAddRequestRemoteTask</parameter>
-                </handler>
-                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoRetriever">
-                </handler>
-                <handler service="org.wso2.stratos.metering.agent.handlers.AddUserActionValidator">
-                </handler>
-            </preHandlers>
-        </task>
-        <task service="org.wso2.stratos.metering.manager.task.PerRegistryRequestRemoteTask">
-            <postHandlers>
-                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoRetriever">
-                </handler>
-                <handler service="org.wso2.stratos.metering.manager.handlers.DBContentVolumeRetriever"><!-- trigger per each registry request-->
-                </handler>
-                <handler service="org.wso2.stratos.metering.manager.handlers.BandwidthDataRetriever" async="true" frequency="5"><!-- trigger per 5 registry request-->
-                </handler>
-                <handler service="org.wso2.stratos.metering.manager.handlers.BandwidthDataStorer">
-                </handler>
-                <handler service="org.wso2.stratos.metering.manager.handlers.BillingDataRetriever"><!-- trigger per each registry request-->
-                </handler>
-                <handler service="org.wso2.stratos.metering.manager.handlers.RuleInvoker">
-                    <parameter name="rule-file">restriction-rules.drl</parameter>
-                </handler>
-                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoStorer">
-                </handler>
-            </postHandlers>
-        </task>
-        <task service="org.wso2.stratos.metering.manager.task.PerUserAddRequestRemoteTask">
-            <postHandlers>
-                <handler service="org.wso2.stratos.metering.manager.handlers.UsersCountRetriever"><!-- trigger per each user add request-->
-                </handler>
-                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoRetriever">
-                </handler>
-                <handler service="org.wso2.stratos.metering.manager.handlers.BillingDataRetriever"><!-- trigger per each user add request-->
-                </handler>
-                <handler service="org.wso2.stratos.metering.manager.handlers.RuleInvoker">
-                    <parameter name="rule-file">restriction-rules.drl</parameter>
-                </handler>
-                <handler service="org.wso2.stratos.metering.agent.handlers.ValidationInfoStorer">
-                </handler>
-            </postHandlers>
-        </task>
-        <!-- to be implemented -->
-        <!--
-        <task service="org.wso2.stratos.metering.manager.task.ScheduledTask">
-            <parameters>
-                <parameter name="period">1Month</parameter>
-                <parameter name="dayToTriggerOn">1</parameter>
-                <parameter name="hourToTriggerOn">0</parameter>
-                <parameter name="timeZone">GMT-8:00</parameter>
-            </parameters>
-            <hanldlers>
-                <handler service="org.wso2.stratos.metering.manager.handler.RuleInvoker">
-                    <parameter name="rule-file">restriction-rules.drl</parameter>
-                </handler>
-            </handlers>
-        </task>
-        -->
-    </tasks>
-</meteringConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/multitenancy-billing-rules.drl
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/multitenancy-billing-rules.drl b/products/stratos_controller/conf/multitenancy-billing-rules.drl
deleted file mode 100755
index 0cdc23d..0000000
--- a/products/stratos_controller/conf/multitenancy-billing-rules.drl
+++ /dev/null
@@ -1,34 +0,0 @@
-import org.wso2.carbon.billing.core.dataobjects.*;
-import org.wso2.carbon.billing.mgt.dataobjects.*;
-
-
-rule smallSubscription
-when
-$item: MultitenancyPackage(name == "SMB")
-$subItem: Item(parent == $item && name == "subscription")
-then
-$subItem.setCost(new Cash("$100"));
-$subItem.setCreditLimit(new Cash("$200"));
-end
-
-
-rule mediumSubscription
-when
-$item: MultitenancyPackage(name == "Professional")
-$subItem: Item(parent == $item && name == "subscription")
-then
-$subItem.setCost(new Cash("$500"));
-$subItem.setCreditLimit(new Cash("$1000"));
-end
-
-
-rule largeSubscription
-when
-$item: MultitenancyPackage(name == "Enterprise")
-$subItem: Item(parent == $item && name == "subscription")
-then
-$subItem.setCost(new Cash("$2000"));
-$subItem.setCreditLimit(new Cash("$4000"));
-end
-
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/nhttp.properties
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/nhttp.properties b/products/stratos_controller/conf/nhttp.properties
deleted file mode 100644
index 40c3bfc..0000000
--- a/products/stratos_controller/conf/nhttp.properties
+++ /dev/null
@@ -1,42 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# This file contains the configuration parameters used by the Non-blocking HTTP transport
-
-#http.socket.timeout=60000
-#nhttp_buffer_size=8192
-#http.tcp.nodelay=1
-#http.connection.stalecheck=0
-
-# Uncomment the following property for an AIX based deployment
-#http.nio.interest-ops-queueing=true
-
-# HTTP Sender thread pool parameters
-#snd_t_core=20
-#snd_t_max=100
-#snd_alive_sec=5
-#snd_qlen=-1
-#snd_io_threads=2
-
-# HTTP Listener thread pool parameters
-#lst_t_core=20
-#lst_t_max=100
-#lst_alive_sec=5
-#lst_qlen=-1
-#lst_io_threads=2

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/passthru-http.properties
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/passthru-http.properties b/products/stratos_controller/conf/passthru-http.properties
deleted file mode 100644
index 21cd1ab..0000000
--- a/products/stratos_controller/conf/passthru-http.properties
+++ /dev/null
@@ -1,34 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-## This file contains the configuration parameters used by the Pass-through HTTP transport
-
-## Pass-through HTTP transport specific tuning parameters 
-#worker_pool_size_core=40
-#worker_pool_size_max=200
-#worker_thread_keepalive_sec=60
-#worker_pool_queue_length=-1
-#io_threads_per_reactor=2
-#io_buffer_size=8192
-#http.max.connection.per.host.port=32767
-
-## Other parameters
-#http.user.agent.preserve=false
-#http.server.preserve=true
-#http.connection.disable.keepalive=false

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/rule-component.conf
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/rule-component.conf b/products/stratos_controller/conf/rule-component.conf
deleted file mode 100644
index 1bd6c09..0000000
--- a/products/stratos_controller/conf/rule-component.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-<RuleServer>
-    <RuleEngineProvider class="org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory"/>
-</RuleServer>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/samples-desc.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/samples-desc.xml b/products/stratos_controller/conf/samples-desc.xml
deleted file mode 100755
index 580f9b0..0000000
--- a/products/stratos_controller/conf/samples-desc.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<samples xmlns="http://wso2.com/stratos/samples">
-    <sample name="Shopping Cart">
-        <cloudServices>
-            <cloudService name="Application Server"/>
-            <!--cloudService name="WSO2 Stratos Governance"/>
-            <cloudService name="WSO2 Stratos Application Server"/>
-            <cloudService name="WSO2 Stratos Gadget Server"/>
-            <cloudService name="WSO2 Stratos Mashup Server"/>
-            <cloudService name="WSO2 Stratos Enterprise Service Bus"/>
-            <cloudService name="WSO2 Stratos Data Services Server"/>
-            <cloudService name="WSO2 Stratos Business Process Server"/-->
-        </cloudServices>
-	<fileName>GlobalShoppingCartSample-${shoppingcart.global.version}</fileName>
-    </sample>
-</samples>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/sso-idp-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/sso-idp-config.xml b/products/stratos_controller/conf/sso-idp-config.xml
deleted file mode 100755
index e8fa188..0000000
--- a/products/stratos_controller/conf/sso-idp-config.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<SSOIdentityProviderConfig>
-     <LoginPageBannerBaseURL>http://wso2.com/product-ads/stratos/wso2cloud/</LoginPageBannerBaseURL>
-     <TenantRegistrationPage>https://stratos-local.wso2.com/carbon/tenant-register/select_domain.jsp</TenantRegistrationPage>
-     <ServiceProvider>
-            <Issuer>WSO2 Stratos Controller</Issuer>
-            <AssertionConsumerService>https://stratos-local.wso2.com/acs</AssertionConsumerService>
-	    <CustomLoginPage>stratos-sso/login_ajaxprocessor.jsp</CustomLoginPage>
-     </ServiceProvider>
-</SSOIdentityProviderConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/status-monitor-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/status-monitor-config.xml b/products/stratos_controller/conf/status-monitor-config.xml
deleted file mode 100755
index 91bf5a3..0000000
--- a/products/stratos_controller/conf/status-monitor-config.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-     Defines the database and related params that to be used for the services status
-     monitoring. Status Monitor Agent writes to the database defined here, and the 
-     Status Monitor reads it. 
-  -->
-
-<serviceStatusConfig xmlns="http://wso2.com/carbon/status/monitor/config">
-   <authConfig>
-        <jksLocation>../../repository/resources/security/wso2carbon.jks</jksLocation> <!--location to the jks file-->
-
-        <!--The tenant credentials that to be used to login to the Stratos 
-	services. Make sure the correct credentials are given to avoid 
-	false positives.-->
-        <userName>admin@wso2-heartbeat-checker.org</userName>
-        <password>password</password>
-        <tenantDomain>wso2-heartbeat-checker.org</tenantDomain>
-   </authConfig>
-
-   <platformSample>
-        <!--The tenant that has the webapps and services to monitor. 
-	This can of course be the same tenant given above as tenantDomain-->
-        <tenantDomain>wso2.org</tenantDomain>
-    </platformSample>
-
-   <dbConfig>
-        <url>jdbc:mysql://localhost:3306/stratos_status</url>
-        <userName>monitor</userName>
-        <password>monitor</password>
-        <driverName>com.mysql.jdbc.Driver</driverName>
-        <maxActive>80</maxActive>
-        <maxWait>60000</maxWait>
-        <minIdle>5</minIdle>
-    </dbConfig>
-</serviceStatusConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/stratos-datasources.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/stratos-datasources.xml b/products/stratos_controller/conf/stratos-datasources.xml
deleted file mode 100755
index 4969870..0000000
--- a/products/stratos_controller/conf/stratos-datasources.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration">
-  
-    <providers>
-        <provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider>
-    </providers>
-  
-    <datasources>
-		<datasource>
-            <name>WSO2BillingDS</name>
-            <description>The datasource used for registry and user manager</description>
-            <jndiConfig>
-                <name>jdbc/WSO2BillingDS</name>
-            </jndiConfig>
-            <definition type="RDBMS">
-                <configuration>
-                    <url>jdbc:h2:repository/database/WSO2BILLING_DB;DB_CLOSE_ON_EXIT=FALSE</url>
-                    <username>wso2carbon</username>
-                    <password>wso2carbon</password>
-                    <driverClassName>org.h2.Driver</driverClassName>
-                    <maxActive>50</maxActive>
-                    <maxWait>60000</maxWait>
-                    <testOnBorrow>true</testOnBorrow>
-                    <validationQuery>SELECT 1</validationQuery>
-                    <validationInterval>30000</validationInterval>
-                </configuration>
-            </definition>
-        </datasource>
-
-	<datasource>
-            <name>WSO2S2DS</name>
-            <description>The datasource used for s2</description>
-            <jndiConfig>
-                <name>jdbc/WSO2S2DS</name>
-            </jndiConfig>
-            <definition type="RDBMS">
-                <configuration>
-                    <url>jdbc:h2:repository/database/WSO2S2_DB;DB_CLOSE_ON_EXIT=FALSE</url>
-                    <username>wso2carbon</username>
-                    <password>wso2carbon</password>
-                    <driverClassName>org.h2.Driver</driverClassName>
-                    <maxActive>50</maxActive>
-                    <maxWait>60000</maxWait>
-                    <testOnBorrow>true</testOnBorrow>
-                    <validationQuery>SELECT 1</validationQuery>
-                    <validationInterval>30000</validationInterval>
-                </configuration>
-            </definition>
-        </datasource>
-      </datasources>
-</datasources-configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/synapse-configs/default/registry.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/synapse-configs/default/registry.xml b/products/stratos_controller/conf/synapse-configs/default/registry.xml
deleted file mode 100644
index f259c7a..0000000
--- a/products/stratos_controller/conf/synapse-configs/default/registry.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- Registry declaration of the WSO2 ESB -->
-<registry xmlns="http://ws.apache.org/ns/synapse" provider="org.wso2.carbon.mediation.registry.WSO2Registry">
-    <!--all resources loaded from the URL registry would be
-    cached for this number of milliseconds -->
-    <parameter name="cachableDuration">15000</parameter>
-</registry>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/synapse-configs/default/sequences/errorHandler.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/synapse-configs/default/sequences/errorHandler.xml b/products/stratos_controller/conf/synapse-configs/default/sequences/errorHandler.xml
deleted file mode 100644
index 8621bee..0000000
--- a/products/stratos_controller/conf/synapse-configs/default/sequences/errorHandler.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-    <sequence name="errorHandler" xmlns="http://ws.apache.org/ns/synapse">
-	<log level="full">
-        	<property name="MESSAGE" value="Executing default 'fault' sequence"/>
-        	<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
-        	<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
-    	</log>
-        <makefault response="true">
-            <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
-            <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/>
-        </makefault>
-        <send/>
-    </sequence>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/synapse-configs/default/sequences/fault.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/synapse-configs/default/sequences/fault.xml b/products/stratos_controller/conf/synapse-configs/default/sequences/fault.xml
deleted file mode 100644
index 9d2d8f7..0000000
--- a/products/stratos_controller/conf/synapse-configs/default/sequences/fault.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- Default fault sequence shipped with the Apache Synapse -->
-<sequence xmlns="http://ws.apache.org/ns/synapse" name="fault">
-
-    <!-- Log the message at the full log level with the ERROR_MESSAGE and the ERROR_CODE-->
-    <!-- log level="full">
-        <property name="MESSAGE" value="Executing default 'fault' sequence"/>
-        <property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
-        <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
-    </log -->
-
-    <!-- Drops the messages by default if there is a fault -->
-    <script language="js"><![CDATA[
-        mc.setPayloadXML(
-           <{mc.getProperty("SERVICENAME")}Response xmlns="org.wso2.gateway">
-            <Timestamp>{new Date()}</Timestamp>
-            <Ack>Failure</Ack>
-            <Errors>
-             <ShortMessage>Gateway Error</ShortMessage>
-             <LongMessage>{mc.getProperty("ERROR_MESSAGE")}</LongMessage>
-             <ErrorCode>500</ErrorCode>
-             <SeverityCode>Error</SeverityCode>
-             <ErrorClassification>RequestError</ErrorClassification>
-            </Errors>
-            <ServiceName>{mc.getProperty("SERVICENAME")}</ServiceName>
-            <ResponseCode>{mc.getProperty("HTTP_SC")}</ResponseCode>
-            <ContentType>{mc.getProperty("Content-Type")}</ContentType>
-            <Version>1.5.1</Version>
-           </{mc.getProperty("SERVICENAME")}Response>
-        );
-      ]]></script>
-    <switch source="get-property('ERROR_CODE')">
-        <case regex="101504">   <!-- TIMEOUT ERROR -->
-            <property name="HTTP_SC" value="504" scope="axis2"/>
-            <sequence key="seq_timeout"/>
-        </case>
-        <case regex="303001">
-            <property name="HTTP_SC" value="503" scope="axis2"/>
-            <sequence key="seq_endpoint_down"/>
-        </case>
-        <case regex="111503">
-            <property name="HTTP_SC" value="503" scope="axis2"/>
-            <sequence key="seq_endpoint_down"/>
-        </case>
-        <default>
-            <property name="HTTP_SC" value="500" scope="axis2"/>
-        </default>
-    </switch>
-    <property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
-    <header name="To" action="remove"/>
-    <property name="RESPONSE" value="true"/>
-    <property name="messageType" value="text/xml" scope="axis2"/>
-    <property name="ContentType" value="text/xml" scope="axis2"/>
-
-    <send/>
-
-</sequence>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/synapse-configs/default/sequences/main.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/synapse-configs/default/sequences/main.xml b/products/stratos_controller/conf/synapse-configs/default/sequences/main.xml
deleted file mode 100644
index c4dbf5b..0000000
--- a/products/stratos_controller/conf/synapse-configs/default/sequences/main.xml
+++ /dev/null
@@ -1,110 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- Default main sequence shipped with the WSO2 ESB -->
-<sequence xmlns="http://ws.apache.org/ns/synapse" name="main" onError="fault">
-    <description>The main sequence for the message mediation</description>
-
-    <in>
-        <property name="REQUEST_HOST_HEADER" expression="$trp:host" scope="axis2"/>
-        <property name="SERVICE_PREFIX" expression="$axis2:SERVICE_PREFIX"/>
-        <send>
-            <!--endpoint name="sdlbEndpoint">
-                <session type="http">-->
-                    <!-- Session timout is 15mins-->
-                    <!--sessionTimeout>900000</sessionTimeout>
-                </session>
-                <serviceDynamicLoadbalance failover="true"
-                                           algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"
-                                           configuration="$system:loadbalancer.xml"/>
-            </endpoint>
-            -->
-	          <!--endpoint name="tenantAwareLBEndpoint">
-                <class name ="org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint">
-                     <parameter name="algorithm"> org.apache.synapse.endpoints.algorithms.RoundRobin</parameter>
-                     <parameter name="configuration">$system:loadbalancer.conf</parameter>
-                     <parameter name="failover">true</parameter>          
-                     <parameter name="sessionTimeout">900000</parameter>
-  	            </class>
- 	          </endpoint-->
-        </send>
-        <drop/>
-    </in>
-
-    <out>
-        <!-- Handling status codes: 301, 302 Redirection -->
-        <filter source="$trp:Location" regex=".+">
-            <property name="LB_SP_Host" expression="$ctx:SERVICE_PREFIX"
-                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="2"/>
-
-            <property name="LB_Location_Protocol" expression="$trp:Location"
-                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="1"/>
-            <property name="LB_Location_Host" expression="$trp:Location"
-                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="2"/>
-            <property name="LB_Location_Path" expression="$trp:Location"
-                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="4"/>
-
-            <!--<log level="custom">
-               <property name="ameera-ocation" expression="$trp:Location"/>
-               <property name="ameera-sprefix" expression="$ctx:SERVICE_PREFIX"/>
-           </log>-->
-
-            <filter xpath="fn:lower-case($ctx:LB_SP_Host)=fn:lower-case($ctx:LB_Location_Host)">
-                <then>
-                    <switch source="fn:lower-case($ctx:LB_Location_Protocol)">
-                        <case regex="https://">
-                            <property name="Location"
-                                      expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
-                                      scope="transport"/>
-                        </case>
-                        <case regex="http://">
-                            <property name="Location"
-                                      expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
-                                      scope="transport"/>
-                        </case>
-                    </switch>
-                </then>
-
-                <else>
-                    <filter xpath="$ctx:LB_REQUEST_HOST=fn:lower-case($ctx:LB_Location_Host)">
-                        <switch source="fn:lower-case($ctx:LB_Location_Protocol)">
-                            <case regex="https://">
-                                <property name="Location"
-                                          expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
-                                          scope="transport"/>
-                            </case>
-                            <case regex="http://">
-                                <property name="Location"
-                                          expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
-                                          scope="transport"/>
-                            </case>
-                        </switch>
-                    </filter>
-                </else>
-            </filter>
-        </filter>
-
-        <!-- Send the messages where they have been sent (i.e. implicit To EPR) -->
-        <property name="messageType" value="text/html" scope="axis2"/>
-        <send/>
-        <drop/>
-    </out>
-
-</sequence>


[20/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/features-dashboard.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/features-dashboard.xml b/products/stratos-controller/modules/features-dashboard/features-dashboard.xml
new file mode 100755
index 0000000..3041414
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/features-dashboard.xml
@@ -0,0 +1,762 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<data>
+	<service name="Cloud Services" link="https://cloud.wso2.com"
+		key="manager">
+		<story title="Billing">
+			<story-content>Billing is the process where the cloud computing
+				service subscribers are charged
+				based on the metered data. Billing
+				usually happens on a monthly basis.
+				Billing uses
+				pricing rates defined
+				against usage plans and compute the invoice against
+				the usage
+				data.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tenant-billing/past_invoice.jsp"> Billing...</link>
+				<link url="/carbon/tenant-billing/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Metering">
+			<story-content>Metering measures levels of resource utilization, such
+				as network bandwidth usage and
+				data storage volume, consumed by the
+				cloud services subscribers, aka
+				tenants.
+				Resource utilization's
+				(bandwidth and storage usage) are measured on the fly
+				and the
+				measured data is stored for summarizing and analyzing.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tenant-usage/tenant_usage.jsp">Go to Metering....</link>
+				<link url="/carbon/tenant-usage/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Account Management">
+			<story-content>Account management allows a tenant to update and
+				validate contact information,
+				update the usage plan, validate the
+				account and even de-activate the
+				account .</story-content>
+			<story-links>
+				<link url="/carbon/tracer/index.jsp">Manage account...</link>
+				<link url="/carbon/tracer/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Users and Roles">
+			<story-content>You can add users and define your own roles for a
+				tenant. The permission model is
+				role based. So a tenant admin can
+				define what actions a role can perform
+				by
+				configuring permissions for
+				that role.</story-content>
+			<story-links>
+				<link url="/carbon/account-mgt/account_mgt.jsp">Manage
+					users/roles...</link>
+				<link url="/carbon/account-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="MT-Logging">
+			<story-content>Flexible logging support with integration to
+				enterprise logging systems. This facilitate to monitor your system
+				and application logs through a log viewer.</story-content>
+			<story-links>
+				<link url="/carbon/log-view/index.jsp">Go to Log Viewer....</link>
+				<link url="/carbon/log-view/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Usage Metering and Throttling">
+			<story-content>&lt;a
+				href="http://wso2.org/library/articles/2011/09/usage-metering-throttling-cloud-computing"&gt;&lt;img
+				src="../../../../features-dashboard/dashboards/images/usage_metering_and_throttling.jpg"
+				alt=""/&gt;</story-content>
+		</story>
+		<story title="How WSO2 StratosLive meets Security Challenges in Cloud">
+			<story-content> &lt;a
+				href="http://wso2.org/library/articles/2011/08/wso2-stratoslive-meets-security-challenges-cloud"&gt;&lt;img
+				src="../../../../features-dashboard/dashboards/images/tenant_isolation.png"
+				alt=""/&gt;&lt;/a&gt; </story-content>
+		</story>
+	</service>
+	<service name="WSO2 Enterprise Service Bus" link="https://esb.cloud.wso2.com"
+		key="esb">
+		<story title="Proxy Service">
+			<story-content> Proxy services facilitate location transparency and
+				provides the means for the
+				integration between various other
+				services, on different formats
+			</story-content>
+			<story-links>
+				<link url="/carbon/proxyservices/templates.jsp">Got to services...</link>
+				<link url="/carbon/proxyservices/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Sequence">
+			<story-content>Sequence is a collection of mediators attached to
+				perform a given mediation flow in an
+				integration.
+			</story-content>
+			<story-links>
+				<link url="/carbon/sequences/list_sequences.jsp">Go to Web Applications...</link>
+				<link url="/carbon/sequences/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Endpoint">
+			<story-content>Endpoints represent the third party services or other
+				endpoints the ESB is talking to,
+				this configuration allows you to
+				record a set of meta data about the
+				external endpoint
+				apart from it's
+				EPR
+			</story-content>
+			<story-links>
+				<link url="/carbon/endpoints/index.jsp">Go to Message Tracing...</link>
+				<link url="/carbon/endpoints/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Scheduled Tasks">
+			<story-content>Job scheduling facility in the ESB with quartz
+				scheduler, helping several tasks to be
+				initiated and scheduled by the
+				ESB.</story-content>
+			<story-links>
+				<link url="/carbon/task/index.jsp">Go to WSDL2Java Tool..</link>
+				<link url="/carbon/task/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Store &amp; Forward">
+			<story-content>Message Stores and Processors can be used to persist
+				messages to queues and then process
+				preserving SLAs.</story-content>
+			<story-links>
+				<link url="/carbon/message_processor/index.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/message_processor/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Priority Execution">
+			<story-content>Ability to categorize mediation flows with a priority
+				allowing certain messages or
+				mediation paths to get a high priority
+				with compared to other messages or
+				paths.</story-content>
+			<story-links>
+				<link url="/carbon/executors/list_executors.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/executors/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Application Services" link="https://appserver.cloud.wso2.com"
+		key="as">
+		<story title="Service Hosting">
+			<story-content>Different types of Web Services such as Axis2
+				Services, JAXWS Services, Jar Services
+				or Spring Services can be
+				deployed in Application Server. All
+				configurations such as
+				QoS can be
+				easily configured here.</story-content>
+			<story-links>
+				<link url="/carbon/service-mgt/index.jsp">Got to services...</link>
+				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Web Applications">
+			<story-content>Web Application hosting features in AppServer
+				supports
+				deployment of Tomcat
+				compliant Webapps. Deployed Webapps can be
+				easily managed using the Webapp
+				management facilities available in
+				the management console.
+			</story-content>
+			<story-links>
+				<link url="/carbon/webapp-mgt/upload.jsp">Go to Web Applications...</link>
+				<link url="/carbon/webapp-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Message Tracing">
+			<story-content>Trace the request and responses to your service.
+				Message Tracing is a vital
+				debugging tool when you have clients from
+				heterogeneous platforms.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tracer/index.jsp">Go to Message Tracing...</link>
+				<link url="/carbon/tracer/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="WSDL2Java Tool">
+			<story-content>Use WSDL2Java tool in Web Application Server to
+				convert Web Service WSDL to a set of
+				Java objects.</story-content>
+			<story-links>
+				<link url="/carbon/wsdl2code/index.jsp">Go to WSDL2Java Tool..</link>
+				<link url="/carbon/wsdl2code/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Java2WSDL Tool">
+			<story-content>Use Java2WSDL tool in Web Application Server make it
+				easy to develop a new web service.</story-content>
+			<story-links>
+				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Data Services" link="https://dss.cloud.wso2.com"
+		key="dss">
+		<story title="Data Service Hosting">
+			<story-content>Data Web Services can be deployed in Data Services
+				Server. All configurations such as
+				QoS can be easily configured here.
+			</story-content>
+			<story-links>
+				<link url="/carbon/service-mgt/index.jsp">Got to services...</link>
+				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Data as a Service">
+			<story-content>Create your databases on the cloud, and acess those as
+				you would do with regular
+				databases.</story-content>
+			<story-links>
+				<link url="/carbon/ds/scriptAddSource.jsp">Go to data sources...</link>
+				<link url="/carbon/ds/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Service Testing">
+			<story-content>Tryit tool can be used as a simple Web Service client
+				which can be used to try your
+				services within AppServer itself.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tryit/index.jsp">Go
+					to Service Testing...</link>
+				<link url="/carbon/tryit/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Message Tracing">
+			<story-content>Trace the request and responses to your service.
+				Message Tracing is a vital
+				debugging tool when you have clients from
+				heterogeneous platforms.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tracer/index.jsp">Go to Message
+					Tracing...</link>
+				<link url="/carbon/tracer/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="DB Explorer">
+			<story-content>Explore your databases using the explorer tool on
+				the cloud.</story-content>
+			<story-links>
+				<link url="/carbon/adminconsole/databases.jsp">Go to DB
+					Explorer Tool...</link>
+				<link url="/carbon/adminconsole/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Relational Storage Solutions on Cloud">
+			<story-content>&lt;a
+				href="http://wso2.org/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive"&gt;&lt;img
+				src="../../../../features-dashboard/dashboards/images/configure_db.png"
+				alt=""/&gt;&lt;/a&gt;</story-content>
+			<story-links>
+				<link
+					url="http://wso2.org/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive">Read
+					online...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Governance Services" link="https://governance.cloud.wso2.com"
+		key="greg">
+		<story title="Service">
+			<story-content>Service is the basic entity of your SOA platform. You
+				can manage service metadata and
+				the service lifecycle as well as
+				maintain multiple versions of a given
+				service, and much
+				more.
+			</story-content>
+			<story-links>
+				<link url="/carbon/services/services.jsp">Got to services...</link>
+				<link url="/carbon/services/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="WSDL">
+			<story-content>WSDL defines the interface of a web service. You can
+				store, validate and manage WSDLs
+				with ease, keeping track of
+				dependencies and associations such as
+				services, schema and
+				policies.
+			</story-content>
+			<story-links>
+				<link url="/carbon/wsdl/wsdl.jsp">Go to WSDL</link>
+				<link url="/carbon/wsdl/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Schema">
+			<story-content>XML Schema defines data types in a WSDL. As in the
+				case of WSDLs, you can keep
+				associations of schema which helps in the
+				impact analysis process, when
+				maintaining the
+				data models associated
+				with your SOA.</story-content>
+			<story-links>
+				<link url="/carbon/schema/schema.jsp">Go to Schema...</link>
+				<link url="/carbon/schema/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Policy">
+			<story-content>Policies help standardize SOA behaviour. You can keep
+				track of the policies bound to a
+				service. It also supports policy
+				enforcement to control how SOA behaves as
+				desired by
+				both IT and
+				business personnel.</story-content>
+			<story-links>
+				<link url="/carbon/policy/policy.jsp">Go to Policy..</link>
+				<link url="/carbon/policy/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Search">
+			<story-content>The repository can store any arbitrary type of
+				resource. You can search for resources by
+				name, author, time created
+				or updated. You also can search for resources
+				by media type.
+			</story-content>
+			<story-links>
+				<link url="/carbon/search/advancedSearch.jsp">Go to Search...</link>
+				<link url="/carbon/search/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Activities">
+			<story-content>An activity log provide an invaluable insight to what
+				operations took place on the
+				repository. You can browse activities
+				while filtering them by date range, user
+				name, or
+				activity type.
+			</story-content>
+			<story-links>
+				<link url="/carbon/activities/activity.jsp">Go to Activities...</link>
+				<link url="/carbon/activities/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Notifications">
+			<story-content>The registry generates events when changes are made to
+				a particular resource or
+				collection. You can subscribe to these
+				events via e-mail, or forward them to a
+				web
+				service via SOAP or REST.
+			</story-content>
+			<story-links>
+				<link url="/carbon/notifications/notifications.jsp">Go to Notifications...</link>
+				<link url="/carbon/notifications/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Extensions">
+			<story-content>While we address most governance and registry related
+				scenarios out-of-the-box, you also
+				can upload your own extensions
+				that is capable of extending the basic
+				functionality of
+				the product
+			</story-content>
+			<story-links>
+				<link url="/carbon/extensions/add_extensions.jsp">Go to Activities...</link>
+				<link url="/carbon/extensions/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Identity Services" link="https://governance.cloud.wso2.com"
+		key="is">
+		<story title="User Profile">
+			<story-content>Update your user profile or add multiple user
+				profiles.The value from your profile will
+				be used to populate your
+				Information card and OpenID profiles.
+			</story-content>
+			<story-links>
+				<link url="/carbon/userprofile/index.jsp">Got to User Profile...</link>
+				<link url="/carbon/userprofile/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="OpenID">
+			<story-content>This OpenID can be used with any OpenID relying party
+				which trusts your domain for
+				login.</story-content>
+			<story-links>
+				<link url="/carbon/identity-provider/index.jsp">Go to OpenID...</link>
+				<link url="/carbon/identity-provider/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Information Card">
+			<story-content>This card can be used with any identity selector that
+				supports Microsoft CardSpace
+				specifications and will allow you to
+				login to web applications that support
+				information
+				card logins.
+			</story-content>
+			<story-links>
+				<link url="/carbon/identity-provider/index.jsp">Go to Information Card...</link>
+				<link url="/carbon/identity-provider/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="SAML 2.0 Single Sign-On">
+			<story-content>Use WSO2 Identity Server for Single Sign-on
+				configuration. Service Providers can be
+				added and removed.
+			</story-content>
+			<story-links>
+				<link url="/carbon/sso-saml/manage_service_providers.jsp">Go to SAML 2.0 Single Sign-On..</link>
+				<link url="/carbon/sso-saml/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Multifactor Authentication">
+			<story-content>Use WSO2 Identity Server to Enable XMPP based
+				multi-factor authentication.</story-content>
+			<story-links>
+				<link url="/carbon/multi-factor/xmpp-config.jsp">Go to Multifactor Authentication...</link>
+				<link url="/carbon/multi-factor/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Users and Roles">
+			<story-content>WSO2 Identity Server enables you to manage users and
+				roles in your system.</story-content>
+			<story-links>
+				<link url="/carbon/userstore/index.jsp">Go to Users and Roles...</link>
+				<link url="/carbon/userstore/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Relying Parties">
+			<story-content>Manage your Relying Parties with WSO2 Identity Server.
+			</story-content>
+			<story-links>
+				<link url="/carbon/identity-trusted-relying-parties/add-trusted-rp.jsp">Go to Relying Parties...</link>
+				<link url="/carbon/identity-trusted-relying-parties/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Key Stores">
+			<story-content>Manage your Key Stores with WSO2 Identity Server
+			</story-content>
+			<story-links>
+				<link url="/carbon/keystoremgt/keystore-mgt.jsp">Go to Activities...</link>
+				<link url="/carbon/keystoremgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Business Activity Monitor" link="https://bam.cloud.wso2.com"
+		key="bam">
+		<story title="Real Time Mediation Monitoring">
+			<story-content>Monitor proxy services, endpoints and sequences and
+				their operations in real time. The
+				results gathered from the
+				real-time monitoring are presented in a clear and
+				easy-to-view
+				format.</story-content>
+			<story-links>
+				<link url="/carbon/service-mgt/index.jsp">Got to services...</link>
+				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Mediation Analysis">
+			<story-content>Analyze the historical mediation trends over time with
+				the help of visualization
+				framework.</story-content>
+			<story-links>
+				<link url="/carbon/webapp-mgt/upload.jsp">Go to Web Applications...</link>
+				<link url="/carbon/webapp-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Summary Generation">
+			<story-content>Generate a summarised view of collected statistics and
+				write gadgets to display these
+				summarised data.</story-content>
+			<story-links>
+				<link url="/carbon/tracer/index.jsp">Go to Message Tracing...</link>
+				<link url="/carbon/tracer/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Service Invocation Analysis">
+			<story-content>rite gadgets to consume service statistics and present
+				to end user. Dashboard
+				support
+				Google Gadget specification.
+			</story-content>
+			<story-links>
+				<link url="/carbon/wsdl2code/index.jsp">Go to WSDL2Java Tool..</link>
+				<link url="/carbon/wsdl2code/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Dashboard">
+			<story-content>Monitor and correlate related business activities
+				across multiple server instances.
+				These activities can be used to
+				track and verify the smooth execution of
+				business.</story-content>
+			<story-links>
+				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Activity Correlation &amp; Monitoring">
+			<story-content>Monitor and correlate related business activities
+				across multiple server instances.
+				These activities can be used to
+				track and verify the smooth execution of
+				business.</story-content>
+			<story-links>
+				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Message Collection &amp; Archival">
+			<story-content>>Collect messages coming into your SOA, analyze and
+				archive for future retrieval.</story-content>
+			<story-links>
+				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Business Process Services" link="https://bps.cloud.wso2.com"
+		key="bps">
+		<story title="WS-BPEL 2.0 &amp; BPELWS 1.1">
+			<story-content>WSO2 BPS supports both WS-BPEL 2.0 and BPEL4WS 1.1
+				standards. It also includes WSO2 BPS
+				specific extensions to enhance
+				the features provide by WS-BPEL.
+			</story-content>
+			<story-links>
+				<link url="">Got to Business Process Services...</link>
+				<link url="/carbon/admin/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Instance Data Cleanup">
+			<story-content>Allows multiple levels of instance data cleanup which
+				are accumulated during process
+				instance lifetime. XPath extensions,
+				Iteratable ForEach, Flexible Assigns,
+				XQuery 1.0 support and various
+				other extensions to BPEL language.</story-content>
+			<story-links>
+				<link url="">Go to OpenID...</link>
+				<link url="/carbon/admin/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="BPEL Extensions">
+			<story-content>Hot update BPEL processes and allows you to maintain
+				multiple versions of processes.</story-content>
+			<story-links>
+				<link url="">Go to Information Card...</link>
+				<link url="/carbon/admin/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="WSO2 Business Rule Server" link="https://brs.cloud.wso2.com"
+		key="brs">
+		<story title="Service Hosting Support">
+			<story-content>Service Hosting feature in Business Rules Server
+				enables deployment of Rule Services.</story-content>
+			<story-links>
+				<link url="/carbon/service-mgt/index.jsp">Got to Business Process Services...</link>
+				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Rule service creation support">
+			<story-content>Support for creating rule services with drools or
+				using rule services created with other
+				IDEs.</story-content>
+			<story-links>
+				<link url="/carbon/ruleservices/rule_service_wizard_step1.jsp">Go to Rule service creation...</link>
+				<link url="/carbon/ruleservices/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Registry as a Rule Repository">
+			<story-content>Registry as a Rule Repository.</story-content>
+			<story-links>
+				<link url="/carbon/resources/resource.jsp">Go to Registry Rule Repository..</link>
+				<link url="/carbon/resources/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Service testing">
+			<story-content>Tryit tool can be used as a simple Web Service client
+				which can be used to try your
+				services within AppServer itself.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tryit/index.jsp">Go
+					to Service Testing...</link>
+				<link url="/carbon/tryit/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Cloud Gateway" link="https://cg.stratoslive.wso2.com"
+		key="cg">
+		<story title="Cloud Service">
+			<story-content>Publish a service or data residing behind a firewall
+				in a secure and controlled manner as a Cloud Service.
+			</story-content>
+			<story-links>
+				<link url="/carbon/service-mgt/index.jsp">Go to Cloud Services...</link>
+				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Complex Event Processing Services" link="https://cep.cloud.wso2.com"
+		key="cep">
+		<story title="Bring CEP to SOA">
+			<story-content>Bring CEP to SOA by processing XML events and produce
+				results as XML events.</story-content>
+			<story-links>
+				<link url="/carbon/CEP/cep_queries.jsp">Go to CEP buckets list...</link>
+				<link url="/carbon/CEP/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Registry Storage">
+			<story-content>Ability to define different event streams, queries and
+				out put streams and store them in
+				the registry as a bucket.
+			</story-content>
+			<story-links>
+				<link url="/carbon/resources/resource.jsp">Go to Registry Storage...</link>
+				<link url="/carbon/messagebox/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Esper and Fusion">
+			<story-content>Support Esper and fusion back end runtimes..
+			</story-content>
+			<story-links>
+				<link url="">Go to Esper and Fusion..</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Filter data from the XML event">
+			<story-content>Ability to filter data from the XML event using xpath
+				and format the result as an XML
+				event.
+			</story-content>
+			<story-links>
+				<link url="">Go
+					to Filter data...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Support different types of brokers">
+			<story-content>Support different types of brokers WS-Event, JMS to
+				receive publish events.
+			</story-content>
+			<story-links>
+				<link url="">Go
+					to brokers...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Storing broker configurations">
+			<story-content>Define and store such different broker configurations.
+			</story-content>
+			<story-links>
+				<link url="">Go
+					to brokers...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Administrative Console support">
+			<story-content>Administrative Console to create buckets, add
+				subscriptions etc..
+			</story-content>
+			<story-links>
+				<link url="">Go
+					to Administrative Console ...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Specify CEP queries">
+			<story-content>Ability to specify CEP queries inline or pick from the
+				registry.
+			</story-content>
+			<story-links>
+				<link url="">Go
+					to CEP queries ...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Message Broker Services" link="https://mb.cloud.wso2.com"
+		key="mb">
+		<story title="Publish/Subscribe to Topics">
+			<story-content>WS-Eventing to publish/subscribe to topics using web
+				service standards.</story-content>
+			<story-links>
+				<link url="">Go to topics...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="AMQP">
+			<story-content>MS support thorough AMQP to publish/subscribe to
+				topics and Queues.</story-content>
+			<story-links>
+				<link url="">Go to AMQP...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Topic Authorization">
+			<story-content>MS support thorough AMQP to publish/subscribe to
+				topics and Queues.</story-content>
+			<story-links>
+				<link url="">Go to Topic Authorization...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Manage topics and queues permissions">
+			<story-content>Administrative console support to manage topics and
+				queues permissions.</story-content>
+			<story-links>
+				<link url="">Go to Manage topics and queues permissions...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="SQS support">
+			<story-content>SQS support to store retrieve messages using a web
+				service API.</story-content>
+			<story-links>
+				<link url="">Go to SQS ...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="User based authorization for queues">
+			<story-content>User based authorization for queues.</story-content>
+			<story-links>
+				<link url="">Go to User based authorization ...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Manage message boxes">
+			<story-content>Administrative console support to manage message boxes
+				and store/retrieve messages.</story-content>
+			<story-links>
+				<link url="">Go to message boxes...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Message box as event sink">
+			<story-content>Ability to use a message box as the event sink for a
+				subscription.</story-content>
+			<story-links>
+				<link url="">Go to event sink support...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+</data>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/pom.xml b/products/stratos-controller/modules/features-dashboard/pom.xml
new file mode 100755
index 0000000..66651e2
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/pom.xml
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+  #  Licensed to the Apache Software Foundation (ASF) under one
+  #  or more contributor license agreements.  See the NOTICE file
+  #  distributed with this work for additional information
+  #  regarding copyright ownership.  The ASF licenses this file
+  #  to you under the Apache License, Version 2.0 (the
+  #  "License"); you may not use this file except in compliance
+  #  with the License.  You may obtain a copy of the License at
+  #  
+  #  http://www.apache.org/licenses/LICENSE-2.0
+  #  
+  #  Unless required by applicable law or agreed to in writing,
+  #  software distributed under the License is distributed on an
+  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  #  KIND, either express or implied.  See the License for the
+  #  specific language governing permissions and limitations
+  #  under the License.
+  -->
+<project
+        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+        xmlns="http://maven.apache.org/POM/4.0.0"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+    <parent>
+	<groupId>org.apache.stratos</groupId>
+	<artifactId>stratos-controller-parent</artifactId>
+	<version>3.0.0-SNAPSHOT</version>
+	<relativePath>../../pom.xml</relativePath>
+    </parent>
+
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.stratos</groupId>
+    <artifactId>features-dashboard</artifactId>
+    <packaging>war</packaging>
+    <version>1.0.0</version>
+    <name>Apache Stratos - Features Dashboard Webapp</name>
+    <description>Apache Stratos - Features Dashboard Webapp</description>
+
+    <properties>
+        <CApp.type>web/application</CApp.type>
+    </properties>
+    <repositories>
+        <repository>
+            <id>wso2-maven2-repository-1</id>
+            <url>http://dist.wso2.org/maven2</url>
+        </repository>
+    </repositories>
+    <pluginRepositories>
+        <pluginRepository>
+            <id>wso2-maven2-repository-1</id>
+            <url>http://dist.wso2.org/maven2</url>
+        </pluginRepository>
+    </pluginRepositories>
+    <build>
+        <sourceDirectory>src</sourceDirectory>
+        <plugins>
+               <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+                        <Bundle-Name>${project.artifactId}</Bundle-Name>
+                        <Export-Package>
+                            org.apache.stratos.manager.dashboard.ui.*,
+                        </Export-Package>
+                        <Import-Package>
+                            org.wso2.carbon.ui.servlets.*,
+                            javax.servlet; version=2.4.0,
+                            javax.servlet.http; version=2.4.0,
+                            org.apache.lucene.*,
+                            *;resolution:=optional
+                        </Import-Package>
+                        <Carbon-Component>UIBundle</Carbon-Component>
+                    </instructions>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <configuration>
+                            <sources/>
+                        </configuration>
+                    </execution>
+                </executions>
+                <configuration/>
+            </plugin>
+            <plugin>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>2.1.1</version>
+                <executions>
+                    <execution>
+                        <id>war</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>war</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <warSourceDirectory>WebContent</warSourceDirectory>
+                    <warName>features-dashboard</warName>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+     <dependencies>
+
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2.wso2</groupId>
+            <artifactId>axis2</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ws.commons.axiom.wso2</groupId>
+            <artifactId>axiom</artifactId>
+        </dependency>
+       
+        
+    </dependencies>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Data.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Data.java b/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Data.java
new file mode 100755
index 0000000..d7b17d4
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Data.java
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.feature.dashbord.ui.beans;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+public class Data {
+	private Map<String, Service> service;
+
+	public Data() {
+		this.service = new HashMap<String, Service>();
+	}
+
+	public Map<String, Service> getServices() {
+		return service;
+	}
+
+	public String [] getKeys() {
+		Set<String>  temp = this.getServices().keySet();
+		return  temp.toArray(new String[0]);
+	}
+	
+	public  String [] getServiceNames() {
+		List <String> keyList = new ArrayList<String>();
+		for (Map.Entry<String, Service> entry : service.entrySet())
+		{
+			Service tempService = entry.getValue();
+			keyList.add(tempService.getName());
+		}
+		return keyList.toArray(new String[keyList.size()]);
+	}
+
+	public Service getService(String key) {
+		return this.getServices().get(key);
+	}
+
+	public void addService(Service service) {
+		this.getServices().put(service.getKey(), service);
+	}
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Link.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Link.java b/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Link.java
new file mode 100755
index 0000000..632bd6b
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Link.java
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.feature.dashbord.ui.beans;
+
+public class Link {
+	private String url;
+	private String description;
+
+	public String getUrl() {
+		return url;
+	}
+
+	public void setUrl(String url) {
+		this.url = url;
+	}
+
+	public String getDescription() {
+		return description;
+	}
+
+	public void setDescription(String description) {
+		this.description = description;
+	}
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Service.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Service.java b/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Service.java
new file mode 100755
index 0000000..6dbe1f2
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Service.java
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.feature.dashbord.ui.beans;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class Service {
+
+	private String name;
+	private String link;
+	private String key;
+
+	public String getKey() {
+		return key;
+	}
+
+	public void setKey(String key) {
+		this.key = key;
+	}
+
+	public String getLink() {
+		return link;
+	}
+
+	public void setLink(String link) {
+		this.link = link;
+	}
+
+	private Map<String, Story> stories;
+
+	public Service() {
+		this.stories = new HashMap<String, Story>();
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public Map<String, Story> getStories() {
+		return stories;
+	}
+
+	public void setStories(Map<String, Story> stories) {
+		this.stories = stories;
+	}
+
+	public void addStories(Story story) {
+		this.getStories().put(story.getTitle(), story);
+	}
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Story.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Story.java b/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Story.java
new file mode 100755
index 0000000..4de12a0
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/beans/Story.java
@@ -0,0 +1,62 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.feature.dashbord.ui.beans;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class Story {
+	
+	private String title;
+	private Map<String, Link> links;
+	private String content;
+	
+	public Story () {
+		this.links =  new HashMap<String,Link>();
+	}
+	
+	public Map<String, Link> getLinks() {
+		return links;
+	}
+
+	public void setLinks(Map<String, Link> links) {
+		this.links = links;
+	}
+
+	public String getContent() {
+		return content;
+	}
+
+	public void setContent(String content) {
+		this.content = content;
+	}
+
+	public String getTitle() {
+		return title;
+	}
+
+	public void setTitle(String title) {
+		this.title = title;
+	}
+
+	public void addLink(Link link) {
+		this.getLinks().put(link.getUrl(), link);
+	}
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/utils/Utils.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/utils/Utils.java b/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/utils/Utils.java
new file mode 100755
index 0000000..469ab88
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/src/org/apache/stratos/manager/feature/dashbord/ui/utils/Utils.java
@@ -0,0 +1,177 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.feature.dashbord.ui.utils;
+import java.io.File;
+import java.io.FileInputStream;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+
+import org.apache.axiom.om.OMAttribute;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.impl.builder.StAXOMBuilder;
+import org.apache.stratos.manager.feature.dashbord.ui.beans.Data;
+import org.apache.stratos.manager.feature.dashbord.ui.beans.Link;
+import org.apache.stratos.manager.feature.dashbord.ui.beans.Story;
+import org.apache.stratos.manager.feature.dashbord.ui.beans.Service;
+
+public class Utils {
+
+	public static Data pupulateDashboardFeatures() {
+		File featureDashboardXML = new File(getFeatureXMLFilePath());
+		//File featureDashboardXML = new File("features-dashboard.xml");
+		
+		Data data = new  Data();
+		try {
+			XMLStreamReader parser = xmlInputFactory.createXMLStreamReader(new FileInputStream(
+					featureDashboardXML));
+			StAXOMBuilder builder = new StAXOMBuilder(parser);
+			OMElement documentElement =  builder.getDocumentElement();
+			documentElement.build();
+			Iterator<OMElement> txElements = documentElement.getChildrenWithName(new QName("service"));
+		
+			while (txElements.hasNext()) {
+				OMElement txEle = txElements.next();
+				data.addService(getService(txEle));
+			}
+			Service service = data.getService("manager");
+
+//			Map<String, Story> stories = service.getStories();
+//			System.out.println(stories.size());
+//			int index = 1;
+//			for (Map.Entry<String, Story> entry : stories.entrySet()) {
+//				String divClassName = "story col" + index;
+//				Story tempStory = entry.getValue();
+//				String storyName = tempStory.getTitle();
+//				String storyContent = tempStory.getContent();
+//				System.out.println("Title : "+storyName+ " Content"+ storyContent);
+				//Map<String, Link> links = tempStory.getLinks();
+				//System.out.println("Size "+links.size());
+//			}
+//			String serviceNames [] = data.getKeys();
+//			for (String name : serviceNames) {
+//				System.out.println(name);
+				
+//				Service myservice =  data.getService(name);
+//				String name1 = myservice.getName();
+//				String link = myservice.getLink();
+//			    System.out.println(name1 + "/" + link);
+//			}
+//			 Map<String, Service> allServices= data.getServices();
+//			System.out.println(allServices.size());
+//			for (Map.Entry<String, Service> entry : allServices.entrySet())
+//			{
+//				Service myservice =  entry.getValue();
+//				String name = myservice.getName();
+//				String link = myservice.getLink();
+//			    System.out.println(name + "/" + link);
+//			}
+
+
+		 
+		} catch (Exception e) {
+			e.printStackTrace();
+		}
+		return data;
+	
+	}
+// + File.separator + "lib" + File.separator + 
+	public static String getFeatureXMLFilePath() {
+        String carbonHome = System.getProperty("carbon.home");
+        if (carbonHome == null) {
+            carbonHome = System.getenv("CARBON_HOME");
+            System.setProperty("carbon.home", carbonHome);
+        }
+        return carbonHome+"/repository/conf/multitenancy/features-dashboard.xml";
+    }
+	private static Service getService(OMElement txEle) {
+		OMAttribute serviceEle = txEle.getAttribute(new QName("name"));
+		OMAttribute serviceLinkEle = txEle.getAttribute(new QName("link"));
+		OMAttribute serviceKeyEle = txEle.getAttribute(new QName("key"));
+		Service serviceInfo = new Service();
+		serviceInfo.setName(serviceEle.getAttributeValue());
+		serviceInfo.setLink(serviceLinkEle.getAttributeValue());
+		serviceInfo.setKey(serviceKeyEle.getAttributeValue());
+		Iterator<OMElement> storyElements = txEle.getChildrenWithName(new QName("story"));
+		while (storyElements.hasNext()) {
+			OMElement storyEle = storyElements.next();
+     		serviceInfo.addStories(getStory(storyEle));
+		}
+		return serviceInfo;
+		
+	}
+	
+	private static Link getLink(OMElement linEle) {
+	//	OMElement linkContentEle = linEle.getFirstChildWithName(new QName("link"));
+		OMAttribute linkAttribtute = linEle.getAttribute(new QName("url"));
+		Link link = new Link();
+		link.setDescription(linEle.getText());
+		link.setUrl(linkAttribtute.getAttributeValue());
+		return link;
+	}
+	
+	private static Story getStory(OMElement storyEle) {
+		OMAttribute storyAttribtute = storyEle.getAttribute(new QName("title"));
+		Story storyInfo = new Story();
+		storyInfo.setTitle(storyAttribtute.getAttributeValue());
+		OMElement storyContentEle = storyEle.getFirstChildWithName(new QName("story-content"));
+		if (storyContentEle != null) {
+			storyInfo.setContent(storyContentEle.getText());
+		}
+		OMElement storyLinkEle = storyEle.getFirstChildWithName(new QName("story-links"));
+		if (storyLinkEle != null) {
+			Iterator<OMElement> linkElements = storyLinkEle.getChildrenWithName(new QName("link"));
+			while (linkElements.hasNext()) {
+				OMElement linkEle = linkElements.next();
+				storyInfo.addLink(getLink(linkEle));
+			}
+		}
+		
+		return storyInfo;
+	}
+	
+	public static void main(String args[]) {
+		pupulateDashboardFeatures();
+//		String mystr[] = {"a","b","c","d"};
+//		String wntedString="";
+//		for (int i =0; i< mystr.length; i++) {
+//		
+//			if (i == mystr.length-1) {
+//				wntedString = wntedString+mystr[i];
+//			} else {
+//				wntedString = wntedString+mystr[i]+",";
+//			}
+//		}
+//		System.out.println(wntedString);
+	}
+
+	private static XMLInputFactory xmlInputFactory;
+
+	/** pre-fetch the XMLInputFactory */
+	static {
+		xmlInputFactory = XMLInputFactory.newInstance();
+	}
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features/pom.xml b/products/stratos-controller/modules/features/pom.xml
new file mode 100755
index 0000000..d344cac
--- /dev/null
+++ b/products/stratos-controller/modules/features/pom.xml
@@ -0,0 +1,47 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+	<groupId>org.apache.stratos</groupId>
+	<artifactId>stratos-controller-parent</artifactId>
+	<version>3.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>apache-stratos-features-parent</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Products Stratos Controller Features Parent</name>
+    <url>http://wso2.org/projects/wsas/java</url>
+    <description>Apache Stratos Features Parent</description>
+
+    <licenses>
+        <license>
+            <name>Apache License Version 2.0</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+        </license>
+    </licenses>
+
+    <modules>
+        <module>service</module>
+    </modules>
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features/service/etc/feature.properties
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features/service/etc/feature.properties b/products/stratos-controller/modules/features/service/etc/feature.properties
new file mode 100755
index 0000000..ad6faed
--- /dev/null
+++ b/products/stratos-controller/modules/features/service/etc/feature.properties
@@ -0,0 +1,245 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+providerName=WSO2 Inc.
+
+########################## license properties ##################################
+licenseURL=http://www.apache.org/licenses/LICENSE-2.0
+
+license=\
+                                 Apache License\n\
+                           Version 2.0, January 2004\n\
+                        http://www.apache.org/licenses/\n\
+\n\
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\
+\n\
+   1. Definitions.\n\
+\n\
+      "License" shall mean the terms and conditions for use, reproduction,\n\
+      and distribution as defined by Sections 1 through 9 of this document.\n\
+\n\
+      "Licensor" shall mean the copyright owner or entity authorized by\n\
+      the copyright owner that is granting the License.\n\
+\n\
+      "Legal Entity" shall mean the union of the acting entity and all\n\
+      other entities that control, are controlled by, or are under common\n\
+      control with that entity. For the purposes of this definition,\n\
+      "control" means (i) the power, direct or indirect, to cause the\n\
+      direction or management of such entity, whether by contract or\n\
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n\
+      outstanding shares, or (iii) beneficial ownership of such entity.\n\
+\n\
+      "You" (or "Your") shall mean an individual or Legal Entity\n\
+      exercising permissions granted by this License.\n\
+\n\
+      "Source" form shall mean the preferred form for making modifications,\n\
+      including but not limited to software source code, documentation\n\
+      source, and configuration files.\n\
+\n\
+      "Object" form shall mean any form resulting from mechanical\n\
+      transformation or translation of a Source form, including but\n\
+      not limited to compiled object code, generated documentation,\n\
+      and conversions to other media types.\n\
+\n\
+      "Work" shall mean the work of authorship, whether in Source or\n\
+      Object form, made available under the License, as indicated by a\n\
+      copyright notice that is included in or attached to the work\n\
+      (an example is provided in the Appendix below).\n\
+\n\
+      "Derivative Works" shall mean any work, whether in Source or Object\n\
+      form, that is based on (or derived from) the Work and for which the\n\
+      editorial revisions, annotations, elaborations, or other modifications\n\
+      represent, as a whole, an original work of authorship. For the purposes\n\
+      of this License, Derivative Works shall not include works that remain\n\
+      separable from, or merely link (or bind by name) to the interfaces of,\n\
+      the Work and Derivative Works thereof.\n\
+\n\
+      "Contribution" shall mean any work of authorship, including\n\
+      the original version of the Work and any modifications or additions\n\
+      to that Work or Derivative Works thereof, that is intentionally\n\
+      submitted to Licensor for inclusion in the Work by the copyright owner\n\
+      or by an individual or Legal Entity authorized to submit on behalf of\n\
+      the copyright owner. For the purposes of this definition, "submitted"\n\
+      means any form of electronic, verbal, or written communication sent\n\
+      to the Licensor or its representatives, including but not limited to\n\
+      communication on electronic mailing lists, source code control systems,\n\
+      and issue tracking systems that are managed by, or on behalf of, the\n\
+      Licensor for the purpose of discussing and improving the Work, but\n\
+      excluding communication that is conspicuously marked or otherwise\n\
+      designated in writing by the copyright owner as "Not a Contribution."\n\
+\n\
+      "Contributor" shall mean Licensor and any individual or Legal Entity\n\
+      on behalf of whom a Contribution has been received by Licensor and\n\
+      subsequently incorporated within the Work.\n\
+\n\
+   2. Grant of Copyright License. Subject to the terms and conditions of\n\
+      this License, each Contributor hereby grants to You a perpetual,\n\
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n\
+      copyright license to reproduce, prepare Derivative Works of,\n\
+      publicly display, publicly perform, sublicense, and distribute the\n\
+      Work and such Derivative Works in Source or Object form.\n\
+\n\
+   3. Grant of Patent License. Subject to the terms and conditions of\n\
+      this License, each Contributor hereby grants to You a perpetual,\n\
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n\
+      (except as stated in this section) patent license to make, have made,\n\
+      use, offer to sell, sell, import, and otherwise transfer the Work,\n\
+      where such license applies only to those patent claims licensable\n\
+      by such Contributor that are necessarily infringed by their\n\
+      Contribution(s) alone or by combination of their Contribution(s)\n\
+      with the Work to which such Contribution(s) was submitted. If You\n\
+      institute patent litigation against any entity (including a\n\
+      cross-claim or counterclaim in a lawsuit) alleging that the Work\n\
+      or a Contribution incorporated within the Work constitutes direct\n\
+      or contributory patent infringement, then any patent licenses\n\
+      granted to You under this License for that Work shall terminate\n\
+      as of the date such litigation is filed.\n\
+\n\
+   4. Redistribution. You may reproduce and distribute copies of the\n\
+      Work or Derivative Works thereof in any medium, with or without\n\
+      modifications, and in Source or Object form, provided that You\n\
+      meet the following conditions:\n\
+\n\
+      (a) You must give any other recipients of the Work or\n\
+          Derivative Works a copy of this License; and\n\
+\n\
+      (b) You must cause any modified files to carry prominent notices\n\
+          stating that You changed the files; and\n\
+\n\
+      (c) You must retain, in the Source form of any Derivative Works\n\
+          that You distribute, all copyright, patent, trademark, and\n\
+          attribution notices from the Source form of the Work,\n\
+          excluding those notices that do not pertain to any part of\n\
+          the Derivative Works; and\n\
+\n\
+      (d) If the Work includes a "NOTICE" text file as part of its\n\
+          distribution, then any Derivative Works that You distribute must\n\
+          include a readable copy of the attribution notices contained\n\
+          within such NOTICE file, excluding those notices that do not\n\
+          pertain to any part of the Derivative Works, in at least one\n\
+          of the following places: within a NOTICE text file distributed\n\
+          as part of the Derivative Works; within the Source form or\n\
+          documentation, if provided along with the Derivative Works; or,\n\
+          within a display generated by the Derivative Works, if and\n\
+          wherever such third-party notices normally appear. The contents\n\
+          of the NOTICE file are for informational purposes only and\n\
+          do not modify the License. You may add Your own attribution\n\
+          notices within Derivative Works that You distribute, alongside\n\
+          or as an addendum to the NOTICE text from the Work, provided\n\
+          that such additional attribution notices cannot be construed\n\
+          as modifying the License.\n\
+\n\
+      You may add Your own copyright statement to Your modifications and\n\
+      may provide additional or different license terms and conditions\n\
+      for use, reproduction, or distribution of Your modifications, or\n\
+      for any such Derivative Works as a whole, provided Your use,\n\
+      reproduction, and distribution of the Work otherwise complies with\n\
+      the conditions stated in this License.\n\
+\n\
+   5. Submission of Contributions. Unless You explicitly state otherwise,\n\
+      any Contribution intentionally submitted for inclusion in the Work\n\
+      by You to the Licensor shall be under the terms and conditions of\n\
+      this License, without any additional terms or conditions.\n\
+      Notwithstanding the above, nothing herein shall supersede or modify\n\
+      the terms of any separate license agreement you may have executed\n\
+      with Licensor regarding such Contributions.\n\
+\n\
+   6. Trademarks. This License does not grant permission to use the trade\n\
+      names, trademarks, service marks, or product names of the Licensor,\n\
+      except as required for reasonable and customary use in describing the\n\
+      origin of the Work and reproducing the content of the NOTICE file.\n\
+\n\
+   7. Disclaimer of Warranty. Unless required by applicable law or\n\
+      agreed to in writing, Licensor provides the Work (and each\n\
+      Contributor provides its Contributions) on an "AS IS" BASIS,\n\
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n\
+      implied, including, without limitation, any warranties or conditions\n\
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n\
+      PARTICULAR PURPOSE. You are solely responsible for determining the\n\
+      appropriateness of using or redistributing the Work and assume any\n\
+      risks associated with Your exercise of permissions under this License.\n\
+\n\
+   8. Limitation of Liability. In no event and under no legal theory,\n\
+      whether in tort (including negligence), contract, or otherwise,\n\
+      unless required by applicable law (such as deliberate and grossly\n\
+      negligent acts) or agreed to in writing, shall any Contributor be\n\
+      liable to You for damages, including any direct, indirect, special,\n\
+      incidental, or consequential damages of any character arising as a\n\
+      result of this License or out of the use or inability to use the\n\
+      Work (including but not limited to damages for loss of goodwill,\n\
+      work stoppage, computer failure or malfunction, or any and all\n\
+      other commercial damages or losses), even if such Contributor\n\
+      has been advised of the possibility of such damages.\n\
+\n\
+   9. Accepting Warranty or Additional Liability. While redistributing\n\
+      the Work or Derivative Works thereof, You may choose to offer,\n\
+      and charge a fee for, acceptance of support, warranty, indemnity,\n\
+      or other liability obligations and/or rights consistent with this\n\
+      License. However, in accepting such obligations, You may act only\n\
+      on Your own behalf and on Your sole responsibility, not on behalf\n\
+      of any other Contributor, and only if You agree to indemnify,\n\
+      defend, and hold each Contributor harmless for any liability\n\
+      incurred by, or claims asserted against, such Contributor by reason\n\
+      of your accepting any such warranty or additional liability.\n\
+\n\
+   END OF TERMS AND CONDITIONS\n\
+\n\
+   APPENDIX: How to apply the Apache License to your work.\n\
+\n\
+      To apply the Apache License to your work, attach the following\n\
+      boilerplate notice, with the fields enclosed by brackets "[]"\n\
+      replaced with your own identifying information. (Don't include\n\
+      the brackets!)  The text should be enclosed in the appropriate\n\
+      comment syntax for the file format. We also recommend that a\n\
+      file or class name and description of purpose be included on the\n\
+      same "printed page" as the copyright notice for easier\n\
+      identification within third-party archives.\n\
+\n\
+   Copyright [yyyy] [name of copyright owner]\n\
+\n\
+   Licensed under the Apache License, Version 2.0 (the "License");\n\
+   you may not use this file except in compliance with the License.\n\
+   You may obtain a copy of the License at\n\
+\n\
+       http://www.apache.org/licenses/LICENSE-2.0\n\
+\n\
+   Unless required by applicable law or agreed to in writing, software\n\
+   distributed under the License is distributed on an "AS IS" BASIS,\n\
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
+   See the License for the specific language governing permissions and\n\
+   limitations under the License.\n
+
+######################### copyright properties #################################
+copyrightURL=TODO
+
+copyright=\
+Copyright (c) WSO2 Inc. (http://wso2.com)\n\
+\n\
+Licensed under the Apache License, Version 2.0 (the "License");\n\
+you may not use this file except in compliance with the License.\n\
+You may obtain a copy of the License at\n\
+\n\
+http://www.apache.org/licenses/LICENSE-2.0\n\
+\n\
+Unless required by applicable law or agreed to in writing, software\n\
+distributed under the License is distributed on an "AS IS" BASIS,\n\
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
+See the License for the specific language governing permissions and\n\
+limitations under the License.\n
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features/service/org.apache.stratos.feature/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features/service/org.apache.stratos.feature/pom.xml b/products/stratos-controller/modules/features/service/org.apache.stratos.feature/pom.xml
new file mode 100755
index 0000000..4793423
--- /dev/null
+++ b/products/stratos-controller/modules/features/service/org.apache.stratos.feature/pom.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-features</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.stratos.feature</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Cloud Manager Composite Feature</name>
+    <url>http://apache.org</url>
+    <description>This feature contains the bundles required for Cloud Manager functionality
+    </description>
+
+     <dependencies>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.server.feature</artifactId>
+            <version>${project.version}</version>
+            <type>zip</type>
+            </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.ui.feature</artifactId>
+            <version>${project.version}</version>
+            <type>zip</type>
+            </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.wso2.maven</groupId>
+                <artifactId>carbon-p2-plugin</artifactId>
+                <version>${carbon.p2.plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>p2-feature-generation</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>p2-feature-gen</goal>
+                        </goals>
+                        <configuration>
+                            <id>org.apache.stratos</id>
+                            <propertiesFile>../etc/feature.properties</propertiesFile>
+                            <includedFeatures>
+                                <includedFeatureDef>
+                                    org.apache.stratos:org.apache.stratos.server.feature:${project.version}
+                                </includedFeatureDef>
+                                <includedFeatureDef>
+                                    org.apache.stratos:org.apache.stratos.ui.feature:${project.version}
+                                </includedFeatureDef>
+                            </includedFeatures>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features/service/org.apache.stratos.server.feature/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features/service/org.apache.stratos.server.feature/pom.xml b/products/stratos-controller/modules/features/service/org.apache.stratos.server.feature/pom.xml
new file mode 100755
index 0000000..dc339b0
--- /dev/null
+++ b/products/stratos-controller/modules/features/service/org.apache.stratos.server.feature/pom.xml
@@ -0,0 +1,236 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-features</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.stratos.server.feature</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Cloud Manager Core Feature</name>
+    <url>http://apache.org</url>
+    <description>This feature contains the core bundles required for Back-end Cloud Manager
+        functionality
+    </description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.account.mgt</artifactId>
+	    <version>${project.version}</version>
+        </dependency>
+        <!--<dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.stratos.common</artifactId>
+        </dependency>-->
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.email.sender</artifactId>
+	        <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.tenant.mgt</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.tenant.mgt.core</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.tenant.mgt.email.sender</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.theme.mgt</artifactId>
+	    <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.validate.domain</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.keystore.mgt</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.email.verification</artifactId>
+		<version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.task</artifactId>
+	<version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.quartz-scheduler.wso2</groupId>
+            <artifactId>quartz</artifactId>
+	<version>2.1.1.wso2v1</version>
+        </dependency>
+        <!--<dependency>
+            <groupId>org.mvel.wso2</groupId>
+            <artifactId>mvel2</artifactId>
+            <version>2.0.10.wso2v1</version>
+        </dependency>-->
+        <dependency>
+            <groupId>joda-time.wso2</groupId>
+            <artifactId>joda-time</artifactId>
+            <version>1.6.0.wso2v1</version>
+        </dependency>
+        <!--<dependency>
+            <groupId>antlr.wso2</groupId>
+            <artifactId>antlr</artifactId>
+            <version>${antlr.wso2.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.antlr.wso2</groupId>
+            <artifactId>antlr-runtime</artifactId>
+            <version>3.2.0.wso2v1</version>
+        </dependency>-->
+        <dependency>
+            <groupId>janino.wso2</groupId>
+            <artifactId>janino</artifactId>
+            <version>2.5.15.wso2v1</version>
+        </dependency>
+	    <dependency>
+            <groupId>org.apache.axis.wso2</groupId>
+            <artifactId>axis</artifactId>
+            <version>1.4.0.wso2v1</version>
+        </dependency>
+
+
+        <!--<dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-core</artifactId>
+	<version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-commons</artifactId>
+	<version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-extensions</artifactId>
+	<version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-tasks</artifactId>
+	<version>${synapse.version}</version>
+        </dependency>-->
+        <dependency>
+            <groupId>kaptcha.wso2</groupId>
+            <artifactId>kaptcha</artifactId>
+	<version>2.3.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.security.mgt</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+   <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.manager.services.mgt</artifactId>
+                <version>${project.version}</version>
+            </dependency>
+    </dependencies>
+
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.wso2.maven</groupId>
+                <artifactId>carbon-p2-plugin</artifactId>
+                <version>${carbon.p2.plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>p2-feature-generation</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>p2-feature-gen</goal>
+                        </goals>
+                        <configuration>
+                            <id>org.apache.stratos.server</id>
+                            <propertiesFile>../etc/feature.properties</propertiesFile>
+                            <adviceFile>
+                                <properties>
+                                    <propertyDef>org.wso2.carbon.p2.category.type:server
+                                    </propertyDef>
+                                    <propertyDef>org.eclipse.equinox.p2.type.group:false
+                                    </propertyDef>
+                                </properties>
+                            </adviceFile>
+                            <bundles>
+                                <bundleDef>org.quartz-scheduler.wso2:quartz</bundleDef>
+                                <bundleDef>org.wso2.carbon:org.wso2.carbon.task:${carbon.version}</bundleDef>
+                                <!--<bundleDef>org.mvel.wso2:mvel2</bundleDef>-->
+                                <bundleDef>joda-time.wso2:joda-time</bundleDef>
+                                <!--<bundleDef>antlr.wso2:antlr</bundleDef>
+                                <bundleDef>org.antlr.wso2:antlr-runtime</bundleDef>-->
+                                <bundleDef>janino.wso2:janino:2.5.15.wso2v1</bundleDef>
+				<bundleDef>org.apache.axis.wso2:axis:1.4.0.wso2v1</bundleDef>
+
+                                <!--<bundleDef>org.apache.synapse:synapse-core:2.1.0-wso2v7</bundleDef>
+                                <bundleDef>org.apache.synapse:synapse-commons:2.1.0-wso2v7</bundleDef>
+                                <bundleDef>org.apache.synapse:synapse-extensions:2.1.0-wso2v7</bundleDef>
+                                <bundleDef>org.apache.synapse:synapse-tasks:2.1.0-wso2v7</bundleDef>-->
+				<!--bundleDef>org.wso2.carbon:org.wso2.carbon.payment.paypal:${stratos.component.version}</bundleDef-->
+				<bundleDef>com.paypal.sdk.wso2:paypal:1.1.0.wso2v1</bundleDef>
+				<bundleDef>org.wso2.carbon:org.wso2.carbon.business.messaging.paypal.integration.core:${carbon.version}</bundleDef>
+				
+                                <!--<bundleDef>org.wso2.carbon:org.wso2.carbon.stratos.common</bundleDef>-->
+                                <bundleDef>org.apache.stratos:org.apache.stratos.email.sender:${project.version}</bundleDef>
+				<bundleDef>org.apache.stratos:org.apache.stratos.tenant.mgt.email.sender:${project.version}</bundleDef>
+                                <bundleDef>org.apache.stratos:org.apache.stratos.account.mgt:${project.version}</bundleDef>
+                                <!--<bundleDef>org.wso2.carbon:org.apache.stratos.tenant.mgt</bundleDef>-->
+                                <!--<bundleDef>org.wso2.carbon:org.apache.stratos.tenant.mgt.core</bundleDef>-->
+                                <!--<bundleDef>org.wso2.carbon:org.wso2.carbon.theme.mgt</bundleDef>-->
+                                <bundleDef>org.apache.stratos:org.apache.stratos.validate.domain:${project.version}</bundleDef>
+                                <bundleDef>org.wso2.carbon:org.wso2.carbon.email.verification:${carbon.version}</bundleDef>
+                                <bundleDef>org.apache.stratos:org.apache.stratos.manager.services.mgt:${project.version}</bundleDef>
+                                <bundleDef>org.apache.stratos:org.apache.stratos.keystore.mgt:${project.version}</bundleDef>
+                                <bundleDef>kaptcha.wso2:kaptcha:2.3.0.wso2v1</bundleDef>
+                                <!-- stubs -->
+                            </bundles>
+                            <importFeatures>
+                                <importFeatureDef>org.wso2.carbon.core.server:${carbon.version}</importFeatureDef>
+                                <importFeatureDef>org.wso2.carbon.security.mgt:${carbon.version}</importFeatureDef>
+                            </importFeatures>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>


[04/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery-1.7.1.min.js
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery-1.7.1.min.js b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery-1.7.1.min.js
deleted file mode 100755
index 198b3ff..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery-1.7.1.min.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/*! jQuery v1.7.1 jquery.com | jquery.org/license */
-(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p
 ;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function cb(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function ca(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bE.test(a)?d(a,e):ca(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e i
 n b)ca(a+"["+e+"]",b[e],c,d);else d(a,b)}function b_(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function b$(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bT,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=b$(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=b$(a,c,d,e,"*",g));return l}function bZ(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bP),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bC(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bx:by,g=0,h=e.length;if(d>0){if(c!=="border")for(;g<h;g++)c||(d-=parseFloat(f.css(a,"padding"+e[g]))||0),c==="margin"?d+=parseFloat(f.css(a,c+e[g]))||0:d-=parseFloat(f.css(a,"border"+e[g]+"Width"))||0;return d+"px"}d=bz(a,b,b);if(d<0||d==n
 ull)d=a.style[b]||0;d=parseFloat(d)||0;if(c)for(;g<h;g++)d+=parseFloat(f.css(a,"padding"+e[g]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+e[g]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+e[g]))||0);return d+"px"}function bp(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;if(b.nodeType===1){b.clearAttributes&&
 b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c+(i[c][d].namespace?".":"")+i[c][d].namespace,i[c][d],i[c][d].data)}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a
 ,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parse
 Float(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.pro
 totype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.
 context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].
 splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventLis
 tener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return nul
 l;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)bre
 ak;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([
 ],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},brows
 er:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?m(g):h==="function"&&(!a.unique||!o.has(g))&&c.push(g)},n=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,l=j||0,j=0,k=c.length;for(;c&&l<k;l++)if(c[l].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}i=!1,c&&(a.once?e===!0?o.disable():c=[]:d&&d.length&&(e=d.shift(),o.fireWith(e[0],e[1])))},o={add:function(){if(c){var a=c.lengt
 h;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){i&&f<=k&&(k--,f<=l&&l--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&o.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(i?a.once||d.push([b,c]):(!a.once||!e)&&n(b,c));return this},fire:function(){o.fireWith(this,arguments);return this},fired:function(){return!!e}};return o};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,th
 en:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(argument
 s,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p,q=c.createElement("div"),r=c.documentElement;q.setAttribute("className","t"),q.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.st
 yle.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendCh
 ild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="<div "+n+"><div></div></div>"+"<table "+n+" cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="<table><tr><td style='padding:0;b
 order:0;display:none'></td><td>t</td></tr></table>",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="<div style='width:4px;'></div>",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.rem
 oveChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(
 b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h=null;if(typeof a=="undefined"){if(this.length){h=f.data(this[0]);if(this[0].nodeType===1&&!f._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var i=0,j=e.length;i<j;i++)g=e[i].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),l(this[0],g,h[g]));f._data(this[0],"parsedAttrs",!0)}}return h}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split("."
 ),d[1]=d[1]?"."+d[1]:"";if(c===b){h=this.triggerHandler("getData"+d[1]+"!",[d[0]]),h===b&&this.length&&(h=f.data(this[0],a),h=l(this[0],a,h));return h===b&&d[1]?this.data(d[0]):h}return this.each(function(){var b=f(this),e=[d[0],c];b.triggerHandler("setData"+d[1]+"!",e),f.data(this,a,c),b.triggerHandler("changeData"+d[1]+"!",e)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b
 )},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise()}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textare
 a)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){
 f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return
 !1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNod
 e,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h<g;h++)e=d[h],e&&(c=f.propFix[e]||e,f.attr(a,e,""),a.removeAttr
 ibute(v?e:c),u.test(e)&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{ta
 bIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""
 &&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,
 C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};
-f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function
 (a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+
 f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"ev
 ents")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=[],j,k,l,m,n,o,p,q,r,s,t;g[0]=c,c.delegateTarget=this;if(e&&!c.target.disabled&&(!c.button||c.type!=="click")){m=f(this),m.context=this.ownerDocument||this;for(l=c.target;l!=this;l=l.parentNode||this){o={},q=[],m[0]=l;for(j=0;j<e;j++)r=d[j],s=r.selector,o[s]===b&&(o[s]=r.quick?H(l,r.quick):m.is(s)),o[s]&&q.push(r);q.length&&i.push({elem:l,matches:q})}}d.length>e&&i.push({
 elem:this,matches:d.slice(e)});for(j=0;j<i.length&&!c.isPropagationStopped();j++){p=i[j],c.currentTarget=p.elem;for(k=0;k<p.matches.length&&!c.isImmediatePropagationStopped();k++){r=p.matches[k];if(h||!c.namespace&&!r.namespace||c.namespace_re&&c.namespace_re.test(r.namespace))c.data=r.data,c.handleObj=r,n=((f.event.special[r.origType]||{}).handle||r.handler).apply(p.elem,g),n!==b&&(c.result=n,n===!1&&(c.preventDefault(),c.stopPropagation()))}}return c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pa
 geX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeun
 load=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.s
 topPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0)}),d._submit_attached=!0)})},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,".
 _submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusi
 n",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on.call(this,a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function"
 )d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin 
 focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]
 +)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n
 .expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break
 }}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e
 +=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.len
 gth,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?nu
 ll:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[
 3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},
 password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b
 ,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=n
 ull?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d
 .push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElement
 ById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=functi
 on(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.
 call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.co
 ntains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.POS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i
 ]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&t
 his[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},co
 ntents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summar
 y|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="obje
 ct"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:fun
 ction(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function()
-{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach()
 );return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bp)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0
 ];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(
 a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createText
 Node(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bn(k[i]);else bn(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||be.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bq=/alpha\([^)]*\
 )/i,br=/opacity=([^)]*)/,bs=/([A-Z]|^ms)/g,bt=/^-?\d+(?:px)?$/i,bu=/^-?\d/,bv=/^([\-+])=([\-+.\de]+)/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Left","Right"],by=["Top","Bottom"],bz,bA,bB;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bz(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bv.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&
 &isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bz)return bz(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return bC(a,b,d);f.swap(a,bw,function(){e=bC(a,b,d)});return e}},set:function(a,b){if(!bt.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;i
 f(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"au
 to":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arg
 uments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSe
 nd".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m)
 {if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHead
 ers:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("
 ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));tr
 y{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(
 j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&
 e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.
 readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cv(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style
 ){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cu("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cu("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&
 (a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cv(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cn.test(h)?(o=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),o?(f._data(this,"toggle"+i,o==="show"?"hide":"show"),j[o]()):j[h]()):(k=co.exec(h),l=j.cur(),k?(m=parseFloat(k[2]),n=k[3]||(f.cssNumber[i]?"":"px"),n!=="px"&&(f.style(this,i,(m||1)+n),l=(m||1)/j.cur()*l,f.style(this,i,l+n)),k[1]&&(m=(k[1]==="-="?-1:1)*m+l),j.custom(l,m,n)):j.custom(l,h,""));return!0}var e=f.speed(b,
 c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a
 ,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;t
 his.startTime=cr||cs(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){e.options.hide&&f._data(e.elem,"fxshow"+e.prop)===b&&f._data(e.elem,"fxshow"+e.prop,e.start)},h()&&f.timers.push(h)&&!cp&&(cp=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cr||cs(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.anim
 atedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c

<TRUNCATED>

[36/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/modules/distribution/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-agent/modules/distribution/pom.xml b/products/stratos-agent/modules/distribution/pom.xml
new file mode 100755
index 0000000..8ed5e1e
--- /dev/null
+++ b/products/stratos-agent/modules/distribution/pom.xml
@@ -0,0 +1,594 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-agent-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>stratos-s2-agent</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Agent - Distribution</name>
+    <url>http://apache.org</url>
+    <description>WSO2 Stratos Agent Distribution</description>
+
+    <dependencies>
+
+        <!-- Carbon core distribution -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>wso2carbon-core</artifactId>
+            <version>${carbon.version}</version>
+            <type>zip</type>
+        </dependency>
+
+        <!-- Synapse dependencies -->
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-commons</artifactId>
+            <version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-nhttp-transport</artifactId>
+            <version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-pipe-transport</artifactId>
+            <version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-core</artifactId>
+            <version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-tasks</artifactId>
+            <version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-extensions</artifactId>
+            <version>${synapse.version}</version>
+        </dependency>
+
+        <!-- Carbon mediation initializer -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediation.initializer</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.bridge</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+	      <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediation.dependency.mgt</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+
+        
+        <!-- ### Required Carbon components ### -->
+        <!-- Transport managament components -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.transport.mgt</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Transport components -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.transport.http</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.transport.nhttp</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.transport.https</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.transport.mail</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Sequence management components -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.service</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.sequences.common</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.sequences</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.router.impl</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.clazz.services</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.command.services</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        
+         <!--Entitlement mediator dependency -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.identity.entitlement.mediator</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        
+         <!--OAuth mediator dependency -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.identity.oauth.mediator</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+
+        <!--Drools dependency-->
+        <dependency>
+            <groupId>org.drools.wso2</groupId>
+            <artifactId>drools</artifactId>
+            <version>5.0.1.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>jsr94.wso2</groupId>
+            <artifactId>jsr94</artifactId>
+            <version>1.1.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.mvel.wso2</groupId>
+            <artifactId>mvel2</artifactId>
+            <version>2.0.10.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>joda-time.wso2</groupId>
+            <artifactId>joda-time</artifactId>
+            <version>1.6.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.antlr.wso2</groupId>
+            <artifactId>antlr-runtime</artifactId>
+            <version>3.1.1.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>janino.wso2</groupId>
+            <artifactId>janino</artifactId>
+            <version>2.5.15.wso2v1</version>
+        </dependency>
+        <!-- Endpoints component -->
+	      <!--dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.endpoint.common</artifactId>
+            <version>${carbon.version}</version>
+        </dependency-->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.endpoint</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Local Entries component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.localentry</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Service management component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.service.mgt</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Operation management component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.operation.mgt</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Module Management component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.module.mgt</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Security components (orbit) -->
+         <dependency>
+            <groupId>org.apache.rampart.wso2</groupId>
+            <artifactId>rampart-policy</artifactId>
+            <version>1.6.1.wso2v1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.rampart.wso2</groupId>
+            <artifactId>rampart-trust</artifactId>
+            <version>1.6.1.wso2v1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.rampart.wso2</groupId>
+            <artifactId>rampart-core</artifactId>
+            <version>1.6.1.wso2v1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.rampart</groupId>
+            <artifactId>rampart</artifactId>
+            <type>mar</type>
+            <version>1.6.1-wso2v9</version>
+        </dependency>
+        
+        <!-- Policy Editor component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.policyeditor</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Task component with startups -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.startup</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.task</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.task.services</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Synapse Config admin component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediation.configadmin</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Synapse Registry component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediation.registry</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Datasources component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.datasource</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Throttle component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.throttle</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Caching component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.caching</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- RM component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.rm</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Eventing components -->
+        <!--dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.eventing</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.eventing.core</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.eventing.impl</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.eventing.broker</artifactId>
+            <version>${carbon.version}</version>
+        </dependency-->
+        <!-- Eventsource component.-->
+	      <!-- Removed since this is not required by LB product.-->
+        <!--dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.eventing.eventsource</artifactId>
+            <version>${carbon.version}</version>
+        </dependency-->
+        <!-- Menus -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.ui.menu.registry</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- ### Required Carbon orbit dependencies ### -->
+        <dependency>
+            <groupId>org.apache.geronimo.specs.wso2</groupId>
+            <artifactId>geronimo-jms_1.1_spec</artifactId>
+            <version>1.1.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.andes.wso2</groupId>
+            <artifactId>andes-client</artifactId>
+            <version>0.13.wso2v5</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-net.wso2</groupId>
+            <artifactId>commons-net</artifactId>
+            <version>2.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>jsch.wso2</groupId>
+            <artifactId>jsch</artifactId>
+            <version>0.1.41-wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents.wso2</groupId>
+            <artifactId>httpcore-nio</artifactId>
+            <version>4.1.0.wso2v2</version>
+        </dependency>
+        <dependency>
+            <groupId>org.quartz-scheduler.wso2</groupId>
+            <artifactId>quartz</artifactId>
+            <version>2.1.1.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.codehaus.woodstox</groupId>
+            <artifactId>wstx-asl</artifactId>
+            <version>3.2.1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-stax-api_1.0_spec</artifactId>
+            <version>1.0.1</version>
+        </dependency>
+        <dependency>
+            <groupId>net.sf.saxon.wso2</groupId>
+            <artifactId>saxon</artifactId>
+            <version>8.9.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.abdera.wso2</groupId>
+            <artifactId>abdera</artifactId>
+            <version>1.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.ws.wso2</groupId>
+            <artifactId>spring.framework</artifactId>
+            <version>2.5.1.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-io.wso2</groupId>
+            <artifactId>commons-io</artifactId>
+            <version>2.0.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-collections.wso2</groupId>
+            <artifactId>commons-collections</artifactId>
+            <version>3.2.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ws.savan.wso2</groupId>
+            <artifactId>savan-core</artifactId>
+            <version>1.0.0-wso2v2</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.caching</groupId>
+            <artifactId>wso2caching-core</artifactId>
+            <version>3.5.0</version>
+        </dependency>
+        <!--Bouncycastle dependency for clients and servers-->
+        <dependency>
+            <groupId>bouncycastle</groupId>
+            <artifactId>bcprov-jdk15</artifactId>
+            <version>132</version>
+        </dependency>
+
+        <!-- autoscale components -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.autoscale</artifactId>
+            <version>4.0.3</version>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.discovery.core</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.relay</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <version>2.0-alpha-4</version>
+                <inherited>false</inherited>
+                <executions>
+                    <execution>
+                        <id>unpack-wso2carbon</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>unpack</goal>
+                        </goals>
+                        <configuration>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.wso2.carbon</groupId>
+                                    <artifactId>wso2carbon-core</artifactId>
+                                    <version>${carbon.kernel.version}</version>
+                                    <type>zip</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target</outputDirectory>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+ 	    <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.1</version>
+                <executions>
+                    <execution>
+                        <id>extract-docs-from-components</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <property name="tempdir" value="target/docs-temp"/>
+                                <mkdir dir="${tempdir}"/>
+                                <unzip dest="${tempdir}">
+                                    <fileset dir="target">
+                                        <include name="${project.artifactId}-${project.version}.zip"/>
+                                    </fileset>
+                                </unzip>
+                                <copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/" overwrite="false">
+                                    <fileset dir="${tempdir}/${project.artifactId}-${project.version}/repository/components/">
+                                    </fileset>
+                                </copy>
+                                <delete file="target/${project.artifactId}-${project.version}.zip"/>
+                                <delete dir="${tempdir}"/>
+                                <mkdir dir="${tempdir}"/>
+                                <unzip dest="${tempdir}">
+                                    <fileset dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/">
+                                        <include name="*.ui*.jar"/>
+                                    </fileset>
+                                </unzip>
+                                <move todir="${tempdir}/web/" includeemptydirs="false">
+                                    <fileset dir="${tempdir}/web/">
+                                        <exclude name="**/yui/**"/>
+                                        <exclude name="**/ajax/**"/>
+                                        <exclude name="**/WEB-INF/**"/>
+                                        <include name="**/*.html"/>
+                                    </fileset>
+                                    <mapper type="glob" from="*.html" to="*.xml"/>
+                                </move>
+                                <delete dir="${tempdir}"/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>clean_target</id>
+                        <phase>install</phase>
+                        <configuration>
+                            <tasks>
+                                <delete dir="target/archive-tmp"/>
+                                <delete dir="target/dependency-maven-plugin-markers"/>
+                                <delete dir="target/maven-archiver"/>
+                                <delete dir="target/wso2carbon-core-${carbon.kernel.version}"/>
+                                <delete dir="target/sources"/>
+                                <delete dir="target/site"/>
+                                <delete dir="src/site"/>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>   
+
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>pre_dist</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>attached</goal>
+                        </goals>
+                        <configuration>
+                            <filters>
+                                <filter>${basedir}/src/main/assembly/filter.properties</filter>
+                            </filters>
+                            <descriptors>
+                                <descriptor>src/main/assembly/dist.xml</descriptor>
+                            </descriptors>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>dist</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>attached</goal>
+                        </goals>
+                        <configuration>
+                            <filters>
+                                <filter>${basedir}/src/main/assembly/filter.properties</filter>
+                            </filters>
+                            <descriptors>
+                                <descriptor>src/main/assembly/bin.xml</descriptor>
+                            </descriptors>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+    
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/modules/distribution/src/conf/log4j.properties
----------------------------------------------------------------------
diff --git a/products/stratos-agent/modules/distribution/src/conf/log4j.properties b/products/stratos-agent/modules/distribution/src/conf/log4j.properties
new file mode 100644
index 0000000..258b9ba
--- /dev/null
+++ b/products/stratos-agent/modules/distribution/src/conf/log4j.properties
@@ -0,0 +1,168 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#
+# This is the log4j configuration file used by WSO2 Carbon
+#
+# IMPORTANT : Please do not remove or change the names of any
+# of the Appenders defined here. The layout pattern & log file
+# can be changed using the WSO2 Carbon Management Console, and those
+# settings will override the settings in this file.
+#
+
+log4j.rootLogger=INFO, CARBON_CONSOLE, CARBON_LOGFILE, CARBON_MEMORY, CARBON_SYS_LOG
+
+log4j.logger.AUDIT_LOG=INFO, AUDIT_LOGFILE
+log4j.logger.org.apache.axis2.wsdl.codegen.writer.PrettyPrinter=ERROR, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.axis2.clustering=INFO, CARBON_CONSOLE, CARBON_LOGFILE
+log4j.logger.org.apache=INFO, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.catalina=WARN
+log4j.logger.org.apache.tomcat=WARN
+log4j.logger.org.wso2.carbon.apacheds=WARN
+log4j.logger.org.apache.directory.server.ldap=WARN
+log4j.logger.org.apache.directory.server.core.event=WARN
+log4j.logger.com.atomikos=INFO,ATOMIKOS
+log4j.logger.org.quartz=WARN
+log4j.logger.org.apache.jackrabbit.webdav=WARN
+log4j.logger.org.apache.juddi=ERROR
+log4j.logger.org.apache.commons.digester.Digester=WARN
+log4j.logger.org.apache.jasper.compiler.TldLocationsCache=WARN
+log4j.logger.org.apache.qpid=WARN
+log4j.logger.org.apache.qpid.server.Main=INFO
+log4j.logger.qpid.message=WARN
+log4j.logger.qpid.message.broker.listening=INFO
+log4j.logger.org.apache.tiles=WARN
+log4j.logger.org.apache.commons.httpclient=ERROR
+log4j.logger.org.apache.coyote=WARN
+log4j.logger.org.apache.solr=ERROR
+log4j.logger.org.infinispan=WARN
+log4j.logger.org.jgroups=ERROR
+log4j.logger.me.prettyprint.cassandra.hector.TimingLogger=ERROR
+log4j.logger.org.wso2=INFO
+log4j.logger.org.apache.axis2.enterprise=FATAL, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.opensaml.xml=WARN, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.shared.ldap=WARN, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.server.ldap.handlers=WARN, CARBON_LOGFILE, CARBON_MEMORY 
+#Following are to remove false error messages from startup (IS)
+log4j.logger.org.apache.directory.shared.ldap.entry.DefaultServerAttribute=FATAL, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.server.core.DefaultDirectoryService=ERROR, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.shared.ldap.ldif.LdifReader=ERROR, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.server.ldap.LdapProtocolHandler=ERROR, CARBON_LOGFILE, CARBON_MEMORY
+log4j.logger.org.apache.directory.server.core=ERROR, CARBON_LOGFILE, CARBON_MEMORY
+#Hive Related Log configurations
+log4j.logger.DataNucleus=ERROR
+log4j.logger.Datastore=ERROR
+log4j.logger.Datastore.Schema=ERROR
+log4j.logger.JPOX.Datastore=ERROR
+log4j.logger.JPOX.Plugin=ERROR
+log4j.logger.JPOX.MetaData=ERROR
+log4j.logger.JPOX.Query=ERROR
+log4j.logger.JPOX.General=ERROR
+log4j.logger.JPOX.Enhancer=ERROR
+log4j.logger.org.apache.hadoop.hive=WARN
+log4j.logger.hive=WARN
+log4j.logger.ExecMapper=WARN
+log4j.logger.ExecReducer=WARN
+log4j.logger.net.sf.ehcache.config.ConfigurationFactory=ERROR
+log4j.logger.org.apache.axis2.clustering.tribes.Axis2GroupChannel=FATAL
+
+log4j.logger.trace.messages=TRACE,CARBON_TRACE_LOGFILE
+
+log4j.additivity.org.apache.axis2.clustering=false
+log4j.additivity.com.atomikos=false
+
+# CARBON_CONSOLE is set to be a ConsoleAppender using a PatternLayout.
+log4j.appender.CARBON_CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CARBON_CONSOLE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+# ConversionPattern will be overridden by the configuration setting in the DB
+log4j.appender.CARBON_CONSOLE.layout.ConversionPattern=[%d] %P%5p {%c} - %x %m%n
+log4j.appender.CARBON_CONSOLE.layout.TenantPattern=%U%@%D[%T]
+log4j.appender.CARBON_CONSOLE.threshold=DEBUG
+
+# CARBON_MEMORY is set to be a MemoryAppender using a PatternLayout.
+log4j.appender.CARBON_MEMORY=org.wso2.carbon.logging.appenders.MemoryAppender
+log4j.appender.CARBON_MEMORY.layout=org.apache.log4j.PatternLayout
+log4j.appender.CARBON_MEMORY.bufferSize=200
+# ConversionPattern will be overridden by the configuration setting in the DB
+#log4j.appender.CARBON_MEMORY.layout.ConversionPattern=[%d] %5p - %x %m {%c}%n
+log4j.appender.CARBON_MEMORY.layout.ConversionPattern=[%d] %5p {%c} - %x %m%n
+log4j.appender.CARBON_MEMORY.threshold=DEBUG
+
+
+# CARBON_LOGFILE is set to be a DailyRollingFileAppender using a PatternLayout.
+log4j.appender.CARBON_LOGFILE=org.apache.log4j.DailyRollingFileAppender
+# Log file will be overridden by the configuration setting in the DB
+# This path should be relative to WSO2 Carbon Home
+log4j.appender.CARBON_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon${instance.log}.log
+log4j.appender.CARBON_LOGFILE.Append=true
+log4j.appender.CARBON_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+# ConversionPattern will be overridden by the configuration setting in the DB
+log4j.appender.CARBON_LOGFILE.layout.ConversionPattern=TID: [%T] [%S] [%d] %P%5p {%c} - %x %m {%c}%n
+log4j.appender.CARBON_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
+log4j.appender.CARBON_LOGFILE.threshold=DEBUG
+
+log4j.appender.CARBON_SYS_LOG = org.apache.log4j.net.SyslogAppender
+log4j.appender.CARBON_SYS_LOG.layout=org.apache.log4j.PatternLayout
+log4j.appender.CARBON_SYS_LOG.layout.ConversionPattern=[%d] %5p {%c} - %x %m {%c}%n
+log4j.appender.CARBON_SYS_LOG.SyslogHost=localhost
+log4j.appender.CARBON_SYS_LOG.Facility=USER
+log4j.appender.CARBON_SYS_LOG.threshold=DEBUG
+
+# LOGEVENT is set to be a LogEventAppender using a PatternLayout to send logs to LOGEVENT 
+log4j.appender.LOGEVENT=org.wso2.carbon.logging.appender.LogEventAppender
+log4j.appender.LOGEVENT.url=tcp://10.100.3.103:7611
+log4j.appender.LOGEVENT.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+log4j.appender.LOGEVENT.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%I,%Stacktrace
+log4j.appender.LOGEVENT.userName=admin
+log4j.appender.LOGEVENT.password=admin
+
+# Appender config to CARBON_TRACE_LOGFILE
+log4j.appender.CARBON_TRACE_LOGFILE=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.CARBON_TRACE_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon-trace-messages${instance.log}.log
+log4j.appender.CARBON_TRACE_LOGFILE.Append=true
+log4j.appender.CARBON_TRACE_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+log4j.appender.CARBON_TRACE_LOGFILE.layout.ConversionPattern=[%d] %P%5p {%c} - %x %m {%c}%n
+log4j.appender.CARBON_TRACE_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
+log4j.appender.CARBON_TRACE_LOGFILE.threshold=TRACE
+log4j.additivity.trace.messages=false
+
+# Appender config to AUDIT_LOGFILE
+log4j.appender.AUDIT_LOGFILE=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.AUDIT_LOGFILE.File=${carbon.home}/repository/logs/audit.log
+log4j.appender.AUDIT_LOGFILE.Append=true
+log4j.appender.AUDIT_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+log4j.appender.AUDIT_LOGFILE.layout.ConversionPattern=[%d] %P%5p - %x %m %n
+log4j.appender.AUDIT_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
+log4j.appender.AUDIT_LOGFILE.threshold=INFO
+log4j.additivity.AUDIT_LOG=false
+
+# Appender config to send Atomikos transaction logs to new log file tm.out.
+log4j.appender.ATOMIKOS = org.apache.log4j.RollingFileAppender
+log4j.appender.ATOMIKOS.File = repository/logs/tm.out
+log4j.appender.ATOMIKOS.Append = true
+log4j.appender.ATOMIKOS.layout = org.apache.log4j.PatternLayout
+log4j.appender.ATOMIKOS.layout.ConversionPattern=%p %t %c - %m%n
+
+# This file is used to override the default logger settings, and is used to remove unwanted logs from Shindig appearing on the console.
+
+# Specification of Handler used by Console Logger
+handlers=java.util.logging.ConsoleHandler
+
+# Replacing default INFO level with SEVERE
+java.util.logging.ConsoleHandler.level=SEVERE

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/modules/distribution/src/main/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/stratos-agent/modules/distribution/src/main/assembly/bin.xml b/products/stratos-agent/modules/distribution/src/main/assembly/bin.xml
new file mode 100755
index 0000000..f5811bf
--- /dev/null
+++ b/products/stratos-agent/modules/distribution/src/main/assembly/bin.xml
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<assembly>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <includeBaseDirectory>false</includeBaseDirectory>
+    <fileSets>
+        <fileSet>
+            <directory>target/wso2carbon-core-${carbon.version}</directory>
+            <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
+            <excludes>
+                <exclude>**/*.sh</exclude>
+                <exclude>**/native/*</exclude>
+                <exclude>**/services/sample01.aar</exclude>
+                <exclude>**/repository/services/version/**</exclude>
+                <exclude>**/version.txt</exclude>
+                <exclude>**/wso2server.bat</exclude>
+                <exclude>**/README.txt</exclude>
+                <exclude>**/LICENSE.txt</exclude>
+                <exclude>**/INSTALL.txt</exclude>
+                <exclude>**/release-notes.html</exclude>
+                <exclude>**/carbon.xml</exclude>
+                <exclude>**/wsdl2java.*</exclude>
+                <exclude>**/java2wsdl.*</exclude>
+                <exclude>**/java2wsdl.*</exclude>
+                <exclude>**/tcpmon.*</exclude>
+                <exclude>**/build.xml</exclude>
+                <exclude>**/repository/components/plugins/*.ui*</exclude>
+		<exclude>**/log4j.properties</exclude>
+		<!--exclude>**/samples/*</exclude-->
+            </excludes>
+        </fileSet>
+
+	<!-- get axis2_1.6.1.wso2v9.jar from carbon kernel patch 0002 -->
+        <fileSet>
+           <directory>../p2-profile/target/WSO2-CARBON-PATCH-4.1.0-0002/</directory>
+           <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/patches</outputDirectory>
+           <includes>
+              <include>**/patch0002/axis2_1.6.1.wso2v9.jar</include>
+           </includes>
+        </fileSet>
+    </fileSets>
+
+    <dependencySets>
+        <!-- use the new tool to create a bundles -->
+        <dependencySet>
+            <outputDirectory>stratos-s2-agent-${pom.version}/lib/core/WEB-INF/lib</outputDirectory>
+            <includes>
+                <include>org.wso2.carbon:org.wso2.carbon.mediator.bridge:jar</include>
+            </includes>
+        </dependencySet>
+        <!--dependencySet>
+            <outputDirectory>stratos-s2-agent-${pom.version}/samples/axis2Client/client_repo/modules
+            </outputDirectory>
+            <includes>
+                <include>org.apache.axis2:addressing:mar</include>
+                <include>org.apache.rampart:rampart:mar</include>
+                <include>org.apache.sandesha2:sandesha2:mar</include>
+            </includes>
+            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
+            </outputFileNameMapping>
+        </dependencySet>
+        <dependencySet>
+            <outputDirectory>stratos-s2-agent-${pom.version}/samples/axis2Server/repository/modules
+            </outputDirectory>
+            <includes>
+                <include>org.apache.axis2:addressing:mar</include>
+                <include>org.apache.rampart:rampart:mar</include>
+                <include>org.apache.sandesha2:sandesha2:mar</include>
+            </includes>
+            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
+            </outputFileNameMapping>
+        </dependencySet-->
+        <dependencySet>
+            <outputDirectory>stratos-s2-agent-${pom.version}/repository/axis2/client/lib</outputDirectory>
+            <includes>
+                <include>bouncycastle:bcprov-jdk15:jar</include>
+            </includes>
+            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
+            </outputFileNameMapping>
+        </dependencySet>
+        <dependencySet>
+            <outputDirectory>stratos-s2-agent-${pom.version}/repository/deployment/client/modules
+            </outputDirectory>
+            <includes>
+                <include>org.apache.rampart:rampart:mar</include>
+            </includes>
+        </dependencySet>
+        <!-- MB Client libs -->
+        <dependencySet>
+            <outputDirectory>stratos-s2-agent-${pom.version}/repository/components/dropins</outputDirectory>
+            <includes>
+                <include>org.wso2.andes.wso2:andes-client:jar</include>
+                <include>org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar</include>
+                <!--include>org.wso2.carbon:org.wso2.carbon.event.client.stub:jar</include>
+                <include>org.wso2.carbon:org.wso2.carbon.event.client:jar</include-->
+            </includes>
+        </dependencySet>
+    </dependencySets>
+
+    <files>
+        <file>
+            <source>src/main/bin/stratos.sh</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}/bin</outputDirectory>
+            <destName>stratos.sh</destName>
+            <fileMode>755</fileMode>
+            <filtered>true</filtered>
+        </file>
+        <file>
+            <source>src/main/bin/stratos.bat</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}/bin</outputDirectory>
+            <destName>stratos.bat</destName>
+            <fileMode>755</fileMode>
+            <filtered>true</filtered>
+        </file>
+        <file>
+            <source>src/conf/log4j.properties</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}/repository/conf</outputDirectory>
+            <destName>log4j.properties</destName>
+            <filtered>true</filtered>
+        </file>
+
+                                                                
+        <file>
+            <source>../../LICENSE.txt</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>../../README.txt</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>../../INSTALL.txt</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>../../docs/xdoc/release-notes.xml</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
+            <destName>release-notes.html</destName>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>target/wso2carbon-core-${carbon.version}/bin/version.txt</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>
+                target/wso2carbon-core-${carbon.version}/repository/conf/carbon.xml
+            </source>
+            <outputDirectory>stratos-s2-agent-${pom.version}/repository/conf/</outputDirectory>
+            <filtered>true</filtered>
+        </file>
+	<file>
+            <source>../p2-profile/target/wso2carbon-core-${carbon.version}/repository/conf/agent.properties</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}/repository/conf</outputDirectory>
+        </file>
+    </files>
+</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/modules/distribution/src/main/assembly/dist.xml
----------------------------------------------------------------------
diff --git a/products/stratos-agent/modules/distribution/src/main/assembly/dist.xml b/products/stratos-agent/modules/distribution/src/main/assembly/dist.xml
new file mode 100644
index 0000000..f99841a
--- /dev/null
+++ b/products/stratos-agent/modules/distribution/src/main/assembly/dist.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<assembly>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <includeBaseDirectory>false</includeBaseDirectory>
+    <fileSets>
+        <!-- Copying p2 profile and osgi bundles-->
+        <fileSet>
+            <directory>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/components</directory>
+            <outputDirectory>stratos-s2-agent-${pom.version}/repository/components</outputDirectory>
+            <excludes>
+                <exclude>**/eclipse.ini</exclude>
+                <exclude>**/*.lock</exclude>
+                <exclude>**/.data</exclude>
+                <exclude>**/.settings</exclude>
+                <exclude>**/synapse-samples*</exclude>
+            </excludes>
+        </fileSet>
+    </fileSets>
+</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/modules/distribution/src/main/assembly/docs.xml
----------------------------------------------------------------------
diff --git a/products/stratos-agent/modules/distribution/src/main/assembly/docs.xml b/products/stratos-agent/modules/distribution/src/main/assembly/docs.xml
new file mode 100644
index 0000000..bb2d975
--- /dev/null
+++ b/products/stratos-agent/modules/distribution/src/main/assembly/docs.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<assembly>
+    <id>docs</id>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <includeBaseDirectory>false</includeBaseDirectory>
+    <fileSets>
+        <fileSet>
+            <directory>target/site</directory>
+            <outputDirectory>stratos-s2-agent-${pom.version}-docs</outputDirectory>
+            <fileMode>755</fileMode>
+        </fileSet>
+    </fileSets>
+</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/modules/distribution/src/main/assembly/filter.properties
----------------------------------------------------------------------
diff --git a/products/stratos-agent/modules/distribution/src/main/assembly/filter.properties b/products/stratos-agent/modules/distribution/src/main/assembly/filter.properties
new file mode 100644
index 0000000..f10f62d
--- /dev/null
+++ b/products/stratos-agent/modules/distribution/src/main/assembly/filter.properties
@@ -0,0 +1,27 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+product.name=Apache Stratos Agent
+product.key=Agent
+product.version=1.0.0
+
+carbon.version=4.1.1
+lb.version=1.0.0
+default.server.role=ElasticLoadBalancer
+bundle.creators=org.wso2.carbon.mediator.bridge.MediatorBundleCreator

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/modules/distribution/src/main/assembly/src.xml
----------------------------------------------------------------------
diff --git a/products/stratos-agent/modules/distribution/src/main/assembly/src.xml b/products/stratos-agent/modules/distribution/src/main/assembly/src.xml
new file mode 100644
index 0000000..028c390
--- /dev/null
+++ b/products/stratos-agent/modules/distribution/src/main/assembly/src.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<assembly>
+    <id>src</id>
+    <includeBaseDirectory>false</includeBaseDirectory>
+    <formats>
+        <format>zip</format>
+    </formats>
+
+    <fileSets>
+        <fileSet>
+            <directory>target/sources</directory>
+            <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
+            <includes>
+                <include>**/*</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>../..</directory>
+            <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
+            <includes>
+                <include>modules/**/*</include>
+                <include>**/pom.xml</include>
+            </includes>
+            <excludes>
+                <exclude>**/target</exclude>
+                <exclude>**/target/**/*</exclude>
+                <exclude>**/build</exclude>
+                <exclude>**/build/**/*</exclude>
+                <exclude>**/.settings</exclude>
+                <exclude>**/.classpath</exclude>
+                <exclude>**/.project</exclude>
+                <exclude>**/.wtpmodules</exclude>
+                <exclude>**/*.iml</exclude>
+                <exclude>**/.settings</exclude>
+                <exclude>**/.settings/**/*</exclude>
+            </excludes>
+        </fileSet>
+    </fileSets>
+    <files>
+        <file>
+            <source>../../LICENSE.txt</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
+            <filtered>true</filtered>
+        </file>
+        <file>
+            <source>../../README.txt</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
+            <filtered>true</filtered>
+        </file>
+        <file>
+            <source>../../INSTALL.txt</source>
+            <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
+            <filtered>true</filtered>
+        </file>
+    </files>
+</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/modules/distribution/src/main/bin/stratos.bat
----------------------------------------------------------------------
diff --git a/products/stratos-agent/modules/distribution/src/main/bin/stratos.bat b/products/stratos-agent/modules/distribution/src/main/bin/stratos.bat
new file mode 100644
index 0000000..989483f
--- /dev/null
+++ b/products/stratos-agent/modules/distribution/src/main/bin/stratos.bat
@@ -0,0 +1,169 @@
+@echo off
+
+rem ---------------------------------------------------------------------------
+rem  Licensed to the Apache Software Foundation (ASF) under one
+rem  or more contributor license agreements.  See the NOTICE file
+rem  distributed with this work for additional information
+rem  regarding copyright ownership.  The ASF licenses this file
+rem  to you under the Apache License, Version 2.0 (the
+rem  "License"); you may not use this file except in compliance
+rem  with the License.  You may obtain a copy of the License at
+rem
+rem      http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem  Unless required by applicable law or agreed to in writing,
+rem  software distributed under the License is distributed on an
+rem  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+rem  KIND, either express or implied.  See the License for the
+rem  specific language governing permissions and limitations
+rem  under the License.
+rem ---------------------------------------------------------------------------
+rem  Main Script for Apache Stratos
+rem
+rem  Environment Variable Prerequisites
+rem
+rem   JAVA_HOME       Must point at your Java Development Kit installation.
+rem
+rem   JAVA_OPTS       (Optional) Java runtime options used when the commands
+rem                   is executed.
+rem ---------------------------------------------------------------------------
+
+rem ----- if JAVA_HOME is not set we're not happy ------------------------------
+:checkJava
+
+if "%JAVA_HOME%" == "" goto noJavaHome
+if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
+goto checkServer
+
+:noJavaHome
+echo "You must set the JAVA_HOME variable before running CARBON."
+goto end
+
+rem ----- Only set CARBON_HOME if not already set ----------------------------
+:checkServer
+rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed
+if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..
+SET curDrive=%cd:~0,1%
+SET wsasDrive=%CARBON_HOME:~0,1%
+if not "%curDrive%" == "%wsasDrive%" %wsasDrive%:
+
+rem find CARBON_HOME if it does not exist due to either an invalid value passed
+rem by the user or the %0 problem on Windows 9x
+if not exist "%CARBON_HOME%\bin\version.txt" goto noServerHome
+
+set AXIS2_HOME=%CARBON_HOME%
+goto updateClasspath
+
+:noServerHome
+echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME.
+goto end
+
+rem ----- update classpath -----------------------------------------------------
+:updateClasspath
+
+setlocal EnableDelayedExpansion
+cd %CARBON_HOME%
+set CARBON_CLASSPATH=
+FOR %%C in ("%CARBON_HOME%\bin\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\%%~nC%%~xC"
+
+set CARBON_CLASSPATH="%JAVA_HOME%\lib\tools.jar";%CARBON_CLASSPATH%;
+
+FOR %%D in ("%CARBON_HOME%\lib\commons-lang*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\lib\%%~nD%%~xD"
+
+rem ----- Process the input command -------------------------------------------
+
+rem Slurp the command line arguments. This loop allows for an unlimited number
+rem of arguments (up to the command line limit, anyway).
+
+
+:setupArgs
+if ""%1""=="""" goto doneStart
+
+if ""%1""==""-run""     goto commandLifecycle
+if ""%1""==""--run""    goto commandLifecycle
+if ""%1""==""run""      goto commandLifecycle
+
+if ""%1""==""-restart""  goto commandLifecycle
+if ""%1""==""--restart"" goto commandLifecycle
+if ""%1""==""restart""   goto commandLifecycle
+
+if ""%1""==""debug""    goto commandDebug
+if ""%1""==""-debug""   goto commandDebug
+if ""%1""==""--debug""  goto commandDebug
+
+if ""%1""==""version""   goto commandVersion
+if ""%1""==""-version""  goto commandVersion
+if ""%1""==""--version"" goto commandVersion
+
+shift
+goto setupArgs
+
+rem ----- commandVersion -------------------------------------------------------
+:commandVersion
+shift
+type "%CARBON_HOME%\bin\version.txt"
+type "%CARBON_HOME%\bin\wso2carbon-version.txt"
+goto end
+
+rem ----- commandDebug ---------------------------------------------------------
+:commandDebug
+shift
+set DEBUG_PORT=%1
+if "%DEBUG_PORT%"=="" goto noDebugPort
+if not "%JAVA_OPTS%"=="" echo Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option.
+set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%DEBUG_PORT%
+echo Please start the remote debugging client to continue...
+goto findJdk
+
+:noDebugPort
+echo Please specify the debug port after the --debug option
+goto end
+
+
+:doneStart
+if "%OS%"=="Windows_NT" @setlocal
+if "%OS%"=="WINNT" @setlocal
+
+rem ---------- Handle the SSL Issue with proper JDK version --------------------
+rem find the version of the jdk
+:findJdk
+
+set CMD=RUN %*
+
+:checkJdk16
+"%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[6|7]" >NUL
+IF ERRORLEVEL 1 goto unknownJdk
+goto jdk16
+
+:unknownJdk
+echo Starting WSO2 Carbon (in unsupported JDK)
+echo [ERROR] CARBON is supported only on JDK 1.6 and 1.7
+goto jdk16
+
+:jdk16
+goto runServer
+
+rem ----------------- Execute The Requested Command ----------------------------
+
+:runServer
+cd %CARBON_HOME%
+
+rem ---------- Add jars to classpath ----------------
+
+set CARBON_CLASSPATH=.\lib;%CARBON_CLASSPATH%
+
+set JAVA_ENDORSED=".\lib\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed"
+
+set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms1500m -Xmx3000m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:-UseGCOverheadLimit -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%CARBON_HOME%\repository\logs\heap-dump.hprof -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -Dcarbon.registry.root=/ -Dcarbon.home="%CARBON_HOME%" -Dloadbalancer.conf="file:///%CARBON_HOME%/repository/conf/loadbalancer.conf" -Dwso2.server.standalone=true -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcatalina.base="%CARBON_HOME%\lib\tomcat" -Dwso2.carbon.xml=%CARBON_HOME%\repository\conf\carbon.xml -Dwso2.registry.xml="%CARBON_HOME%\repository\conf\registry.xml" -Dwso2.user.mgt.xml="%CARBON_HOME%\repository\conf\user-mgt.xml" -Djava.util.logging.config.file="%CARBON_HOME%\repository\conf\log4j.properties" -
 Dcarbon.config.dir.path="%CARBON_HOME%\repository\conf" -Dconf.location="%CARBON_HOME%\repository\conf" -Dcarbon.logs.path="%CARBON_HOME%\repository\logs" -Dcomponents.repo="%CARBON_HOME%\repository\components" -Dcom.atomikos.icatch.file="%CARBON_HOME%\lib\transactions.properties" -Dcom.atomikos.icatch.hide_init_file_path="true" -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dcom.sun.jndi.ldap.connect.pool.authentication=simple -Dcom.sun.jndi.ldap.connect.pool.timeout=3000 -Dorg.terracotta.quartz.skipUpdateCheck=true -Dcarbon.classpath=%CARBON_CLASSPATH% -Dfile.encoding=UTF8
+
+:runJava
+echo JAVA_HOME environment variable is set to %JAVA_HOME%
+echo CARBON_HOME environment variable is set to %CARBON_HOME%
+"%JAVA_HOME%\bin\java" %CMD_LINE_ARGS% org.wso2.carbon.bootstrap.Bootstrap %CMD%
+if "%ERRORLEVEL%"=="121" goto runJava
+:end
+goto endlocal
+
+:endlocal
+
+:END

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/modules/distribution/src/main/bin/stratos.sh
----------------------------------------------------------------------
diff --git a/products/stratos-agent/modules/distribution/src/main/bin/stratos.sh b/products/stratos-agent/modules/distribution/src/main/bin/stratos.sh
new file mode 100644
index 0000000..4c6260c
--- /dev/null
+++ b/products/stratos-agent/modules/distribution/src/main/bin/stratos.sh
@@ -0,0 +1,298 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+# ----------------------------------------------------------------------------
+#  Main Script for the Apache Stratos
+#
+#  Environment Variable Prerequisites
+#
+#   JAVA_HOME       Must point at your Java Development Kit installation.
+#
+#   JAVA_OPTS       (Optional) Java runtime options used when the commands
+#                   is executed.
+#
+#  NOTE: Borrowed generously from Apache Tomcat startup scripts.
+# -----------------------------------------------------------------------------
+
+# OS specific support.  $var _must_ be set to either true or false.
+
+cygwin=false;
+darwin=false;
+os400=false;
+mingw=false;
+case "`uname`" in
+CYGWIN*) cygwin=true;;
+MINGW*) mingw=true;;
+OS400*) os400=true;;
+Darwin*) darwin=true
+        if [ -z "$JAVA_VERSION" ] ; then
+             JAVA_VERSION="CurrentJDK"
+           else
+             echo "Using Java version: $JAVA_VERSION"
+           fi
+           if [ -z "$JAVA_HOME" ] ; then
+             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
+           fi
+           ;;
+esac
+
+# resolve links - $0 may be a softlink
+PRG="$0"
+
+while [ -h "$PRG" ]; do
+  ls=`ls -ld "$PRG"`
+  link=`expr "$ls" : '.*-> \(.*\)$'`
+  if expr "$link" : '.*/.*' > /dev/null; then
+    PRG="$link"
+  else
+    PRG=`dirname "$PRG"`/"$link"
+  fi
+done
+
+# Get standard environment variables
+PRGDIR=`dirname "$PRG"`
+
+# Only set CARBON_HOME if not already set
+[ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd`
+
+# Set AXIS2_HOME. Needed for One Click JAR Download
+AXIS2_HOME=$CARBON_HOME
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+  [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+  [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
+  [ -n "$AXIS2_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
+fi
+
+# For OS400
+if $os400; then
+  # Set job priority to standard for interactive (interactive - 6) by using
+  # the interactive priority - 6, the helper threads that respond to requests
+  # will be running at the same priority as interactive jobs.
+  COMMAND='chgjob job('$JOBNAME') runpty(6)'
+  system $COMMAND
+
+  # Enable multi threading
+  QIBM_MULTI_THREADED=Y
+  export QIBM_MULTI_THREADED
+fi
+
+# For Migwn, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+  [ -n "$CARBON_HOME" ] &&
+    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+  [ -n "$AXIS2_HOME" ] &&
+    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
+  # TODO classpath?
+fi
+
+if [ -z "$JAVACMD" ] ; then
+  if [ -n "$JAVA_HOME"  ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+      # IBM's JDK on AIX uses strange locations for the executables
+      JAVACMD="$JAVA_HOME/jre/sh/java"
+    else
+      JAVACMD="$JAVA_HOME/bin/java"
+    fi
+  else
+    JAVACMD=java
+  fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+  echo "Error: JAVA_HOME is not defined correctly."
+  echo " CARBON cannot execute $JAVACMD"
+  exit 1
+fi
+
+# if JAVA_HOME is not set we're not happy
+if [ -z "$JAVA_HOME" ]; then
+  echo "You must set the JAVA_HOME variable before running CARBON."
+  exit 1
+fi
+
+# ----- Process the input command ----------------------------------------------
+for c in $*
+do
+    if [ "$c" = "--debug" ] || [ "$c" = "-debug" ] || [ "$c" = "debug" ]; then
+          CMD="--debug"
+          continue
+    elif [ "$CMD" = "--debug" ]; then
+          if [ -z "$PORT" ]; then
+                PORT=$c
+          fi
+    elif [ "$c" = "--n" ] || [ "$c" = "-n" ] || [ "$c" = "n" ]; then
+          CMD="--n"
+          continue
+    elif [ "$CMD" = "--n" ]; then
+          if [ -z "$INSTANCES" ]; then
+                INSTANCES=$c
+          fi
+    elif [ "$c" = "--stop" ] || [ "$c" = "-stop" ] || [ "$c" = "stop" ]; then
+          CMD="stop"
+    elif [ "$c" = "--start" ] || [ "$c" = "-start" ] || [ "$c" = "start" ]; then
+          CMD="start"
+    elif [ "$c" = "--console" ] || [ "$c" = "-console" ] || [ "$c" = "console" ]; then
+          CMD="console"
+    elif [ "$c" = "--version" ] || [ "$c" = "-version" ] || [ "$c" = "version" ]; then
+          CMD="version"
+    elif [ "$c" = "--restart" ] || [ "$c" = "-restart" ] || [ "$c" = "restart" ]; then
+          CMD="restart"
+    elif [ "$c" = "--dump" ] || [ "$c" = "-dump" ] || [ "$c" = "dump" ]; then
+          CMD="dump"
+    elif [ "$c" = "--test" ] || [ "$c" = "-test" ] || [ "$c" = "test" ]; then
+          CMD="test"
+    elif [ "$c" = "--status" ] || [ "$c" = "-status" ] || [ "$c" = "status" ]; then
+          CMD="status"
+    fi
+done
+
+if [ "$CMD" = "--debug" ]; then
+  if [ "$PORT" = "" ]; then
+    echo " Please specify the debug port after the --debug option"
+    exit 1
+  fi
+  if [ -n "$JAVA_OPTS" ]; then
+    echo "Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option."
+  fi
+  CMD="RUN"
+  JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT"
+  echo "Please start the remote debugging client to continue..."
+elif [ "$CMD" = "--n" ]; then
+  if [ "$INSTANCES" = "" ] || [ ! -z `echo $INSTANCES | sed 's/[0-9]//g'` ]]; then
+    echo " Please specify the number of instances to start after the --n option"
+    exit 1
+  fi
+elif [ "$CMD" = "start" ]; then
+  export CARBON_HOME=$CARBON_HOME
+  nohup $CARBON_HOME/bin/stratos.sh &
+  exit 0
+elif [ "$CMD" = "stop" ]; then
+  export CARBON_HOME=$CARBON_HOME
+  kill -9 `cat $CARBON_HOME/wso2carbon.pid`
+  exit 0
+elif [ "$CMD" = "restart" ]; then
+  export CARBON_HOME=$CARBON_HOME
+  kill -term `cat $CARBON_HOME/wso2carbon.pid`
+  process_status=0
+  pid=`cat $CARBON_HOME/wso2carbon.pid`
+  while [ "$process_status" -eq "0" ]
+  do
+    sleep 1;
+    ps -p$pid 2>&1 > /dev/null
+    process_status=$?
+  done
+
+  # using nohup bash to avoid erros in solaris OS.TODO
+  nohup bash $CARBON_HOME/bin/stratos.sh > /dev/null 2>&1 &
+  exit 0
+elif [ "$CMD" = "test" ]; then
+    JAVACMD="exec "$JAVACMD""
+elif [ "$CMD" = "version" ]; then
+  cat $CARBON_HOME/bin/version.txt
+  cat $CARBON_HOME/bin/wso2carbon-version.txt
+  exit 0
+fi
+
+jdk_16=`$JAVA_HOME/bin/java -version 2>&1 | grep "1.[6|7]"`
+
+if [ "$jdk_16" = "" ]; then
+   echo " [ERROR] CARBON is supported only on JDK 1.6 and 1.7"
+   exit 1
+fi
+
+CARBON_CLASSPATH=""
+if [ -e "$JAVA_HOME/lib/tools.jar" ]; then
+   if [ "$f" != "$JAVA_HOME/lib/tools.jar" ];then
+        CARBON_CLASSPATH="$JAVA_HOME/lib/tools.jar"
+   fi
+fi
+
+CARBON_XBOOTCLASSPATH=""
+for f in "$CARBON_HOME"/lib/xboot/*.jar
+do
+    if [ "$f" != "$CARBON_HOME/lib/xboot/*.jar" ];then
+        CARBON_XBOOTCLASSPATH="$CARBON_XBOOTCLASSPATH":$f
+    fi
+done
+
+JAVA_ENDORSED_DIRS="$CARBON_HOME/lib/endorsed":"$JAVA_HOME/jre/lib/endorsed":"$JAVA_HOME/lib/endorsed"
+
+for f in "$CARBON_HOME"/bin/*.jar
+do
+    if [ "$f" != "$CARBON_HOME/bin/*.jar" ];then
+        CARBON_CLASSPATH="$CARBON_CLASSPATH":$f
+    fi
+done
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+  JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
+  CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
+  AXIS2_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
+  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+  JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
+  CARBON_CLASSPATH=`cygpath --path --windows "$CARBON_CLASSPATH"`
+  CARBON_XBOOTCLASSPATH=`cygpath --path --windows "$CARBON_XBOOTCLASSPATH"`
+fi
+
+# ----- Execute The Requested Command -----------------------------------------
+
+echo JAVA_HOME environment variable is set to $JAVA_HOME
+echo CARBON_HOME environment variable is set to $CARBON_HOME
+
+cd "$CARBON_HOME"
+
+exec "$JAVACMD" \
+        -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \
+        -d64 \
+        -server \
+        -Xms1500m -Xmx3000m \
+        -XX:PermSize=256m -XX:MaxPermSize=512m \
+        -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:-UseGCOverheadLimit \
+        -XX:+CMSClassUnloadingEnabled \
+        -XX:+OptimizeStringConcat \
+        -XX:+HeapDumpOnOutOfMemoryError \
+        -XX:OnOutOfMemoryError="kill -9 `echo $$`;nohup ./stratos.sh &" \
+        -XX:HeapDumpPath=repository/logs/heap-dump.hprof \
+        -XX:ErrorFile=repository/logs/hs_err_pid.log \
+        -XX:OnError="nohup ./stratos.sh &" \
+        $JAVA_OPTS \
+        -Dcarbon.pid=$$ \
+        -Dcom.sun.management.jmxremote \
+        -Dwso2.loadbalancer=true \
+        -classpath "$CARBON_CLASSPATH" \
+        -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" \
+        -Djava.io.tmpdir="$CARBON_HOME/tmp" \
+        -Dwso2.server.standalone=true \
+        -Dcarbon.registry.root=/ \
+        -Dcarbon.home="$CARBON_HOME" \
+        -Dloadbalancer.conf=file:repository/conf/loadbalancer.conf \
+        -Djava.util.logging.config.file="$CARBON_HOME/lib/log4j.properties" \
+        -Dcarbon.config.dir.path="$CARBON_HOME/repository/conf" \
+        -Dconf.location="$CARBON_HOME/repository/conf" \
+        -Dcomponents.repo="$CARBON_HOME/repository/components/plugins" \
+        -Dcom.atomikos.icatch.file="$CARBON_HOME/lib/transactions.properties" \
+        -Dcom.atomikos.icatch.hide_init_file_path=true \
+        -Dorg.terracotta.quartz.skipUpdateCheck=true \
+        org.wso2.carbon.bootstrap.Bootstrap $*
+
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/modules/p2-profile/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-agent/modules/p2-profile/pom.xml b/products/stratos-agent/modules/p2-profile/pom.xml
new file mode 100755
index 0000000..ebd4b82
--- /dev/null
+++ b/products/stratos-agent/modules/p2-profile/pom.xml
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-agent-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>wso2agent-p2-profile-gen</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Agent - P2 Profile Generation</name>
+    <url>http://www.wso2.org</url>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <version>2.0-alpha-4</version>
+                <inherited>false</inherited>
+                <executions>
+                    <execution>
+                        <id>unpack-carbon-core</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>unpack</goal>
+                        </goals>
+                        <configuration>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.wso2.carbon</groupId>
+                                    <artifactId>wso2carbon-core</artifactId>
+                                    <version>${carbon.kernel.version}</version>
+                                    <type>zip</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target</outputDirectory>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+		    <execution>
+                        <id>2-unpack-kernel-patch</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>unpack</goal>
+                        </goals>
+                        <configuration>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.wso2.carbon</groupId>
+                                    <artifactId>WSO2-CARBON-PATCH-4.1.0</artifactId>
+                                    <version>0002</version>
+                                    <type>zip</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target</outputDirectory>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.wso2.maven</groupId>
+                <artifactId>carbon-p2-plugin</artifactId>
+                <version>${carbon.p2.plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>2-p2-repo-generation</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>p2-repo-gen</goal>
+                        </goals>
+                        <configuration>
+                            <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
+                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
+                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
+                            <publishArtifacts>true</publishArtifacts>
+                            <publishArtifactRepository>true</publishArtifactRepository>
+                            <featureArtifacts>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.cartridge.messages.feature:${stratos2.platform.patch.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.cartridge.agent.server.feature:2.1.3
+                                </featureArtifactDef>
+				<featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.lb.common.feature:4.1.3
+                                </featureArtifactDef>
+				<featureArtifactDef>
+                                    org.wso2.carbon:org.apache.synapse.wso2.feature:2.1.1-wso2v4
+                                </featureArtifactDef>
+			     </featureArtifacts>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>3-p2-profile-generation</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>p2-profile-gen</goal>
+                        </goals>
+                        <configuration>
+                            <profile>WSO2CarbonProfile</profile>
+                            <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
+                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
+                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
+                            <destination>
+                                ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
+                            </destination>
+                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
+                            <features>
+                                 <feature>
+                                    <id>org.wso2.carbon.cartridge.messages.feature.group</id>
+                                    <version>${stratos2.platform.patch.version}</version>
+                                </feature>
+				<feature>
+                                    <id>org.wso2.carbon.cartridge.agent.server.feature.group</id>
+                                    <version>2.1.3</version>
+                                </feature>
+				<feature>
+                                    <id>org.wso2.carbon.lb.common.feature.group</id>
+                                    <version>4.1.3</version>
+                                </feature>
+				<feature>
+                                    <id>org.apache.synapse.wso2.feature.group</id>
+                                    <version>2.1.1-wso2v4</version>
+                                </feature>
+			     </features>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+	    <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <version>1.1</version>
+        <executions>
+            <execution>
+                <phase>package</phase>
+                <configuration>
+                    <tasks>
+                        <replace token="false" value="true"
+                                 dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components">
+                            <include name="**/bundles.info"/>
+                        </replace>
+                    </tasks>
+                </configuration>
+                <goals>
+                    <goal>run</goal>
+                </goals>
+            </execution>
+        </executions>
+    </plugin>
+        </plugins>
+    </build>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-agent/pom.xml b/products/stratos-agent/pom.xml
new file mode 100755
index 0000000..bf40e5c
--- /dev/null
+++ b/products/stratos-agent/pom.xml
@@ -0,0 +1,213 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-products-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.stratos</groupId>
+    <artifactId>stratos-agent-parent</artifactId>
+    <packaging>pom</packaging>
+    <version>3.0.0-SNAPSHOT</version>
+    <name>Apache Stratos - Agent - Aggregator Module</name>
+    <url>http://apache.org</url>
+    <description>Apache Stratos Agent (S2agent)</description>
+
+    <licenses>
+        <license>
+            <name>Apache License Version 2.0</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+        </license>
+    </licenses>
+
+    <modules>
+        <module>modules/p2-profile</module>
+        <module>modules/distribution</module>
+        <!--<module>modules/integration</module>-->
+    </modules>
+
+    <scm>
+        <connection>scm:svn:http://wso2.org/repos/wso2/trunk/carbon/products/lb</connection>
+        <developerConnection>scm:svn:https://wso2.org/repos/wso2/trunk/carbon/products/lb</developerConnection>
+        <url>https://wso2.org/repos/wso2/trunk/carbon/products/lb</url>
+    </scm>
+
+    <repositories>
+        <repository>
+            <id>wso2-nexus</id>
+            <name>WSO2 internal Repository</name>
+            <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
+            <releases>
+                <enabled>true</enabled>
+                <updatePolicy>daily</updatePolicy>
+                <checksumPolicy>ignore</checksumPolicy>
+            </releases>
+        </repository>
+        <!--moved to nexus
+
+        <repository>
+            <id>wso2-maven2-repository-snapshot</id>
+            <url>http://dist.wso2.org/snapshots/maven2</url>
+        </repository>
+        <repository>
+            <id>wso2-maven2-repository</id>
+            <url>http://dist.wso2.org/maven2</url>
+        </repository>
+
+        -->
+    </repositories>
+
+    <pluginRepositories>
+        <pluginRepository>
+            <id>wso2-maven2-repository</id>
+            <url>http://dist.wso2.org/maven2</url>
+        </pluginRepository>
+    </pluginRepositories>
+
+    <distributionManagement>
+        <repository>
+            <id>wso2-maven2-repository</id>
+            <name>WSO2 Maven2 Repository</name>
+            <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/maven2/</url>
+        </repository>
+        <snapshotRepository>
+            <id>wso2-maven2-snapshot-repository</id>
+            <name>WSO2 Maven2 Snapshot Repository</name>
+            <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/snapshots/maven2/</url>
+        </snapshotRepository>
+    </distributionManagement>
+
+    <profiles>
+        <profile>
+            <id>signed-build</id>
+            <activation>
+                <property>
+                    <name>sign</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-gpg-plugin</artifactId>
+                        <version>1.0-alpha-3</version>
+                        <executions>
+                            <execution>
+                                <id>sign-artifacts</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>sign</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+    <organization>
+        <name>WSO2 Inc</name>
+        <url>http://wso2.com</url>
+    </organization>
+
+    <issueManagement>
+        <system>JIRA</system>
+        <url>http://wso2.org/jira/browse/LB</url>
+    </issueManagement>
+
+    <mailingLists>
+        <mailingList>
+            <name>WSO2 LB Users' list</name>
+            <post>mailto:lb-user@wso2.org</post>
+            <archive>http://wso2.org/mailarchive/lb-user/</archive>
+            <subscribe>mailto:lb-user-request@wso2.org?subject=subscribe</subscribe>
+            <unsubscribe>mailto:lb-user-request@wso2.org?subject=unsubscribe</unsubscribe>
+        </mailingList>
+        <mailingList>
+            <name>WSO2 LB/Carbon Developers' List</name>
+            <post>mailto:dev@wso2.org</post>
+            <archive>http://wso2.org/mailarchive/dev/</archive>
+            <subscribe>mailto:dev-request@wso2.org?subject=subscribe</subscribe>
+            <unsubscribe>mailto:dev-request@wso2.org?subject=unsubscribe</unsubscribe>
+        </mailingList>
+    </mailingLists>
+
+    <dependencyManagement>
+        <dependencies>
+            <!-- Dependencies for dashboard ui -->
+            <dependency>
+                <groupId>org.apache.axis2.wso2</groupId>
+                <artifactId>axis2</artifactId>
+                <version>${axis2.wso2.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>log4j</groupId>
+                <artifactId>log4j</artifactId>
+                <version>${log4j.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>commons-logging</groupId>
+                <artifactId>commons-logging</artifactId>
+                <version>${commons.logging.version}</version>
+            </dependency>
+            <!-- Dependencies for login ui -->
+            <dependency>
+                <groupId>javax.servlet</groupId>
+                <artifactId>servlet-api</artifactId>
+                <version>${servlet-api.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.ws.commons.axiom.wso2</groupId>
+                <artifactId>axiom</artifactId>
+                <version>${axiom.wso2.version}</version>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <log4j.version>1.2.17</log4j.version>
+        <commons.logging.version>1.1</commons.logging.version>
+        <opencsv.version>1.8</opencsv.version>
+        <poi.version>3.0-FINAL</poi.version>
+        <carbon.version>4.1.0</carbon.version>
+        <carbon.kernel.version>4.1.0</carbon.kernel.version>
+        <carbon.p2.plugin.version>1.5.2</carbon.p2.plugin.version>
+	<stratos2.platform.patch.version>2.1.1</stratos2.platform.patch.version>
+        <synapse.version>2.1.1-wso2v4</synapse.version>
+        <axis2.transport.version>1.1.0-wso2v6</axis2.transport.version>
+        <elb.version>2.0.3</elb.version>
+        <passthru.transport.version>1.0.2</passthru.transport.version>
+        <axis2.wso2.version>1.6.1.wso2v7</axis2.wso2.version>
+        <axiom.wso2.version>1.2.11.wso2v2</axiom.wso2.version>
+	<servlet-api.version>2.4</servlet-api.version>
+        <log4j.version>1.2.17</log4j.version>
+        <commons.logging.version>1.1</commons.logging.version>
+    </properties>
+</project>


[40/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/samples/web_service_client_sample.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/samples/web_service_client_sample.xml b/products/cloud_controller/docs/xdoc/samples/web_service_client_sample.xml
deleted file mode 100644
index 2eb4e5b..0000000
--- a/products/cloud_controller/docs/xdoc/samples/web_service_client_sample.xml
+++ /dev/null
@@ -1,235 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-        <title>WSO2 MB Samples - Web Service Client Sample</title>
-        <link href="../css/mb-docs.css" rel="stylesheet"/>
-        <link href="../styles/dist-docs.css" rel="stylesheet" type="text/css"
-              media="all"/>
-    </head>
-    <body>
-        <p>[<a href="../docs_index.html">Documentation Index</a>]  </p>
-        <h1>Web Service Client Sample</h1>
-        <p> <a href="http://www.w3.org/Submission/WS-Eventing/">Web Service Eventing Specification </a>  defines how Web
-            Services Eventing supports the simplest levels of Web
-            services interfaces for notification producers and consumers for a distributed event management system. It
-            is a baseline set of operations that allow Web services to provide asynchronous notifications to interested
-            parties. WS-Eventing defines the simplest level of Web services interfaces for notification producers and
-            notification consumers including standard message exchanges to be implemented by service providers that wish
-            to act in these roles, along with operational requirements expected of them. It has a set of functions
-            supporting publish/subscribe required by robust, scalable enterprise applications including message brokering
-            and topic based subscription management.</p>
-        <p>WSO2 MB 2.0.1 supports WS-eventing. This sample shows you how to register a Web Service as an event receiver
-            and subscribe it to the message brokering server, together with how to publish messages to that subscription
-            you have made.</p>
-        <h2>Defining Web Service</h2>
-        <pre xml:space="preserve">
-
-         /**
-         * Licensed to the Apache Software Foundation (ASF) under one
-         * or more contributor license agreements.  See the NOTICE file
-         * distributed with this work for additional information
-         * regarding copyright ownership.  The ASF licenses this file
-         * to you under the Apache License, Version 2.0 (the
-         * "License"); you may not use this file except in compliance
-         * with the License.  You may obtain a copy of the License at
-         *
-         *    http://www.apache.org/licenses/LICENSE-2.0
-         *
-         * Unless required by applicable law or agreed to in writing,
-         * software distributed under the License is distributed on an
-         * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-         * KIND, either express or implied.  See the License for the
-         * specific language governing permissions and limitations
-         * under the License.
-         */
-
-
-            public class EventSinkService {
-                public void receive(String message){
-                    System.out.println("Got  the message ==> " + message);
-                }
-            }
-        </pre>
-        <h2>Host The Service And Start A Broker Client With Service URL</h2>
-        <p>Then this service has to be hosted in a server, and a broker client should be defined with that service url.</p>
-        <pre xml:space="preserve">
-
-            private AxisServer axisServer;
-            private BrokerClient brokerClient;
-            public void start() {
-                try {
-                    System.setProperty("javax.net.ssl.trustStore", "../../repository/resources/security/wso2carbon.jks");
-                    System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
-                    this.axisServer = new AxisServer();
-                    this.axisServer.deployService(EventSinkService.class.getName());
-                    this.brokerClient = new BrokerClient("https://localhost:9443/services/EventBrokerService", "admin", "admin");
-                    // give time to start the simple http server
-                    try {
-                    Thread.sleep(2000);
-                    } catch (InterruptedException e) {
-                    }
-                } catch (AxisFault axisFault) {
-                    System.out.println("Can not start the server");
-                } catch (AuthenticationExceptionException e) {
-                    e.printStackTrace();
-                }
-            }
-        </pre>
-        <h2>Subscribe The Service To Receive Events</h2>
-        <p>Now we have to subscribe the above service to the broker to receive events. For that we use a "topic". Broker
-            client implementation allows you to subscribe a service to a topic in Message Broker. Here a topic named
-            "foo/bar" is used.</p>
-        <pre xml:space="preserve">
-
-            public String subscribe() {
-                // set the properties for ssl
-                try {
-                    return this.brokerClient.subscribe("foo/bar" , "http://localhost:6060/axis2/services/EventSinkService/receive");
-                } catch (BrokerClientException e) {
-                    e.printStackTrace();
-                }
-                return null;
-            }
-        </pre>
-        <h2>Publish Messages </h2>
-        <p>When messages or events are published to the topic in message broker, it will be received by the web service.</p>
-        <pre xml:space="preserve">
-
-            public void publish(){
-                try {
-                    this.brokerClient.publish("foo/bar", getOMElementToSend());
-                } catch (AxisFault axisFault) {
-                    axisFault.printStackTrace();
-                }
-            }
-        </pre>
-        <p>As the service only doing flusing the message to the console, you should see the message getting printed in the console.</p>
-        <p>The full sample code will be like following.</p>
-        <pre xml:space="preserve">
-
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import org.apache.axiom.om.OMAbstractFactory;
-import org.apache.axiom.om.OMElement;
-import org.apache.axiom.om.OMFactory;
-import org.apache.axiom.om.OMNamespace;
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.engine.AxisServer;
-import org.wso2.carbon.event.client.broker.BrokerClient;
-import org.wso2.carbon.event.client.broker.BrokerClientException;
-import org.wso2.carbon.event.client.stub.generated.authentication.AuthenticationExceptionException;
-import java.rmi.RemoteException;
-            public class PubSubClient {
-                private AxisServer axisServer;
-                private BrokerClient brokerClient;
-                public void start() {
-                    try {
-                        System.setProperty("javax.net.ssl.trustStore", "../../repository/resources/security/wso2carbon.jks");
-                        System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
-                        this.axisServer = new AxisServer();
-                        this.axisServer.deployService(EventSinkService.class.getName());
-                        this.brokerClient = new BrokerClient("https://localhost:9443/services/EventBrokerService", "admin", "admin");
-                        // give time to start the simple http server
-                        try {
-                            Thread.sleep(2000);
-                        } catch (InterruptedException e) {
-                        }
-                    } catch (AxisFault axisFault) {
-                        System.out.println("Can not start the server");
-                    } catch (AuthenticationExceptionException e) {
-                        e.printStackTrace();
-                    }
-                }
-                public String subscribe() {
-                    // set the properties for ssl
-                    try {
-                        return this.brokerClient.subscribe("foo/bar" , "http://localhost:6060/axis2/services/EventSinkService/receive");
-                    } catch (BrokerClientException e) {
-                        e.printStackTrace();
-                    }
-                    return null;
-                }
-                public void publish(){
-                    try {
-                        this.brokerClient.publish("foo/bar", getOMElementToSend());
-                    } catch (AxisFault axisFault) {
-                        axisFault.printStackTrace();
-                    }
-                }
-                public void unsubscribe(String subscriptionID){
-                    try {
-                        this.brokerClient.unsubscribe(subscriptionID);
-                    } catch (RemoteException e) {
-                        e.printStackTrace();
-                    }
-                }
-                public void stop(){
-                    try {
-                        this.axisServer.stop();
-                    } catch (AxisFault axisFault) {
-                        axisFault.printStackTrace();
-                    }
-                }
-                public static void main(String[] args) {
-                    PubSubClient pubSubClient = new PubSubClient();
-                    pubSubClient.start();
-                    String subscriptionId = pubSubClient.subscribe();
-                    pubSubClient.publish();
-                    try {
-                        Thread.sleep(5000);
-                    } catch (InterruptedException e) {}
-                    pubSubClient.unsubscribe(subscriptionId);
-                    pubSubClient.stop();
-                }
-                private OMElement getOMElementToSend() {
-                    OMFactory omFactory = OMAbstractFactory.getOMFactory();
-                    OMNamespace omNamespace = omFactory.createOMNamespace("http://ws.sample.org", "ns1");
-                    OMElement receiveElement = omFactory.createOMElement("receive", omNamespace);
-                    OMElement messageElement = omFactory.createOMElement("message", omNamespace);
-                    messageElement.setText("Test publish message");
-                    receiveElement.addChild(messageElement);
-                    return receiveElement;
-                }
-}
-        </pre>
-        <p>Note: As you might have already comprehended WSO2 MB should be running when running the sample.</p>
-    </body>
-</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/samples_index.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/samples_index.xml b/products/cloud_controller/docs/xdoc/samples_index.xml
deleted file mode 100644
index 27f262d..0000000
--- a/products/cloud_controller/docs/xdoc/samples_index.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-        <title>
-            WSO2 MB - Samples Guide Index
-        </title>
-        <link href="css/mb-docs.css" rel="stylesheet"/>
-        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
-              media="all"/>
-    </head>
-
-    <body>
-        [
-        <a href="docs_index.html">Documentation Index</a>
-        ]
-        <h1>Running the WSO2 Message Broker Server (MB) Samples</h1>
-
-        <h2>
-            <a name="TOC">Table of Contents</a>
-        </h2>
-
-        <div class="section-content">
-            <ul>
-                <li>
-                    <a href="samples_index.html#Overview">Overview</a>
-                </li>
-                <li>
-                    <a href="samples/jms_queue_sample.html">JMS Queue Sample</a>
-                </li>
-                <li>
-                    <a href="samples/jms_topic_sample.html">JMS Topic Sample</a>
-                </li>
-                <li>
-                    <a href="samples/jms_transport_sample.html">JMS Transport Sample</a>
-                </li>
-                <li>
-                    <a href="samples/web_service_client_sample.html">Web Service Eventing Sample</a>
-                </li>
-            </ul>
-        </div>
-        <h2 id="Overview">Overview</h2>
-        <p>
-            This set of samples demonstrates the features in Message Broker product to use in
-            various situations. We will use JMS APIs with Message Broker to
-            publish,subscribe messages.
-        </p>
-        <p>
-            The source code used in the samples can be found in $CARBON_HOME/samples.
-        </p>
-
-        <p>
-            Please refers the
-            <a href="user_guide.html">User Guide</a>
-            to get familiar with Message Broker product.
-        </p>
-    </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/setting_java_home.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/setting_java_home.xml b/products/cloud_controller/docs/xdoc/setting_java_home.xml
deleted file mode 100644
index f686ece..0000000
--- a/products/cloud_controller/docs/xdoc/setting_java_home.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-        <title>How to setup JAVA_HOME environment variable in Windows</title>
-        <link href="css/mb-docs.css" rel="stylesheet"/>
-        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
-    </head>
-    <body>
-        <h2>How to setup JAVA_HOME environment variable in Windows</h2>
-
-        <p>Please follow the instructions to set up JAVA_HOME environment variable in your computer.
-            First find out the installation folder of Java development kit (JDK) in your machine.
-            Let's
-            assume it is installed in the folder "C:/j2sdk1.4.2"
-        </p>
-
-        <ol>
-            <li>Right click on the My Computer icon on your desktop and select properties</li>
-            <li>Click the Advanced Tab</li>
-            <li>Click the Environment Variables button</li>
-            <li>Under System Variable, click New</li>
-            <li>Enter the variable name as JAVA_HOME</li>
-            <li>Enter the variable value as the install path for the Development Kit</li>
-            <li>Click OK</li>
-            <li>Click Apply Changes</li>
-
-        </ol>
-
-        <img src="images/set-java-home.jpg" width="802" height="590" alt=""/>
-    </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/source-repository.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/source-repository.xml b/products/cloud_controller/docs/xdoc/source-repository.xml
deleted file mode 100644
index 212721f..0000000
--- a/products/cloud_controller/docs/xdoc/source-repository.xml
+++ /dev/null
@@ -1,137 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-        <title>
-            WSO2 MB - Source Repository
-        </title>
-        <link href="css/mb-docs.css" rel="stylesheet"/>
-        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
-              media="all"/>
-    </head>
-    <body>
-        [ <a href="docs_index.html"> Documentation Index </a> ]
-        <h1>WSO2 Message Broker Server  (MB) Source Repository</h1>
-        WSO2 MB is developed on top of the revolutionary WSO2 Carbon platform. You might need the
-        source of the Carbon platform as well apart from the MB source code. Please note that both
-        MB and the Carbon platform is open source and the code is available under the Apache
-        Software License v2.0.
-
-        <h2>Overview</h2>
-        <p>This project uses <a href="http://subversion.tigris.org/">Subversion</a>
-        to manage its source code. Instructions on Subversion use can be found at
-            <a href="http://svnbook.red-bean.com/">http://svnbook.red-bean.com/</a>.</p>
-
-        <h2>Source code of the MB 1.0.0 release</h2>
-        <p>The following is a link to the online source tag of the WSO2 MB 1.0.0 release.</p>
-        <div class="source">
-            <pre><a href="http://svn.wso2.org/repos/wso2/tags/MB/java/3.0.0/">http://svn.wso2.org/repos/wso2/tags/mb/java/1.0.0/</a></pre>
-        </div>
-        <p>The complete source including the carbon platform can be checked out anonymously from
-            SVN with this command:</p>
-        <div class="source">
-            <pre>$ svn checkout http://svn.wso2.org/repos/wso2/tags/mb/java/1.0.0 wso2mb</pre>
-        </div>
-
-        <p>This code base contains the MB product source code inside the directory "product" and
-        it also contains the source for the platform under the directory "carbon-pltform". Further
-        there will be a "build.sh" script to build the MB with the platform.</p>
-
-        <p>This script accepts any of the maven related system properties, but the property to skip
-         the tests has been shortened to "-ts", for example to build the MB with the platform on
-         skipping tests the command is;</p>
-
-        <div class="source">
-            <pre>$ ./build.sh -ts</pre>
-        </div>
-
-        <p>To build off-line with this build script you can pass in the "-o" option. If you just
-        need to build either the product or a specific part of the platform (for example Axis2)
-        you just need to traverse to that directory and use maven to build any of the projects.</p>
-
-        <h2>Source code of the WSO2 MB trunk</h2>
-        <p>Everyone can access the Subversion repository via HTTPS, but Committers must checkout
-            the Subversion repository via HTTPS.
-        </p>
-        <div class="source">
-            <pre>$ svn checkout  https://svn.wso2.org/repos/wso2/trunk/carbon/products/mb wso2mb</pre>
-        </div>
-
-        <p>The Carbon framework related source code can be checked out from the
-            following commands.</p>
-
-        <div class="source">
-            <pre>$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/core carbon</pre>
-        </div>
-
-        <div class="source">
-            <pre>$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/components carbon-components</pre>
-        </div>
-
-        <p>The Carbon project is the root project of the OSGi platform on which all the Java
-            product stack is built on top of, and the carbon-components contains all the components
-            not just MB specific components. So you obviously need to build just the set of
-            components required by the MB, which can be achieved through;
-        </p>
-
-        <div class="source">
-            <pre>$ mvn clean install -Dproduct=MB</pre>
-        </div>
-
-        <p>To commit changes to the repository, execute the following command (svn will prompt
-            you for your password)
-        </p>
-        <div class="source">
-            <pre>$ svn commit --username your-username -m "A message"</pre>
-        </div>
-
-        <h2>Access from behind a firewall</h2>
-        <p>For those users who are stuck behind a corporate firewall which is blocking http access
-            to the Subversion repository, you can try to access it via the developer connection:
-        </p>
-        <div class="source">
-            <pre>$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/products/mb wso2mb</pre>
-        </div>
-        <h2>Access through a proxy</h2>
-        <p>The Subversion client can go through a proxy, if you configure it to do so.
-            First, edit your "servers" configuration file to indicate which proxy to use. The
-            files location depends on your operating system. On Linux or Unix it is
-            located in the directory "~/.subversion". On Windows it is in "%APPDATA%\Subversion".
-            (Try "echo %APPDATA%", note this is a hidden directory.)
-        </p>
-        <p>There are comments in the file explaining what to do. If you don't have that file, get
-            the latest Subversion client and run any command; this will cause the configuration
-            directory and template files to be created.
-        </p>
-        <p>Example : Edit the 'servers' file and add something like :</p>
-        <div class="source">
-            <pre>[global]
-http-proxy-host = your.proxy.name
-http-proxy-port = 3128
-            </pre>
-        </div>
-    </body>
-</html>
-      

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/user_guide.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/user_guide.xml b/products/cloud_controller/docs/xdoc/user_guide.xml
deleted file mode 100644
index 972d78f..0000000
--- a/products/cloud_controller/docs/xdoc/user_guide.xml
+++ /dev/null
@@ -1,417 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-        <title>WSO2 MB - User Guide</title>
-        <link href="css/mb-docs.css" rel="stylesheet"/>
-        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
-              media="all"/>
-    </head>
-
-    <body>
-        <p>[<a href="docs_index.html">Documentation Index</a>]
-        </p>
-        <h1>WSO2 Message Broker(MB) User Guide</h1>
-
-        <p>The goal of this guide is to provide guidelines to be followed
-            in order to get familiar with WSO2 Message Broker and the procedure
-            of using the features provided by the product.
-        </p>
-
-        <h2>Contents</h2>
-
-        <div class="toc">
-            <ul>
-                <li>
-                    <a href="#Introduction">Introduction to Message Broker</a>
-                </li>
-                <!--li><a href="#Sample">Stock Quote Sample</a> </li-->
-                <li>
-                    <a href="#References">References</a>
-                </li>
-            </ul>
-        </div>
-
-        <h2 id="Introduction">Introduction to Message Broker</h2>
-        <p>This gives a brief introduction of how message broker can be used
-            in publishing and receiving messages.
-        </p>
-
-        <p>
-            WSO2 Message Broker is basically consist of two major features.They are:
-        </p>
-        <ul>
-            <li>Pub/ Sub Feature</li>
-            <li>Message Broker Clustering feature</li>
-        </ul>
-
-        <h3>
-            Pub/Sub Feature
-        </h3>
-
-        <p>This feature of the WSO2 Message Broker provides the facility for users to route messages
-            to the required users. If we are explaining deeply,
-            there is a concept called 'Topic' and message routing is done on the base of that
-            topic. When a particular user want to publish
-            a message to a particular sector , he creates a topic with a name related to the
-            messages that he is going to pulish. As an example, if a particular
-            user want to publish messages related with sports news, he can create a topic with the
-            name 'SportsNews' and publish the messages to that topic.
-        </p>
-
-        <p>
-            When another particular user is interested on any topic in the topic tree, he can
-            subscribe to that topic and receive messages which are published
-            to that topic by the publisher. As in the above example, when a particular user is
-            interested on sports, he can subscribed to the topic 'SportsNews'
-            and get messages published to that topic.
-        </p>
-
-        <p>
-            <img src="images/MessageFlowDiagram.jpg"
-                 alt="Pub/Sub Message Flow"/>
-        </p>
-        <h3>How to use Pub/Sub Feature</h3>
-
-        <p>In WSO2 Message Broker , Pub/Sub feature is one of the two major features. Inorder to use
-            this feature , it is needed to create a Topic and subscribe to it.
-        </p>
-        <ul>
-            <li>Step 01</li>
-
-            <p>Login to the server</p>
-
-            <li>Step 02</li>
-
-            <p>Click on the 'Add' menu item under the 'Topics' menu to create a topic. To create a
-                topic , the only thing needed to be provided is the name of the topic.
-            </p>
-
-            <p>
-                <img src="images/topic_add.png"
-                     alt="Add Topic"/>
-            </p>
-
-            <li>Step 03</li>
-
-            <p>When you add a topic using the 'add' button , you will be directed to the 'Topic
-                Browser' page and you will see the topic tree.
-            </p>
-            <p>
-                <img src="images/topic_browser.png"
-                     alt="Topic Browser"/>
-            </p>
-
-            <p>Once you click on a topic in the topic tree , it will display all the available
-                operations on a topic.
-                Once you click on the 'Help' link on that page you will find the information on all
-                the operations available on the topic
-            </p>
-
-            <p>If you click on details link , you will find following page.</p>
-
-            <p>
-                <img src="images/topic_details.png"
-                     alt="Topic Details"/>
-            </p>
-
-            <li>Step 04</li>
-
-            <p>Once you click on the topic , you will get the following page.</p>
-            <p>
-                <img src="images/topic_browser_clicked.png"
-                     alt="Topic Details"/>
-            </p>
-
-
-            <p>Once you click on 'Subscribe' link on the above page, you will be directed to Add
-                subscriptions page.
-            </p>
-
-            <p>
-                <img src="images/topic_addSubscription.png"
-                     alt="Subscribe to topics"/>
-            </p>
-
-            <p>You can create a subscription to the topic by provide the information on subscription
-            </p>
-            <li>Topic</li>
-            <p>User does not need to specify the topic here , since its automatically sets up.</p>
-
-            <li>Subscription Mode</li>
-
-            <p>This is the mode of the subscription and there are three modes.</p>
-
-            <p>The default mode for the subscription is "Topic Only". With this mode , user creates
-                the
-                subscription only to the topic. In this mode subscribers only receive events which
-                are published only to the that topic.
-            </p>
-
-            <p>Next mode of subscription is "Topic and Immediate child". In this mode subscribers of
-                the topic
-                receives events published not only the specified topic but also to the immediate
-                child of that topic.
-            </p>
-
-            <p>Last mode of subscription is "Topic and Children". In this mode subscribers of the
-                specified
-                topic will receive events published to the specified topic and all its children
-            </p>
-
-            <li>Event Sink URL</li>
-            <p>This is the URL which the subscriber should provide to receive events published. When
-                events are
-                published to the topic, they are sent to the specified URL here.
-            </p>
-
-            <li>Expiration Time</li>
-            <p>Here user can specify the expiration time of the subscription. This is not a required
-                parameter and
-                if user leave it alone, subscription will never be expired.
-            </p>
-
-            <p>Note : You can create a simple axis2service and use it's URL as the EventSinkURL .
-                Inorder to create an axis2service ,
-            </p>
-            <ul>
-                <li>Browse the location : /wso2mb-1.0.0/samples/services/EventSinkService
-                </li>
-                <li>Type the command : ant</li>
-
-                <P>(This ant task will create a simple axis2service 'EventSinkService' and deploy it
-                    in the location :
-                    /wso2mb-1.0.0/repository/deployment/server/axis2services/ )
-                </P>
-            </ul>
-
-            <p>Now you can create a subscription by providing the Event Sink URL :
-                https://localhost:9443/services/EventSinkService/getOMElement
-            </p>
-
-            <p>Click on the button 'Subscribe' and it will create the subscription and list it in
-                the subscription table of that topic in topic details page.
-            </p>
-
-
-            <p>
-                <img src="images/topic_subscriptionDetails.png"
-                     alt="Topic subscription details"/>
-            </p>
-
-
-            <li>Step 05</li>
-
-            <p>At the end of the subscribing process , you can test whether the topic and the
-                subscriptions created are working fine.
-                In order to do that what you have to do is type a XML message in the provided text
-                box and under the 'Publish' section
-                of Topic Details page and click on 'Publish button'
-            </p>
-
-            <p>Then check the command line and you will be able to see the XML Message that you
-                types in the provided space.
-            </p>
-            <h3>Clustering support of WSO2 Message Broker</h3>
-            <p>
-            	WSO2 MB  is now supporting clustering. That means high availability and failover support
-            	is there. You can setup several Message Broker nodes and configure them up to work as a cluster 
-            	so that if one node is down message routing and handling will be taken over by other nodes in the cluster.
-            	At the same time overhead of routing messages is distributed among the Message Broker cluster nodes so
-            	that overall performance of Message Brokering goes up. Thus, having a lot of publishers and subscribers will
-            	not be a problem anymore as there is no significant performance degrade with the number of publishers, 
-            	subscribers and exchanges. Scalability is beyond you with WSO2 MB with combined resources you have. 
-            	Fault tolerance brings you great benefits in deployment apart from the performance gain. 
-            </p>
-
-            <p>
-                There are several cluster deployment models supported by WSO2 Message Broker. Read on them at <a href="deployment_guide.html">
-                Deployment guide
-                </a>
-                and choose the suitable deployment pattern for your use-case and enable clustering as described there.
-            </p>
-
-            <li>   Sample Scenario - This sample is based on Clustering Scenario 1, <a href="cluster_scenario_01.html">'Starting external cassandra server
-                   and zoo keeper server and point all broker nodes to them'</a>:
-                <ul>
-                    <li>
-                        In your local machine setup two WSO2 MB instances running with external Cassandra server and Zookeeper server
-                        (note that you can setup Cassandra and Zookeeper to run on the same machine). In order to do that in the second WSO2 MB
-                        instance define a port offset changing &lt;MB Home&gt;/repository/conf/carbon.xml (eg: set port offset to 1).
-                    </li>
-                    <li>
-                        We will call first broker instance MB1 (runs on port 5672) and the other MB2 (runs on port 5673).
-                    </li>
-                    <li>
-                        Using following JMS client make subscriptions to a queue "myQueue" at MB1.
-                        <pre xml:space="preserve">
-
-                        import javax.jms.*;
-                        import javax.naming.InitialContext;
-                        import javax.naming.NamingException;
-                        import java.util.Properties;
-
-                        public class ConsumeClient {
-                            public void consumeMessage() {
-
-                                Properties initialContextProperties = new Properties();
-                                initialContextProperties.put("java.naming.factory.initial",
-                                        "org.wso2.andes.jndi.PropertiesFileInitialContextFactory");
-                                String connectionString = "amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5672'";
-                                initialContextProperties.put("connectionfactory.qpidConnectionfactory", connectionString);
-                                initialContextProperties.put("queue.myQueue", "myQueue");
-
-                                try {
-                                    InitialContext initialContext = new InitialContext(initialContextProperties);
-                                    QueueConnectionFactory queueConnectionFactory
-                                            = (QueueConnectionFactory) initialContext.lookup("qpidConnectionfactory");
-                                    QueueConnection queueConnection = queueConnectionFactory.createQueueConnection();
-                                    queueConnection.start();
-
-                                    QueueSession queueSession = queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
-                                    Destination destination = (Destination) initialContext.lookup("myQueue");
-
-                                    MessageConsumer messageConsumer = queueSession.createConsumer(destination);
-
-                                    TextMessage textMessage = (TextMessage) messageConsumer.receive();
-                                    System.out.println("Got message ==> " + textMessage.getText());
-
-                                    try {
-                                        Thread.sleep(9000);
-                                    } catch (Exception e) {
-                                        System.out.println(e);
-                                    }
-
-                                    messageConsumer.close();
-
-                                    queueSession.close();
-                                    queueConnection.stop();
-                                    queueConnection.close();
-
-                                } catch (NamingException e) {
-                                    e.printStackTrace();
-                                } catch (JMSException e) {
-                                    e.printStackTrace();
-                                }
-
-
-                            }
-
-                            public static void main(String[] args) {
-                                ConsumeClient sendConsumeClient = new ConsumeClient();
-                                sendConsumeClient.consumeMessage();
-                            }
-                        }
-
-                        </pre>
-
-                    </li>
-                    <li>
-                        Now using Message Sender described below, send a message to "myQueue" at MB2.
-
-                        <pre xml:space="preserve">
-
-                        import javax.jms.*;
-                        import javax.naming.InitialContext;
-                        import javax.naming.NamingException;
-                        import java.util.Properties;
-
-                        public class SendClient {
-                            public static void main(String[] args) {
-                                SendClient sendClient = new SendClient();
-                                sendClient.sendMessage();
-                            }
-
-                            public void sendMessage() {
-
-                                Properties initialContextProperties = new Properties();
-                                initialContextProperties.put("java.naming.factory.initial",
-                                        "org.wso2.andes.jndi.PropertiesFileInitialContextFactory");
-                                String connectionString = "amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5673'";
-                                initialContextProperties.put("connectionfactory.qpidConnectionfactory", connectionString);
-                                initialContextProperties.put("queue.myQueue", "myQueue");
-
-
-                                try {
-                                    InitialContext initialContext = new InitialContext(initialContextProperties);
-                                    QueueConnectionFactory queueConnectionFactory
-                                            = (QueueConnectionFactory) initialContext.lookup("qpidConnectionfactory");
-
-                                    QueueConnection queueConnection = queueConnectionFactory.createQueueConnection();
-                                    queueConnection.start();
-
-                                    QueueSession queueSession = queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
-
-                                    TextMessage textMessage = queueSession.createTextMessage();
-                                    textMessage.setText("Test message");
-                                    System.out.println("Sending Message : " + textMessage.getText().length());
-
-                                    // Send message
-                                    Queue queue = (Queue) initialContext.lookup("myQueue");
-
-                                    QueueSender queueSender = queueSession.createSender(queue);
-                                    queueSender.send(textMessage);
-
-                                    // Housekeeping
-                                    queueSender.close();
-                                    queueSession.close();
-                                    queueConnection.stop();
-                                    queueConnection.close();
-
-                                } catch (NamingException e) {
-                                    e.printStackTrace();
-                                } catch (JMSException e) {
-                                    e.printStackTrace();
-                                }
-
-                            }
-                        }
-                        </pre>
-                    </li>
-                    <li>
-                        Now you can run the consumer to receive messages from MB1. You will notice that the message you have
-                        sent to MB2 can be received by MB1. Even if MB2 instance was destroyed message will be consumed to the consumer.
-                    </li>
-                </ul>
-            </li>
-            <li>
-                <p>Following is a typical deployment diagram for a Message Broker cluster setup.</p>
-
-                <img src="images/Deployment_Diagram.jpg"
-                     alt="A typical cluster deployment"/>
-            </li>
-        </ul>
-        <h2 id="References">References</h2>
-        <ul>
-            <li>
-                <a href="http://zookeeper.apache.org/">Apache Zookeeper
-                </a>
-            </li>
-            <li>
-                <a href="http://cassandra.apache.org/">Apache Cassandra
-                </a>
-            </li>
-        </ul>
-
-    </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/bottom.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/bottom.gif b/products/cloud_controller/modules/distribution/lib/home/images/bottom.gif
deleted file mode 100644
index 5679266..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/bottom.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/content-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/content-bg.gif b/products/cloud_controller/modules/distribution/lib/home/images/content-bg.gif
deleted file mode 100644
index 6d0a579..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/content-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/favicon.ico
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/favicon.ico b/products/cloud_controller/modules/distribution/lib/home/images/favicon.ico
deleted file mode 100644
index f7b2bbf..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/favicon.ico and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/feature-01-icon.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/feature-01-icon.gif b/products/cloud_controller/modules/distribution/lib/home/images/feature-01-icon.gif
deleted file mode 100644
index b4ea8cd..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/feature-01-icon.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/feature-02-icon.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/feature-02-icon.gif b/products/cloud_controller/modules/distribution/lib/home/images/feature-02-icon.gif
deleted file mode 100644
index 8754de1..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/feature-02-icon.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/feature-03-icon.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/feature-03-icon.gif b/products/cloud_controller/modules/distribution/lib/home/images/feature-03-icon.gif
deleted file mode 100644
index d81f1fe..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/feature-03-icon.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/intro-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/intro-bg.gif b/products/cloud_controller/modules/distribution/lib/home/images/intro-bg.gif
deleted file mode 100644
index a38a0df..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/intro-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/logo.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/logo.gif b/products/cloud_controller/modules/distribution/lib/home/images/logo.gif
deleted file mode 100644
index ee9beef..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/powered-logo.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/powered-logo.gif b/products/cloud_controller/modules/distribution/lib/home/images/powered-logo.gif
deleted file mode 100644
index fb478bf..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/powered-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/register.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/register.gif b/products/cloud_controller/modules/distribution/lib/home/images/register.gif
deleted file mode 100644
index 98c5362..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/register.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/sign-in.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/sign-in.gif b/products/cloud_controller/modules/distribution/lib/home/images/sign-in.gif
deleted file mode 100644
index 9e992cc..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/sign-in.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/title-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/title-bg.gif b/products/cloud_controller/modules/distribution/lib/home/images/title-bg.gif
deleted file mode 100644
index 2d539a7..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/title-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/images/top.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/images/top.gif b/products/cloud_controller/modules/distribution/lib/home/images/top.gif
deleted file mode 100644
index 9ed482c..0000000
Binary files a/products/cloud_controller/modules/distribution/lib/home/images/top.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/index.html
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/index.html b/products/cloud_controller/modules/distribution/lib/home/index.html
deleted file mode 100644
index cc82a56..0000000
--- a/products/cloud_controller/modules/distribution/lib/home/index.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-	<head>  <script type="text/javascript" src="../../carbon/googleanalytics/js/jquery.min.js"></script>
-                <script type="text/javascript" src="../../carbon/googleanalytics/js/googleAnalyticsProcessor.js"></script>
-		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
-		<title>StratosLive</title>
-		<link href="style.css" rel="stylesheet" type="text/css" media="all" />
-		<link rel="icon" href="images/favicon.ico" type="image/x-icon"/>
-		<meta name="description" content="WSO2 is the lean enterprise middleware company, delivering the only complete open source enterprise SOA middleware stack available internally and in the cloud." />
-		<meta name="keywords" content="cloud, platform-as-a-service, PaaS" />
-	</head>
-
-	<body>
-		<div id="main-content">
-			<div id="header">
-				<div class="logo"><img src="images/logo.gif"/></div>
-			</div>
-			<div id="content">
-				<div class="intro">
-					<div class="register">
-						<a href="https://stratoslive.wso2.com/carbon/tenant-register/select_domain.jsp"><img src="images/register.gif"/></a>
-						<a href="../carbon/sso-acs/redirect_ajaxprocessor.jsp"><img src="images/sign-in.gif"/></a>
-					</div>
-					<p>WSO2 MB brings Event Driven Architecture capabilities to WSO2 Carbon platform. It provides WS-Eventing, JMS and SQS interfaces to client. It uses Apache Qpid as the underling broker which supports AMQP.</p>
-				</div>
-				<div class="clear"></div>
-				<div class="features">
-					<h2>Features</h2>
-					<div class="feature feature-left">
-						<img src="images/feature-01-icon.gif"/>
-						<h2>Bring CEP to SOA</h2>
-						<p>
-							Bring CEP to SOA by processing XML events and produce results as XML events.
-						</p>
-					</div>
-					<div class="feature">
-						<img src="images/feature-02-icon.gif"/>
-						<h2>Registry Storage</h2>
-						<p>
-							Ability to define different event streams, queries and out put streams and store them in the registry as a bucket.
-						</p>
-					</div>
-					<div class="feature">
-					 	<img src="images/feature-03-icon.gif"/>
-						<h2>Esper and Fusion</h2>
-						<p>
-							Support Esper and fusion back end runtimes.
-						</p>
-					</div>
-					<div class="clear"></div>				
-				</div>
-				<div class="clear"></div>
-			</div>
-			<div id="footer">
-				<div class="footer-links">
-					<a href="http://www.wso2.com/cloud/services/terms-of-use" target="_blank">Terms of Service</a> | <a href="http://www.wso2.com/cloud/services/privacy-policy" target="_blank">Privacy Policy</a> | <a href="http://www.wso2.com/cloud/services/support" target="_blank">Support</a>
-				</div>
-				<div class="powered">
-						<span>Powered by</span><img src="images/powered-logo.gif" alt="ESB"/>
-					</div>
-					<span class="copyright">&copy;stratoslive.wso2.com copyright 2010-2011 WSO2, Inc. </span>
-				</div>
-			</div>
-		</div>
-	</body>
-
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/lib/home/style.css
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/lib/home/style.css b/products/cloud_controller/modules/distribution/lib/home/style.css
deleted file mode 100644
index f91a662..0000000
--- a/products/cloud_controller/modules/distribution/lib/home/style.css
+++ /dev/null
@@ -1,46 +0,0 @@
-body { font-family: "Calibri","Lucida Grande","Lucida Sans","Microsoft Sans Serif","Lucida Sans Unicode","Verdana","Sans-serif","trebuchet ms"; font-size: .85em; line-height: 135%; color: #434343; margin: 0px; padding: 0px; background-color: #94C8EC;}
-
-p { }
-
-td { }
-
-a:link { text-decoration: none; }
-
-a:visited { text-decoration: none; }
-
-a:hover { text-decoration: none; }
-
-a:active { text-decoration: none; }
-
-a img { border: 0px; }
-div
-.clear { clear: both; }
-
-div#main-content { width: 960px; margin: auto; background-image: url(images/top.gif); background-repeat: no-repeat; background-position: left top; }
-
-div#header { height: 125px; }
-div.logo { float: left; margin-top: 35px; }
-div.sign-in { float: right;  margin-top: 35px; }
-
-div#content { background-color: #ffffff; background-image: url(images/content-bg.gif); background-repeat: repeat-y; background-position: left top; }
-
-div.intro { padding: 35px; padding-top: 10px; padding-bottom: 20px; font-size: 125%; line-height: 130%; float: left; background-image: url(images/intro-bg.gif); background-position: left bottom; background-repeat: no-repeat; }
-div.intro p { margin-top: 0px; margin-bottom: 0px; }
-
-div.register { float: right; margin-left: 40px; margin-top: 0px; margin-right: 0px; width: 400px; text-align: center;}
-div.register a img { margin-bottom: 7px; }
-div.register a:hover img { opacity:0.7;filter:alpha(opacity=70) }
-
-div.features { margin-top: 20px; }
-div.features h2 { margin-top: 0px; margin-bottom: 0px; font-size: 24px; color: #003A63; margin-left: 35px; margin-right: 35px; border-bottom: solid 0px #79BDE8; padding-bottom: 10px; background-image: url(images/title-bg.gif); background-repeat: no-repeat; background-position: left bottom; }
-div.feature { float: left; width: 230px; margin-left: 30px; margin-top: 7px; padding: 20px; text-align: left; }
-div.feature img { float: left; margin-right: 10px; width: 64px; }
-div.feature h2 { margin-top: 0px; margin-bottom: 7px; color: #0499CC; font-size: 140%; line-height: 110%; font-weight: normal; border-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-bottom: 0px; background-image: none; }
-div.feature p { margin-top: 0px; padding-top: 0px; }
-div.feature-left { margin-left: 41px; }
-
-div#footer { height: 80px; background-image: url(images/bottom.gif); background-position: left top; background-repeat: no-repeat; padding-top: 25px; }
-div#footer div.powered { color: #333333; float: right; font-size: 85%; margin-right: 10px; }
-div#footer div.powered span { float: left; line-height: 23px; margin-right: 5px; }
-div.footer-links { padding-bottom: 5px; padding-left: 10px; border-bottom: solid 1px #4E84C4; margin-bottom: 10px; color: #4E84C4; }
-div#footer span.copyright { font-size: 90%; padding-left: 10px; }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/pom.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/pom.xml b/products/cloud_controller/modules/distribution/pom.xml
deleted file mode 100644
index fc1c515..0000000
--- a/products/cloud_controller/modules/distribution/pom.xml
+++ /dev/null
@@ -1,273 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-    <parent>
-        <groupId>org.apache.stratos.cc</groupId>
-        <artifactId>cc-parent</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
-        <relativePath>../../pom.xml</relativePath>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>apache-stratos-cc</artifactId>
-    <packaging>pom</packaging>
-    <name>Apache Stratos - Cloud Controller - Distribution</name>
-    <url>http://apache.org</url>
-    <description>Apache Stratos - Cloud Controller - Distribution</description>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.rampart</groupId>
-            <artifactId>rampart</artifactId>
-            <version>${rampart.mar.version}</version>
-            <type>mar</type>
-        </dependency>
-        <dependency>
-            <groupId>slf4j.wso2</groupId>
-            <artifactId>slf4j</artifactId>
-            <version>${slf4j.wso2.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>log4j</groupId>
-            <artifactId>log4j</artifactId>
-            <version>1.2.17</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.andes.wso2</groupId>
-            <artifactId>andes-client</artifactId>
-	    <version>0.13.wso2v6</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.geronimo.specs.wso2</groupId>
-            <artifactId>geronimo-jms_1.1_spec</artifactId>
-	    <version>1.1.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.event.client</artifactId>
-	    <version>4.1.0</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.event.client.stub</artifactId>
-	     <version>4.1.0</version>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-dependency-plugin</artifactId>
-                <version>2.0-alpha-4</version>
-                <inherited>false</inherited>
-                <executions>
-                    <execution>
-                        <id>unpack-wso2carbon</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>unpack</goal>
-                        </goals>
-                        <configuration>
-                            <artifactItems>
-                                <artifactItem>
-                                    <groupId>org.wso2.carbon</groupId>
-                                    <artifactId>wso2carbon-core</artifactId>
-                                    <version>${carbon.kernel.version}</version>
-                                    <type>zip</type>
-                                    <overWrite>true</overWrite>
-                                    <outputDirectory>target</outputDirectory>
-                                </artifactItem>
-                            </artifactItems>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <version>1.1</version>
-                <executions>
-                    <execution>
-                        <id>extract-docs-from-components</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                        <configuration>
-                            <tasks>
-                                <property name="tempdir" value="target/docs-temp"/>
-                                <mkdir dir="${tempdir}"/>
-                                <unzip dest="${tempdir}">
-                                    <fileset dir="target">
-                                        <include name="apache-stratos-cc-${project.version}.zip"/>
-                                    </fileset>
-                                </unzip>
-                                <copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/"
-                                      overwrite="false">
-                                    <fileset
-                                            dir="${tempdir}/apache-stratos-cc-${project.version}/repository/components/">
-                                    </fileset>
-                                </copy>
-                                <unzip dest="${tempdir}">
-                                    <fileset
-                                            dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/">
-                                        <include name="*.ui*.jar"/>
-                                    </fileset>
-                                </unzip>
-                                <move todir="${tempdir}/web/" includeemptydirs="false">
-                                    <fileset dir="${tempdir}/web/">
-                                        <exclude name="**/yui/**"/>
-                                        <!--<exclude name="**/tenant-login/**"/>-->
-                                        <exclude name="**/codepress/**"/>
-                                        <exclude name="**/editarea/**"/>
-                                        <exclude name="**/ajax/**"/>
-                                        <exclude name="**/WEB-INF/**"/>
-                                        <include name="**/*.html"/>
-                                    </fileset>
-                                    <mapper type="glob" from="*.html" to="*.xml"/>
-                                </move>
-                                <mkdir dir="src/site/xdoc"/>
-                                <copy todir="src/site/xdoc" overwrite="false"
-                                      includeemptydirs="false">
-                                    <fileset dir="${tempdir}/web">
-                                        <exclude name="**/yui/**"/>
-                                        <exclude name="**/codepress/**"/>
-                                        <exclude name="**/editarea/**"/>
-                                        <exclude name="**/ajax/**"/>
-                                        <exclude name="**/WEB-INF/**"/>
-                                        <exclude name="**/*.html"/>
-                                        <exclude name="**/*.js"/>
-                                        <exclude name="**/*.jsp"/>
-                                        <exclude name="**/*.xsl"/>
-                                        <exclude name="*.*"/>
-                                    </fileset>
-                                </copy>
-                                <copy todir="src/site" overwrite="false" includeemptydirs="false">
-                                    <fileset dir="../../docs">
-                                    </fileset>
-                                </copy>
-                                <copy todir="target/site/" overwrite="false"
-                                      includeemptydirs="false">
-                                    <fileset dir="src/site/xdoc/">
-                                        <include name="**/images/*.*"/>
-                                    </fileset>
-                                </copy>
-                                <!--<delete dir="${tempdir}"/>-->
-                            </tasks>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>clean_target</id>
-                        <phase>install</phase>
-                        <configuration>
-                            <tasks>
-                                <delete dir="target/archive-tmp"/>
-                                <delete dir="target/dependency-maven-plugin-markers"/>
-                                <delete dir="target/maven-archiver"/>
-                                <delete dir="target/wso2carbon-core-${carbon.kernel.version}"/>
-                                <delete dir="target/sources"/>
-                                <delete dir="target/site"/>
-				<delete dir="src/site"/>
-                            </tasks>
-                        </configuration>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-site-plugin</artifactId>
-                <version>3.0</version>
-                <configuration>
-                    <reportPlugins>
-                        <plugin>
-                            <groupId>org.apache.maven.plugins</groupId>
-                            <artifactId>maven-project-info-reports-plugin</artifactId>
-                            <version>2.4</version>
-                            <reportSets>
-                                <reportSet>
-                                    <reports>
-                                        <report>index</report>
-                                    </reports>
-                                </reportSet>
-                            </reportSets>
-                        </plugin>
-                    </reportPlugins>
-                </configuration>
-                <executions>
-                    <execution>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>site</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-assembly-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>pre_dist</id>
-                        <phase>test</phase>
-                        <goals>
-                            <goal>attached</goal>
-                        </goals>
-                        <configuration>
-                            <filters>
-                                <filter>${basedir}/src/main/assembly/filter.properties</filter>
-                            </filters>
-                            <descriptors>
-                                <descriptor>src/main/assembly/dist.xml</descriptor>
-                            </descriptors>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>dist</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>attached</goal>
-                        </goals>
-                        <configuration>
-                            <filters>
-                                <filter>${basedir}/src/main/assembly/filter.properties</filter>
-                            </filters>
-                            <descriptors>
-                                <descriptor>src/main/assembly/bin.xml</descriptor>
-                                <!--descriptor>src/main/assembly/src.xml</descriptor>
-                                <descriptor>src/main/assembly/docs.xml</descriptor-->
-                            </descriptors>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
-</project>


[42/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/admin_guide.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/admin_guide.xml b/products/cloud_controller/docs/xdoc/admin_guide.xml
deleted file mode 100644
index 3b55765..0000000
--- a/products/cloud_controller/docs/xdoc/admin_guide.xml
+++ /dev/null
@@ -1,485 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-  <title>WSO2 MB - System Administration Guide</title>
-  <link href="css/mb-docs.css" rel="stylesheet" />
-  <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
-  media="all" />
-</head>
-
-<body>
-<h2>WSO2 MB - System Administration Guide </h2>
-
-<h4>Contents </h4>
-
-<p>1.0 Introduction<br />
-2.0 Document Conventions<br />
-3.0 Getting WSO2 MB<br />
-4.0 Installing and Running WSO2 MB<br />
-4.1 Running the MB in Standalone Mode<br />
-4.2 Running MB Samples<br />
-6.0 Using the WSO2 MB Management Console<br />
-7.0 User Management<br />
-8.0 Setting Up Logging<br />
-9.0 Configuring the Underlying Axis2 Engine<br />
-10.0 Adding External Dependencies to the System<br />
-11.0 Registry Integration<br />
-11.1 Using the Embedded Registry<br />
-11.2 Using a Remote Registry<br />
-12.0 Setting Up Key Stores<br />
-13.0 Setting Up Host Names and Ports<br />
-</p>
-
-<h4>1.0 Introduction </h4>
-
-<p>WSO2 MB is an open source Message Broker solution.It is to be your Message
-Broker System. Our ultimate goal is to provide you a reliable Message
-Brokering System</p>
-
-
-<p>WSO2 MB is based on the revolutionary WSO2
-Carbon framework. WSO2 Carbon is an OSGi based middleware framework for SOA.
-Currently all WSO2 Java products are based on WSO2 Carbon including WSO2
-Governance Registry and WSO2 WSAS. Since MB is OSGi based some knowledge in
-OSGi would be helpful in administrating the WSO2 MB. </p>
-
-<p>This document explains how to get WSO2 MB and install it on a server. The
-latter sections of the document illustrates how to setup and configure various
-features of the WSO2 MB. </p>
-
-<h4>2.0 Document Conventions </h4>
-<ul>
-  <li>The phrase 'MB_HOME' refers to the directory in the file system where
-    WSO2 MB is installed</li>
-  <li>The phrase 'MB_SRC_HOME' refers to the directory in the file system
-    where WSO2 MB source distribution is installed</li>
-  <li>All file paths follow Unix/Linux conventions but they resemble Windows
-    file paths as well</li>
-</ul>
-
-<h4>3.0 Getting WSO2 MB </h4>
-
-<p>Binary distributions and source distributions of WSO2 MB can be downloaded
-free from the <a href="http://wso2.com/products/message-broker/">WSO2 MB project</a> home
-page in the <a href="http://wso2.org">WSO2 Oxygen Tank</a>. Before proceeding
-to the downloads page you will be asked to register on the WSO2 Oxygen Tank.
-Registration is free and optional however it is recommended that you sign up
-for an account right away since registered Oxygen Tank users get exclusive
-access to our support forums and tons of valuable content related to SOA and
-Web Services. </p>
-
-<p>Once you are on the downloads page click on the relevant links to download a
-binary distribution or a source distribution of the alpha release of
-the WSO2 MB.</p>
-
-<p>If you downloaded a source distribution of the MB you need to build the
-source to get the executable binary. WSO2 MB uses an <a
-href="http://maven.apache.org">Apache Maven2</a> based build system and
-therefore you need to first download and install Apache Maven2. Please refer
-Maven2 documentation on installing and configuring Apache Maven2. Also note
-that Apache Maven2 requires Java to run. Once Maven2 is properly configured
-extract the downloaded source distribution and change your working directory to
-the directory that is created. Then execute the command mvn clean install to
-run the builder. Once the build process is complete you can find the binary
-distribution archive in MB_SRC_HOME/modules/distribution/target directory. </p>
-
-<h4>4.0 Installing and Running WSO2 MB </h4>
-
-<p>To install the WSO2 MB simply extract the downloaded binary distribution
-archive. If you built WSO2 MB from source extract the archive created by the
-builder. We recommend installing WSO2 MB on a Unix/Linux system since that
-will enable you to get the maximum out of the MB. In order to be able to start
-WSO2 MB you first need Java 6 or higher. Having installed Java on your system
-please set the JAVA_HOME environment variable to point to the directory in
-which Java is installed. </p>
-
-<h5>4.1 Running WSO2 MB in Standalone Mode </h5>
-
-<p>Now you are all set to start WSO2 MB in the standalone mode. Go to
-MB_HOME/bin directory and if you are on Unix/Linux execute the stratos.sh
-shell script or if you are on Windows execute the stratos.bat batch file.
-This will start the MB and you can see the progress of the startup procedure
-on the console. Please note that server startup may take some time depending on
-the hardware configuration of your system. The first time startup can take up
-few additional seconds since some first time configuration logic is run by the
-MB. If the server started up cleanly you should get an output similar to the
-following on the console. </p>
-<pre>[2011-02-07 16:18:14,748]  INFO {org.wso2.carbon.server.Main} -  Initializing system...
-[2011-02-07 16:18:15,121]  INFO {org.wso2.carbon.server.TomcatCarbonWebappDeployer} -  Deployed Carbon webapp: StandardEngine[carbonEngine].StandardHost[defaulthost].StandardContext[/]
-[2011-02-07 16:18:20,721]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2 Carbon...
-[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System : Linux 2.6.32-27-generic, i386
-[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home        : /opt/softwares/jdk1.6.0_17/jre
-[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version     : 1.6.0_17
-[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM          : Java HotSpot(TM) Server VM 14.3-b01,Sun Microsystems Inc.
-[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home      : /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0
-[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir    : /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/tmp
-[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  User             : shammi, en-US, Asia/Colombo
-[2011-02-07 16:18:25,531]  INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -  Registry Mode    : READ-WRITE
-[2011-02-07 16:18:26,833]  INFO {org.apache.qpid.wso2.internal.QpidBundleActivator} -  Setting BundleContext in PluginManager
-[Broker] BRK-1006 : Using configuration : /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/conf/qpid/etc/config.xml
-Logging configuration error: unable to read file /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/conf/qpid/etc/log4j.xml
-Using the fallback internal log4j.properties configuration
-[2011-02-07 16:18:26,976]  INFO {org.apache.qpid.server.registry.ApplicationRegistry} -  Initialising Application Registry(org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry@1adff28):1
-[2011-02-07 16:18:27,008]  INFO {org.apache.qpid.server.plugins.PluginManager} -  Opened service trackers
-[2011-02-07 16:18:27,022]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Elements to lookup:
-[2011-02-07 16:18:27,022]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'queue'
-[2011-02-07 16:18:27,022]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'virtualhosts'
-[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'com'
-[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'common'
-[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'catalina'
-[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'package'
-[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'QPID_HOME'
-[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'line'
-[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'cache-directory'
-[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'security'
-[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'conf'
-[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'osgi'
-[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'wso2'
-[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'sun'
-[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'tomcat'
-[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'javax'
-[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'carbon'
-[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'file'
-[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'advanced'
-[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'path'
-[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'plugin-directory'
-[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'work'
-[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'shared'
-[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'os'
-[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'impl'
-[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'status-updates'
-[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'axis2'
-[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'heartbeat'
-[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'prefix'
-[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'wso2carbon'
-[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'connector'
-[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'java'
-[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'server'
-[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'components'
-[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'management'
-[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'user'
-[2011-02-07 16:18:27,038]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'amqj'
-[2011-02-07 16:18:27,038]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'log4j'
-[2011-02-07 16:18:27,042]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Elements to lookup:security
-[2011-02-07 16:18:27,042]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'msg-auth'
-[2011-02-07 16:18:27,042]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'principal-databases'
-[2011-02-07 16:18:27,042]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'jmx'
-[2011-02-07 16:18:27,047]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Elements to lookup:security.principal-databases
-[2011-02-07 16:18:27,047]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'principal-database'
-[2011-02-07 16:18:27,047]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Elements to lookup:security.jmx
-[2011-02-07 16:18:27,047]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'principal-database'
-[2011-02-07 16:18:27,047]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'access'
-[Broker] BRK-1001 : Startup : Version: 0.9 Build: 1041962M
-[2011-02-07 16:18:27,163]  INFO {qpid.message.broker.startup} -  [Broker] BRK-1001 : Startup : Version: 0.9 Build: 1041962M
-[2011-02-07 16:18:27,166]  INFO {org.apache.qpid.server.management.JMXManagedObjectRegistry} -  Initialising managed object registry using platform MBean server
-[2011-02-07 16:18:27,173]  INFO {org.apache.qpid.server.security.auth.database.ConfigurationFilePrincipalDatabaseManager} -  Initialising PrincipalDatabase authentication manager
-[2011-02-07 16:18:27,177]  INFO {org.apache.qpid.server.security.auth.database.ConfigurationFilePrincipalDatabaseManager} -  Initialised principal database 'carbon-user-store' successfully
-[2011-02-07 16:18:27,178]  INFO {org.apache.qpid.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Initialising Default PrincipalDatabase authentication manager.
-[2011-02-07 16:18:27,179]  INFO {org.apache.qpid.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Initialised PLAIN SASL provider successfully
-[2011-02-07 16:18:27,211]  INFO {org.apache.qpid.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Additional SASL providers successfully registered.
-[Broker] MNG-1001 : Startup
-[2011-02-07 16:18:27,243]  INFO {qpid.message.managementconsole.startup} -  [Broker] MNG-1001 : Startup
-[Broker] MNG-1004 : Ready : Using the platform JMX Agent
-[2011-02-07 16:18:27,244]  INFO {qpid.message.managementconsole.ready} -  [Broker] MNG-1004 : Ready : Using the platform JMX Agent
-[2011-02-07 16:18:27,249]  INFO {qpid.message.virtualhost.created} -  [Broker] VHT-1001 : Created : carbon
-[2011-02-07 16:18:27,290]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: headers Name: amq.match
-[2011-02-07 16:18:27,295]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: topic Name: amq.topic
-[2011-02-07 16:18:27,297]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: direct Name: amq.direct
-[2011-02-07 16:18:27,299]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: fanout Name: amq.fanout
-[2011-02-07 16:18:27,302]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: direct Name: default
-[2011-02-07 16:18:27,309]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: direct Name: carbon.direct
-[2011-02-07 16:18:27,310]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Type: topic Name: carbon.topic
-[2011-02-07 16:18:27,322]  INFO {qpid.message.configstore.created} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] CFG-1001 : Created : org.apache.qpid.server.store.DerbyMessageStore
-[2011-02-07 16:18:27,510]  INFO {qpid.message.messagestore.store_location} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] MST-1002 : Store location : /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/database/qpid/derbystore
-[2011-02-07 16:18:29,360]  INFO {qpid.message.messagestore.recovery_start} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] MST-1004 : Recovery Start
-[2011-02-07 16:18:29,362]  INFO {qpid.message.transactionlog.recovery_start} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] TXN-1004 : Recovery Start
-[2011-02-07 16:18:29,381]  INFO {org.apache.qpid.server.store.DerbyMessageStore} -  Recovering bindings...
-[2011-02-07 16:18:29,399]  INFO {qpid.message.messagestore.created} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] MST-1001 : Created : org.apache.qpid.server.store.DerbyMessageStore
-[2011-02-07 16:18:29,406]  INFO {qpid.message.transactionlog.created} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] TXN-1001 : Created : org.apache.qpid.server.store.DerbyMessageStore
-[2011-02-07 16:18:29,415]  INFO {qpid.message.transactionlog.recovery_complete} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] TXN-1006 : Recovery Complete
-[2011-02-07 16:18:29,416]  INFO {org.apache.qpid.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Initialising 'carbon' PrincipalDatabase authentication manager.
-[Broker] BRK-1002 : Starting : Listening on TCP port 5672
-[2011-02-07 16:18:29,484]  INFO {qpid.message.broker.listening} -  [Broker] BRK-1002 : Starting : Listening on TCP port 5672
-[Broker] BRK-1004 : Qpid Broker Ready
-[2011-02-07 16:18:29,485]  INFO {qpid.message.broker.ready} -  [Broker] BRK-1004 : Qpid Broker Ready
-[2011-02-07 16:18:29,685]  INFO {org.wso2.carbon.messagebox.internal.ds.MessageBoxServiceComponent} -  MessageBoxService bundle is activated successfully
-[2011-02-07 16:18:29,686]  INFO {org.wso2.carbon.event.core.internal.builder.EventBrokerBuilderDS} -  Successfully registered the event broker
-[2011-02-07 16:18:29,746]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Starting Carbon initialization...
-[2011-02-07 16:18:29,997]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Creating super-tenant Axis2 ConfigurationContext
-[2011-02-07 16:18:30,444]  INFO {org.apache.axis2.deployment.ClusterBuilder} -  Clustering has been disabled
-[2011-02-07 16:18:30,780]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 module: rahas-1.60-wso2v1 {super-tenant}
-[2011-02-07 16:18:30,950]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 module: wso2xfer-3.20-SNAPSHOT {super-tenant}
-[2011-02-07 16:18:31,121]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 module: rampart-1.60-wso2v1 {super-tenant}
-[2011-02-07 16:18:31,388]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 module: addressing-3.20-SNAPSHOT {super-tenant}
-[2011-02-07 16:18:31,421]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 module: wso2mex-3.20-SNAPSHOT {super-tenant}
-[2011-02-07 16:18:31,534]  INFO {org.apache.axis2.transport.tcp.TCPTransportSender} -  TCP Sender started
-[2011-02-07 16:18:31,974]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 service: version {super-tenant}
-[2011-02-07 16:18:32,280]  INFO {org.apache.axis2.deployment.DeploymentEngine} -  Deploying Web service: Version.aar - file:/home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/deployment/server/axis2services/Version.aar
-[2011-02-07 16:18:32,364]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Completed super-tenant Axis2 ConfigurationContext creation in 2.367 sec
-[2011-02-07 16:18:32,460]  INFO {org.apache.axis2.deployment.ModuleDeployer} -  Deploying module: addressing-SNAPSHOT - file:/home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/deployment/client/modules/addressing-SNAPSHOT.mar
-[2011-02-07 16:18:32,464]  INFO {org.apache.axis2.transport.tcp.TCPTransportSender} -  TCP Sender started
-[2011-02-07 16:18:33,070]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 service: TopicManagerAdminService {super-tenant}
-[2011-02-07 16:18:33,550]  INFO {org.apache.axis2.deployment.DeploymentEngine} -  Deploying Web service: org.wso2.carbon.event.admin - 
-[2011-02-07 16:18:34,926]  INFO {org.apache.axis2.deployment.DeploymentEngine} -  Deploying Web service: org.wso2.carbon.tryit - 
-[2011-02-07 16:18:35,724]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Repository       : /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/deployment/server/
-[2011-02-07 16:18:35,884]  INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -  Permission cache updated for tenant 0
-[2011-02-07 16:18:35,884]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  ConfigurationContextService registered in 160ms
-[2011-02-07 16:18:35,902]  WARN {org.apache.axis2.engine.ListenerManager} -  ConfigurationContext provided for the ListenerManager initialization is null. ListenerManager will not be initialized
-[2011-02-07 16:18:35,902]  INFO {org.wso2.carbon.core.transports.http.HttpsTransportListener} -  HTTPS port       : 9443
-[2011-02-07 16:18:35,902]  INFO {org.wso2.carbon.core.transports.http.HttpTransportListener} -  HTTP port        : 9763
-[2011-02-07 16:18:37,207]  INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL  : https://10.100.0.164:9443/carbon/
-[2011-02-07 16:18:37,242]  INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Started Transport Listener Manager
-[2011-02-07 16:18:37,242]  INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server           :  WSO2 MB -1.0.0
-[2011-02-07 16:18:37,242]  INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2 Carbon started in 21 sec
-
-
-
-</pre>
-
-<p>To verify that the MB is up and running fire off your Web browser and go to
-https://localhost:9443/carbon. This will take you to the WSO2 MB on-line
-management console. </p>
-<img src="images/Login.png" alt="Log-in" />
-
-<p>You can login to the console using the default user credentials given below.
-</p>
-<ul>
-  <li>Username: admin</li>
-  <li>Password: admin</li>
-</ul>
-
-<p>If you can get that far then the MB is properly installed and running. </p>
-
-<p>WSO2 MB startup scripts stated above accept a few useful arguments. </p>
-
-<p>--cleanRegistry<br />
-  This argument forces the embedded Registry instance to be cleaned before
-starting the MB. Note that this will clean the internal database therefore any
-configurations you saved previously will be permanently lost. </p>
-
-<p>--restart<br />
-   Restart the Carbon Unix daemon.</p>
-
-<p>-debug &lt;port&gt;<br />
-   Enables remote debugging on the MB through the specified port. </p>
-
-<p>-dump<br />
-   Print a thread dump of the Carbon Unix daemon.</p>
-
-
-<p>In addition to the above mentioned arguments the MB startup scripts accept
-the following VM arguments. </p>
-
-<p>-DosgiConsole<br />
-   Starts the OSGi console from which you can directly interact with the
-underlying OSGi runtime. </p>
-
-
-<h4>4.0 WSO2 MB Directory Hierarchy </h4>
-
-<p>When you extract a WSO2 MB binary distribution archive you will find the
-following directories in the top level that is created. </p>
-
-<p>bin -<br />
-Contains all the necessary scripts to interact with the WSO2 MB instance.
-There are shell scripts (with .sh extension) for Unix/Linux users and batch
-files (with .bat extension) for Windows users. In general you will find the
-following scripts in this directory.<br />
-<br />
-<ul>
-  <li>stratos.sh/stratos.bat - Launches WSO2 MB </li>
-  <li>wsdl2java.sh/wsdl2java.bat - Launches the Java stub generation tool for
-    Web Services </li>
-  <li>java2wsdl.sh/java2wsdl.bat - Launches the WSDL generation tool for Java
-    Web Services </li>
-  <li>tcpmon.sh/tcpmon.bat - Launches TCPMon, the TCP connection monitor </li>
-  <li>chpasswd.sh/chpasswd.bat -Use this script to change the administrator
-    password without signing in to the server<br />
-  </li>
-  <li>daemon.sh -Start WSO2 MB as a daemon on Unix/Linux systems<br />
-  </li>
-  <li>install.bat - Install WSO2 MB as a background service on Windows<br />
-  </li>
-  <li>repowriter.sh/repowriter.bat </li>
-</ul>
-<br />
-In addition to the above mentioned scripts you will find a sub-directory named
-'native' in the bin directory.<br />
-</p>
-
-<p>repository/deployment -<br />
-This directory houses all the OSGi bundles, service artifacts, modules and
-related resources used by the WSO2 MB instance. The repository/components/plugins 
-directory will contain all the necessary OSGi bundles at server runtime.</p>
-
-<p>repository/conf -<br />
-All the global configuration files (eg: axis2.xml, transports-mgt.xml,
-carbon.xml ) used by the MB are stored in this directory.
-</p>
-
-<p>lib -<br />
-The lib directory houses all the jar files and OSGi bundles required by the
-embedded Tomcat instance. Starting from Carbon 2.0 the log4j.properties file
-used by the MB is also stored here. </p>
-
-<p>resources -<br />
-Contains additional resources required by WSO2 MB. This includes security
-related resources such as keystores. </p>
-
-<p>repository/logs -<br />
-All the server logs created during server runtime will be stored here. </p>
-
-<p>dbscripts -<br />
-Contains a collection of database scripts required to create the Carbon
-database on a variety of database management systems.<br />
-</p>
-
-<h4>5.0 Using the WSO2 MB Management Console </h4>
-
-<p>WSO2 MB management console is a Web based control panel powered by JSP and
-AJAX which enables system administrators to interact with a running MB
-instance, without having to touch any underlying configuration files. The
-management console allows the users to command and control proxy services,
-sequences, transports, local entries, registry, modules, endpoints and much
-more. MB management console is a great way to try things out without having to
-edit the actual configuration files or without having to restart the MB for
-changes to take effect. </p>
-
-<p>We recommend using Mozilla Firefox 3 or Internet Explorer 7 to access the
-WSO2 MB management console. Please note that your browser must be JavaScript
-enabled to take the full advantage of the management console. To access the MB
-management console fire off you Web browser and navigate to https://&lt;Server
-Host&gt;:&lt;Server Port&gt;/&lt;Context&gt;. If you are running the Web
-browser on the same machine as the MB you may use 'localhost' as the server
-host. The default port and the context for the MB management console are
-'9443' and 'carbon' respectively. If you entered the URL correctly you will be
-taken to the management console's login page. </p>
-
-<p>On the login page enter 'admin' as the username and the password to login to
-the system. You can change user credentials and even add new users once you
-login. Controls and wizards in the MB management console are pretty much self
-explanatory. However if you are having trouble finishing your way in the
-management console, click on the 'Help' link at the top right corner of any
-page to access context sensitive help. </p>
-
-<p>Please note that the MB management console makes use of the default HTTPS
-servlet transport which is configured in the MB_HOME/conf/transports.xml file.
-It is important that this transport is always properly configured in the
-mentioned file. Otherwise the management console might be inaccessible to the
-users. </p>
-
-<h4>6.0 User Management </h4>
-
-<p>To access the WSO2 MB user management features, first sign in to the MB
-management console and click on 'User Management' under the 'Configure' menu in
-the left navigation bar. This will take you to the User Management home page
-which contains the controls illustrated below. </p>
-<img src="images/user-mgt.PNG" alt="User Mgt" />
-
-<p>From here you can manage users and roles. A user is associated with zero or
-more roles (generally specified at user creation time) and each role is
-associated with zero or more permissions (generally specified at role creation
-time). Therefore the set of permissions owned by a user is determined by the
-roles assigned to that user. A user owns the union of all the permissions
-associated with the roles assigned to that user. By default MB comes with only
-one role, the 'admin' role. This role is associated with the following set of
-permissions.</p>
-
-<p>By default the admin user is associated with the admin role and hence the
-admin user is entitled to all the  permissions. </p>
-
-<p>To add a new role to the system click on 'Roles' in the User Management home
-page and on the page that appears click the 'Add New Role' link. This will
-start the 'Add Role' wizard. The wizard will guide you though the process of
-creating a role by specifying a unique name for the role and adding the
-relevant permissions to the new role. Similarly to create a new user, click on
-'Users' in the User Management home page. Then from the next page that appears
-select 'Create New User' link. This will launch the 'Add User' wizard which
-will enable you to create a new user account with login credentials and
-associate the account with one or more existing roles. The MB management
-console also enables you to search for and modify existing users and roles. </p>
-
-<p>WSO2 MB can be easily configured to use an external user store in addition
-to the built-in system user store. An external user store is an external
-database which stores user data. It could be as simple as a relational database
-or as sophisticated as an LDAP instance. Most organizations maintain such
-centralized databases and it would be productive from the organization's point
-of view to have the MB pick up user data from the existing centralized user
-database. To connect the MB to an external user store simply click on the 'Add
-External User Store' link on the User Management home page. Then on the page
-that appears select the type of user store that will be plugged into the MB.
-Currently the following types of user stores are supported. </p>
-<ul>
-  <li>JDBC </li>
-  <li>LDAP </li>
-  <li>Active Directory </li>
-</ul>
-
-<p>Having selected the type of the user store you need to provide additional
-information required by the MB to connect to and retrieve user data from the
-external user store. If all the required parameters were specified accurately
-the MB will pick up user data from the external user store and users
-registered on the external store will be able to access the MB as if their
-accounts were created in the built-in system user store. </p>
-
-<h4>7.0 Setting Up Logging </h4>
-
-<p>Logging is one of the most important aspects of a production grade server. A
-properly configured logging system is vital in identifying errors, security
-threats and usage patterns. WSO2 MB uses a log4j based logging mechanism
-through Apache Commons Logging facade library. The log4j.properties file which
-governs how logging is performed by the server can be found in MB_HOME/lib
-directory. However it is recommended not to make any alterations to the default
-log4j.properties file. The recommended way of setting up logging is by using
-the MB management console. Simply login to the management console and click on
-'Logging' under the 'Configure' menu in the left navigation bar. From here you
-can setup various appenders and configure log levels for various loggers. Any
-changes to the logging configuration you make from the management console will
-get priority over what is defined in the actual log4j.properties file. </p>
-
-<p>By default WSO2 MB comes with the following log appenders configured. </p>
-<ul>
-  <li>CARBON_CONSOLE (Logs to the console when the server is running) </li>
-  <li>CARBON_LOGFILE (Writes the logs to MB_HOME/logs/wso2-MB.log) </li>
-  <li>CARBON_MEMORY </li>
-  <li>CARBON_SYS_LOG </li>
-  <li>SERVICE_APPENDER (Writes mediation time audit messages to
-    MB_HOME/logs/wso2-MB-service.log) </li>
-  <li>TRACE_APPENDER (Writes mediation time tracing/debug messages to the
-    MB_HOME/logs/wso2-MB-trace.log for tracing enabled services) </li>
-  <li>TRACE_MEMORYAPPENDER </li>
-</ul>
-
-<p>Tracing can be enabled for individual mediation sequences and proxy services
-from the 'Mediation Sequences' home page and the 'Service Dashboard' page
-respectively. Click on the 'Sequences' link under 'Mediation' in the 'Manage'
-menu of the left navigation bar to access the 'Mediation Sequences' page. This
-page lists all the deployed sequences. Each sequence gives you the options to
-enable/disable tracing. To access the service dashboard for a proxy service go
-to the Services List page and click on the proxy service that you are
-interested in. Once a sequence or a proxy service is tracing enabled you can
-view the generated log messages by visiting the 'Mediation Tracer' page under
-the 'Monitor' menu. The 'Monitor' menu also gives you access to the system logs
-and the SOAP tracer logs all through the Web interface itself. </p>
-<img src="images/logs.PNG" alt="Logs" />
- </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/cluster_scenario_01.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/cluster_scenario_01.xml b/products/cloud_controller/docs/xdoc/cluster_scenario_01.xml
deleted file mode 100644
index 2b2a76c..0000000
--- a/products/cloud_controller/docs/xdoc/cluster_scenario_01.xml
+++ /dev/null
@@ -1,184 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-  <head>
-    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-    <title>
-      WSO2 MB Clustered Deployment - Scenario 01
-    </title>
-    <link href="css/mb-docs.css" rel="stylesheet"/>
-    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
-  </head>
-  <body xml:lang="en">
-      [ <a href="docs_index.html"> Documentation Index </a> ]
-
-      <h2>Starting external cassandra server and zoo keeper server and point all broker nodes to them</h2>
-      <p>
-          In this model you need to get downloaded following apache products
-      </p>
-
-      <ul>
-          <li><a href=" http://zookeeper.apache.org/releases.html#download">Apache Zoo Keeper</a> <p> Version 3.3.4</p></li>
-          <li><a href="http://cassandra.apache.org/download/">Apache Cassandra</a><p> Version 1.0.*</p></li>
-      </ul>
-      <p> Deployment model will be like bellow </p>
-      <p>
-          <img src="images/cluster_scenario_01.png" alt="Cluster Setup Scenario 01" height="600" width ="950"/>
-      </p>
-      <p> In this model we have a common cassandra server and a common zoo keeper server. Both of them can be in a same
-       host or in different hosts. Eg: Lets say they are in two different hosts as bellow</p>
-      <ul>
-          <li>Cassandra Server - 192.168.0.100</li>
-          <li>Zoo Keeper Server - 192.168.0.101</li>
-      </ul>
-      <p> We have three Message Broker servers in three different hosts as</p>
-       <ul>
-          <li>MB Server 01 - 192.168.0.102</li>
-          <li>MB Server 02 - 192.168.0.103</li>
-          <li>MB Server 03 - 192.168.0.104</li>
-      </ul>
-
-      <p> We need to configure cassandra server to listen to all the broker nodes.For that we need to change the following entries
-      in the "Cassandra.yaml" file which is located in the "apache-cassandra-1.0.1/conf/" directory.</p>
-
-      <ul>
-          <li>Change the data storage directories of cassandra. Here by default it will point to the location "/var/lib/". But
-          it will be better, if you can keep the data locally inside the folder where you have the server setup. So change it to "./repository/database" off
-          all three entries as</li>
-          <pre>
-              # directories where Cassandra should store data on disk.
-              data_file_directories:
-                  - ./repository/database/cassandra/data
-
-              # commit log
-              commitlog_directory: ./repository/database/cassandra/commitlog
-
-              # saved caches
-              saved_caches_directory: ./repository/database/cassandra/saved_caches
-
-          </pre>
-
-          <li>Change listen address of the server. By default it is "localhost", change it to the ip address of the host where you
-          have the cassandra server.
-          </li>
-          <pre>
-             listen_address: 192.168.0.100
-          </pre>
-
-          <li>Change RPC address of the server.By default it is "localhost", change it to the ip address of the host where you
-          have the cassandra server. </li>
-           <pre>
-             rpc_address: 192.168.0.100
-          </pre>
-      </ul>
-      <p> Now save the cassandra.yaml file and you can start the cassandra server by executing the script "cassandra" with the
-          option -f.  Eg: "./cassandra -f"
-      </p>
-
-      <p> Then we need to configure the Zoo Keeper Server to listen to all broker nodes. We can do it by renaming the "zoo_sample.cfg"
-      file which can be found at "zookeeper-3.3.4/conf" folder to "zoo.cfg" and do the following modification in that file
-      </p>
-
-      <ul>
-          <li>Change the data directory to store data local to the installation directory</li>
-          <li>Add the entry "clientPortAddress" by providing the ip of the localhost</li>
-      </ul>
-      <p>After modifying the file , it will look like bellow. </p>
-      <pre>
-            # The number of milliseconds of each tick
-            tickTime=2000
-            # The number of ticks that the initial
-            # synchronization phase can take
-            initLimit=10
-            # The number of ticks that can pass between
-            # sending a request and getting an acknowledgement
-            syncLimit=5
-            # the directory where the snapshot is stored.
-            dataDir=./../data
-            # the port at which the clients will connect
-            clientPort=2181
-
-            clientPortAddress=192.168.0.101
-        </pre>
-      <p>
-          Once you done the above changes, you can save the file and start the zookeeper server by executing the "zkServer.sh" script
-          with the option start. eg: sh zkServer.sh start
-      </p>
-
-      <p>
-          Then you need to do the following configuration changes in each Message broker nodes
-      </p>
-      <p>
-         Modify qpid-config.xml file which is located at : /repository/conf/advanced directory as bellow
-      </p>
-      <ul>
-
-          <li>Enable clustering</li>
-          <li>Change the server of the Zookeeper</li>
-      </ul>
-      <pre>
-          &lt;clustering>
-
-          &lt;enabled><b>true</b>&lt;/enabled>
-          &lt;OnceInOrderSupportEnabled>false&lt;/OnceInOrderSupportEnabled>
-          &lt;externalCassandraServerRequired>true&lt;/externalCassandraServerRequired>
-
-          &lt;coordination>
-              &lt;!-- Apache Zookeeper Address -->
-              &lt;ZooKeeperConnection><b>192.168.0.101</b>:2181&lt;/ZooKeeperConnection>
-              &lt;!-- Format yyyy-MM-dd HH:mm:ss -->
-              &lt;ReferenceTime>2012-02-29 08:08:08&lt;/ReferenceTime>
-          &lt;/coordination>
-      </pre>
-
-      <p>Modify qpid-virtualhosts.xml file which is located at :/repository/conf/advanced directory as bellow</p>
-       <ul>
-          <li>Change the connection string by pointing to the cassandra server</li>
-      </ul>
-      <pre>
-          &lt;store>
-              &lt;class>org.wso2.andes.server.store.CassandraMessageStore&lt;/class>
-              &lt;username>admin&lt;/username>
-              &lt;password>admin&lt;/password>
-              &lt;cluster>ClusterOne&lt;/cluster>
-              &lt;idGenerator>org.wso2.andes.server.cluster.coordination.TimeStampBasedMessageIdGenerator&lt;/idGenerator>
-              &lt;connectionString><b>192.168.0.100</b>:9160&lt;/connectionString>
-          &lt;/store>
-      </pre>
-
-      <p>Now you can start all three Message Broker nodes.</p>
-
-      <h2>
-
-      Other Resources
-    </h2>
-    <p/>
-    <p>
-      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
-      Library</a> : The Library contains articles, tutorials,
-      presentations, and other knowledge base items published on The Oxygen
-      Tank on different styles of deployments.
-    </p>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/cluster_scenario_02.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/cluster_scenario_02.xml b/products/cloud_controller/docs/xdoc/cluster_scenario_02.xml
deleted file mode 100644
index 6869d57..0000000
--- a/products/cloud_controller/docs/xdoc/cluster_scenario_02.xml
+++ /dev/null
@@ -1,160 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-  <head>
-    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-    <title>
-      WSO2 MB Clustered Deployment - Scenario 02
-    </title>
-    <link href="css/mb-docs.css" rel="stylesheet"/>
-    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
-  </head>
-  <body xml:lang="en">
-      [ <a href="docs_index.html"> Documentation Index </a> ]
-
-      <h2>Starting external zoo keeper server and use the inbuilt cassandra server in ring model with broker nodes</h2>
-      <p>
-          In this model you need to get downloaded following apache product
-      </p>
-
-      <ul>
-          <li><a href=" http://zookeeper.apache.org/releases.html#download">Apache Zoo Keeper</a> <p> Version 3.3.4</p></li>
-      </ul>
-      <p> Deployment model will be like bellow </p>
-      <p>
-          <img src="images/cluster_scenario_02.png" alt="Cluster Setup Scenario 02" height="600" width ="950"/>
-      </p>
-      <p> In this model we have a common zoo keeper server. Since we are shipping a cassandra server with Message broker product we can
-          use that and create a cassandra ring in the cluster.</p>
-      <ul>
-          <li>Zoo Keeper Server - 192.168.0.100</li>
-      </ul>
-      <p> We have three Message Broker servers in three different hosts as and all of them are having a cassandra server in it</p>
-       <ul>
-          <li>MB Server 01 - 192.168.0.101</li>
-          <li>MB Server 02 - 192.168.0.102</li>
-          <li>MB Server 03 - 192.168.0.103</li>
-      </ul>
-
-      <p> We need to configure cassandra servers in these MB servers to form a cassandra ring. For that we need to change the following
-          entries in the "Cassandra.yaml" file which is located in the "wso2mb-2.0.1/repository/conf/etc" directory.</p>
-
-      <ul>
-          <li>Change the seeds in the ring. You can get a better idea on setting a cassandra from following <a href="http://www.datastax.com/docs/1.0/install/cluster_init">web page.</a>
-          Here we are configuring two seed nodes. (MB Server 01 and 02)</li>
-
-          <pre>
-              # seeds is actually a comma-delimited list of addresses.
-              # Ex: "&lt;ip1>,&lt;ip2>,&lt;ip3>"
-              - seeds: "192.168.0.101,192.168.0.102"
-
-          </pre>
-
-          <li>Change listen address of the server. By default it is "localhost", change it to the ip address of the host where you
-          have the cassandra server. <b>You need to change the listen address of the each server to it's ip address. Here
-          for the server 192.168.0.102, it will like bellow. </b>
-          </li>
-          <pre>
-             listen_address: 192.168.0.102
-          </pre>
-
-          <li>Change RPC address of the server.By default it is "localhost", change it to the ip address of the host where you
-          have the cassandra server. <b>You need to change the RPC address of the each server to it's ip address. Here
-          for the server 192.168.0.103, it will like bellow. </b></li>
-           <pre>
-             rpc_address: 192.168.0.103
-          </pre>
-      </ul>
-
-      <p> Then we need to configure the Zoo Keeper Server to listen to all broker nodes. We can do it by renaming the "zoo_sample.cfg"
-      file which can be found at "zookeeper-3.3.4/conf" folder to "zoo.cfg" and do the following modification in that file
-      </p>
-
-      <ul>
-          <li>Change the data directory to store data local to the installation directory</li>
-          <li>Add the entry "clientPortAddress" by providing the ip of the localhost</li>
-      </ul>
-      <p>After modifying the file , it will look like bellow. </p>
-      <pre>
-            # The number of milliseconds of each tick
-            tickTime=2000
-            # The number of ticks that the initial
-            # synchronization phase can take
-            initLimit=10
-            # The number of ticks that can pass between
-            # sending a request and getting an acknowledgement
-            syncLimit=5
-            # the directory where the snapshot is stored.
-            dataDir=./../data
-            # the port at which the clients will connect
-            clientPort=2181
-
-            clientPortAddress=192.168.0.100
-        </pre>
-      <p>
-          Once you done the above changes, you can save the file and start the zookeeper server by executing the "zkServer.sh" script
-          with the option start. eg: sh zkServer.sh start
-      </p>
-
-      <p>
-          Then you need to do the following configuration changes in each Message broker nodes
-      </p>
-      <p>
-         Modify qpid-config.xml file which is located at : /repository/conf/advanced directory as bellow
-      </p>
-      <ul>
-
-          <li>Enable clustering</li>
-          <li>Change the server of the Zookeeper</li>
-      </ul>
-      <pre>
-          &lt;clustering>
-
-          &lt;enabled><b>true</b>&lt;/enabled>
-          &lt;OnceInOrderSupportEnabled>false&lt;/OnceInOrderSupportEnabled>
-          &lt;externalCassandraServerRequired>false&lt;/externalCassandraServerRequired>
-
-          &lt;coordination>
-              &lt;!-- Apache Zookeeper Address -->
-              &lt;ZooKeeperConnection><b>192.168.0.100</b>:2181&lt;/ZooKeeperConnection>
-              &lt;!-- Format yyyy-MM-dd HH:mm:ss -->
-              &lt;ReferenceTime>2012-02-29 08:08:08&lt;/ReferenceTime>
-          &lt;/coordination>
-      </pre>
-
-      <p>Now you can start all three Message Broker nodes.</p>
-
-      <h2>
-
-      Other Resources
-    </h2>
-    <p/>
-    <p>
-      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
-      Library</a> : The Library contains articles, tutorials,
-      presentations, and other knowledge base items published on The Oxygen
-      Tank on different styles of deployments.
-    </p>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/cluster_scenario_03.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/cluster_scenario_03.xml b/products/cloud_controller/docs/xdoc/cluster_scenario_03.xml
deleted file mode 100644
index b4fd63a..0000000
--- a/products/cloud_controller/docs/xdoc/cluster_scenario_03.xml
+++ /dev/null
@@ -1,200 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-  <head>
-    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-    <title>
-      WSO2 MB Clustered Deployment - Scenario 03
-    </title>
-    <link href="css/mb-docs.css" rel="stylesheet"/>
-    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
-  </head>
-  <body xml:lang="en">
-      [ <a href="docs_index.html"> Documentation Index </a> ]
-
-      <h2>Starting external cassandra server and use inbuilt zoo keeper server in ring model with broker nodes</h2>
-      <p>
-          In this model you need to get downloaded following apache products
-      </p>
-
-      <ul>
-          <li><a href="http://cassandra.apache.org/download/">Apache Cassandra</a><p> Version 1.0.*</p></li>
-      </ul>
-      <p> Deployment model will be like bellow </p>
-      <p>
-          <img src="images/cluster_scenario_03.png" alt="Cluster Setup Scenario 03" height="600" width ="950"/>
-      </p>
-      <p> In this model we have a common cassandra server. Since we are shipping a zoo keeper server with Message broker product we can
-          use that and create a zoo keeper ring in the cluster.</p>
-      <ul>
-          <li>Cassandra Server - 192.168.0.100</li>
-      </ul>
-      <p> We have three Message Broker servers in three different hosts as</p>
-       <ul>
-          <li>MB Server 01 - 192.168.0.101</li>
-          <li>MB Server 02 - 192.168.0.102</li>
-          <li>MB Server 03 - 192.168.0.103</li>
-      </ul>
-
-      <p>First we need to configure the HostName in carbon.xml file which is located in "wso2mb-2.0.1/repository/conf/" directory.
-           Specify the ip of the host as follows. <font color="red">You need to configure this for all the three servers.</font></p>
-           <pre>
-               &lt;!--
-                      Host name or IP address of the machine hosting this server
-                      e.g. www.wso2.org, 192.168.1.10
-                      This is will become part of the End Point Reference of the
-                      services deployed on this server instance.
-                   -->
-                   &lt;HostName>192.168.0.101&lt;/HostName>
-
-           </pre>
-
-
-      <p> Then we need to configure cassandra server to listen to all the broker nodes.For that we need to change the following entries
-      in the "Cassandra.yaml" file which is located in the "apache-cassandra-1.0.1/conf/" directory.</p>
-
-      <ul>
-          <li>Change the data storage directories of cassandra. Here by default it will point to the location "/var/lib/". But
-          it will be better, if you can keep the data locally inside the folder where you have the server setup. So change it to "./repository/database" off
-          all three entries as</li>
-          <pre>
-              # directories where Cassandra should store data on disk.
-              data_file_directories:
-                  - ./repository/database/cassandra/data
-
-              # commit log
-              commitlog_directory: ./repository/database/cassandra/commitlog
-
-              # saved caches
-              saved_caches_directory: ./repository/database/cassandra/saved_caches
-
-          </pre>
-
-          <li>Change listen address of the server. By default it is "localhost", change it to the ip address of the host where you
-          have the cassandra server.
-          </li>
-          <pre>
-             listen_address: 192.168.0.100
-          </pre>
-
-          <li>Change RPC address of the server.By default it is "localhost", change it to the ip address of the host where you
-          have the cassandra server. </li>
-           <pre>
-             rpc_address: 192.168.0.100
-          </pre>
-      </ul>
-      <p> Now save the cassandra.yaml file and you can start the cassandra server by executing the script "cassandra" with the
-          option -f.  Eg: "./cassandra -f"
-      </p>
-
-      <p>
-          <b>Configuring Zookeeper Cluster</b>
-      </p>
-      <p> Then we need to configure the Zoo Keeper Servers to create a ring within among all broker nodes. We can do it by
-       adding client port address to the "zoo.cfg" which is located at "wso2mb-2.0.1/repository/conf/etc " . </p>
-
-      <p>After modifying the file , it will look like bellow. </p>
-      <pre>
-           tickTime=2000
-           dataDir=repository/data/zookeeper
-           clientPort=2181
-          <b>start_zk_server=true</b>
-          <b>clientPortAddress=192.168.0.101</b>
-          <b>server.1=192.168.0.100:2888:3888</b>
-          <b>server.2=192.168.0.101:2888:3888</b>
-          <b>server.3=192.168.0.102:2888:3888</b>
-      </pre>
-
-      <p> Above zoo.cfg file is for the server 192.168.0.101. You can copy the same zoo.cfg file to other two servers
-      and change the entry "clientPortAddress" to the ip of that particular server.</p>
-
-      <p> Then you need to create file "myid" in the data directory (repository/data/zookeeper) of each server. In that file
-      you need to specify the id of the server.</p>
-
-      <p>
-          eg: Id of the the server 192.168.0.100 will be "1". You need only to have the number 1 in that myid file.
-      </p>
-
-      <p>You can find more information on this in  <a href="http://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_zkMulitServerSetup">zookeeper clustering setup guide</a></p>
-
-      <p>
-          <b>You need to do above configuration in each of the message broker servers appropriately.</b>
-      </p>
-
-      <p>
-          Then you need to do the following configuration changes in each Message broker nodes
-      </p>
-      <p>
-         Modify qpid-config.xml file which is located at : /repository/conf/advanced directory as bellow
-      </p>
-      <ul>
-
-          <li>Enable clustering</li>
-          <li>Change the server ip of the Zookeeper by adding all zoo keeper server details</li>
-      </ul>
-      <pre>
-          &lt;clustering>
-
-          &lt;enabled><b>true</b>&lt;/enabled>
-          &lt;OnceInOrderSupportEnabled>false&lt;/OnceInOrderSupportEnabled>
-          &lt;externalCassandraServerRequired>true&lt;/externalCassandraServerRequired>
-
-          &lt;coordination>
-              &lt;!-- Apache Zookeeper Address -->
-              &lt;ZooKeeperConnection><b>192.168.0.101:2181,192.168.0.102:2181,192.168.0.103:2181</b>&lt;/ZooKeeperConnection>
-              &lt;!-- Format yyyy-MM-dd HH:mm:ss -->
-              &lt;ReferenceTime>2012-02-29 08:08:08&lt;/ReferenceTime>
-          &lt;/coordination>
-      </pre>
-
-      <p>Modify qpid-virtualhosts.xml file which is located at :/repository/conf/advanced directory as bellow</p>
-       <ul>
-          <li>Change the connection string by pointing to the cassandra server</li>
-      </ul>
-      <pre>
-          &lt;store>
-              &lt;class>org.wso2.andes.server.store.CassandraMessageStore&lt;/class>
-              &lt;username>admin&lt;/username>
-              &lt;password>admin&lt;/password>
-              &lt;cluster>ClusterOne&lt;/cluster>
-              &lt;idGenerator>org.wso2.andes.server.cluster.coordination.TimeStampBasedMessageIdGenerator&lt;/idGenerator>
-              &lt;connectionString><b>192.168.0.100</b>:9160&lt;/connectionString>
-          &lt;/store>
-      </pre>
-
-      <p>Now you can start all three Message Broker nodes.</p>
-
-      <h2>
-
-      Other Resources
-    </h2>
-    <p/>
-    <p>
-      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
-      Library</a> : The Library contains articles, tutorials,
-      presentations, and other knowledge base items published on The Oxygen
-      Tank on different styles of deployments.
-    </p>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/cluster_scenario_04.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/cluster_scenario_04.xml b/products/cloud_controller/docs/xdoc/cluster_scenario_04.xml
deleted file mode 100644
index e11e9ef..0000000
--- a/products/cloud_controller/docs/xdoc/cluster_scenario_04.xml
+++ /dev/null
@@ -1,169 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-  <head>
-    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-    <title>
-      WSO2 MB Clustered Deployment - Scenario 04
-    </title>
-    <link href="css/mb-docs.css" rel="stylesheet"/>
-    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
-  </head>
-  <body xml:lang="en">
-      [ <a href="docs_index.html"> Documentation Index </a> ]
-
-      <h2>Use inbuilt cassandra server and zoo keeper server for all the broker nodes</h2>
-
-      <p> The deployment model of this scenario will be like bellow </p>
-      <p>
-          <img src="images/cluster_scenario_04.png" alt="Cluster Setup Scenario 04" height="600" width ="950"/>
-      </p>
-      <p> In this model we have two rings, Cassandra ring and ZooKeeper ring. Since we are shipping a cassandra server and zoo keeper server
-          with Message broker product we can use them and create a cassandra ring and a zoo keeper ring in the cluster.</p>
-
-      <p> We have three Message Broker servers in three different hosts as and all of them are having a cassandra server in it</p>
-       <ul>
-          <li>MB Server 01 - 192.168.0.100</li>
-          <li>MB Server 02 - 192.168.0.101</li>
-          <li>MB Server 03 - 192.168.0.102</li>
-      </ul>
-
-       <p>First we need to configure the HostName in carbon.xml file which is located in "wso2mb-2.0.1/repository/conf/" directory.
-      Specify the ip of the host as follows. <font color="red">You need to configure this for all the three servers.</font></p>
-      <pre>
-          &lt;!--
-                 Host name or IP address of the machine hosting this server
-                 e.g. www.wso2.org, 192.168.1.10
-                 This is will become part of the End Point Reference of the
-                 services deployed on this server instance.
-              -->
-              &lt;HostName>192.168.0.100&lt;/HostName>
-
-      </pre>
-
-      <p>  Then We need to configure cassandra servers in these MB servers to form a cassandra ring. For that we need to change the following
-          entries in the "Cassandra.yaml" file which is located in the "wso2mb-2.0.1/repository/conf/etc" directory.</p>
-
-      <ul>
-          <li>Change the seeds in the ring. You can get a better idea on setting a cassandra from following <a href="http://www.datastax.com/docs/1.0/install/cluster_init">web page.</a>
-          Here we are configuring two seed nodes. (MB Server 01 and 02)</li>
-
-          <pre>
-              # seeds is actually a comma-delimited list of addresses.
-              # Ex: "&lt;ip1>,&lt;ip2>,&lt;ip3>"
-              - seeds: "192.168.0.101,192.168.0.102"
-
-          </pre>
-
-          <li>Change listen address of the server. By default it is "localhost", change it to the ip address of the host where you
-          have the cassandra server. <b>You need to change the listen address of the each server to it's ip address. Here
-          for the server 192.168.0.102, it will like bellow. </b>
-          </li>
-          <pre>
-             listen_address: 192.168.0.102
-          </pre>
-
-          <li>Change RPC address of the server.By default it is "localhost", change it to the ip address of the host where you
-          have the cassandra server. <b>You need to change the RPC address of the each server to it's ip address. Here
-          for the server 192.168.0.103, it will like bellow. </b></li>
-           <pre>
-             rpc_address: 192.168.0.103
-          </pre>
-      </ul>
-
-      <p>
-               <b>Configuring Zookeeper Cluster</b>
-           </p>
-           <p> Then we need to configure the Zoo Keeper Servers to create a ring within among all broker nodes. We can do it by
-            adding client port address to the "zoo.cfg" which is located at "wso2mb-2.0.1/repository/conf/etc " . </p>
-
-           <p>After modifying the file , it will look like bellow. </p>
-           <pre>
-                tickTime=2000
-                dataDir=repository/data/zookeeper
-                clientPort=2181
-               <b>start_zk_server=true</b>
-               <b>clientPortAddress=192.168.0.101</b>
-               <b>server.1=192.168.0.100:2888:3888</b>
-               <b>server.2=192.168.0.101:2888:3888</b>
-               <b>server.3=192.168.0.102:2888:3888</b>
-           </pre>
-
-           <p> Above zoo.cfg file is for the server 192.168.0.101. You can copy the same zoo.cfg file to other two servers
-           and change the entry "clientPortAddress" to the ip of that particular server.</p>
-
-           <p> Then you need to create file "myid" in the data directory (repository/data/zookeeper) of each server. In that file
-           you need to specify the id of the server.</p>
-
-           <p>
-               eg: Id of the the server 192.168.0.100 will be "1". You need only to have the number 1 in that myid file.
-           </p>
-
-           <p>You can find more information on this in  <a href="http://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_zkMulitServerSetup">zookeeper clustering setup guide</a></p>
-
-           <p>
-               <b>You need to do above configuration in each of the message broker servers appropriately.</b>
-           </p>
-
-      <p>
-          Then you need to do the following configuration changes in each Message broker nodes
-      </p>
-      <p>
-         Modify qpid-config.xml file which is located at : /repository/conf/advanced directory as bellow
-      </p>
-      <ul>
-
-          <li>Enable clustering</li>
-          <li>Change the server of the Zookeeper</li>
-      </ul>
-      <pre>
-          &lt;clustering>
-
-          &lt;enabled><b>true</b>&lt;/enabled>
-          &lt;OnceInOrderSupportEnabled>false&lt;/OnceInOrderSupportEnabled>
-          &lt;externalCassandraServerRequired>false&lt;/externalCassandraServerRequired>
-
-          &lt;coordination>
-              &lt;!-- Apache Zookeeper Address -->
-              &lt;ZooKeeperConnection><b>192.168.0.100:2181,192.168.0.101:2181,192.168.0.102:2181</b>&lt;/ZooKeeperConnection>
-              &lt;!-- Format yyyy-MM-dd HH:mm:ss -->
-              &lt;ReferenceTime>2012-02-29 08:08:08&lt;/ReferenceTime>
-          &lt;/coordination>
-      </pre>
-
-      <p>Now you can start all three Message Broker nodes.</p>
-
-      <h2>
-
-      Other Resources
-    </h2>
-    <p/>
-    <p>
-      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
-      Library</a> : The Library contains articles, tutorials,
-      presentations, and other knowledge base items published on The Oxygen
-      Tank on different styles of deployments.
-    </p>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/cluster_scenario_05.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/cluster_scenario_05.xml b/products/cloud_controller/docs/xdoc/cluster_scenario_05.xml
deleted file mode 100644
index a6aa31d..0000000
--- a/products/cloud_controller/docs/xdoc/cluster_scenario_05.xml
+++ /dev/null
@@ -1,216 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-  <head>
-    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-    <title>
-      WSO2 MB Clustered Deployment - Scenario 04
-    </title>
-    <link href="css/mb-docs.css" rel="stylesheet"/>
-    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
-  </head>
-  <body xml:lang="en">
-      [ <a href="docs_index.html"> Documentation Index </a> ]
-
-      <h2>Use inbuilt cassandra server and zoo keeper server in a customized manner</h2>
-
-      <p> The deployment model of this scenario will be like bellow </p>
-      <p>
-          <img src="images/cluster_scenario_05.png" alt="Cluster Setup Scenario 05" height="600" width ="950"/>
-      </p>
-      <p> In this model we have two rings, Cassandra ring and ZooKeeper ring. There is a common Message broker node for these rings.
-          <b>The reason for having a common broker node is , there should be at least on cassandra server and one zoo keeper server
-          to start WSO2 Message broker in clustered mode</b>   Apart from that we have a message broker server
-          which points to both of these rings.Since we are shipping a cassandra server and zoo keeper server
-          with Message broker product we can use them and create a cassandra ring and a zoo keeper ring in the cluster.</p>
-
-      <p> As in the image, We have four Message Broker servers in four different hosts. In that we use two servers to create a cassandra ring, another two
-      servers to create a zoo keeper ring and another server uses above created rings as in the diagram.</p>
-
-      <p>Servers used to create cassandra ring</p>
-      <ul>
-          <li>MB Server 01 - 192.168.0.100</li>
-          <li>MB Server 02 - 192.168.0.101</li>
-      </ul>
-
-      <p>Servers used to create zoo keeper ring</p>
-
-      <ul>
-          <li>MB Server 01 - 192.168.0.101</li>
-          <li>MB Server 02 - 192.168.0.102</li>
-      </ul>
-
-      <p>Standalone server</p>
-      <ul>
-          <li>MB Server 01 - 192.168.0.103</li>
-      </ul>
-
-      <p><font color="red">Note that 192.168.0.101 server is common to both rings !</font> </p>
-
-      <p>First we need to configure the HostName in carbon.xml file which is located in "wso2mb-2.0.1/repository/conf/" directory.
-      Specify the ip of the host as follows</p>
-      <pre>
-          &lt;!--
-                 Host name or IP address of the machine hosting this server
-                 e.g. www.wso2.org, 192.168.1.10
-                 This is will become part of the End Point Reference of the
-                 services deployed on this server instance.
-              -->
-              &lt;HostName>192.168.0.101&lt;/HostName>
-
-      </pre>
-
-      <p> We need to configure cassandra servers in these MB servers to form a cassandra ring. For that we need to change the following
-          entries in the "Cassandra.yaml" file which is located in the "wso2mb-2.0.1/repository/conf/etc" directory.</p>
-
-      <ul>
-          <li>Change the seeds in the ring. You can get a better idea on setting a cassandra from following <a href="http://www.datastax.com/docs/1.0/install/cluster_init">web page.</a>
-          Here we are configuring two seed nodes. (MB Server 01 and 02)</li>
-
-          <pre>
-              # seeds is actually a comma-delimited list of addresses.
-              # Ex: "&lt;ip1>,&lt;ip2>,&lt;ip3>"
-              - seeds: "192.168.0.100,192.168.0.101"
-
-          </pre>
-
-          <li>Change listen address of the server. By default it is "localhost", change it to the ip address of the host where you
-          have the cassandra server. <b>You need to change the listen address of the each server to it's ip address. Here
-          for the server 192.168.0.100, it will like bellow. </b>
-          </li>
-          <pre>
-             listen_address: 192.168.0.100
-          </pre>
-
-          <li>Change RPC address of the server.By default it is "localhost", change it to the ip address of the host where you
-          have the cassandra server. <b>You need to change the RPC address of the each server to it's ip address. Here
-          for the server 192.168.0.100, it will like bellow. </b></li>
-           <pre>
-             rpc_address: 192.168.0.100
-          </pre>
-      </ul>
-       <p>
-          <b>You need to change this entry in the 192.168.0.101 message broker server also.</b>
-      </p>
-
-
-      <p>
-               <b>Configuring Zookeeper Cluster</b>
-           </p>
-           <p> Then we need to configure the Zoo Keeper Servers to create a ring within among all broker nodes. We can do it by
-            adding client port address to the "zoo.cfg" which is located at "wso2mb-2.0.1/repository/conf/etc " . </p>
-
-           <p>After modifying the file , it will look like bellow. </p>
-           <pre>
-                tickTime=2000
-                dataDir=repository/data/zookeeper
-                clientPort=2181
-               <b>start_zk_server=true</b>
-               <b>clientPortAddress=192.168.0.101</b>
-               <b>server.1=192.168.0.101:2888:3888</b>
-               <b>server.2=192.168.0.102:2888:3888</b>
-           </pre>
-
-           <p> Above zoo.cfg file is for the server 192.168.0.101. You can copy the same zoo.cfg file to other two servers
-           and change the entry "clientPortAddress" to the ip of that particular server.</p>
-
-           <p> Then you need to create file "myid" in the data directory (repository/data/zookeeper) of each server. In that file
-           you need to specify the id of the server.</p>
-
-           <p>
-               eg: Id of the the server 192.168.0.101 will be "1". You need only to have the number 1 in that myid file.
-           </p>
-
-           <p>You can find more information on this in  <a href="http://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_zkMulitServerSetup">zookeeper clustering setup guide</a></p>
-
-           <p>
-               <b>You need to do above configuration in each of the message broker servers appropriately.</b>
-           </p>
-
-      <p>
-          <b>You need to change this entry in the 192.168.0.102 message broker server also.</b>
-      </p>
-
-      <p>
-          Then you need to do the following configuration changes in 192.168.0.100,192.168.0.101 (Servers with cassandra) Message broker nodes
-          and 192.168.0.103 node.
-      </p>
-      <p>
-         Modify qpid-config.xml file which is located at : /repository/conf/advanced directory as bellow
-      </p>
-      <ul>
-
-          <li>Enable clustering</li>
-          <li>Change the server of the Zookeeper</li>
-      </ul>
-      <pre>
-          &lt;clustering>
-
-          &lt;enabled><b>true</b>&lt;/enabled>
-          &lt;OnceInOrderSupportEnabled>false&lt;/OnceInOrderSupportEnabled>
-          &lt;externalCassandraServerRequired>false&lt;/externalCassandraServerRequired>
-
-          &lt;coordination>
-              &lt;!-- Apache Zookeeper Address -->
-              &lt;ZooKeeperConnection><b>192.168.0.101:2181,192.168.0.102:2181</b>&lt;/ZooKeeperConnection>
-              &lt;!-- Format yyyy-MM-dd HH:mm:ss -->
-              &lt;ReferenceTime>2012-02-29 08:08:08&lt;/ReferenceTime>
-          &lt;/coordination>
-      </pre>
-
-       <p>
-          Then you need to do the following configuration changes in 192.168.0.101,192.168.0.102 (Servers with zookeeper) Message broker nodes
-            and 192.168.0.103 node.
-      </p>
-
-        <p>Modify qpid-virtualhosts.xml file which is located at :/repository/conf/advanced directory as bellow</p>
-       <ul>
-          <li>Change the connection string by pointing to the cassandra server</li>
-      </ul>
-      <pre>
-          &lt;store>
-              &lt;class>org.wso2.andes.server.store.CassandraMessageStore&lt;/class>
-              &lt;username>admin&lt;/username>
-              &lt;password>admin&lt;/password>
-              &lt;cluster>ClusterOne&lt;/cluster>
-              &lt;idGenerator>org.wso2.andes.server.cluster.coordination.TimeStampBasedMessageIdGenerator&lt;/idGenerator>
-              &lt;connectionString><b>192.168.0.101</b>:9160&lt;/connectionString>
-          &lt;/store>
-      </pre>
-      <p>Now you can start node common to both of the rings (192.168.0.101) which have cassandra servers and  zookeeper server and
-      then you can start all the other nodes.</p>
-
-      <h2>
-
-      Other Resources
-    </h2>
-    <p/>
-    <p>
-      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
-      Library</a> : The Library contains articles, tutorials,
-      presentations, and other knowledge base items published on The Oxygen
-      Tank on different styles of deployments.
-    </p>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/deployment_guide.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/deployment_guide.xml b/products/cloud_controller/docs/xdoc/deployment_guide.xml
deleted file mode 100644
index 385eeb8..0000000
--- a/products/cloud_controller/docs/xdoc/deployment_guide.xml
+++ /dev/null
@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-  <head>
-    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-    <title>
-      WSO2 MB - Deployment Guide
-    </title>
-    <link href="css/mb-docs.css" rel="stylesheet"/>
-    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
-  </head>
-  <body xml:lang="en">
-      [ <a href="docs_index.html"> Documentation Index </a> ]
-    <h1>
-      WSO2 Message Broker Server  (MB) Deployment Guide
-    </h1>
-    <p>Deploying the WSO2 MB correctly on your infrastructure is a vital task for the success
-        of the usage of the MB. You should first analyze the requirement and then select the
-        best matching deployment mode. There are different set of possible deployment modes with
-        different configurations.
-    </p>
-    <h2>
-      Available Deployment options
-    </h2>
-    <p>
-      <a href="installation_guide.html">Standalone Deployment Guide</a> :
-      Describes the default standalone installation and deployment of the MB
-    </p>
-    <p>
-      <a>Clustered Deployment Guide</a> :
-      Contains the information on deploying the Message Broker in a clustered environment, this particular guide
-      explains the available options on a clustered deployment.
-    </p>
-      <h2>Clustered Deployment Guide </h2>
-      <p> In clustered deployment of WSO2 message broker, there are several scenarios which can be implemented. Basically
-      in WSO2 message broker, there are three components.
-      </p>
-      <ul>
-                <li>Broker</li>
-                <li>Cassandra Server</li>
-                <li>Zoo Keeper Server</li>
-      </ul>
-      <p>By default, WSO2 mb is packed with all these three component. In a clustered setup, it is possible to have these
-      three components separately and shared with each other.
-      </p>
-      <p>Here we are describing some of the possible deployment scenarios and it can be customized according to your
-      requirement.</p>
-
-      <h3> Deployment models</h3>
-       <ul>
-                <li><a href="cluster_scenario_01.html">Starting external cassandra server and zoo keeper server and point all broker nodes to them</a> </li>
-                <li><a href="cluster_scenario_02.html">Starting external zoo keeper server and use the inbuilt cassandra server in ring model with broker nodes</a></li>
-                <li><a href="cluster_scenario_03.html">Starting external cassandra server and use inbuilt zoo keeper server in ring model with broker nodes</a></li>
-                <li><a href="cluster_scenario_04.html">Use inbuilt cassandra server and zoo keeper server for all the broker nodes</a></li>
-                <li><a href="cluster_scenario_05.html">Use inbuilt cassandra server and zoo keeper server in a customized manner</a></li>
-      </ul>
-
-      <h2>
-
-      Other Resources
-    </h2>
-    <p/>
-    <p>
-      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
-      Library</a> : The Library contains articles, tutorials,
-      presentations, and other knowledge base items published on The Oxygen
-      Tank on different styles of deployments.
-    </p>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/docs_index.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/docs_index.xml b/products/cloud_controller/docs/xdoc/docs_index.xml
deleted file mode 100644
index 4e4c9c7..0000000
--- a/products/cloud_controller/docs/xdoc/docs_index.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-        <title>
-            WSO2 MB - Documentation Index
-        </title>
-        <link href="css/mb-docs.css" rel="stylesheet"/>
-        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
-    </head>
-    <body xml:lang="en">
-        <h1>
-            WSO2 Message Broker Server (MB) Documentation Index
-        </h1>
-        <h2>
-            Getting Started
-        </h2>
-        <p>
-            <a href="installation_guide.html">Installation Guide</a>
-            : Gives
-            basic steps on how to download, install, and run WSO2 MB using the binary
-            distribution, and how to build WSO2 MB using the source distribution.
-        </p>
-        <p>
-            <a href="user_guide.html">User Guide</a>
-            : A
-            manual on how to run and configure the WSO2 MB through the management
-            console. The user guide is centered on describing key features such as pub/sub of WSO2
-            MB product.
-        </p>
-
-        <h2>
-            Samples
-        </h2>
-        <p>
-            <a href="samples_index.html">How to Run the WSO2 MB Samples</a>
-            :
-            This document provides you with a set of MB samples demonstrating various capabilities
-            of the MB. 
-        </p>
-        <p>
-            <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
-                Library
-            </a>
-            : The Library contains articles, tutorials,
-            presentations, and other knowledge base items published on The Oxygen
-            Tank.
-        </p>
-        <p>
-            <a href="http://wso2.org/wiki/display/mb">Wiki Space</a>
-            :
-            This is the working Wiki for WSO2 MB.
-        </p>
-    </body>
-</html>


[03/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery.masonry.min.js
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery.masonry.min.js b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery.masonry.min.js
deleted file mode 100755
index 67be988..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery.masonry.min.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * jQuery Masonry v2.1.05
- * A dynamic layout plugin for jQuery
- * The flip-side of CSS Floats
- * http://masonry.desandro.com
- *
- * Licensed under the MIT license.
- * Copyright 2012 David DeSandro
- */
-(function(a,b,c){"use strict";var d=b.event,e;d.special.smartresize={setup:function(){b(this).bind("resize",d.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",d.special.smartresize.handler)},handler:function(a,c){var d=this,f=arguments;a.type="smartresize",e&&clearTimeout(e),e=setTimeout(function(){b.event.handle.apply(d,f)},c==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Mason=function(a,c){this.element=b(c),this._create(a),this._init()},b.Mason.settings={isResizable:!0,isAnimated:!1,animationOptions:{queue:!1,duration:500},gutterWidth:0,isRTL:!1,isFitWidth:!1,containerStyle:{position:"relative"}},b.Mason.prototype={_filterFindBricks:function(a){var b=this.options.itemSelector;return b?a.filter(b).add(a.find(b)):a},_getBricks:function(a){var b=this._filterFindBricks(a).css({position:"absolute"}).addClass("masonry-brick");return b},_create:function(c){this.options=b.extend(!
 0,{},b.Mason.settings,c),this.styleQueue=[];var d=this.element[0].style;this.originalStyle={height:d.height||""};var e=this.options.containerStyle;for(var f in e)this.originalStyle[f]=d[f]||"";this.element.css(e),this.horizontalDirection=this.options.isRTL?"right":"left",this.offset={x:parseInt(this.element.css("padding-"+this.horizontalDirection),10),y:parseInt(this.element.css("padding-top"),10)},this.isFluid=this.options.columnWidth&&typeof this.options.columnWidth=="function";var g=this;setTimeout(function(){g.element.addClass("masonry")},0),this.options.isResizable&&b(a).bind("smartresize.masonry",function(){g.resize()}),this.reloadItems()},_init:function(a){this._getColumns(),this._reLayout(a)},option:function(a,c){b.isPlainObject(a)&&(this.options=b.extend(!0,this.options,a))},layout:function(a,b){for(var c=0,d=a.length;c<d;c++)this._placeBrick(a[c]);var e={};e.height=Math.max.apply(Math,this.colYs);if(this.options.isFitWidth){var f=0;c=this.cols;while(--c){if(this.colYs[c]!=
 =0)break;f++}e.width=(this.cols-f)*this.columnWidth-this.options.gutterWidth}this.styleQueue.push({$el:this.element,style:e});var g=this.isLaidOut?this.options.isAnimated?"animate":"css":"css",h=this.options.animationOptions,i;for(c=0,d=this.styleQueue.length;c<d;c++)i=this.styleQueue[c],i.$el[g](i.style,h);this.styleQueue=[],b&&b.call(a),this.isLaidOut=!0},_getColumns:function(){var a=this.options.isFitWidth?this.element.parent():this.element,b=a.width();this.columnWidth=this.isFluid?this.options.columnWidth(b):this.options.columnWidth||this.$bricks.outerWidth(!0)||b,this.columnWidth+=this.options.gutterWidth,this.cols=Math.floor((b+this.options.gutterWidth)/this.columnWidth),this.cols=Math.max(this.cols,1)},_placeBrick:function(a){var c=b(a),d,e,f,g,h;d=Math.ceil(c.outerWidth(!0)/this.columnWidth),d=Math.min(d,this.cols);if(d===1)f=this.colYs;else{e=this.cols+1-d,f=[];for(h=0;h<e;h++)g=this.colYs.slice(h,h+d),f[h]=Math.max.apply(Math,g)}var i=Math.min.apply(Math,f),j=0;for(var k=0
 ,l=f.length;k<l;k++)if(f[k]===i){j=k;break}var m={top:i+this.offset.y};m[this.horizontalDirection]=this.columnWidth*j+this.offset.x,this.styleQueue.push({$el:c,style:m});var n=i+c.outerHeight(!0),o=this.cols+1-l;for(k=0;k<o;k++)this.colYs[j+k]=n},resize:function(){var a=this.cols;this._getColumns(),(this.isFluid||this.cols!==a)&&this._reLayout()},_reLayout:function(a){var b=this.cols;this.colYs=[];while(b--)this.colYs.push(0);this.layout(this.$bricks,a)},reloadItems:function(){this.$bricks=this._getBricks(this.element.children())},reload:function(a){this.reloadItems(),this._init(a)},appended:function(a,b,c){if(b){this._filterFindBricks(a).css({top:this.element.height()});var d=this;setTimeout(function(){d._appended(a,c)},1)}else this._appended(a,c)},_appended:function(a,b){var c=this._getBricks(a);this.$bricks=this.$bricks.add(c),this.layout(c,b)},remove:function(a){this.$bricks=this.$bricks.not(a),a.remove()},destroy:function(){this.$bricks.removeClass("masonry-brick").each(functio
 n(){this.style.position="",this.style.top="",this.style.left=""});var c=this.element[0].style;for(var d in this.originalStyle)c[d]=this.originalStyle[d];this.element.unbind(".masonry").removeClass("masonry").removeData("masonry"),b(a).unbind(".masonry")}},b.fn.imagesLoaded=function(a){function h(){a.call(c,d)}function i(a){var c=a.target;c.src!==f&&b.inArray(c,g)===-1&&(g.push(c),--e<=0&&(setTimeout(h),d.unbind(".imagesLoaded",i)))}var c=this,d=c.find("img").add(c.filter("img")),e=d.length,f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",g=[];return e||h(),d.bind("load.imagesLoaded error.imagesLoaded",i).each(function(){var a=this.src;this.src=f,this.src=a}),c};var f=function(b){a.console&&a.console.error(b)};b.fn.masonry=function(a){if(typeof a=="string"){var c=Array.prototype.slice.call(arguments,1);this.each(function(){var d=b.data(this,"masonry");if(!d){f("cannot call methods on masonry prior to initialization; attempted to call method '"+a+"'");return}
 if(!b.isFunction(d[a])||a.charAt(0)==="_"){f("no such method '"+a+"' for masonry instance");return}d[a].apply(d,c)})}else this.each(function(){var c=b.data(this,"masonry");c?(c.option(a||{}),c._init()):b.data(this,"masonry",new b.Mason(a,this))});return this}})(window,jQuery);
\ No newline at end of file


[25/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery-1.7.1.min.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery-1.7.1.min.js b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery-1.7.1.min.js
new file mode 100755
index 0000000..198b3ff
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery-1.7.1.min.js
@@ -0,0 +1,4 @@
+/*! jQuery v1.7.1 jquery.com | jquery.org/license */
+(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p
 ;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function cb(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function ca(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bE.test(a)?d(a,e):ca(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e i
 n b)ca(a+"["+e+"]",b[e],c,d);else d(a,b)}function b_(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function b$(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bT,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=b$(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=b$(a,c,d,e,"*",g));return l}function bZ(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bP),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bC(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bx:by,g=0,h=e.length;if(d>0){if(c!=="border")for(;g<h;g++)c||(d-=parseFloat(f.css(a,"padding"+e[g]))||0),c==="margin"?d+=parseFloat(f.css(a,c+e[g]))||0:d-=parseFloat(f.css(a,"border"+e[g]+"Width"))||0;return d+"px"}d=bz(a,b,b);if(d<0||d==n
 ull)d=a.style[b]||0;d=parseFloat(d)||0;if(c)for(;g<h;g++)d+=parseFloat(f.css(a,"padding"+e[g]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+e[g]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+e[g]))||0);return d+"px"}function bp(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;if(b.nodeType===1){b.clearAttributes&&
 b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c+(i[c][d].namespace?".":"")+i[c][d].namespace,i[c][d],i[c][d].data)}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a
 ,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parse
 Float(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.pro
 totype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.
 context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].
 splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventLis
 tener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return nul
 l;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)bre
 ak;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([
 ],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},brows
 er:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?m(g):h==="function"&&(!a.unique||!o.has(g))&&c.push(g)},n=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,l=j||0,j=0,k=c.length;for(;c&&l<k;l++)if(c[l].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}i=!1,c&&(a.once?e===!0?o.disable():c=[]:d&&d.length&&(e=d.shift(),o.fireWith(e[0],e[1])))},o={add:function(){if(c){var a=c.lengt
 h;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){i&&f<=k&&(k--,f<=l&&l--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&o.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(i?a.once||d.push([b,c]):(!a.once||!e)&&n(b,c));return this},fire:function(){o.fireWith(this,arguments);return this},fired:function(){return!!e}};return o};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,th
 en:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(argument
 s,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p,q=c.createElement("div"),r=c.documentElement;q.setAttribute("className","t"),q.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.st
 yle.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendCh
 ild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="<div "+n+"><div></div></div>"+"<table "+n+" cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="<table><tr><td style='padding:0;b
 order:0;display:none'></td><td>t</td></tr></table>",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="<div style='width:4px;'></div>",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.rem
 oveChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(
 b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h=null;if(typeof a=="undefined"){if(this.length){h=f.data(this[0]);if(this[0].nodeType===1&&!f._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var i=0,j=e.length;i<j;i++)g=e[i].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),l(this[0],g,h[g]));f._data(this[0],"parsedAttrs",!0)}}return h}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split("."
 ),d[1]=d[1]?"."+d[1]:"";if(c===b){h=this.triggerHandler("getData"+d[1]+"!",[d[0]]),h===b&&this.length&&(h=f.data(this[0],a),h=l(this[0],a,h));return h===b&&d[1]?this.data(d[0]):h}return this.each(function(){var b=f(this),e=[d[0],c];b.triggerHandler("setData"+d[1]+"!",e),f.data(this,a,c),b.triggerHandler("changeData"+d[1]+"!",e)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b
 )},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise()}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textare
 a)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){
 f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return
 !1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNod
 e,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h<g;h++)e=d[h],e&&(c=f.propFix[e]||e,f.attr(a,e,""),a.removeAttr
 ibute(v?e:c),u.test(e)&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{ta
 bIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""
 &&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,
 C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};
+f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function
 (a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+
 f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"ev
 ents")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=[],j,k,l,m,n,o,p,q,r,s,t;g[0]=c,c.delegateTarget=this;if(e&&!c.target.disabled&&(!c.button||c.type!=="click")){m=f(this),m.context=this.ownerDocument||this;for(l=c.target;l!=this;l=l.parentNode||this){o={},q=[],m[0]=l;for(j=0;j<e;j++)r=d[j],s=r.selector,o[s]===b&&(o[s]=r.quick?H(l,r.quick):m.is(s)),o[s]&&q.push(r);q.length&&i.push({elem:l,matches:q})}}d.length>e&&i.push({
 elem:this,matches:d.slice(e)});for(j=0;j<i.length&&!c.isPropagationStopped();j++){p=i[j],c.currentTarget=p.elem;for(k=0;k<p.matches.length&&!c.isImmediatePropagationStopped();k++){r=p.matches[k];if(h||!c.namespace&&!r.namespace||c.namespace_re&&c.namespace_re.test(r.namespace))c.data=r.data,c.handleObj=r,n=((f.event.special[r.origType]||{}).handle||r.handler).apply(p.elem,g),n!==b&&(c.result=n,n===!1&&(c.preventDefault(),c.stopPropagation()))}}return c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pa
 geX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeun
 load=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.s
 topPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0)}),d._submit_attached=!0)})},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,".
 _submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusi
 n",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on.call(this,a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function"
 )d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin 
 focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]
 +)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n
 .expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break
 }}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e
 +=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.len
 gth,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?nu
 ll:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[
 3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},
 password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b
 ,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=n
 ull?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d
 .push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElement
 ById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=functi
 on(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.
 call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.co
 ntains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.POS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i
 ]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&t
 his[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},co
 ntents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summar
 y|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="obje
 ct"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:fun
 ction(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function()
+{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach()
 );return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bp)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0
 ];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(
 a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createText
 Node(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bn(k[i]);else bn(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||be.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bq=/alpha\([^)]*\
 )/i,br=/opacity=([^)]*)/,bs=/([A-Z]|^ms)/g,bt=/^-?\d+(?:px)?$/i,bu=/^-?\d/,bv=/^([\-+])=([\-+.\de]+)/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Left","Right"],by=["Top","Bottom"],bz,bA,bB;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bz(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bv.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&
 &isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bz)return bz(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return bC(a,b,d);f.swap(a,bw,function(){e=bC(a,b,d)});return e}},set:function(a,b){if(!bt.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;i
 f(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"au
 to":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arg
 uments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSe
 nd".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m)
 {if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHead
 ers:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("
 ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));tr
 y{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(
 j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&
 e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.
 readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cv(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style
 ){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cu("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cu("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&
 (a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cv(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cn.test(h)?(o=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),o?(f._data(this,"toggle"+i,o==="show"?"hide":"show"),j[o]()):j[h]()):(k=co.exec(h),l=j.cur(),k?(m=parseFloat(k[2]),n=k[3]||(f.cssNumber[i]?"":"px"),n!=="px"&&(f.style(this,i,(m||1)+n),l=(m||1)/j.cur()*l,f.style(this,i,l+n)),k[1]&&(m=(k[1]==="-="?-1:1)*m+l),j.custom(l,m,n)):j.custom(l,h,""));return!0}var e=f.speed(b,
 c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a
 ,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;t
 his.startTime=cr||cs(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){e.options.hide&&f._data(e.elem,"fxshow"+e.prop)===b&&f._data(e.elem,"fxshow"+e.prop,e.start)},h()&&f.timers.push(h)&&!cp&&(cp=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cr||cs(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.anim
 atedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;f

<TRUNCATED>

[09/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/faq.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/faq.html b/products/stratos_controller/modules/distribution/lib/home/faq.html
deleted file mode 100755
index 1aa750c..0000000
--- a/products/stratos_controller/modules/distribution/lib/home/faq.html
+++ /dev/null
@@ -1,392 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-
-
-
-
-<script src="js/ga.js" async="" type="text/javascript"></script>
-
-
-
-	
-		<script type="text/javascript" src="../../carbon/googleanalytics/js/jquery.min.js"></script>
-                <script type="text/javascript" src="../../carbon/googleanalytics/js/googleAnalyticsProcessor.js"></script>
-		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
-		<title>WSO2 StratosLive – the most complete open PaaS powered by the multi-tenant WSO2 Stratos cloud middleware platform,  and WSO2 Carbon enterprise middleware platform</title>
-		<link href="style.css" rel="stylesheet" type="text/css" media="all" />
-		<meta name="description" content="WSO2 is the lean enterprise middleware company, delivering the only complete open source enterprise SOA middleware stack available internally and in the cloud." />
-		<meta name="keywords" content="cloud, platform-as-a-service, PaaS, multi-tenant, cloud enterprise middleware, SOA, open source PaaS" />
-	 	<link rel="stylesheet" href="js/orbit-1.2.3.css">
-		<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
-		<script type="text/javascript" src="js/jquery.orbit-1.2.3.min.js"></script>	
-		
-		
-			<!--[if IE]>
-			     <style type="text/css">
-			         .timer { display: none !important; }
-			         div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; }
-			    </style>
-			<![endif]-->
-		
-		<script type="text/javascript">
-			$(window).load(function() {
-				$('#featured').orbit({
-					timer: false
-				});
-			});
-		</script>
-	<style type="text/css" charset="utf-8">/* See license.txt for terms of usage */
-</style></head><body dir="LTR" lang="en-US" text="#000000">
-		<div id="main-content">
-			<div id="header">
-				<div class="top-nav">
-					<ul>
-						<li><a href="http://stratoslive.wso2.com/" target="_blank">Stratoslive</a></li>
-						<li><a target="_blank" href="http://wso2.com/cloud/stratoslive/">Stratoslive home</a></li>
-						<li><a href="http://wso2.com/cloud/stratoslive/pricing/" target="_blank">Pricing</a></li>
-						<li class="right"><a href="http://www.wso2.com/cloud/services/support" target="_blank">Support</a></li>
-					</ul>
-				</div>
-<div class="logo"><img src="images/logo.gif"></div>
-
-			
-			</div>
-<p style="text-decoration: none;" align="JUSTIFY">
-<b><a name="faqs"></a>StratosLive Frequently Asked Questions</b>
-</p>
-
-
-			<div id="content">
-
-
-					
-					
-					<div class="banner">
-						
-					</div>
-
-	
-	
-	
-	
-	
-	
-	<style type="text/css">
-	<!--
-		P { color: #000000; font-family: "Arial"; font-size: 11pt }
-	-->
-	</style>
-
-<p style="text-decoration: none;" align="JUSTIFY"><br>
-</p>
-<pre><p align="JUSTIFY"><a href="#startup"><strong>	StratosLive Start-up Questions</strong></a>
-    </p><p align="JUSTIFY"><a href="#general"><strong>	Using StratosLive - General Questions</strong></a>
-    </p><p align="JUSTIFY"><a href="#features"><strong>	StratosLive Features</strong></a>
-    </p><p align="JUSTIFY"><a href="#private"><strong>	Stratos Private Set up</strong></a>
-</p></pre>
-<br><br>
-<p style="font-style: normal; font-weight: normal;" align="JUSTIFY"><a name="startup"></a><u><strong>StratosLive
-Start-up Questions</strong></u></p>
-<ol>
-	<li><p align="JUSTIFY"><strong>I have registered an account just now. Why am I
-	unable to log in yet?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Please make sure that you have validated the
-registration, by clicking the validation link in the email sent to
-you. Also make sure that you have entered the username (in the form
-of adminname@domainname) and password correct.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="2">
-	<li><p align="JUSTIFY"><strong>Why should I validate my domain?</strong></p>
-</li></ol>
-<p align="JUSTIFY">While domain validation is optional, you can prove
-the ownership of the domain by validating the domain. Otherwise, you
-may have to lose your account, if the legitimate owner of the domain
-claims it. You might skip this step at the time of registration, and
-validate the domain at a later time from your account.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="3">
-	<li><p align="JUSTIFY"><strong>I have registered for a particular Stratos
-	Service. Now do I have to register for the other services?</strong></p>
-</li></ol>
-<p align="JUSTIFY">No, you don't have to. Stratos tenants are centrally
-managed. That means, if you have registered from a service, you will
-be able to use all the Stratos services. However, as the tenant
-admin, you will be able to activate and deactivate the Stratos
-services, from Stratos Manager.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="4">
-	<li><p align="JUSTIFY"><strong>I didn't get any email after registering or
-	after resetting my password?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Please check your spam folder, in case if the mail
-had been treated as a spam by your mail server. If it is still not
-there, you may need to contact WSO2 Support on sorting this out. We
-are glad to help from our end.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="5">
-	<li><p align="JUSTIFY"><strong>How do I get any further assistance on using
-	Stratos/StratosLive?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Please contact WSO2 using <a href="http://wso2.com/contact/">http://wso2.com/contact/</a>, if
-you need further assistance. StratosLive forum can be found at
-<a href="http://wso2.org/forum/1241">http://wso2.org/forum/1241</a>.
-You also can send your queries to the stratos-dev mailing list (stratos-dev@wso2.org) regarding
-StratosLive PaaS or Stratos Cloud Middleware Platform.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="6">
-	<li><p align="JUSTIFY"><strong>I have registered for a 'Demo/Free'
-	account. Will I be charged, if I exceed the usage limits?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Free/Demo accounts are never charged. Anyway, you
-can upgrade and downgrade your usage plan at any time.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="7">
-	<li><p align="JUSTIFY"><strong>Now I have registered for an account. What's
-	next?</strong></p>
-</li></ol>
-<p align="JUSTIFY">If you are familiar with the WSO2 Carbon based
-products, there is nothing new to learn for StratosLive. StratosLive
-is simply the WSO2 Carbon Middleware Platform as a Service, with all
-the WSO2 Carbon based products available publicly over the cloud as
-services. For a detailed introduction to the Platform aspect of
-Carbon and StratosLive, refer to the article, <a href="http://wso2.org/library/blog-post/2011/08/wso2-stratoslive-enterprise-ready-java-paas">“WSO2
-StratosLive - An Enterprise Ready Java PaaS</a>.”</p>
-    </p><p align="JUSTIFY"><a href="#faqs"><strong>	Back To Top</strong></a>
-<p align="JUSTIFY"><br><br>
-</p>
-<p align="JUSTIFY"><a name="general"></a><u><strong>Using StratosLive - General Questions</strong></u></p>
-<ol>
-	<li><p align="JUSTIFY"><strong>Does Stratos support multi-tenant model?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Yes, Stratos supports a multi-tenant model. In
-StratosLive PaaS, WSO2 is the super admin, and you have register a
-tenant. You can OEM Stratos, by setting up a private cloud for your
-own. In that case, you would be the super tenant and you can decide
-what level of functionality you want to allow your tenants.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="2">
-	<li><p align="JUSTIFY"><strong>How does Stratos overcome the inherent security
-	challenges of the cloud?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Tenants are isolated from each other in Stratos.
-Data processing code is protected by java security manager, hence the
-custom code deployed by tenants (such as web applications and web
-services) does not have access to it. Tenants are also prevented from
-executing the priviledged actions, such as opening the ports and
-accessing the file system. For more insights, please refer to the
-article, “<a href="http://wso2.org/library/articles/2011/08/wso2-stratoslive-meets-security-challenges-cloud">How
-WSO2 StratosLive meets Security Challenges in Cloud</a>.”</p>
-<p align="JUSTIFY">
-</p>
-<ol start="3">
-	<li><p align="JUSTIFY"><strong>How is multi-tenancy achieved in Stratos? Is it
-	at the Database level or the application level?</strong></p>
-</li></ol>
-<p align="JUSTIFY">It is multi-tenanted at the database level, as far
-as the data stored by Stratos is concerned. For user data, we are
-currently working on a polyglot data architecture which will allow a
-range of choices from a share, multi-tenant NoSQL feature (based on
-Cassandra) to a per-tenant database model.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="4">
-	<li><p align="JUSTIFY"><strong>Do we have the opportunity to customize or
-	extend Stratos as appropriate?</strong></p>
-</li></ol>
-<p align="JUSTIFY">StratosLive is a publicly hosted Stratos Cloud
-Middleware Platform-as-a-Service, where you are using the services as
-a tenant. Tenants have limited access due to the security and the
-other concerns. But if you host Stratos in your own data center and
-OEM Stratos, as super tenant you will be able to extend Stratos and
-customize it more, as you prefer.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="5">
-	<li><p align="JUSTIFY"><strong>What are the developer frameworks supported by
-	Stratos/StratosLive?</strong></p>
-</li></ol>
-<p align="JUSTIFY">StratosLive is a Java Platform as a Service. We
-currently support any Java developer framework as we are currently
-only supporting deploying Java webapps (WAR files). 
-</p>
-<p align="JUSTIFY">
-</p>
-<ol start="6">
-	<li><p align="JUSTIFY"><strong>Does Stratos support secure tunneling?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Yes, Stratos supports secure tunneling via the <a href="http://wso2.com/cloud/connectors/services-gateway/">Cloud
-Services Gateway</a>. Cloud Services Gateway is used to create a
-managed, secured channel for business processes and other tasks
-running in a public cloud to get access to enterprise data and
-services. It allows the service and data owners inside the enterprise
-to selectively publish services and data to the cloud. The resulting
-services can be fully protected – authentication, authorization,
-confidentiality, integrity and more. Here only the approved messages
-are delivered to access the services.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="7">
-	<li><p align="JUSTIFY"><strong>Does Stratos support elasticity?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Yes, we do support elasticity with the cloud
-provider. In StratosLive, the services are fronted by WSO2 Load
-Balancer, which balances the load across the service instances and
-scales the services automatically according to the load. Stratos
-services also can scale with the other load balancers including the
-hardware loadbalancers.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="8">
-	<li><p align="JUSTIFY"><strong>Does Stratos support single sign-on?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Yes, single sign-on and single sign-out are
-supported by design. Once you have logged into any of the Stratos
-services, you will not need to sign in to the other services.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="9">
-	<li><p align="JUSTIFY"><strong>Does Stratos support integration with
-	customer's on-premise Identity Management?</strong> 
-	</p>
-</li></ol>
-<p align="JUSTIFY">Yes. It is possible, and we will need to work with
-the customer to do this.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="10">
-	<li><p align="JUSTIFY"><strong>What lag times can we expect in different
-	parts of the globe?</strong> 
-	</p>
-</li></ol>
-<p align="JUSTIFY">This depends on the clients' deployment
-infrastructure, and where they decide to host it. We are currently
-working on support for Amazon's availability zones, so that we can
-isolate tenants to specific data centers.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="11">
-	<li><p align="JUSTIFY"><strong>Is there any speed issues reported with any
-	specific data types or streams?</strong> 
-	</p>
-</li></ol>
-<p align="JUSTIFY">No issues yet. Our architecture is 100% streaming,
-so we do not expect any issues either. EBay uses WSO2 Eneterprise
-Service Bus for 600 million messages/day and has flat line memory for
-messages ranging from 1kB to 100MB.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="12">
-	<li><p align="JUSTIFY"><strong>What are the supported cloud-providers? 
-	</strong></p>
-</li></ol>
-<p align="JUSTIFY">StratosLive is deployed on our co-lo servers over the
- native hardware. We also have had the public cloud deployed on top of 
-Amazon’s EC2. We also have a private cloud setup that is deployed on 
-Eucalyptus. Stratos follows the open standards, and is not coded for any
- particular cloud provider. Hence it is expected to work on any 
-Infrastructure as a Service.</p>
-    </p><p align="JUSTIFY"><a href="#faqs"><strong>	Back To Top</strong></a>
-<p align="JUSTIFY"><br><br>
-</p>
-<p align="JUSTIFY"><a name="features"></a><u><strong>StratosLive Features</strong></u></p>
-<ol>
-	<li><p align="JUSTIFY"><strong>Does Stratos support encrypted communications?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Yes, it does. Data communication from the browser to
-back-end Admin Services happens over https (encrypted), which
-provides transport-level protection. 
-</p>
-<p align="JUSTIFY">
-</p>
-<ol start="2">
-	<li><p align="JUSTIFY"><strong>Does StratosLive support metering?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Yes, it does. Tenants are metered and billed for
-their usage. Tenants can view their usage information from Stratos
-Manager. For more insights on the metering, throttling, and billing,
-refer to the article “<a href="http://wso2.org/library/articles/2011/08/metering-throttling-billing-stratoslive">Metering,
-Throttling and Billing in StratosLive</a>”.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="3">
-	<li><p align="JUSTIFY"><strong>Do you support Memcache?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Yes, we have a scalable distributed cache using
-EHCache that we expose via the Java caching API.</p>
-    </p><p align="JUSTIFY"><a href="#faqs"><strong>	Back To Top</strong></a>
-<p align="JUSTIFY"><br><br>
-</p>
-<p align="JUSTIFY"><a name="private"></a><u><strong>Stratos Private Set up</strong></u></p>
-<ol>
-	<li><p align="JUSTIFY"><strong>Can we set up our Stratos locally or as a PaaS?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Sure. StratosLive is a publicly hosted PaaS by WSO2.
-Similarly, you can deploy Stratos publicly over the cloud for your
-organization or for the public. In this case, you will be the super
-tenant. You can also deploy Stratos as a private cloud for your
-organization. Hybrid cloud set ups too are possible.</p>
-<p align="JUSTIFY">
-</p>
-<ol start="2">
-	<li><p align="JUSTIFY"><strong>Is it possible to migrate our services and data
-	from our tenant in StratosLive to our private Stratos cloud setup?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Migrating from StratosLive to your private Stratos
-cloud setup is possible, since StratosLive is the same Stratos Cloud
-Middleware platform hosted as StratosLive Platform as a Service. 
-</p>
-<p align="JUSTIFY">
-</p>
-<ol start="3">
-	<li><p align="JUSTIFY"><strong>Can we isolate specific accounts for throttling
-	or increase bandwidth?</strong></p>
-</li></ol>
-<p align="JUSTIFY">Yes, the load balancing logic and throttling logic
-are tenant aware. So if you are deploying Stratos locally, as the
-super tenant, you will be able to throttle the tenants. 
-</p>
-<p align="JUSTIFY">
-</p>
-<ol start="4">
-	<li><p align="JUSTIFY"><strong>Can we setup Stratos in a personal computer?</strong></p>
-</li></ol>
-<p align="JUSTIFY">You can setup Stratos in a computer with all the
-services, given that the computer has the required memory, processor,
-and disk space. For example, Stratos requires 4 GB memory, and at
-least 8 GB is recommended. You may also find it convenient to run
-only the services that you require at once, if you have limited
-resources.</p>
-
-    </p><p align="JUSTIFY"><a href="#faqs"><strong>	Back To Top</strong></a>
-<p align="JUSTIFY"><br><br>
-</p>
-<div class="clear"></div>
-				<div id="bottom">
-					
-					
-					
-					<div class="clear"></div>
-				</div>
-			</div>
-			<div id="footer">
-				<div class="footer-links">
-					<a target="_blank" href="http://www.wso2.com/cloud/services/terms-of-use">Terms of Use</a> | <a target="_blank" href="http://www.wso2.com/cloud/services/privacy-policy">Privacy Policy</a> | <a target="_blank" href="http://wso2.com/cloud/services/sla/">Service Level Agreement</a> | <a target="_blank" href="http://wso2.com/cloud/stratoslive/pricing/">Pricing</a> | <a target="_blank" href="http://www.wso2.com/cloud/services/support">Support</a>
-				</div>
-				<div class="powered">
-						<span>Powered by</span><img src="images/powered-logo.gif" alt="ESB">
-					</div>
-					<span class="copyright">©stratoslive.wso2.com copyright 2010-2012 WSO2, Inc. </span>
-				</div>
-			</div>
-		
-	</body></html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/bottom.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/bottom.gif b/products/stratos_controller/modules/distribution/lib/home/images/bottom.gif
deleted file mode 100755
index 5679266..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/bottom.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/bullet-01.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/bullet-01.gif b/products/stratos_controller/modules/distribution/lib/home/images/bullet-01.gif
deleted file mode 100755
index 7148f4d..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/bullet-01.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/content-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/content-bg.gif b/products/stratos_controller/modules/distribution/lib/home/images/content-bg.gif
deleted file mode 100755
index 6d0a579..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/content-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/favicon.ico
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/favicon.ico b/products/stratos_controller/modules/distribution/lib/home/images/favicon.ico
deleted file mode 100755
index f7b2bbf..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/favicon.ico and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/feature-01-icon.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/feature-01-icon.gif b/products/stratos_controller/modules/distribution/lib/home/images/feature-01-icon.gif
deleted file mode 100755
index ff3ba26..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/feature-01-icon.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/feature-02-icon.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/feature-02-icon.gif b/products/stratos_controller/modules/distribution/lib/home/images/feature-02-icon.gif
deleted file mode 100755
index ee4cb66..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/feature-02-icon.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/feature-03-icon.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/feature-03-icon.gif b/products/stratos_controller/modules/distribution/lib/home/images/feature-03-icon.gif
deleted file mode 100755
index 8f3c2a1..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/feature-03-icon.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/feature-middle-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/feature-middle-bg.gif b/products/stratos_controller/modules/distribution/lib/home/images/feature-middle-bg.gif
deleted file mode 100755
index d2fb97e..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/feature-middle-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/intro-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/intro-bg.gif b/products/stratos_controller/modules/distribution/lib/home/images/intro-bg.gif
deleted file mode 100755
index a38a0df..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/intro-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/intro-text.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/intro-text.gif b/products/stratos_controller/modules/distribution/lib/home/images/intro-text.gif
deleted file mode 100755
index 61441a2..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/intro-text.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/left-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/left-bg.gif b/products/stratos_controller/modules/distribution/lib/home/images/left-bg.gif
deleted file mode 100755
index 72dc051..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/left-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/logo.gif b/products/stratos_controller/modules/distribution/lib/home/images/logo.gif
deleted file mode 100755
index 1e7b2ce..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/powered-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/powered-logo.gif b/products/stratos_controller/modules/distribution/lib/home/images/powered-logo.gif
deleted file mode 100755
index fb478bf..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/powered-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/register.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/register.gif b/products/stratos_controller/modules/distribution/lib/home/images/register.gif
deleted file mode 100755
index 3260908..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/register.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/sign-in.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/sign-in.gif b/products/stratos_controller/modules/distribution/lib/home/images/sign-in.gif
deleted file mode 100755
index ae2a4d7..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/sign-in.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/stratos-products-new.jpg
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/stratos-products-new.jpg b/products/stratos_controller/modules/distribution/lib/home/images/stratos-products-new.jpg
deleted file mode 100755
index bbbdb00..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/stratos-products-new.jpg and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/title-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/title-bg.gif b/products/stratos_controller/modules/distribution/lib/home/images/title-bg.gif
deleted file mode 100755
index 2d539a7..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/title-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/top.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/top.gif b/products/stratos_controller/modules/distribution/lib/home/images/top.gif
deleted file mode 100755
index 9ed482c..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/top.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/webinar.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/webinar.png b/products/stratos_controller/modules/distribution/lib/home/images/webinar.png
deleted file mode 100755
index 434f660..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/webinar.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/images/white-paper.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/images/white-paper.png b/products/stratos_controller/modules/distribution/lib/home/images/white-paper.png
deleted file mode 100755
index 3fb643e..0000000
Binary files a/products/stratos_controller/modules/distribution/lib/home/images/white-paper.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/index.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/index.html b/products/stratos_controller/modules/distribution/lib/home/index.html
deleted file mode 100755
index b186b76..0000000
--- a/products/stratos_controller/modules/distribution/lib/home/index.html
+++ /dev/null
@@ -1,119 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-	<head>  <script type="text/javascript" src="../../carbon/googleanalytics/js/jquery.min.js"></script>
-                <script type="text/javascript" src="../../carbon/googleanalytics/js/googleAnalyticsProcessor.js"></script>
-		<script type="text/javascript" src="../../carbon/googleanalytics/js/jquery.min.js"></script>
-                <script type="text/javascript" src="../../carbon/googleanalytics/js/googleAnalyticsProcessor.js"></script>
-		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
-		<title>WSO2 StratosLive – the most complete open PaaS powered by the multi-tenant WSO2 Stratos cloud middleware platform,  and WSO2 Carbon enterprise middleware platform</title>
-		<link href="style.css" rel="stylesheet" type="text/css" media="all" />
-		<meta name="description" content="WSO2 is the lean enterprise middleware company, delivering the only complete open source enterprise SOA middleware stack available internally and in the cloud." />
-		<meta name="keywords" content="cloud, platform-as-a-service, PaaS, multi-tenant, cloud enterprise middleware, SOA, open source PaaS" />
-	 	<link rel="stylesheet" href="js/orbit-1.2.3.css">
-		<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
-		<script type="text/javascript" src="js/jquery.orbit-1.2.3.min.js"></script>	
-		
-			<!--[if IE]>
-			     <style type="text/css">
-			         .timer { display: none !important; }
-			         div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; }
-			    </style>
-			<![endif]-->
-		
-		<script type="text/javascript">
-			$(window).load(function() {
-				$('#featured').orbit({
-					timer: false
-				});
-			});
-		</script>
-	</head>
-
-	<body>
-		<div id="main-content">
-			<div id="header">
-				<div class="top-nav">
-					<ul>
-						<li><a target="_blank" href="http://wso2.com/cloud/stratoslive/">StratosLive Home</a></li>
-						<li><a target="_blank" href="http://wso2.com/cloud/stratoslive/pricing/">Pricing</a></li>
-						<li><a target="_blank" href="http://docs.wso2.org/display/stratos/Stratos+Frequently+Asked+Questions">FAQ</a></li>
-						<li><a target="_blank" href="http://www.wso2.com/cloud/services/support">Support</a></li>
-						<li class="right"><a target="_blank" href="mailto:support+stratoslive@wso2.com">Contact</a></li>
-					</ul>
-				</div>
-				<div class="logo"><img src="images/logo.gif"/></div>
-			</div>
-			<div id="content">
-				<div id="left">
-					<div class="stratos-products">
-						<div class="title">
-							<img src="images/intro-text.gif" alt="Get instant access right now to enterprise-grade Middleware Platform-as-a-Service:"/>
-						</div>
-						<div class="products">
-							<a href="http://appserver.stratoslive.wso2.com/" class="as-new"></a>
-							<a href="http://data.stratoslive.wso2.com/" class="dss-new"></a>
-							<a href="http://identity.stratoslive.wso2.com/" class="is-new"></a>
-							<a href="http://governance.stratoslive.wso2.com/" class="greg-new"></a>
-							<a href="http://monitor.stratoslive.wso2.com/" class="bam-new"></a>
-							<a href="http://process.stratoslive.wso2.com/" class="bps-new"></a>
-							<a href="http://rule.stratoslive.wso2.com/" class="brs-new"></a>
-							<a href="http://esb.stratoslive.wso2.com/" class="esb-new"></a>
-							<a href="http://messaging.stratoslive.wso2.com/" class="mb-new"></a>
-							<a href="http://cep.stratoslive.wso2.com/" class="cep-new"></a>
-							<a href="http://cg.stratoslive.wso2.com/" class="cg-new"></a>
-							<a href="http://ss.stratoslive.wso2.com/" class="ss-new"></a>
-							<a href="http://ts.stratoslive.wso2.com/" class="ts-new"></a>
-						</div>
-					</div>
-				</div>
-				<div id="right">
-					<div class="register">
-						<a href="https://stratoslive.wso2.com/carbon/tenant-register/select_domain.jsp"><img src="images/register.gif"/></a>
-						<a href="https://stratoslive.wso2.com/carbon/sso-acs/redirect_ajaxprocessor.jsp"><img src="images/sign-in.gif"/></a>
-					</div>
-					
-					<div class="banner">
-						<div id="featured"> 
-							<div class="screencast">
-								<h2>Introducing WSO2 Stratos</h2>
-								<object height="265" width="440"><param value="https://www.youtube.com/v/hF0u6tvDoLQ?fs=1&amp;hl=en_US&amp;fs=1&amp;showinfo=0" name="movie"><param value="true" name="allowFullScreen"><param value="always" name="allowscriptaccess"><embed height="265" width="440" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" src="https://www.youtube.com/v/hF0u6tvDoLQ?fs=1&amp;hl=en_US&amp;fs=1&amp;showinfo=0&amp;rel=0"></object>
-							</div>
-							<div class="whitepaper">
-								<a target="_blank" href="http://wso2.com/casestudies/effective-cloud-enablement-with-wso2-stratos/"><img src="images/white-paper.png"/></a>
-							</div>
-							<div class="webinar">
-								<a target="_blank"href="http://wso2.org/library/webinars/2011/05/lean-cloud-platform"><img src="images/webinar.png"/></a>
-							</div>
-						</div>
-					</div>
-				</div>
-				<div class="clear"></div>
-				<div id="bottom">
-					<div class="feature">
-						Build composite applications that automatically scale
-					</div>
-					<div class="feature">
-						Pay just for the services you use
-					</div>
-					<div class="feature">
-						Freedom to move applications and data to WSO2 Stratos in your own datacenter
-					</div>
-					<div class="clear"></div>
-				</div>
-			</div>
-			<div id="footer">
-				<div class="footer-links">
-					<a target="_blank" href="http://www.wso2.com/cloud/services/terms-of-use">Terms of Use</a> | <a target="_blank" href="http://www.wso2.com/cloud/services/privacy-policy">Privacy Policy</a> | <a target="_blank" href="http://wso2.com/cloud/services/sla/">Service Level Agreement</a> | <a target="_blank" href="http://wso2.com/cloud/stratoslive/pricing/">Pricing</a> | <a target="_blank" href="http://www.wso2.com/cloud/services/support">Support</a>
-				</div>
-				<div class="powered">
-						<span>Powered by</span><img src="images/powered-logo.gif" alt="ESB"/>
-					</div>
-					<span class="copyright">&copy;stratoslive.wso2.com copyright 2010-2012 WSO2, Inc. </span>
-				</div>
-			</div>
-		</div>
-	</body>
-
-</html>


[34/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/cloud-services-desc.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/cloud-services-desc.xml b/products/stratos-controller/conf/cloud-services-desc.xml
new file mode 100644
index 0000000..d7253bc
--- /dev/null
+++ b/products/stratos-controller/conf/cloud-services-desc.xml
@@ -0,0 +1,195 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!--
+     This has the configurations for the cloud services. 
+     Label, link, icon, description, and the other similar information for each of the services are
+     given here. 
+  -->
+<cloudServices xmlns="http://wso2.com/carbon/cloud/mgt/services">
+     <cloudService name="WSO2 Stratos Controller" default="true">
+	<key>SCC</key>
+        <label>WSO2 Stratos Controller</label>
+        <link>https://scc.cloud.wso2.com</link>
+        <!--icon>
+            https://localhost:9443/cloud-services-icons/esb.gif
+        </icon-->
+        <productPageURL>http://wso2.com/cloud/stratos</productPageURL>
+        <description>WSO2 stratos controller.</description>
+    </cloudService>
+    <cloudService name="WSO2 Cloud Controller" default="true">
+	<key>CC</key>
+        <label>WSO2 Cloud Controller</label>
+        <link>https://cc.cloud.wso2.com</link>
+        <!--icon>
+            https://localhost:9443/cloud-services-icons/esb.gif
+        </icon-->
+        <productPageURL>http://wso2.com/cloud/stratos</productPageURL>
+        <description>WSO2 Cloud Controller.</description>
+    </cloudService>
+    <cloudService name="WSO2 Stratos Agent" default="true">
+	<key>Agent</key>
+        <label>WSO2 Stratos Agent</label>
+        <link>https://cc.cloud.wso2.com</link>
+        <!--icon>
+            https://localhost:9443/cloud-services-icons/esb.gif
+        </icon-->
+        <productPageURL>http://wso2.com/cloud/stratos</productPageURL>
+        <description>WSO2 Stratos Agent.</description>
+    </cloudService>
+    <cloudService name="WSO2 Enterprise Service Bus" default="true">
+	<key>ESB</key>
+        <label>Enterprise Service Bus</label>
+        <link>https://esb.cloud.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/esb.gif
+        </icon>
+        <productPageURL>http://wso2.com/products/enterprise-service-bus/</productPageURL>
+        <description>Enterprise Service Bus in the cloud.</description>
+    </cloudService>
+    <cloudService name="Application Server" default="true">
+	<key>AS</key>
+        <label>Application Server</label>
+        <link>https://appserver.cloud.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/appserver.gif
+        </icon>
+        <productPageURL>http://wso2.com/products/application-server/</productPageURL>
+        <description>Application Server in the cloud.</description>
+    </cloudService>
+    <cloudService name="WSO2 Data Services Server" default="true">
+	<key>DSS</key>
+        <label>WSO2 Data Services Server</label>
+        <link>https://dss.cloud.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/ds.gif
+        </icon>
+        <productPageURL>http://wso2.com/products/data-services-server/</productPageURL>
+        <description>Data Services Server in the cloud.</description>
+    </cloudService>
+    <cloudService name="WSO2 Governance Registry" default="true">
+	<key>Greg</key>
+        <label>Governance</label>
+        <link>https://governance.cloud.wso2.com</link>
+        <description>Governance in the cloud.</description>
+        <icon>
+            https://localhost:9443/cloud-services-icons/governance.gif
+        </icon>
+        <productPageURL>http://wso2.com/products/governance-registry/</productPageURL>
+    </cloudService>
+    <cloudService name="WSO2 Identity Server" default="true">
+	<key>IS</key>
+        <label>WSO2 Identity Server</label>
+        <link>https://identity.cloud.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/identity.gif
+        </icon>
+        <description>Identity in the cloud.</description>
+        <productPageURL>http://wso2.com/products/identity-server/</productPageURL>
+    </cloudService>
+    <cloudService name="WSO2 Business Activity Monitor" default="true">
+        <label>Business Activity Monitor</label>
+        <link>https://bam.cloud.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/bam.gif
+        </icon>
+        <description>Business Activity Monitor in the cloud.</description>
+        <productPageURL>http://wso2.com/products/business-activity-monitor/</productPageURL>
+    </cloudService>
+    <cloudService name="WSO2 Business Process Server" default="true">
+	<key>BPS</key>
+        <label>Business Process Server</label>
+        <link>https://bps.cloud.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/bps.gif
+        </icon>
+        <description>Business Process Server in the cloud.</description>
+        <productPageURL>http://wso2.com/products/business-process-server/</productPageURL>
+    </cloudService>
+    <cloudService name="WSO2 Business Rule Server" default="true">
+	<key>BRS</key>
+        <label>Business Rule Server</label>
+        <link>https://brs.cloud.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/brs.gif
+        </icon>
+        <description>Business Rules Server in the cloud.</description>
+        <productPageURL>http://wso2.com/products/business-rules-server/</productPageURL>
+    </cloudService>
+    <cloudService name="WSO2 Mashup Server" default="true">
+	<key>MB</key>
+        <label>Mashup Server</label>
+        <link>https://mashup.cloud.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/mashup.gif
+        </icon>
+        <description>Mashup Server in the cloud.</description>
+        <productPageURL>http://wso2.com/products/mashup-server/</productPageURL>
+    </cloudService>
+    <cloudService name="WSO2 Gadget Server" default="true">
+	<key>GS</key>
+        <label>Gadget Server</label>
+        <link>https://gadget.cloud.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/gadget.gif
+        </icon>
+        <description>Gadgets in the cloud.</description>
+        <productPageURL>http://wso2.com/products/gadget-server/</productPageURL>
+    </cloudService>
+    <cloudService name="Cloud Gateway" default="true">
+	<key>CG</key>
+        <label>Cloud Gateway</label>
+        <link>https://cg.stratoslive.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/csg.gif
+        </icon>
+        <description>Cloud Gateway in the cloud.</description>
+		<productPageURL>http://wso2.com/products/cloud-services-gateway/</productPageURL> <!-- FIXME, put the correct project home -->
+    </cloudService>
+    <cloudService name="WSO2 Complex Event Processor" default="true">
+	<key>CEP</key>
+        <label>Complex Event Processor</label>
+        <link>https://cep.cloud.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/cep.gif
+        </icon>
+        <productPageURL>http://wso2.com/products/complex-event-processing-server/</productPageURL> <!-- FIXME, put the correct project home -->
+        <description>Complex Event Processor in the cloud.</description>
+    </cloudService>
+    <cloudService name="WSO2 Message Broker" default="true">
+	<key>MB</key>
+        <label>Message Broker</label>
+        <link>https://mb.cloud.wso2.com</link>
+        <icon>
+            https://localhost:9443/cloud-services-icons/mb.gif
+        </icon>
+        <productPageURL>http://wso2.com/products/message-broker/</productPageURL>
+        <description>Message Broker in the cloud.</description>
+    </cloudService>
+    <cloudService name="WSO2 Storage Server" default="true">
+	<key>SS</key>
+   	<label>WSO2 Storage Server</label>
+   	<link>https://ss.stratoslive.wso2.com</link>
+   	<icon>
+       		https://localhost:9443/cloud-services-icons/ss.gif
+   	</icon>
+   	<description>WSO2 Storage Server.</description>
+   	<productPageURL>http://wso2.com/products/storage-server/</productPageURL>
+    </cloudService>
+</cloudServices>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/datasources.properties
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/datasources.properties b/products/stratos-controller/conf/datasources.properties
new file mode 100644
index 0000000..0cf8cdb
--- /dev/null
+++ b/products/stratos-controller/conf/datasources.properties
@@ -0,0 +1,58 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+################################################################################
+## DataSources Configuration
+################################################################################
+#synapse.datasources=lookupds,reportds
+#synapse.datasources.icFactory=com.sun.jndi.rmi.registry.RegistryContextFactory
+#synapse.datasources.providerPort=2199
+## If following property is present , then assumes that there is an external JNDI provider and will not start a RMI registry
+##synapse.datasources.providerUrl=rmi://localhost:2199
+#
+#synapse.datasources.lookupds.registry=Memory
+#synapse.datasources.lookupds.type=BasicDataSource
+#synapse.datasources.lookupds.driverClassName=org.apache.derby.jdbc.ClientDriver
+#synapse.datasources.lookupds.url=jdbc:derby://localhost:1527/lookupdb;create=false
+## Optionally you can specifiy a specific password provider implementation which overrides any globally configured provider
+#synapse.datasources.lookupds.secretProvider=org.apache.synapse.commons.security.secret.handler.SharedSecretCallbackHandler
+#synapse.datasources.lookupds.username=esb
+## Depending on the password provider used, you may have to use an encrypted password here!
+#synapse.datasources.lookupds.password=esb
+#synapse.datasources.lookupds.dsName=lookupdb
+#synapse.datasources.lookupds.maxActive=100
+#synapse.datasources.lookupds.maxIdle=20
+#synapse.datasources.lookupds.maxWait=10000
+#
+#synapse.datasources.reportds.registry=JNDI
+#synapse.datasources.reportds.type=PerUserPoolDataSource
+#synapse.datasources.reportds.cpdsadapter.factory=org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
+#synapse.datasources.reportds.cpdsadapter.className=org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
+#synapse.datasources.reportds.cpdsadapter.name=cpds
+#synapse.datasources.reportds.dsName=reportdb
+#synapse.datasources.reportds.driverClassName=org.apache.derby.jdbc.ClientDriver
+#synapse.datasources.reportds.url=jdbc:derby://localhost:1527/reportdb;create=false
+## Optionally you can specifiy a specific password provider implementation which overrides any globally configured provider
+#synapse.datasources.reportds.secretProvider=org.apache.synapse.commons.security.secret.handler.SharedSecretCallbackHandler
+#synapse.datasources.reportds.username=esb
+## Depending on the password provider used, you may have to use an encrypted password here!
+#synapse.datasources.reportds.password=esb
+#synapse.datasources.reportds.maxActive=100
+#synapse.datasources.reportds.maxIdle=20
+#synapse.datasources.reportds.maxWait=10000
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-bill-generated.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-bill-generated.xml b/products/stratos-controller/conf/email-bill-generated.xml
new file mode 100755
index 0000000..2310fa4
--- /dev/null
+++ b/products/stratos-controller/conf/email-bill-generated.xml
@@ -0,0 +1,39 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+    Contains the body of the mail that to be sent when bill generation is completed.
+  -->
+
+<configuration>       
+    <subject>[BillGeneration] Bill generation completed</subject>
+    <body>
+Hi ,
+
+Bill generation completed successfully on {date}. Following customers may need your attention.
+
+Customer Name	Subscription Plan	Carried Forward Balance
+===============================================
+{reported-customers}
+
+Best Regards,
+WSO2 Cloud Services
+http://stratoslive.wso2.com
+    </body>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-billing-notifications.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-billing-notifications.xml b/products/stratos-controller/conf/email-billing-notifications.xml
new file mode 100755
index 0000000..afc2807
--- /dev/null
+++ b/products/stratos-controller/conf/email-billing-notifications.xml
@@ -0,0 +1,50 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+    Contains the body of the mail that to be sent as the invoice of the tenant for the period.
+  -->
+
+<configuration>       
+    <subject>WSO2 Cloud Services</subject>
+    <body>
+Hi {customer-name},
+
+This is the billing information for the time period of {start-date} to {end-date} for the use of WSO2 cloud services.
+
+Charges for subscriptions
+=========================
+{subscription-charges}
+
+Payment details
+===============
+{payment-details}
+
+Invoice Summary
+===============
+Brought Forward      {bought-forward}
+Total Cost          {total-cost}
+Total Payments      {total-payments}
+Carried Forward     {carried-forward}
+
+Best Regards,
+WSO2 Cloud Services
+http://stratoslive.wso2.com
+    </body>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-new-tenant-activation.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-new-tenant-activation.xml b/products/stratos-controller/conf/email-new-tenant-activation.xml
new file mode 100755
index 0000000..e24b0cb
--- /dev/null
+++ b/products/stratos-controller/conf/email-new-tenant-activation.xml
@@ -0,0 +1,47 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!--    
+    Contains the body of the mail that to be sent to the super admin or a given admin email address,
+    when a new tenant activates their account.
+  -->
+
+<configuration>       
+    <subject>WSO2 Cloud Services - A Tenant Has Activated Their Account</subject>
+    <body>
+Hi,
+
+Congratulations! A tenant has activated their account just now in WSO2 Cloud Services. 
+
+Tenant Details
+===============
+Admin Name: {user-name}
+Domain Name: {domain-name}
+Email Address: {email-address}
+
+Tenant Admin Profile
+====================
+First Name: {first-name}
+Last Name: {last-name}
+
+Best Regards,
+WSO2 Cloud Services Team
+http://stratoslive.wso2.com
+    </body>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-new-tenant-registration.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-new-tenant-registration.xml b/products/stratos-controller/conf/email-new-tenant-registration.xml
new file mode 100755
index 0000000..8423625
--- /dev/null
+++ b/products/stratos-controller/conf/email-new-tenant-registration.xml
@@ -0,0 +1,47 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!--    
+    Contains the body of the mail that to be sent to the super admin or a given admin email address,
+    when a new tenant registers for an account.
+  -->
+
+<configuration>       
+    <subject>WSO2 Cloud Services - A New Tenant Has Registererd To Stratos</subject>
+    <body>
+Hi,
+
+Congratulations! A new tenant has registered an account in WSO2 Cloud Services. 
+
+Tenant Details
+===============
+Admin Name: {user-name}
+Domain Name: {domain-name}
+Email Address: {email-address}
+
+Tenant Admin Profile
+====================
+First Name: {first-name}
+Last Name: {last-name}
+
+Best Regards,
+WSO2 Cloud Services Team
+http://stratoslive.wso2.com
+    </body>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-password-reset.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-password-reset.xml b/products/stratos-controller/conf/email-password-reset.xml
new file mode 100755
index 0000000..d5a0937
--- /dev/null
+++ b/products/stratos-controller/conf/email-password-reset.xml
@@ -0,0 +1,43 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+   Contains the body of the mail that to be sent when the tenant admin's password is reset, mostly
+   by a service administrator, known as the super-tenant in Stratos-world.
+  -->
+
+<configuration>       
+    <subject>WSO2 Cloud Services - Password Reset</subject>
+    <body>
+Hi {first-name},
+
+Your password for the WSO2 Cloud Services has been reset by the Service Administrator.
+
+Admin Name: {user-name}
+Domain: {domain-name}
+
+Your New Password: {password}
+
+Please use this password along with your existing username to log in to your account. You are adviced to change the password once you logged in to your account using this password.
+
+Best Regards,
+WSO2 Cloud Services Team
+http://stratoslive.wso2.com
+    </body>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-payment-received-customer.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-payment-received-customer.xml b/products/stratos-controller/conf/email-payment-received-customer.xml
new file mode 100755
index 0000000..dff13bc
--- /dev/null
+++ b/products/stratos-controller/conf/email-payment-received-customer.xml
@@ -0,0 +1,39 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+    Contains the body of the mail that to be sent when a payment is received.
+  -->
+
+<configuration>       
+    <subject>[Payment Received] WSO2 Cloud Services</subject>
+    <body>
+Hi {customer-name},
+
+Thank you for your payment done on {date}. Following are the payment details.
+
+Transaction ID	: {transaction-id}
+Amount		: {amount}
+Invoice ID	: {invoice-id}
+
+Best Regards,
+WSO2 Cloud Services
+http://stratoslive.wso2.com
+    </body>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-payment-received-wso2.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-payment-received-wso2.xml b/products/stratos-controller/conf/email-payment-received-wso2.xml
new file mode 100755
index 0000000..c81b5f4
--- /dev/null
+++ b/products/stratos-controller/conf/email-payment-received-wso2.xml
@@ -0,0 +1,39 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+    Contains the body of the mail that to be sent when a payment is received.
+  -->
+
+<configuration>       
+    <subject>[Payment Received] WSO2 Cloud Services</subject>
+    <body>
+Hi Finance Team,
+
+A payment was recived from customer {customer-name} on {date}. Following are the payment details.
+
+Transaction ID	: {transaction-id}
+Amount		: {amount}
+Invoice ID	: {invoice-id}
+
+Best Regards,
+WSO2 Cloud Services
+http://stratoslive.wso2.com
+    </body>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-registration-complete.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-registration-complete.xml b/products/stratos-controller/conf/email-registration-complete.xml
new file mode 100755
index 0000000..02565ec
--- /dev/null
+++ b/products/stratos-controller/conf/email-registration-complete.xml
@@ -0,0 +1,38 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+   The mail that to be sent upon successful registration and the successful validation 
+    of the email.
+  -->
+
+<configuration>       
+    <subject>WSO2 Cloud Services - Registration completed</subject>
+    <body>
+Hi {first-name},
+
+Congratulations! You have successfully created an account in WSO2 Cloud Services. Now you can access your account by visiting the following URL. Please bookmark this URL to visit your account later.
+
+Your account url: https://stratoslive.wso2.com/t/{domain-name}
+
+Best Regards,
+WSO2 Cloud Services Team
+http://stratoslive.wso2.com
+    </body>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-registration-moderation.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-registration-moderation.xml b/products/stratos-controller/conf/email-registration-moderation.xml
new file mode 100755
index 0000000..73fb689
--- /dev/null
+++ b/products/stratos-controller/conf/email-registration-moderation.xml
@@ -0,0 +1,47 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+   The mail to be sent for the tenant registration validation.    
+   This mail has the registration validation link to validate the email too.
+  -->
+
+<configuration>
+    <targetEpr>https://stratoslive.wso2.com/carbon/email-verification/validator_ajaxprocessor.jsp</targetEpr>
+    <subject>WSO2 StratosLive - A New Tenant Awaits Approval</subject>
+    <body>
+Hi,
+
+A new tenant has registered an account in WSO2 StratosLive.
+
+Admin Name: {user-name}
+Domain: {domain-name}
+
+User Name: {user-name}@{domain-name}
+
+Please click the following link to complete the registration request. The registered tenant will not be able to 
+log in or use their account till then.
+    </body>
+    <footer>
+Best Regards,
+WSO2 Stratos Team
+http://stratoslive.wso2.com
+    </footer>
+    <redirectPath>../account-mgt/update_verifier_redirector_ajaxprocessor.jsp</redirectPath>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-registration-payment-received-customer.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-registration-payment-received-customer.xml b/products/stratos-controller/conf/email-registration-payment-received-customer.xml
new file mode 100755
index 0000000..8e1951e
--- /dev/null
+++ b/products/stratos-controller/conf/email-registration-payment-received-customer.xml
@@ -0,0 +1,39 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+    Contains the body of the mail that to be sent when a payment is received.
+  -->
+
+<configuration>       
+    <subject>[Registration Payment] WSO2 Cloud Services</subject>
+    <body>
+Hi {customer-name},
+
+Thank you for your payment done on {date} for StratosLive registration. Following are the payment details.
+
+Transaction ID	: {transaction-id}
+Amount		: {amount}
+Registered domain	: {tenant-domain}
+
+Best Regards,
+WSO2 Cloud Services
+http://stratoslive.wso2.com
+    </body>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-registration.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-registration.xml b/products/stratos-controller/conf/email-registration.xml
new file mode 100755
index 0000000..c789bc0
--- /dev/null
+++ b/products/stratos-controller/conf/email-registration.xml
@@ -0,0 +1,46 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+   The mail to be sent for the tenant registration validation.    
+   This mail has the registration validation link to validate the email too.
+  -->
+
+<configuration>
+    <targetEpr>https://localhost:9443/carbon/email-verification/validator_ajaxprocessor.jsp</targetEpr>
+    <subject>WSO2 Cloud Services - Email validation instructions</subject>
+    <body>
+Hi {first-name},
+
+Thank you for registering an account in WSO2 Cloud Services.
+
+Your Admin Name: {user-name}
+Your Domain: {domain-name}
+
+Your User Name: {user-name}@{domain-name}
+
+Please click the following link to verify your email address.
+    </body>
+    <footer>
+Best Regards,
+WSO2 Cloud Services Team
+http://stratoslive.wso2.com
+    </footer>
+    <redirectPath>../account-mgt/update_verifier_redirector_ajaxprocessor.jsp</redirectPath>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/email-update.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/email-update.xml b/products/stratos-controller/conf/email-update.xml
new file mode 100755
index 0000000..4036900
--- /dev/null
+++ b/products/stratos-controller/conf/email-update.xml
@@ -0,0 +1,39 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+   The mail that to be sent upon receiving an email change request from the account management.
+   The new email address will be notified of this change.
+  -->
+
+<configuration>       
+    <targetEpr>https://localhost:9443/carbon/email-verification/validator_ajaxprocessor.jsp</targetEpr>
+    <subject>WSO2 Cloud Services - Updating the contact email address</subject>
+    <body>
+Hi {first-name},
+
+We got a request from you or some one to associate this email address, as the contact email address of your WSO2 cloud services account. Please click the following link to verify your email address.
+    </body>
+    <footer>
+Best Regards,
+WSO2 Cloud Services Team
+http://stratoslive.wso2.com
+    </footer>
+    <redirectPath>../account-mgt/update_verifier_redirector_ajaxprocessor.jsp</redirectPath>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/embedded-ldap.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/embedded-ldap.xml b/products/stratos-controller/conf/embedded-ldap.xml
new file mode 100644
index 0000000..144628e
--- /dev/null
+++ b/products/stratos-controller/conf/embedded-ldap.xml
@@ -0,0 +1,165 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!--
+	All carbon based products comes with a LDAP user store.
+	For this we use an embedded LDAP in carbon based products.
+	This file contains necessary configurations to control the behavior of embedded LDAP.
+	You may use this file to enable, disable LDAP server, configure connection admin password, etc ...
+	In addition to embedded-ldap server configurations this file also has Kerberos KDC (Key Distribution Center)
+	specific configurations.
+-->
+
+<EmbeddedLDAPConfig>
+
+  <!--
+	LDAP server configurations
+	==========================
+	This section contains LDAP server specific configurations.
+
+	Property                Usage
+	=======                 ====
+	enable                  If true the embedded LDAP server will start when server starts up.
+				            Else embedded LDAP server will not start. Thus user has to use a different
+				            user store.
+	instanceid              An id given to the LDAP server instance.
+	connectionPassword      The password of the admin. (uid=admin,ou=system)
+	workingDirectory        Location where LDAP will store its schema files.
+	AdminEntryObjectClass   Object class which encapsulate attributes needed by claims.
+	allowAnonymousAccess    Should allow users to access LDAP server without credentials. Default false.
+	accessControlEnabled    Should access control be enabled among partitions. Default true.
+	saslHostName            Default host name to be used in SASL (Simple Authentication and Security Layer).
+				            This property comes from apacheds implementation itself.
+	saslPrincipalName       Default SASL principal name. Again this property also comes from apacheds implementation
+				            itself.
+  -->
+  <EmbeddedLDAP>
+    <Property name="enable">false</Property>
+    <Property name="port">${Ports.EmbeddedLDAP.LDAPServerPort}</Property>
+    <Property name="instanceId">default</Property>
+    <Property name="connectionPassword">admin</Property>
+    <Property name="workingDirectory">.</Property>
+    <Property name="AdminEntryObjectClass">wso2Person</Property>
+    <Property name="allowAnonymousAccess">false</Property>
+    <Property name="accessControlEnabled">true</Property>
+    <Property name="denormalizeOpAttrsEnabled">false</Property>
+    <Property name="maxPDUSize">2000000</Property>
+    <Property name="saslHostName">localhost</Property>
+    <Property name="saslPrincipalName">ldap/localhost@EXAMPLE.COM</Property>
+  </EmbeddedLDAP>
+
+  <!--
+	Default partition configurations
+	================================
+	When embedded LDAP server starts for the first time it will create a default partition.
+	Following properties configure values for the default partition.
+
+	Property                        Usage
+	=======                         =====
+	id                              Each partition is given an id. The id given to the default paritition.
+	realm                           Realm is the place where we store user principals and service principals.
+                                        The name of the realm for default partition.
+	kdcPassword                     This parameter is used when KDC (Key Distribution Center) is enabled. In apacheds
+                                        KDC also has a server principal. This defines a password for KDC server principal.
+	ldapServerPrinciplePassword     If LDAP server is also defined as a server principal, this will be the password.
+
+  -->
+  <DefaultPartition>
+    <Property name="id">root</Property>
+    <Property name="realm">wso2.org</Property>
+    <Property name="kdcPassword">secret</Property>
+    <Property name="ldapServerPrinciplePassword">randall</Property>
+  </DefaultPartition>
+
+  <!--
+	Default partition admin configurations
+	======================================
+	In a multi-tenant scenario each tenant will have a separate partition. Thus tenant admin will be the partition admin.
+	Following configurations define admin attributes for above created default partition.
+
+	Property            Usage
+	========            =====
+	uid                 UID attribute for partition admin.
+	commonName          The cn attribute for admin
+	lastName            The sn attribute for admin
+	email               The email attribute for admin
+	passwordType        The password hashing mechanism. Following hashing mechanisms are available, "SHA", "MD5".
+                        "Plaintext" is also a valid value. If KDC is enabled password type will be enforced to be
+                        plain text.
+  -->
+  <PartitionAdmin>
+    <Property name="uid">admin</Property>
+    <Property name="firstName">admin</Property>
+    <Property name="lastName">admin</Property>
+    <Property name="email">admin@wso2.com</Property>
+    <Property name="password">admin</Property>
+    <Property name="passwordType">SHA</Property>
+  </PartitionAdmin>
+
+  <!--
+	Default partition admin's group configuration
+	=============================================
+	Embedded LDAP is capable of keeping group information also.
+	If LDAP groups are enabled in user store (usr-mgt.xml) group information will be
+	recorded in a separate sub-context. Following configuration defines the group
+	properties.
+
+	Property                Usage
+	=======                 =====
+	adminRoleName		    The name of the role/group that admin should be included.
+	groupNameAttribute	    The attribute which group name will be recorded.
+	memberNameAttribute	    The attribute which memebers are recorded.
+  -->
+  <PartitionAdminGroup>
+    <Property name="adminRoleName">admin</Property>
+    <Property name="groupNameAttribute">cn</Property>
+    <Property name="memberNameAttribute">member</Property>
+  </PartitionAdminGroup>
+
+    <!--
+      KDC configurations
+      =================
+      Following configurations are applicable to KDC server. Generally, the KDC is only enabled in
+      Identity Server. You may enable KDC server if you wish to do so. But if you dont have any Kerberos specific
+      programs, it is recommended to disable KDC server.
+
+      Property                          Usage
+      =======                           =====
+      name                              Name given to default KDC server.
+      enabled                           If true a KDC server will start when starting LDAP server.
+                                          Else a KDC server will not start with a LDAP server.
+      protocol                          Default protocol to be used in KDC communication. Default is UDP.
+      maximumTicketLifeTime             The maximum life time of a ticket issued by the KDC.
+      maximumRenewableLifeTime          Life time which a ticket can be used by renewing it several times.
+      preAuthenticationTimeStampEnabled Pre-authentication is a feature in latest Kerberos protocol.
+                                          This property says whether to enable it or disable it.
+    -->
+  <KDCServer>
+    <Property name="name">defaultKDC</Property>
+    <Property name="enabled">false</Property>
+    <Property name="protocol">UDP</Property>
+    <Property name="host">localhost</Property>
+    <Property name="port">${Ports.EmbeddedLDAP.KDCServerPort}</Property>
+    <Property name="maximumTicketLifeTime">8640000</Property>
+    <Property name="maximumRenewableLifeTime">604800000</Property>
+    <Property name="preAuthenticationTimeStampEnabled">true</Property>
+  </KDCServer>
+
+</EmbeddedLDAPConfig>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/event-broker.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/event-broker.xml b/products/stratos-controller/conf/event-broker.xml
new file mode 100644
index 0000000..296c7cd
--- /dev/null
+++ b/products/stratos-controller/conf/event-broker.xml
@@ -0,0 +1,63 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!--
+this is the configuration file for the carbon event broker component. this configuration file configures the various subsystems of the event
+broker compoent and parameters.
+-->
+<eventBrokerConfig xmlns="http://wso2.org/carbon/event/broker">
+    <eventBroker name="carbonEventBroker" class = "org.wso2.carbon.event.core.internal.CarbonEventBrokerFactory">
+         <!-- topic manager implemenation class.-->
+        <topicManager name="TopicManager" class="org.wso2.carbon.event.core.internal.topic.registry.RegisistryTopicManagerFactory">
+            <!-- root node of the topic tree -->
+            <topicStoragePath>event/topics</topicStoragePath>
+        </topicManager>
+        <!-- subscriptionmnager implementaion. subscription manager persits the
+        subscriptions at the registry.  users can configure the topics root node and the topicIndex path -->
+        <subscriptionManager name="subscriptionManager"
+                             class="org.wso2.carbon.event.core.internal.subscription.registry.RegistrySubscriptionManagerFactory">
+            <topicStoragePath>event/topics</topicStoragePath>
+            <indexStoragePath>event/topicIndex</indexStoragePath>
+        </subscriptionManager>
+
+        <!-- delivary manager inmplementation. delivary manager does actual delivary part of the event broker -->
+        <deliveryManager name="deliveryManager"
+                         class="org.wso2.carbon.event.core.internal.delivery.jms.QpidJMSDeliveryManagerFactory"
+                         type="local">
+           <!--  <remoteMessageBroker>
+                <hostName>localhost</hostName>
+                <servicePort>9443</servicePort>
+                <webContext>/</webContext>
+                <userName>admin</userName>
+                <password>admin</password>
+                <qpidPort>5672</qpidPort>
+                <clientID>clientID</clientID>
+                <virtualHostName>carbon</virtualHostName>
+            </remoteMessageBroker> -->
+        </deliveryManager>
+
+         <!-- when publising an event event broker uses a seperate thread pool with an executor. following parameters configure different parameters of that -->
+        <eventPublisher>
+            <minSpareThreads>5</minSpareThreads>
+            <maxThreads>50</maxThreads>
+            <maxQueuedRequests>1000</maxQueuedRequests>
+            <keepAliveTime>1000</keepAliveTime>
+        </eventPublisher>
+    </eventBroker>
+</eventBrokerConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/features-dashboard.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/features-dashboard.xml b/products/stratos-controller/conf/features-dashboard.xml
new file mode 100755
index 0000000..b815dd9
--- /dev/null
+++ b/products/stratos-controller/conf/features-dashboard.xml
@@ -0,0 +1,826 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<data>
+	<service name="Cloud Services" link="https://cloud.wso2.com"
+		key="manager">
+		<story title="Billing">
+			<story-content>Billing is the process where the cloud computing
+				service subscribers are charged
+				based on the metered data. Billing
+				usually happens on a monthly basis.
+				Billing uses
+				pricing rates defined
+				against usage plans and compute the invoice against
+				the usage
+				data.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tenant-billing/past_invoice.jsp">Billing...</link>
+				<link url="/carbon/tenant-billing/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Metering">
+			<story-content>Metering measures levels of resource utilization, such
+				as network bandwidth usage and
+				data storage volume, consumed by the
+				cloud services subscribers, aka
+				tenants.
+				Resource utilization's
+				(bandwidth and storage usage) are measured on the fly
+				and the
+				measured data is stored for summarizing and analyzing.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tenant-usage/tenant_usage.jsp">Go to Metering....</link>
+				<link url="/carbon/tenant-usage/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Account Management">
+			<story-content>Account management allows a tenant to update and
+				validate contact information,
+				update the usage plan, validate the
+				account and even de-activate the
+				account .</story-content>
+			<story-links>
+				<link url="/carbon/account-mgt/account_mgt.jsp">Manage account...</link>
+				<link url="/carbon/account-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Users and Roles">
+			<story-content>You can add users and define your own roles for a
+				tenant. The permission model is
+				role based. So a tenant admin can
+				define what actions a role can perform
+				by
+				configuring permissions for
+				that role.</story-content>
+			<story-links>
+				<link url="/carbon/userstore/index.jsp">Manage users/roles...</link>
+				<link url="/carbon/userstore/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="MT-Logging">
+			<story-content>Flexible logging support with integration to
+				enterprise logging systems. This facilitate to monitor your system
+				and application logs through a log viewer.</story-content>
+			<story-links>
+				<link url="/carbon/log-view/index.jsp">Go to Log Viewer....</link>
+				<link url="/carbon/log-view/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+<!--
+		<story title="Usage Metering and Throttling">
+			<story-content>&lt;a
+				href="http://wso2.org/library/articles/2011/09/usage-metering-throttling-cloud-computing"&gt;&lt;img
+				src="../../../../features-dashboard/dashboards/images/usage_metering_and_throttling.jpg"
+				alt=""/&gt;</story-content>
+				<story-links>
+					<link url=""></link>
+					<link url=""></link>
+				</story-links>
+		</story>
+		<story title="How WSO2 StratosLive meets Security Challenges in Cloud">
+			<story-content> &lt;a
+				href="http://wso2.org/library/articles/2011/08/wso2-stratoslive-meets-security-challenges-cloud"&gt;&lt;img
+				src="../../../../features-dashboard/dashboards/images/tenant_isolation.png"
+				alt=""/&gt;&lt;/a&gt; </story-content>
+		</story>
+-->
+	</service>
+	<service name="Stratos Controller" link="https://cloud.wso2.com"
+		key="sc">
+		<story title="Multi-Tenant Cartridges">
+			<story-content>Stratos Cartridges, hosting WSO2 multi-tenant middleware 
+				services delivers multi-tenancy within each Cartridge instance 
+				where teams may define multiple tenants per Cartridge.
+			</story-content>
+			<story-links>
+				<link url="/carbon/cartridge-mgt/available_cartridges.jsp?item=available_multitenant_cartridges">Available Multi-Tenant Cartridges</link>
+			</story-links>
+		</story>
+		<story title="Single-Tenant Cartridges">
+			<story-content>Stratos Cartridges provide process-level isolation and 
+				instance-level dedicated tenancy with single-tenant containers and frameworks.
+			</story-content>
+			<story-links>
+				<link url="/carbon/cartridge-mgt/available_cartridges.jsp?item=available_singletenant_cartridges">Available Single-Tenant Cartridges</link>
+			</story-links>
+		</story>
+		<story title="Subscribed Cartridges">
+			<story-content>The tenant user can see all details of the Subscribed Cartridges such as
+				the status and the number of running instances at the moment.
+			</story-content>
+			<story-links>
+				<link url="/carbon/cartridge-mgt/subscribed_cartridges.jsp">Subscribed Cartridges</link>
+			</story-links>
+		</story>
+	</service>
+<!--
+	<service name="Enterprise Service Bus" link="https://esb.cloud.wso2.com"
+		key="esb">
+		<story title="Proxy Service">
+			<story-content> Proxy services facilitate location transparency and
+				provides the means for the
+				integration between various other
+				services, on different formats
+			</story-content>
+			<story-links>
+				<link url="/carbon/proxyservices/templates.jsp">Got to services...</link>
+				<link url="/carbon/proxyservices/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Sequence">
+			<story-content>Sequence is a collection of mediators attached to
+				perform a given mediation flow in an
+				integration.
+			</story-content>
+			<story-links>
+				<link url="/carbon/sequences/list_sequences.jsp">Go to Web Applications...</link>
+				<link url="/carbon/sequences/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Endpoint">
+			<story-content>Endpoints represent the third party services or other
+				endpoints the ESB is talking to,
+				this configuration allows you to
+				record a set of meta data about the
+				external endpoint
+				apart from it's
+				EPR
+			</story-content>
+			<story-links>
+				<link url="/carbon/endpoints/index.jsp">Go to Message Tracing...</link>
+				<link url="/carbon/endpoints/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Scheduled Tasks">
+			<story-content>Job scheduling facility in the ESB with quartz
+				scheduler, helping several tasks to be
+				initiated and scheduled by the
+				ESB.</story-content>
+			<story-links>
+				<link url="/carbon/task/index.jsp">Go to WSDL2Java Tool..</link>
+				<link url="/carbon/task/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Store &amp; Forward">
+			<story-content>Message Stores and Processors can be used to persist
+				messages to queues and then process
+				preserving SLAs.</story-content>
+			<story-links>
+				<link url="/carbon/message_processor/index.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/message_processor/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Priority Execution">
+			<story-content>Ability to categorize mediation flows with a priority
+				allowing certain messages or
+				mediation paths to get a high priority
+				with compared to other messages or
+				paths.</story-content>
+			<story-links>
+				<link url="/carbon/executors/list_executors.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/executors/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Application Services" link="https://appserver.cloud.wso2.com"
+		key="as">
+		<story title="Service Hosting">
+			<story-content>Different types of Web Services such as Axis2
+				Services, JAXWS Services, Jar Services
+				or Spring Services can be
+				deployed in Application Server. All
+				configurations such as
+				QoS can be
+				easily configured here.</story-content>
+			<story-links>
+				<link url="/carbon/service-mgt/index.jsp">Got to services...</link>
+				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Web Applications">
+			<story-content>Web Application hosting features in AppServer
+				supports
+				deployment of Tomcat
+				compliant Webapps. Deployed Webapps can be
+				easily managed using the Webapp
+				management facilities available in
+				the management console.
+			</story-content>
+			<story-links>
+				<link url="/carbon/webapp-mgt/upload.jsp">Go to Web Applications...</link>
+				<link url="/carbon/webapp-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Message Tracing">
+			<story-content>Trace the request and responses to your service.
+				Message Tracing is a vital
+				debugging tool when you have clients from
+				heterogeneous platforms.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tracer/index.jsp">Go to Message Tracing...</link>
+				<link url="/carbon/tracer/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="WSDL2Java Tool">
+			<story-content>Use WSDL2Java tool in Web Application Server to
+				convert Web Service WSDL to a set of
+				Java objects.</story-content>
+			<story-links>
+				<link url="/carbon/wsdl2code/index.jsp">Go to WSDL2Java Tool..</link>
+				<link url="/carbon/wsdl2code/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Java2WSDL Tool">
+			<story-content>Use Java2WSDL tool in Web Application Server make it
+				easy to develop a new web service.</story-content>
+			<story-links>
+				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Data Services" link="https://dss.cloud.wso2.com"
+		key="dss">
+		<story title="Data Service Hosting">
+			<story-content>Data Web Services can be deployed in Data Services
+				Server. All configurations such as
+				QoS can be easily configured here.
+			</story-content>
+			<story-links>
+				<link url="/carbon/service-mgt/index.jsp">Got to services...</link>
+				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Data as a Service">
+			<story-content>Create your databases on the cloud, and acess those as
+				you would do with regular
+				databases.</story-content>
+			<story-links>
+				<link url="/carbon/ds/scriptAddSource.jsp">Go to data sources...</link>
+				<link url="/carbon/ds/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Service Testing">
+			<story-content>Tryit tool can be used as a simple Web Service client
+				which can be used to try your
+				services within AppServer itself.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tryit/index.jsp">Go
+					to Service Testing...</link>
+				<link url="/carbon/tryit/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Message Tracing">
+			<story-content>Trace the request and responses to your service.
+				Message Tracing is a vital
+				debugging tool when you have clients from
+				heterogeneous platforms.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tracer/index.jsp">Go to Message
+					Tracing...</link>
+				<link url="/carbon/tracer/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="DB Explorer">
+			<story-content>Explore your databases using the explorer tool on
+				the cloud.</story-content>
+			<story-links>
+				<link url="/carbon/adminconsole/databases.jsp">Go to DB
+					Explorer Tool...</link>
+				<link url="/carbon/adminconsole/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Relational Storage Solutions on Cloud">
+			<story-content>&lt;a
+				href="http://wso2.org/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive"&gt;&lt;img
+				src="../../../../features-dashboard/dashboards/images/configure_db.png"
+				alt=""/&gt;</story-content>
+			<story-links>
+				<link
+					url="http://wso2.org/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive">Read
+					online...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Governance Services" link="https://governance.cloud.wso2.com"
+		key="greg">
+		<story title="Service">
+			<story-content>Service is the basic entity of your SOA platform. You
+				can manage service metadata and
+				the service lifecycle as well as
+				maintain multiple versions of a given
+				service, and much
+				more.
+			</story-content>
+			<story-links>
+				<link url="/carbon/services/services.jsp">Got to services...</link>
+				<link url="/carbon/services/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="WSDL">
+			<story-content>WSDL defines the interface of a web service. You can
+				store, validate and manage WSDLs
+				with ease, keeping track of
+				dependencies and associations such as
+				services, schema and
+				policies.
+			</story-content>
+			<story-links>
+				<link url="/carbon/wsdl/wsdl.jsp">Go to WSDL</link>
+				<link url="/carbon/wsdl/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Schema">
+			<story-content>XML Schema defines data types in a WSDL. As in the
+				case of WSDLs, you can keep
+				associations of schema which helps in the
+				impact analysis process, when
+				maintaining the
+				data models associated
+				with your SOA.</story-content>
+			<story-links>
+				<link url="/carbon/schema/schema.jsp">Go to Schema...</link>
+				<link url="/carbon/schema/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Policy">
+			<story-content>Policies help standardize SOA behaviour. You can keep
+				track of the policies bound to a
+				service. It also supports policy
+				enforcement to control how SOA behaves as
+				desired by
+				both IT and
+				business personnel.</story-content>
+			<story-links>
+				<link url="/carbon/policy/policy.jsp">Go to Policy..</link>
+				<link url="/carbon/policy/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Search">
+			<story-content>The repository can store any arbitrary type of
+				resource. You can search for resources by
+				name, author, time created
+				or updated. You also can search for resources
+				by media type.
+			</story-content>
+			<story-links>
+				<link url="/carbon/search/advancedSearch.jsp">Go to Search...</link>
+				<link url="/carbon/search/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Activities">
+			<story-content>An activity log provide an invaluable insight to what
+				operations took place on the
+				repository. You can browse activities
+				while filtering them by date range, user
+				name, or
+				activity type.
+			</story-content>
+			<story-links>
+				<link url="/carbon/activities/activity.jsp">Go to Activities...</link>
+				<link url="/carbon/activities/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Notifications">
+			<story-content>The registry generates events when changes are made to
+				a particular resource or
+				collection. You can subscribe to these
+				events via e-mail, or forward them to a
+				web
+				service via SOAP or REST.
+			</story-content>
+			<story-links>
+				<link url="/carbon/notifications/notifications.jsp">Go to Notifications...</link>
+				<link url="/carbon/notifications/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Extensions">
+			<story-content>While we address most governance and registry related
+				scenarios out-of-the-box, you also
+				can upload your own extensions
+				that is capable of extending the basic
+				functionality of
+				the product
+			</story-content>
+			<story-links>
+				<link url="/carbon/extensions/add_extensions.jsp">Go to Activities...</link>
+				<link url="/carbon/extensions/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Identity Services" link="https://governance.cloud.wso2.com"
+		key="is">
+		<story title="User Profile">
+			<story-content>Update your user profile or add multiple user
+				profiles.The value from your profile will
+				be used to populate your
+				Information card and OpenID profiles.
+			</story-content>
+			<story-links>
+				<link url="/carbon/userprofile/index.jsp">Got to User Profile...</link>
+				<link url="/carbon/userprofile/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="OpenID">
+			<story-content>This OpenID can be used with any OpenID relying party
+				which trusts your domain for
+				login.</story-content>
+			<story-links>
+				<link url="/carbon/identity-provider/index.jsp">Go to OpenID...</link>
+				<link url="/carbon/identity-provider/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Information Card">
+			<story-content>This card can be used with any identity selector that
+				supports Microsoft CardSpace
+				specifications and will allow you to
+				login to web applications that support
+				information
+				card logins.
+			</story-content>
+			<story-links>
+				<link url="/carbon/identity-provider/index.jsp">Go to Information Card...</link>
+				<link url="/carbon/identity-provider/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="SAML 2.0 Single Sign-On">
+			<story-content>Use WSO2 Identity Server for Single Sign-on
+				configuration. Service Providers can be
+				added and removed.
+			</story-content>
+			<story-links>
+				<link url="/carbon/sso-saml/manage_service_providers.jsp">Go to SAML 2.0 Single Sign-On..</link>
+				<link url="/carbon/sso-saml/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Multifactor Authentication">
+			<story-content>Use WSO2 Identity Server to Enable XMPP based
+				multi-factor authentication.</story-content>
+			<story-links>
+				<link url="/carbon/multi-factor/xmpp-config.jsp">Go to Multifactor Authentication...</link>
+				<link url="/carbon/multi-factor/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Users and Roles">
+			<story-content>WSO2 Identity Server enables you to manage users and
+				roles in your system.</story-content>
+			<story-links>
+				<link url="/carbon/userstore/index.jsp">Go to Users and Roles...</link>
+				<link url="/carbon/userstore/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Relying Parties">
+			<story-content>Manage your Relying Parties with WSO2 Identity Server.
+			</story-content>
+			<story-links>
+				<link url="/carbon/identity-trusted-relying-parties/add-trusted-rp.jsp">Go to Relying Parties...</link>
+				<link url="/carbon/identity-trusted-relying-parties/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Key Stores">
+			<story-content>Manage your Key Stores with WSO2 Identity Server
+			</story-content>
+			<story-links>
+				<link url="/carbon/keystoremgt/keystore-mgt.jsp">Go to Activities...</link>
+				<link url="/carbon/keystoremgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Business Activity Monitor" link="https://bam.cloud.wso2.com"
+		key="bam">
+		<story title="Real Time Mediation Monitoring">
+			<story-content>Monitor proxy services, endpoints and sequences and
+				their operations in real time. The
+				results gathered from the
+				real-time monitoring are presented in a clear and
+				easy-to-view
+				format.</story-content>
+			<story-links>
+				<link url="/carbon/service-mgt/index.jsp">Got to services...</link>
+				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Mediation Analysis">
+			<story-content>Analyze the historical mediation trends over time with
+				the help of visualization
+				framework.</story-content>
+			<story-links>
+				<link url="/carbon/webapp-mgt/upload.jsp">Go to Web Applications...</link>
+				<link url="/carbon/webapp-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Summary Generation">
+			<story-content>Generate a summarised view of collected statistics and
+				write gadgets to display these
+				summarised data.</story-content>
+			<story-links>
+				<link url="/carbon/tracer/index.jsp">Go to Message Tracing...</link>
+				<link url="/carbon/tracer/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Service Invocation Analysis">
+			<story-content>rite gadgets to consume service statistics and present
+				to end user. Dashboard
+				support
+				Google Gadget specification.
+			</story-content>
+			<story-links>
+				<link url="/carbon/wsdl2code/index.jsp">Go to WSDL2Java Tool..</link>
+				<link url="/carbon/wsdl2code/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Dashboard">
+			<story-content>Monitor and correlate related business activities
+				across multiple server instances.
+				These activities can be used to
+				track and verify the smooth execution of
+				business.</story-content>
+			<story-links>
+				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Activity Correlation &amp; Monitoring">
+			<story-content>Monitor and correlate related business activities
+				across multiple server instances.
+				These activities can be used to
+				track and verify the smooth execution of
+				business.</story-content>
+			<story-links>
+				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Message Collection &amp; Archival">
+			<story-content>Collect messages coming into your SOA, analyze and
+				archive for future retrieval.</story-content>
+			<story-links>
+				<link url="/carbon/java2wsdl/index.jsp">Go to Java2WSDL Tool...</link>
+				<link url="/carbon/java2wsdl/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Business Process Services" link="https://bps.cloud.wso2.com"
+		key="bps">
+		<story title="WS-BPEL 2.0 &amp; BPELWS 1.1">
+			<story-content>WSO2 BPS supports both WS-BPEL 2.0 and BPEL4WS 1.1
+				standards. It also includes WSO2 BPS
+				specific extensions to enhance
+				the features provide by WS-BPEL.
+			</story-content>
+			<story-links>
+				<link url="">Got to Business Process Services...</link>
+				<link url="/carbon/admin/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Instance Data Cleanup">
+			<story-content>Allows multiple levels of instance data cleanup which
+				are accumulated during process
+				instance lifetime. XPath extensions,
+				Iteratable ForEach, Flexible Assigns,
+				XQuery 1.0 support and various
+				other extensions to BPEL language.</story-content>
+			<story-links>
+				<link url="">Go to OpenID...</link>
+				<link url="/carbon/admin/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="BPEL Extensions">
+			<story-content>Hot update BPEL processes and allows you to maintain
+				multiple versions of processes.</story-content>
+			<story-links>
+				<link url="">Go to Information Card...</link>
+				<link url="/carbon/admin/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Business Rule Server" link="https://brs.cloud.wso2.com"
+		key="brs">
+		<story title="Service Hosting Support">
+			<story-content>Service Hosting feature in Business Rules Server
+				enables deployment of Rule Services.</story-content>
+			<story-links>
+				<link url="/carbon/service-mgt/index.jsp">Got to Business Process Services...</link>
+				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Rule service creation support">
+			<story-content>Support for creating rule services with drools or
+				using rule services created with other
+				IDEs.</story-content>
+			<story-links>
+				<link url="/carbon/ruleservices/rule_service_wizard_step1.jsp">Go to Rule service creation...</link>
+				<link url="/carbon/ruleservices/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Registry as a Rule Repository">
+			<story-content>Registry as a Rule Repository.</story-content>
+			<story-links>
+				<link url="/carbon/resources/resource.jsp">Go to Registry Rule Repository..</link>
+				<link url="/carbon/resources/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Service testing">
+			<story-content>Tryit tool can be used as a simple Web Service client
+				which can be used to try your
+				services within AppServer itself.
+			</story-content>
+			<story-links>
+				<link url="/carbon/tryit/index.jsp">Go
+					to Service Testing...</link>
+				<link url="/carbon/tryit/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Cloud Gateway" link="https://cg.stratoslive.wso2.com"
+		key="cg">
+		<story title="Cloud Service">
+			<story-content>Publish a service or data residing behind a firewall
+				in a secure and controlled manner as a Cloud Service.
+			</story-content>
+			<story-links>
+				<link url="/carbon/service-mgt/index.jsp">Go to Cloud Services...</link>
+				<link url="/carbon/service-mgt/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Complex Event Processing Services" link="https://cep.cloud.wso2.com"
+		key="cep">
+		<story title="Bring CEP to SOA">
+			<story-content>Bring CEP to SOA by processing XML events and produce
+				results as XML events.</story-content>
+			<story-links>
+				<link url="/carbon/CEP/cep_queries.jsp">Go to CEP buckets list...</link>
+				<link url="/carbon/CEP/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Registry Storage">
+			<story-content>Ability to define different event streams, queries and
+				out put streams and store them in
+				the registry as a bucket.
+			</story-content>
+			<story-links>
+				<link url="/carbon/resources/resource.jsp">Go to Registry Storage...</link>
+				<link url="/carbon/messagebox/docs/userguide.html">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Esper and Fusion">
+			<story-content>Support Esper and fusion back end runtimes..
+			</story-content>
+			<story-links>
+				<link url="">Go to Esper and Fusion..</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Filter data from the XML event">
+			<story-content>Ability to filter data from the XML event using xpath
+				and format the result as an XML
+				event.
+			</story-content>
+			<story-links>
+				<link url="">Go
+					to Filter data...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Support different types of brokers">
+			<story-content>Support different types of brokers WS-Event, JMS to
+				receive publish events.
+			</story-content>
+			<story-links>
+				<link url="">Go
+					to brokers...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Storing broker configurations">
+			<story-content>Define and store such different broker configurations.
+			</story-content>
+			<story-links>
+				<link url="">Go
+					to brokers...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Administrative Console support">
+			<story-content>Administrative Console to create buckets, add
+				subscriptions etc..
+			</story-content>
+			<story-links>
+				<link url="">Go
+					to Administrative Console ...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Specify CEP queries">
+			<story-content>Ability to specify CEP queries inline or pick from the
+				registry.
+			</story-content>
+			<story-links>
+				<link url="">Go
+					to CEP queries ...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+	<service name="Message Broker Services" link="https://mb.cloud.wso2.com"
+		key="mb">
+		<story title="Publish/Subscribe to Topics">
+			<story-content>WS-Eventing to publish/subscribe to topics using web
+				service standards.</story-content>
+			<story-links>
+				<link url="">Go to topics...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="AMQP">
+			<story-content>MS support thorough AMQP to publish/subscribe to
+				topics and Queues.</story-content>
+			<story-links>
+				<link url="">Go to AMQP...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Topic Authorization">
+			<story-content>MS support thorough AMQP to publish/subscribe to
+				topics and Queues.</story-content>
+			<story-links>
+				<link url="">Go to Topic Authorization...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Manage topics and queues permissions">
+			<story-content>Administrative console support to manage topics and
+				queues permissions.</story-content>
+			<story-links>
+				<link url="">Go to Manage topics and queues permissions...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="SQS support">
+			<story-content>SQS support to store retrieve messages using a web
+				service API.</story-content>
+			<story-links>
+				<link url="">Go to SQS ...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="User based authorization for queues">
+			<story-content>User based authorization for queues.</story-content>
+			<story-links>
+				<link url="">Go to User based authorization ...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Manage message boxes">
+			<story-content>Administrative console support to manage message boxes
+				and store/retrieve messages.</story-content>
+			<story-links>
+				<link url="">Go to message boxes...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+		<story title="Message box as event sink">
+			<story-content>Ability to use a message box as the event sink for a
+				subscription.</story-content>
+			<story-links>
+				<link url="">Go to event sink support...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+        <service name="Storage Server Services" link="https://ss.cloud.wso2.com" key="ss">
+		<story title="Storage Server Data">
+			<story-content>Storage Server</story-content>
+			<story-links>
+				<link url="">Go to topics...</link>
+				<link url="">Read more (docs)...</link>
+			</story-links>
+		</story>
+	</service>
+-->
+</data>
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/identity.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/identity.xml b/products/stratos-controller/conf/identity.xml
new file mode 100755
index 0000000..1a20f09
--- /dev/null
+++ b/products/stratos-controller/conf/identity.xml
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<Server xmlns="http://wso2.org/projects/carbon/carbon.xml">
+
+	<OpenIDServerUrl>https://localhost:9443/openidserver</OpenIDServerUrl>
+
+	<OpenIDUserPattern>https://localhost:9443/openid/</OpenIDUserPattern>
+
+     <JDBCPersistenceManager>
+        <DataSource>
+        	<!-- Include a data source name (jndiConfigName) from the set of data sources defined in master-datasources.xml -->
+        	<Name>jdbc/WSO2CarbonDB</Name>
+    	</DataSource>
+		<!-- If the identity database is created from another place and if it is required to skip schema initialization during the server start up, set the following
+		 property to "true". -->
+		<!-- <SkipDBSchemaCreation>false</SkipDBSchemaCreation> -->
+    </JDBCPersistenceManager>
+
+	<!--
+      Security configurations
+    -->
+	<Security>
+		<UserTrustedRPStore>
+			<Location>${carbon.home}/repository/resources/security/userRP.jks</Location>
+			<!-- Keystore type (JKS/PKCS12 etc.)-->
+			<Type>JKS</Type>
+			<!-- Keystore password-->
+			<Password>wso2carbon</Password>
+			<!-- Private Key password-->
+			<KeyPassword>wso2carbon</KeyPassword>
+		</UserTrustedRPStore>
+
+		<!--
+			The directory under which all other KeyStore files will be stored
+		-->
+		<KeyStoresDir>${carbon.home}/conf/keystores</KeyStoresDir>
+	</Security>
+
+	<Identity>
+		<IssuerPolicy>SelfAndManaged</IssuerPolicy>
+		<TokenValidationPolicy>CertValidate</TokenValidationPolicy>
+		<BlackList></BlackList>
+		<WhiteList></WhiteList>
+		<System>
+			<KeyStore></KeyStore>
+			<StorePass></StorePass>
+		</System>
+	</Identity>
+
+	<OAuth>
+		<RequestTokenUrl>https://localhost:9443/oauth/request-token</RequestTokenUrl>
+		<AccessTokenUrl>https://localhost:9443/oauth/access-token</AccessTokenUrl>
+		<AuthorizeUrl>https://localhost:9443/oauth/authorize-url</AuthorizeUrl>
+		<!-- Default validity period for Authorization Code in seconds -->
+		<AuthorizationCodeDefaultValidityPeriod>300</AuthorizationCodeDefaultValidityPeriod>
+		<!-- Default validity period for Access Token in seconds -->
+		<AccessTokenDefaultValidityPeriod>3600</AccessTokenDefaultValidityPeriod>
+		<!-- Timestamp skew in seconds -->
+		<TimestampSkew>300</TimestampSkew>
+		<!-- Enable OAuth caching. This cache has the replication support. -->
+		<EnableOAuthCache>true</EnableOAuthCache>
+		<!-- Configure the security measures needs to be done prior to store the token in the database,
+		such as hashing, encrypting, etc.-->
+		<TokenPersistencePreprocessor>org.wso2.carbon.identity.oauth.preprocessor.PlainTextTokenPersistencePreprocessor</TokenPersistencePreprocessor>
+		<!-- Supported Response Types -->
+		<SupportedResponseTypes>token,code</SupportedResponseTypes>
+		<!-- Supported Grant Types -->
+		<SupportedGrantTypes>authorization_code,password,refresh_token,client_credentials</SupportedGrantTypes>
+		<OAuthCallbackHandlers>		
+				<OAuthCallbackHandler Class="org.wso2.carbon.identity.oauth.callback.DefaultCallbackHandler"/>
+		</OAuthCallbackHandlers>
+	</OAuth>
+
+	<MultifactorAuthentication>
+		<XMPPSettings>
+			<XMPPConfig>
+				<XMPPProvider>gtalk</XMPPProvider>
+				<XMPPServer>talk.google.com</XMPPServer>
+				<XMPPPort>5222</XMPPPort>
+				<XMPPExt>gmail.com</XMPPExt>
+				<XMPPUserName>multifactor1@gmail.com</XMPPUserName>
+				<XMPPPassword>wso2carbon</XMPPPassword>
+			</XMPPConfig>
+		</XMPPSettings>
+	</MultifactorAuthentication>
+
+    	<SSOService>
+    	    <IdentityProviderURL>https://localhost:9443/samlsso</IdentityProviderURL>
+    	</SSOService>
+</Server>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/jaas.conf
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/jaas.conf b/products/stratos-controller/conf/jaas.conf
new file mode 100644
index 0000000..7a2a295
--- /dev/null
+++ b/products/stratos-controller/conf/jaas.conf
@@ -0,0 +1,10 @@
+Server {
+       org.apache.zookeeper.server.auth.DigestLoginModule required
+       user_super="admin"
+       user_admin="admin";
+};
+Client {
+       org.apache.zookeeper.server.auth.DigestLoginModule required
+       username="admin"
+       password="admin";
+};


[49/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/admin_guide.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/admin_guide.xml b/products/cloud-controller/docs/xdoc/admin_guide.xml
new file mode 100644
index 0000000..3b55765
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/admin_guide.xml
@@ -0,0 +1,485 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+  <title>WSO2 MB - System Administration Guide</title>
+  <link href="css/mb-docs.css" rel="stylesheet" />
+  <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
+  media="all" />
+</head>
+
+<body>
+<h2>WSO2 MB - System Administration Guide </h2>
+
+<h4>Contents </h4>
+
+<p>1.0 Introduction<br />
+2.0 Document Conventions<br />
+3.0 Getting WSO2 MB<br />
+4.0 Installing and Running WSO2 MB<br />
+4.1 Running the MB in Standalone Mode<br />
+4.2 Running MB Samples<br />
+6.0 Using the WSO2 MB Management Console<br />
+7.0 User Management<br />
+8.0 Setting Up Logging<br />
+9.0 Configuring the Underlying Axis2 Engine<br />
+10.0 Adding External Dependencies to the System<br />
+11.0 Registry Integration<br />
+11.1 Using the Embedded Registry<br />
+11.2 Using a Remote Registry<br />
+12.0 Setting Up Key Stores<br />
+13.0 Setting Up Host Names and Ports<br />
+</p>
+
+<h4>1.0 Introduction </h4>
+
+<p>WSO2 MB is an open source Message Broker solution.It is to be your Message
+Broker System. Our ultimate goal is to provide you a reliable Message
+Brokering System</p>
+
+
+<p>WSO2 MB is based on the revolutionary WSO2
+Carbon framework. WSO2 Carbon is an OSGi based middleware framework for SOA.
+Currently all WSO2 Java products are based on WSO2 Carbon including WSO2
+Governance Registry and WSO2 WSAS. Since MB is OSGi based some knowledge in
+OSGi would be helpful in administrating the WSO2 MB. </p>
+
+<p>This document explains how to get WSO2 MB and install it on a server. The
+latter sections of the document illustrates how to setup and configure various
+features of the WSO2 MB. </p>
+
+<h4>2.0 Document Conventions </h4>
+<ul>
+  <li>The phrase 'MB_HOME' refers to the directory in the file system where
+    WSO2 MB is installed</li>
+  <li>The phrase 'MB_SRC_HOME' refers to the directory in the file system
+    where WSO2 MB source distribution is installed</li>
+  <li>All file paths follow Unix/Linux conventions but they resemble Windows
+    file paths as well</li>
+</ul>
+
+<h4>3.0 Getting WSO2 MB </h4>
+
+<p>Binary distributions and source distributions of WSO2 MB can be downloaded
+free from the <a href="http://wso2.com/products/message-broker/">WSO2 MB project</a> home
+page in the <a href="http://wso2.org">WSO2 Oxygen Tank</a>. Before proceeding
+to the downloads page you will be asked to register on the WSO2 Oxygen Tank.
+Registration is free and optional however it is recommended that you sign up
+for an account right away since registered Oxygen Tank users get exclusive
+access to our support forums and tons of valuable content related to SOA and
+Web Services. </p>
+
+<p>Once you are on the downloads page click on the relevant links to download a
+binary distribution or a source distribution of the alpha release of
+the WSO2 MB.</p>
+
+<p>If you downloaded a source distribution of the MB you need to build the
+source to get the executable binary. WSO2 MB uses an <a
+href="http://maven.apache.org">Apache Maven2</a> based build system and
+therefore you need to first download and install Apache Maven2. Please refer
+Maven2 documentation on installing and configuring Apache Maven2. Also note
+that Apache Maven2 requires Java to run. Once Maven2 is properly configured
+extract the downloaded source distribution and change your working directory to
+the directory that is created. Then execute the command mvn clean install to
+run the builder. Once the build process is complete you can find the binary
+distribution archive in MB_SRC_HOME/modules/distribution/target directory. </p>
+
+<h4>4.0 Installing and Running WSO2 MB </h4>
+
+<p>To install the WSO2 MB simply extract the downloaded binary distribution
+archive. If you built WSO2 MB from source extract the archive created by the
+builder. We recommend installing WSO2 MB on a Unix/Linux system since that
+will enable you to get the maximum out of the MB. In order to be able to start
+WSO2 MB you first need Java 6 or higher. Having installed Java on your system
+please set the JAVA_HOME environment variable to point to the directory in
+which Java is installed. </p>
+
+<h5>4.1 Running WSO2 MB in Standalone Mode </h5>
+
+<p>Now you are all set to start WSO2 MB in the standalone mode. Go to
+MB_HOME/bin directory and if you are on Unix/Linux execute the stratos.sh
+shell script or if you are on Windows execute the stratos.bat batch file.
+This will start the MB and you can see the progress of the startup procedure
+on the console. Please note that server startup may take some time depending on
+the hardware configuration of your system. The first time startup can take up
+few additional seconds since some first time configuration logic is run by the
+MB. If the server started up cleanly you should get an output similar to the
+following on the console. </p>
+<pre>[2011-02-07 16:18:14,748]  INFO {org.wso2.carbon.server.Main} -  Initializing system...
+[2011-02-07 16:18:15,121]  INFO {org.wso2.carbon.server.TomcatCarbonWebappDeployer} -  Deployed Carbon webapp: StandardEngine[carbonEngine].StandardHost[defaulthost].StandardContext[/]
+[2011-02-07 16:18:20,721]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2 Carbon...
+[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System : Linux 2.6.32-27-generic, i386
+[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home        : /opt/softwares/jdk1.6.0_17/jre
+[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version     : 1.6.0_17
+[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM          : Java HotSpot(TM) Server VM 14.3-b01,Sun Microsystems Inc.
+[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home      : /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0
+[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir    : /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/tmp
+[2011-02-07 16:18:20,744]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  User             : shammi, en-US, Asia/Colombo
+[2011-02-07 16:18:25,531]  INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -  Registry Mode    : READ-WRITE
+[2011-02-07 16:18:26,833]  INFO {org.apache.qpid.wso2.internal.QpidBundleActivator} -  Setting BundleContext in PluginManager
+[Broker] BRK-1006 : Using configuration : /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/conf/qpid/etc/config.xml
+Logging configuration error: unable to read file /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/conf/qpid/etc/log4j.xml
+Using the fallback internal log4j.properties configuration
+[2011-02-07 16:18:26,976]  INFO {org.apache.qpid.server.registry.ApplicationRegistry} -  Initialising Application Registry(org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry@1adff28):1
+[2011-02-07 16:18:27,008]  INFO {org.apache.qpid.server.plugins.PluginManager} -  Opened service trackers
+[2011-02-07 16:18:27,022]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Elements to lookup:
+[2011-02-07 16:18:27,022]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'queue'
+[2011-02-07 16:18:27,022]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'virtualhosts'
+[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'com'
+[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'common'
+[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'catalina'
+[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'package'
+[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'QPID_HOME'
+[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'line'
+[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'cache-directory'
+[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'security'
+[2011-02-07 16:18:27,027]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'conf'
+[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'osgi'
+[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'wso2'
+[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'sun'
+[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'tomcat'
+[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'javax'
+[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'carbon'
+[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'file'
+[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'advanced'
+[2011-02-07 16:18:27,028]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'path'
+[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'plugin-directory'
+[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'work'
+[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'shared'
+[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'os'
+[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'impl'
+[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'status-updates'
+[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'axis2'
+[2011-02-07 16:18:27,029]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'heartbeat'
+[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'prefix'
+[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'wso2carbon'
+[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'connector'
+[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'java'
+[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'server'
+[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'components'
+[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'management'
+[2011-02-07 16:18:27,030]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'user'
+[2011-02-07 16:18:27,038]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'amqj'
+[2011-02-07 16:18:27,038]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'log4j'
+[2011-02-07 16:18:27,042]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Elements to lookup:security
+[2011-02-07 16:18:27,042]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'msg-auth'
+[2011-02-07 16:18:27,042]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'principal-databases'
+[2011-02-07 16:18:27,042]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'jmx'
+[2011-02-07 16:18:27,047]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Elements to lookup:security.principal-databases
+[2011-02-07 16:18:27,047]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'principal-database'
+[2011-02-07 16:18:27,047]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Elements to lookup:security.jmx
+[2011-02-07 16:18:27,047]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'principal-database'
+[2011-02-07 16:18:27,047]  INFO {org.apache.qpid.server.configuration.plugins.ConfigurationPlugin} -  Tag:'access'
+[Broker] BRK-1001 : Startup : Version: 0.9 Build: 1041962M
+[2011-02-07 16:18:27,163]  INFO {qpid.message.broker.startup} -  [Broker] BRK-1001 : Startup : Version: 0.9 Build: 1041962M
+[2011-02-07 16:18:27,166]  INFO {org.apache.qpid.server.management.JMXManagedObjectRegistry} -  Initialising managed object registry using platform MBean server
+[2011-02-07 16:18:27,173]  INFO {org.apache.qpid.server.security.auth.database.ConfigurationFilePrincipalDatabaseManager} -  Initialising PrincipalDatabase authentication manager
+[2011-02-07 16:18:27,177]  INFO {org.apache.qpid.server.security.auth.database.ConfigurationFilePrincipalDatabaseManager} -  Initialised principal database 'carbon-user-store' successfully
+[2011-02-07 16:18:27,178]  INFO {org.apache.qpid.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Initialising Default PrincipalDatabase authentication manager.
+[2011-02-07 16:18:27,179]  INFO {org.apache.qpid.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Initialised PLAIN SASL provider successfully
+[2011-02-07 16:18:27,211]  INFO {org.apache.qpid.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Additional SASL providers successfully registered.
+[Broker] MNG-1001 : Startup
+[2011-02-07 16:18:27,243]  INFO {qpid.message.managementconsole.startup} -  [Broker] MNG-1001 : Startup
+[Broker] MNG-1004 : Ready : Using the platform JMX Agent
+[2011-02-07 16:18:27,244]  INFO {qpid.message.managementconsole.ready} -  [Broker] MNG-1004 : Ready : Using the platform JMX Agent
+[2011-02-07 16:18:27,249]  INFO {qpid.message.virtualhost.created} -  [Broker] VHT-1001 : Created : carbon
+[2011-02-07 16:18:27,290]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: headers Name: amq.match
+[2011-02-07 16:18:27,295]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: topic Name: amq.topic
+[2011-02-07 16:18:27,297]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: direct Name: amq.direct
+[2011-02-07 16:18:27,299]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: fanout Name: amq.fanout
+[2011-02-07 16:18:27,302]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: direct Name: default
+[2011-02-07 16:18:27,309]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Durable Type: direct Name: carbon.direct
+[2011-02-07 16:18:27,310]  INFO {qpid.message.exchange.created} -  [Broker] EXH-1001 : Create : Type: topic Name: carbon.topic
+[2011-02-07 16:18:27,322]  INFO {qpid.message.configstore.created} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] CFG-1001 : Created : org.apache.qpid.server.store.DerbyMessageStore
+[2011-02-07 16:18:27,510]  INFO {qpid.message.messagestore.store_location} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] MST-1002 : Store location : /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/database/qpid/derbystore
+[2011-02-07 16:18:29,360]  INFO {qpid.message.messagestore.recovery_start} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] MST-1004 : Recovery Start
+[2011-02-07 16:18:29,362]  INFO {qpid.message.transactionlog.recovery_start} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] TXN-1004 : Recovery Start
+[2011-02-07 16:18:29,381]  INFO {org.apache.qpid.server.store.DerbyMessageStore} -  Recovering bindings...
+[2011-02-07 16:18:29,399]  INFO {qpid.message.messagestore.created} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] MST-1001 : Created : org.apache.qpid.server.store.DerbyMessageStore
+[2011-02-07 16:18:29,406]  INFO {qpid.message.transactionlog.created} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] TXN-1001 : Created : org.apache.qpid.server.store.DerbyMessageStore
+[2011-02-07 16:18:29,415]  INFO {qpid.message.transactionlog.recovery_complete} -  [Broker] [vh(/carbon)/ms(DerbyMessageStore)] TXN-1006 : Recovery Complete
+[2011-02-07 16:18:29,416]  INFO {org.apache.qpid.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Initialising 'carbon' PrincipalDatabase authentication manager.
+[Broker] BRK-1002 : Starting : Listening on TCP port 5672
+[2011-02-07 16:18:29,484]  INFO {qpid.message.broker.listening} -  [Broker] BRK-1002 : Starting : Listening on TCP port 5672
+[Broker] BRK-1004 : Qpid Broker Ready
+[2011-02-07 16:18:29,485]  INFO {qpid.message.broker.ready} -  [Broker] BRK-1004 : Qpid Broker Ready
+[2011-02-07 16:18:29,685]  INFO {org.wso2.carbon.messagebox.internal.ds.MessageBoxServiceComponent} -  MessageBoxService bundle is activated successfully
+[2011-02-07 16:18:29,686]  INFO {org.wso2.carbon.event.core.internal.builder.EventBrokerBuilderDS} -  Successfully registered the event broker
+[2011-02-07 16:18:29,746]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Starting Carbon initialization...
+[2011-02-07 16:18:29,997]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Creating super-tenant Axis2 ConfigurationContext
+[2011-02-07 16:18:30,444]  INFO {org.apache.axis2.deployment.ClusterBuilder} -  Clustering has been disabled
+[2011-02-07 16:18:30,780]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 module: rahas-1.60-wso2v1 {super-tenant}
+[2011-02-07 16:18:30,950]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 module: wso2xfer-3.20-SNAPSHOT {super-tenant}
+[2011-02-07 16:18:31,121]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 module: rampart-1.60-wso2v1 {super-tenant}
+[2011-02-07 16:18:31,388]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 module: addressing-3.20-SNAPSHOT {super-tenant}
+[2011-02-07 16:18:31,421]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 module: wso2mex-3.20-SNAPSHOT {super-tenant}
+[2011-02-07 16:18:31,534]  INFO {org.apache.axis2.transport.tcp.TCPTransportSender} -  TCP Sender started
+[2011-02-07 16:18:31,974]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 service: version {super-tenant}
+[2011-02-07 16:18:32,280]  INFO {org.apache.axis2.deployment.DeploymentEngine} -  Deploying Web service: Version.aar - file:/home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/deployment/server/axis2services/Version.aar
+[2011-02-07 16:18:32,364]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Completed super-tenant Axis2 ConfigurationContext creation in 2.367 sec
+[2011-02-07 16:18:32,460]  INFO {org.apache.axis2.deployment.ModuleDeployer} -  Deploying module: addressing-SNAPSHOT - file:/home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/deployment/client/modules/addressing-SNAPSHOT.mar
+[2011-02-07 16:18:32,464]  INFO {org.apache.axis2.transport.tcp.TCPTransportSender} -  TCP Sender started
+[2011-02-07 16:18:33,070]  INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2 service: TopicManagerAdminService {super-tenant}
+[2011-02-07 16:18:33,550]  INFO {org.apache.axis2.deployment.DeploymentEngine} -  Deploying Web service: org.wso2.carbon.event.admin - 
+[2011-02-07 16:18:34,926]  INFO {org.apache.axis2.deployment.DeploymentEngine} -  Deploying Web service: org.wso2.carbon.tryit - 
+[2011-02-07 16:18:35,724]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Repository       : /home/shammi/wso2/checkouts/carbon-trunk/carbon/products/mb/modules/distribution/target/wso2mb-1.0.0/repository/deployment/server/
+[2011-02-07 16:18:35,884]  INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -  Permission cache updated for tenant 0
+[2011-02-07 16:18:35,884]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  ConfigurationContextService registered in 160ms
+[2011-02-07 16:18:35,902]  WARN {org.apache.axis2.engine.ListenerManager} -  ConfigurationContext provided for the ListenerManager initialization is null. ListenerManager will not be initialized
+[2011-02-07 16:18:35,902]  INFO {org.wso2.carbon.core.transports.http.HttpsTransportListener} -  HTTPS port       : 9443
+[2011-02-07 16:18:35,902]  INFO {org.wso2.carbon.core.transports.http.HttpTransportListener} -  HTTP port        : 9763
+[2011-02-07 16:18:37,207]  INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL  : https://10.100.0.164:9443/carbon/
+[2011-02-07 16:18:37,242]  INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Started Transport Listener Manager
+[2011-02-07 16:18:37,242]  INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server           :  WSO2 MB -1.0.0
+[2011-02-07 16:18:37,242]  INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2 Carbon started in 21 sec
+
+
+
+</pre>
+
+<p>To verify that the MB is up and running fire off your Web browser and go to
+https://localhost:9443/carbon. This will take you to the WSO2 MB on-line
+management console. </p>
+<img src="images/Login.png" alt="Log-in" />
+
+<p>You can login to the console using the default user credentials given below.
+</p>
+<ul>
+  <li>Username: admin</li>
+  <li>Password: admin</li>
+</ul>
+
+<p>If you can get that far then the MB is properly installed and running. </p>
+
+<p>WSO2 MB startup scripts stated above accept a few useful arguments. </p>
+
+<p>--cleanRegistry<br />
+  This argument forces the embedded Registry instance to be cleaned before
+starting the MB. Note that this will clean the internal database therefore any
+configurations you saved previously will be permanently lost. </p>
+
+<p>--restart<br />
+   Restart the Carbon Unix daemon.</p>
+
+<p>-debug &lt;port&gt;<br />
+   Enables remote debugging on the MB through the specified port. </p>
+
+<p>-dump<br />
+   Print a thread dump of the Carbon Unix daemon.</p>
+
+
+<p>In addition to the above mentioned arguments the MB startup scripts accept
+the following VM arguments. </p>
+
+<p>-DosgiConsole<br />
+   Starts the OSGi console from which you can directly interact with the
+underlying OSGi runtime. </p>
+
+
+<h4>4.0 WSO2 MB Directory Hierarchy </h4>
+
+<p>When you extract a WSO2 MB binary distribution archive you will find the
+following directories in the top level that is created. </p>
+
+<p>bin -<br />
+Contains all the necessary scripts to interact with the WSO2 MB instance.
+There are shell scripts (with .sh extension) for Unix/Linux users and batch
+files (with .bat extension) for Windows users. In general you will find the
+following scripts in this directory.<br />
+<br />
+<ul>
+  <li>stratos.sh/stratos.bat - Launches WSO2 MB </li>
+  <li>wsdl2java.sh/wsdl2java.bat - Launches the Java stub generation tool for
+    Web Services </li>
+  <li>java2wsdl.sh/java2wsdl.bat - Launches the WSDL generation tool for Java
+    Web Services </li>
+  <li>tcpmon.sh/tcpmon.bat - Launches TCPMon, the TCP connection monitor </li>
+  <li>chpasswd.sh/chpasswd.bat -Use this script to change the administrator
+    password without signing in to the server<br />
+  </li>
+  <li>daemon.sh -Start WSO2 MB as a daemon on Unix/Linux systems<br />
+  </li>
+  <li>install.bat - Install WSO2 MB as a background service on Windows<br />
+  </li>
+  <li>repowriter.sh/repowriter.bat </li>
+</ul>
+<br />
+In addition to the above mentioned scripts you will find a sub-directory named
+'native' in the bin directory.<br />
+</p>
+
+<p>repository/deployment -<br />
+This directory houses all the OSGi bundles, service artifacts, modules and
+related resources used by the WSO2 MB instance. The repository/components/plugins 
+directory will contain all the necessary OSGi bundles at server runtime.</p>
+
+<p>repository/conf -<br />
+All the global configuration files (eg: axis2.xml, transports-mgt.xml,
+carbon.xml ) used by the MB are stored in this directory.
+</p>
+
+<p>lib -<br />
+The lib directory houses all the jar files and OSGi bundles required by the
+embedded Tomcat instance. Starting from Carbon 2.0 the log4j.properties file
+used by the MB is also stored here. </p>
+
+<p>resources -<br />
+Contains additional resources required by WSO2 MB. This includes security
+related resources such as keystores. </p>
+
+<p>repository/logs -<br />
+All the server logs created during server runtime will be stored here. </p>
+
+<p>dbscripts -<br />
+Contains a collection of database scripts required to create the Carbon
+database on a variety of database management systems.<br />
+</p>
+
+<h4>5.0 Using the WSO2 MB Management Console </h4>
+
+<p>WSO2 MB management console is a Web based control panel powered by JSP and
+AJAX which enables system administrators to interact with a running MB
+instance, without having to touch any underlying configuration files. The
+management console allows the users to command and control proxy services,
+sequences, transports, local entries, registry, modules, endpoints and much
+more. MB management console is a great way to try things out without having to
+edit the actual configuration files or without having to restart the MB for
+changes to take effect. </p>
+
+<p>We recommend using Mozilla Firefox 3 or Internet Explorer 7 to access the
+WSO2 MB management console. Please note that your browser must be JavaScript
+enabled to take the full advantage of the management console. To access the MB
+management console fire off you Web browser and navigate to https://&lt;Server
+Host&gt;:&lt;Server Port&gt;/&lt;Context&gt;. If you are running the Web
+browser on the same machine as the MB you may use 'localhost' as the server
+host. The default port and the context for the MB management console are
+'9443' and 'carbon' respectively. If you entered the URL correctly you will be
+taken to the management console's login page. </p>
+
+<p>On the login page enter 'admin' as the username and the password to login to
+the system. You can change user credentials and even add new users once you
+login. Controls and wizards in the MB management console are pretty much self
+explanatory. However if you are having trouble finishing your way in the
+management console, click on the 'Help' link at the top right corner of any
+page to access context sensitive help. </p>
+
+<p>Please note that the MB management console makes use of the default HTTPS
+servlet transport which is configured in the MB_HOME/conf/transports.xml file.
+It is important that this transport is always properly configured in the
+mentioned file. Otherwise the management console might be inaccessible to the
+users. </p>
+
+<h4>6.0 User Management </h4>
+
+<p>To access the WSO2 MB user management features, first sign in to the MB
+management console and click on 'User Management' under the 'Configure' menu in
+the left navigation bar. This will take you to the User Management home page
+which contains the controls illustrated below. </p>
+<img src="images/user-mgt.PNG" alt="User Mgt" />
+
+<p>From here you can manage users and roles. A user is associated with zero or
+more roles (generally specified at user creation time) and each role is
+associated with zero or more permissions (generally specified at role creation
+time). Therefore the set of permissions owned by a user is determined by the
+roles assigned to that user. A user owns the union of all the permissions
+associated with the roles assigned to that user. By default MB comes with only
+one role, the 'admin' role. This role is associated with the following set of
+permissions.</p>
+
+<p>By default the admin user is associated with the admin role and hence the
+admin user is entitled to all the  permissions. </p>
+
+<p>To add a new role to the system click on 'Roles' in the User Management home
+page and on the page that appears click the 'Add New Role' link. This will
+start the 'Add Role' wizard. The wizard will guide you though the process of
+creating a role by specifying a unique name for the role and adding the
+relevant permissions to the new role. Similarly to create a new user, click on
+'Users' in the User Management home page. Then from the next page that appears
+select 'Create New User' link. This will launch the 'Add User' wizard which
+will enable you to create a new user account with login credentials and
+associate the account with one or more existing roles. The MB management
+console also enables you to search for and modify existing users and roles. </p>
+
+<p>WSO2 MB can be easily configured to use an external user store in addition
+to the built-in system user store. An external user store is an external
+database which stores user data. It could be as simple as a relational database
+or as sophisticated as an LDAP instance. Most organizations maintain such
+centralized databases and it would be productive from the organization's point
+of view to have the MB pick up user data from the existing centralized user
+database. To connect the MB to an external user store simply click on the 'Add
+External User Store' link on the User Management home page. Then on the page
+that appears select the type of user store that will be plugged into the MB.
+Currently the following types of user stores are supported. </p>
+<ul>
+  <li>JDBC </li>
+  <li>LDAP </li>
+  <li>Active Directory </li>
+</ul>
+
+<p>Having selected the type of the user store you need to provide additional
+information required by the MB to connect to and retrieve user data from the
+external user store. If all the required parameters were specified accurately
+the MB will pick up user data from the external user store and users
+registered on the external store will be able to access the MB as if their
+accounts were created in the built-in system user store. </p>
+
+<h4>7.0 Setting Up Logging </h4>
+
+<p>Logging is one of the most important aspects of a production grade server. A
+properly configured logging system is vital in identifying errors, security
+threats and usage patterns. WSO2 MB uses a log4j based logging mechanism
+through Apache Commons Logging facade library. The log4j.properties file which
+governs how logging is performed by the server can be found in MB_HOME/lib
+directory. However it is recommended not to make any alterations to the default
+log4j.properties file. The recommended way of setting up logging is by using
+the MB management console. Simply login to the management console and click on
+'Logging' under the 'Configure' menu in the left navigation bar. From here you
+can setup various appenders and configure log levels for various loggers. Any
+changes to the logging configuration you make from the management console will
+get priority over what is defined in the actual log4j.properties file. </p>
+
+<p>By default WSO2 MB comes with the following log appenders configured. </p>
+<ul>
+  <li>CARBON_CONSOLE (Logs to the console when the server is running) </li>
+  <li>CARBON_LOGFILE (Writes the logs to MB_HOME/logs/wso2-MB.log) </li>
+  <li>CARBON_MEMORY </li>
+  <li>CARBON_SYS_LOG </li>
+  <li>SERVICE_APPENDER (Writes mediation time audit messages to
+    MB_HOME/logs/wso2-MB-service.log) </li>
+  <li>TRACE_APPENDER (Writes mediation time tracing/debug messages to the
+    MB_HOME/logs/wso2-MB-trace.log for tracing enabled services) </li>
+  <li>TRACE_MEMORYAPPENDER </li>
+</ul>
+
+<p>Tracing can be enabled for individual mediation sequences and proxy services
+from the 'Mediation Sequences' home page and the 'Service Dashboard' page
+respectively. Click on the 'Sequences' link under 'Mediation' in the 'Manage'
+menu of the left navigation bar to access the 'Mediation Sequences' page. This
+page lists all the deployed sequences. Each sequence gives you the options to
+enable/disable tracing. To access the service dashboard for a proxy service go
+to the Services List page and click on the proxy service that you are
+interested in. Once a sequence or a proxy service is tracing enabled you can
+view the generated log messages by visiting the 'Mediation Tracer' page under
+the 'Monitor' menu. The 'Monitor' menu also gives you access to the system logs
+and the SOAP tracer logs all through the Web interface itself. </p>
+<img src="images/logs.PNG" alt="Logs" />
+ </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/cluster_scenario_01.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/cluster_scenario_01.xml b/products/cloud-controller/docs/xdoc/cluster_scenario_01.xml
new file mode 100644
index 0000000..2b2a76c
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/cluster_scenario_01.xml
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+    <title>
+      WSO2 MB Clustered Deployment - Scenario 01
+    </title>
+    <link href="css/mb-docs.css" rel="stylesheet"/>
+    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
+  </head>
+  <body xml:lang="en">
+      [ <a href="docs_index.html"> Documentation Index </a> ]
+
+      <h2>Starting external cassandra server and zoo keeper server and point all broker nodes to them</h2>
+      <p>
+          In this model you need to get downloaded following apache products
+      </p>
+
+      <ul>
+          <li><a href=" http://zookeeper.apache.org/releases.html#download">Apache Zoo Keeper</a> <p> Version 3.3.4</p></li>
+          <li><a href="http://cassandra.apache.org/download/">Apache Cassandra</a><p> Version 1.0.*</p></li>
+      </ul>
+      <p> Deployment model will be like bellow </p>
+      <p>
+          <img src="images/cluster_scenario_01.png" alt="Cluster Setup Scenario 01" height="600" width ="950"/>
+      </p>
+      <p> In this model we have a common cassandra server and a common zoo keeper server. Both of them can be in a same
+       host or in different hosts. Eg: Lets say they are in two different hosts as bellow</p>
+      <ul>
+          <li>Cassandra Server - 192.168.0.100</li>
+          <li>Zoo Keeper Server - 192.168.0.101</li>
+      </ul>
+      <p> We have three Message Broker servers in three different hosts as</p>
+       <ul>
+          <li>MB Server 01 - 192.168.0.102</li>
+          <li>MB Server 02 - 192.168.0.103</li>
+          <li>MB Server 03 - 192.168.0.104</li>
+      </ul>
+
+      <p> We need to configure cassandra server to listen to all the broker nodes.For that we need to change the following entries
+      in the "Cassandra.yaml" file which is located in the "apache-cassandra-1.0.1/conf/" directory.</p>
+
+      <ul>
+          <li>Change the data storage directories of cassandra. Here by default it will point to the location "/var/lib/". But
+          it will be better, if you can keep the data locally inside the folder where you have the server setup. So change it to "./repository/database" off
+          all three entries as</li>
+          <pre>
+              # directories where Cassandra should store data on disk.
+              data_file_directories:
+                  - ./repository/database/cassandra/data
+
+              # commit log
+              commitlog_directory: ./repository/database/cassandra/commitlog
+
+              # saved caches
+              saved_caches_directory: ./repository/database/cassandra/saved_caches
+
+          </pre>
+
+          <li>Change listen address of the server. By default it is "localhost", change it to the ip address of the host where you
+          have the cassandra server.
+          </li>
+          <pre>
+             listen_address: 192.168.0.100
+          </pre>
+
+          <li>Change RPC address of the server.By default it is "localhost", change it to the ip address of the host where you
+          have the cassandra server. </li>
+           <pre>
+             rpc_address: 192.168.0.100
+          </pre>
+      </ul>
+      <p> Now save the cassandra.yaml file and you can start the cassandra server by executing the script "cassandra" with the
+          option -f.  Eg: "./cassandra -f"
+      </p>
+
+      <p> Then we need to configure the Zoo Keeper Server to listen to all broker nodes. We can do it by renaming the "zoo_sample.cfg"
+      file which can be found at "zookeeper-3.3.4/conf" folder to "zoo.cfg" and do the following modification in that file
+      </p>
+
+      <ul>
+          <li>Change the data directory to store data local to the installation directory</li>
+          <li>Add the entry "clientPortAddress" by providing the ip of the localhost</li>
+      </ul>
+      <p>After modifying the file , it will look like bellow. </p>
+      <pre>
+            # The number of milliseconds of each tick
+            tickTime=2000
+            # The number of ticks that the initial
+            # synchronization phase can take
+            initLimit=10
+            # The number of ticks that can pass between
+            # sending a request and getting an acknowledgement
+            syncLimit=5
+            # the directory where the snapshot is stored.
+            dataDir=./../data
+            # the port at which the clients will connect
+            clientPort=2181
+
+            clientPortAddress=192.168.0.101
+        </pre>
+      <p>
+          Once you done the above changes, you can save the file and start the zookeeper server by executing the "zkServer.sh" script
+          with the option start. eg: sh zkServer.sh start
+      </p>
+
+      <p>
+          Then you need to do the following configuration changes in each Message broker nodes
+      </p>
+      <p>
+         Modify qpid-config.xml file which is located at : /repository/conf/advanced directory as bellow
+      </p>
+      <ul>
+
+          <li>Enable clustering</li>
+          <li>Change the server of the Zookeeper</li>
+      </ul>
+      <pre>
+          &lt;clustering>
+
+          &lt;enabled><b>true</b>&lt;/enabled>
+          &lt;OnceInOrderSupportEnabled>false&lt;/OnceInOrderSupportEnabled>
+          &lt;externalCassandraServerRequired>true&lt;/externalCassandraServerRequired>
+
+          &lt;coordination>
+              &lt;!-- Apache Zookeeper Address -->
+              &lt;ZooKeeperConnection><b>192.168.0.101</b>:2181&lt;/ZooKeeperConnection>
+              &lt;!-- Format yyyy-MM-dd HH:mm:ss -->
+              &lt;ReferenceTime>2012-02-29 08:08:08&lt;/ReferenceTime>
+          &lt;/coordination>
+      </pre>
+
+      <p>Modify qpid-virtualhosts.xml file which is located at :/repository/conf/advanced directory as bellow</p>
+       <ul>
+          <li>Change the connection string by pointing to the cassandra server</li>
+      </ul>
+      <pre>
+          &lt;store>
+              &lt;class>org.wso2.andes.server.store.CassandraMessageStore&lt;/class>
+              &lt;username>admin&lt;/username>
+              &lt;password>admin&lt;/password>
+              &lt;cluster>ClusterOne&lt;/cluster>
+              &lt;idGenerator>org.wso2.andes.server.cluster.coordination.TimeStampBasedMessageIdGenerator&lt;/idGenerator>
+              &lt;connectionString><b>192.168.0.100</b>:9160&lt;/connectionString>
+          &lt;/store>
+      </pre>
+
+      <p>Now you can start all three Message Broker nodes.</p>
+
+      <h2>
+
+      Other Resources
+    </h2>
+    <p/>
+    <p>
+      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
+      Library</a> : The Library contains articles, tutorials,
+      presentations, and other knowledge base items published on The Oxygen
+      Tank on different styles of deployments.
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/cluster_scenario_02.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/cluster_scenario_02.xml b/products/cloud-controller/docs/xdoc/cluster_scenario_02.xml
new file mode 100644
index 0000000..6869d57
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/cluster_scenario_02.xml
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+    <title>
+      WSO2 MB Clustered Deployment - Scenario 02
+    </title>
+    <link href="css/mb-docs.css" rel="stylesheet"/>
+    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
+  </head>
+  <body xml:lang="en">
+      [ <a href="docs_index.html"> Documentation Index </a> ]
+
+      <h2>Starting external zoo keeper server and use the inbuilt cassandra server in ring model with broker nodes</h2>
+      <p>
+          In this model you need to get downloaded following apache product
+      </p>
+
+      <ul>
+          <li><a href=" http://zookeeper.apache.org/releases.html#download">Apache Zoo Keeper</a> <p> Version 3.3.4</p></li>
+      </ul>
+      <p> Deployment model will be like bellow </p>
+      <p>
+          <img src="images/cluster_scenario_02.png" alt="Cluster Setup Scenario 02" height="600" width ="950"/>
+      </p>
+      <p> In this model we have a common zoo keeper server. Since we are shipping a cassandra server with Message broker product we can
+          use that and create a cassandra ring in the cluster.</p>
+      <ul>
+          <li>Zoo Keeper Server - 192.168.0.100</li>
+      </ul>
+      <p> We have three Message Broker servers in three different hosts as and all of them are having a cassandra server in it</p>
+       <ul>
+          <li>MB Server 01 - 192.168.0.101</li>
+          <li>MB Server 02 - 192.168.0.102</li>
+          <li>MB Server 03 - 192.168.0.103</li>
+      </ul>
+
+      <p> We need to configure cassandra servers in these MB servers to form a cassandra ring. For that we need to change the following
+          entries in the "Cassandra.yaml" file which is located in the "wso2mb-2.0.1/repository/conf/etc" directory.</p>
+
+      <ul>
+          <li>Change the seeds in the ring. You can get a better idea on setting a cassandra from following <a href="http://www.datastax.com/docs/1.0/install/cluster_init">web page.</a>
+          Here we are configuring two seed nodes. (MB Server 01 and 02)</li>
+
+          <pre>
+              # seeds is actually a comma-delimited list of addresses.
+              # Ex: "&lt;ip1>,&lt;ip2>,&lt;ip3>"
+              - seeds: "192.168.0.101,192.168.0.102"
+
+          </pre>
+
+          <li>Change listen address of the server. By default it is "localhost", change it to the ip address of the host where you
+          have the cassandra server. <b>You need to change the listen address of the each server to it's ip address. Here
+          for the server 192.168.0.102, it will like bellow. </b>
+          </li>
+          <pre>
+             listen_address: 192.168.0.102
+          </pre>
+
+          <li>Change RPC address of the server.By default it is "localhost", change it to the ip address of the host where you
+          have the cassandra server. <b>You need to change the RPC address of the each server to it's ip address. Here
+          for the server 192.168.0.103, it will like bellow. </b></li>
+           <pre>
+             rpc_address: 192.168.0.103
+          </pre>
+      </ul>
+
+      <p> Then we need to configure the Zoo Keeper Server to listen to all broker nodes. We can do it by renaming the "zoo_sample.cfg"
+      file which can be found at "zookeeper-3.3.4/conf" folder to "zoo.cfg" and do the following modification in that file
+      </p>
+
+      <ul>
+          <li>Change the data directory to store data local to the installation directory</li>
+          <li>Add the entry "clientPortAddress" by providing the ip of the localhost</li>
+      </ul>
+      <p>After modifying the file , it will look like bellow. </p>
+      <pre>
+            # The number of milliseconds of each tick
+            tickTime=2000
+            # The number of ticks that the initial
+            # synchronization phase can take
+            initLimit=10
+            # The number of ticks that can pass between
+            # sending a request and getting an acknowledgement
+            syncLimit=5
+            # the directory where the snapshot is stored.
+            dataDir=./../data
+            # the port at which the clients will connect
+            clientPort=2181
+
+            clientPortAddress=192.168.0.100
+        </pre>
+      <p>
+          Once you done the above changes, you can save the file and start the zookeeper server by executing the "zkServer.sh" script
+          with the option start. eg: sh zkServer.sh start
+      </p>
+
+      <p>
+          Then you need to do the following configuration changes in each Message broker nodes
+      </p>
+      <p>
+         Modify qpid-config.xml file which is located at : /repository/conf/advanced directory as bellow
+      </p>
+      <ul>
+
+          <li>Enable clustering</li>
+          <li>Change the server of the Zookeeper</li>
+      </ul>
+      <pre>
+          &lt;clustering>
+
+          &lt;enabled><b>true</b>&lt;/enabled>
+          &lt;OnceInOrderSupportEnabled>false&lt;/OnceInOrderSupportEnabled>
+          &lt;externalCassandraServerRequired>false&lt;/externalCassandraServerRequired>
+
+          &lt;coordination>
+              &lt;!-- Apache Zookeeper Address -->
+              &lt;ZooKeeperConnection><b>192.168.0.100</b>:2181&lt;/ZooKeeperConnection>
+              &lt;!-- Format yyyy-MM-dd HH:mm:ss -->
+              &lt;ReferenceTime>2012-02-29 08:08:08&lt;/ReferenceTime>
+          &lt;/coordination>
+      </pre>
+
+      <p>Now you can start all three Message Broker nodes.</p>
+
+      <h2>
+
+      Other Resources
+    </h2>
+    <p/>
+    <p>
+      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
+      Library</a> : The Library contains articles, tutorials,
+      presentations, and other knowledge base items published on The Oxygen
+      Tank on different styles of deployments.
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/cluster_scenario_03.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/cluster_scenario_03.xml b/products/cloud-controller/docs/xdoc/cluster_scenario_03.xml
new file mode 100644
index 0000000..b4fd63a
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/cluster_scenario_03.xml
@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+    <title>
+      WSO2 MB Clustered Deployment - Scenario 03
+    </title>
+    <link href="css/mb-docs.css" rel="stylesheet"/>
+    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
+  </head>
+  <body xml:lang="en">
+      [ <a href="docs_index.html"> Documentation Index </a> ]
+
+      <h2>Starting external cassandra server and use inbuilt zoo keeper server in ring model with broker nodes</h2>
+      <p>
+          In this model you need to get downloaded following apache products
+      </p>
+
+      <ul>
+          <li><a href="http://cassandra.apache.org/download/">Apache Cassandra</a><p> Version 1.0.*</p></li>
+      </ul>
+      <p> Deployment model will be like bellow </p>
+      <p>
+          <img src="images/cluster_scenario_03.png" alt="Cluster Setup Scenario 03" height="600" width ="950"/>
+      </p>
+      <p> In this model we have a common cassandra server. Since we are shipping a zoo keeper server with Message broker product we can
+          use that and create a zoo keeper ring in the cluster.</p>
+      <ul>
+          <li>Cassandra Server - 192.168.0.100</li>
+      </ul>
+      <p> We have three Message Broker servers in three different hosts as</p>
+       <ul>
+          <li>MB Server 01 - 192.168.0.101</li>
+          <li>MB Server 02 - 192.168.0.102</li>
+          <li>MB Server 03 - 192.168.0.103</li>
+      </ul>
+
+      <p>First we need to configure the HostName in carbon.xml file which is located in "wso2mb-2.0.1/repository/conf/" directory.
+           Specify the ip of the host as follows. <font color="red">You need to configure this for all the three servers.</font></p>
+           <pre>
+               &lt;!--
+                      Host name or IP address of the machine hosting this server
+                      e.g. www.wso2.org, 192.168.1.10
+                      This is will become part of the End Point Reference of the
+                      services deployed on this server instance.
+                   -->
+                   &lt;HostName>192.168.0.101&lt;/HostName>
+
+           </pre>
+
+
+      <p> Then we need to configure cassandra server to listen to all the broker nodes.For that we need to change the following entries
+      in the "Cassandra.yaml" file which is located in the "apache-cassandra-1.0.1/conf/" directory.</p>
+
+      <ul>
+          <li>Change the data storage directories of cassandra. Here by default it will point to the location "/var/lib/". But
+          it will be better, if you can keep the data locally inside the folder where you have the server setup. So change it to "./repository/database" off
+          all three entries as</li>
+          <pre>
+              # directories where Cassandra should store data on disk.
+              data_file_directories:
+                  - ./repository/database/cassandra/data
+
+              # commit log
+              commitlog_directory: ./repository/database/cassandra/commitlog
+
+              # saved caches
+              saved_caches_directory: ./repository/database/cassandra/saved_caches
+
+          </pre>
+
+          <li>Change listen address of the server. By default it is "localhost", change it to the ip address of the host where you
+          have the cassandra server.
+          </li>
+          <pre>
+             listen_address: 192.168.0.100
+          </pre>
+
+          <li>Change RPC address of the server.By default it is "localhost", change it to the ip address of the host where you
+          have the cassandra server. </li>
+           <pre>
+             rpc_address: 192.168.0.100
+          </pre>
+      </ul>
+      <p> Now save the cassandra.yaml file and you can start the cassandra server by executing the script "cassandra" with the
+          option -f.  Eg: "./cassandra -f"
+      </p>
+
+      <p>
+          <b>Configuring Zookeeper Cluster</b>
+      </p>
+      <p> Then we need to configure the Zoo Keeper Servers to create a ring within among all broker nodes. We can do it by
+       adding client port address to the "zoo.cfg" which is located at "wso2mb-2.0.1/repository/conf/etc " . </p>
+
+      <p>After modifying the file , it will look like bellow. </p>
+      <pre>
+           tickTime=2000
+           dataDir=repository/data/zookeeper
+           clientPort=2181
+          <b>start_zk_server=true</b>
+          <b>clientPortAddress=192.168.0.101</b>
+          <b>server.1=192.168.0.100:2888:3888</b>
+          <b>server.2=192.168.0.101:2888:3888</b>
+          <b>server.3=192.168.0.102:2888:3888</b>
+      </pre>
+
+      <p> Above zoo.cfg file is for the server 192.168.0.101. You can copy the same zoo.cfg file to other two servers
+      and change the entry "clientPortAddress" to the ip of that particular server.</p>
+
+      <p> Then you need to create file "myid" in the data directory (repository/data/zookeeper) of each server. In that file
+      you need to specify the id of the server.</p>
+
+      <p>
+          eg: Id of the the server 192.168.0.100 will be "1". You need only to have the number 1 in that myid file.
+      </p>
+
+      <p>You can find more information on this in  <a href="http://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_zkMulitServerSetup">zookeeper clustering setup guide</a></p>
+
+      <p>
+          <b>You need to do above configuration in each of the message broker servers appropriately.</b>
+      </p>
+
+      <p>
+          Then you need to do the following configuration changes in each Message broker nodes
+      </p>
+      <p>
+         Modify qpid-config.xml file which is located at : /repository/conf/advanced directory as bellow
+      </p>
+      <ul>
+
+          <li>Enable clustering</li>
+          <li>Change the server ip of the Zookeeper by adding all zoo keeper server details</li>
+      </ul>
+      <pre>
+          &lt;clustering>
+
+          &lt;enabled><b>true</b>&lt;/enabled>
+          &lt;OnceInOrderSupportEnabled>false&lt;/OnceInOrderSupportEnabled>
+          &lt;externalCassandraServerRequired>true&lt;/externalCassandraServerRequired>
+
+          &lt;coordination>
+              &lt;!-- Apache Zookeeper Address -->
+              &lt;ZooKeeperConnection><b>192.168.0.101:2181,192.168.0.102:2181,192.168.0.103:2181</b>&lt;/ZooKeeperConnection>
+              &lt;!-- Format yyyy-MM-dd HH:mm:ss -->
+              &lt;ReferenceTime>2012-02-29 08:08:08&lt;/ReferenceTime>
+          &lt;/coordination>
+      </pre>
+
+      <p>Modify qpid-virtualhosts.xml file which is located at :/repository/conf/advanced directory as bellow</p>
+       <ul>
+          <li>Change the connection string by pointing to the cassandra server</li>
+      </ul>
+      <pre>
+          &lt;store>
+              &lt;class>org.wso2.andes.server.store.CassandraMessageStore&lt;/class>
+              &lt;username>admin&lt;/username>
+              &lt;password>admin&lt;/password>
+              &lt;cluster>ClusterOne&lt;/cluster>
+              &lt;idGenerator>org.wso2.andes.server.cluster.coordination.TimeStampBasedMessageIdGenerator&lt;/idGenerator>
+              &lt;connectionString><b>192.168.0.100</b>:9160&lt;/connectionString>
+          &lt;/store>
+      </pre>
+
+      <p>Now you can start all three Message Broker nodes.</p>
+
+      <h2>
+
+      Other Resources
+    </h2>
+    <p/>
+    <p>
+      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
+      Library</a> : The Library contains articles, tutorials,
+      presentations, and other knowledge base items published on The Oxygen
+      Tank on different styles of deployments.
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/cluster_scenario_04.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/cluster_scenario_04.xml b/products/cloud-controller/docs/xdoc/cluster_scenario_04.xml
new file mode 100644
index 0000000..e11e9ef
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/cluster_scenario_04.xml
@@ -0,0 +1,169 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+    <title>
+      WSO2 MB Clustered Deployment - Scenario 04
+    </title>
+    <link href="css/mb-docs.css" rel="stylesheet"/>
+    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
+  </head>
+  <body xml:lang="en">
+      [ <a href="docs_index.html"> Documentation Index </a> ]
+
+      <h2>Use inbuilt cassandra server and zoo keeper server for all the broker nodes</h2>
+
+      <p> The deployment model of this scenario will be like bellow </p>
+      <p>
+          <img src="images/cluster_scenario_04.png" alt="Cluster Setup Scenario 04" height="600" width ="950"/>
+      </p>
+      <p> In this model we have two rings, Cassandra ring and ZooKeeper ring. Since we are shipping a cassandra server and zoo keeper server
+          with Message broker product we can use them and create a cassandra ring and a zoo keeper ring in the cluster.</p>
+
+      <p> We have three Message Broker servers in three different hosts as and all of them are having a cassandra server in it</p>
+       <ul>
+          <li>MB Server 01 - 192.168.0.100</li>
+          <li>MB Server 02 - 192.168.0.101</li>
+          <li>MB Server 03 - 192.168.0.102</li>
+      </ul>
+
+       <p>First we need to configure the HostName in carbon.xml file which is located in "wso2mb-2.0.1/repository/conf/" directory.
+      Specify the ip of the host as follows. <font color="red">You need to configure this for all the three servers.</font></p>
+      <pre>
+          &lt;!--
+                 Host name or IP address of the machine hosting this server
+                 e.g. www.wso2.org, 192.168.1.10
+                 This is will become part of the End Point Reference of the
+                 services deployed on this server instance.
+              -->
+              &lt;HostName>192.168.0.100&lt;/HostName>
+
+      </pre>
+
+      <p>  Then We need to configure cassandra servers in these MB servers to form a cassandra ring. For that we need to change the following
+          entries in the "Cassandra.yaml" file which is located in the "wso2mb-2.0.1/repository/conf/etc" directory.</p>
+
+      <ul>
+          <li>Change the seeds in the ring. You can get a better idea on setting a cassandra from following <a href="http://www.datastax.com/docs/1.0/install/cluster_init">web page.</a>
+          Here we are configuring two seed nodes. (MB Server 01 and 02)</li>
+
+          <pre>
+              # seeds is actually a comma-delimited list of addresses.
+              # Ex: "&lt;ip1>,&lt;ip2>,&lt;ip3>"
+              - seeds: "192.168.0.101,192.168.0.102"
+
+          </pre>
+
+          <li>Change listen address of the server. By default it is "localhost", change it to the ip address of the host where you
+          have the cassandra server. <b>You need to change the listen address of the each server to it's ip address. Here
+          for the server 192.168.0.102, it will like bellow. </b>
+          </li>
+          <pre>
+             listen_address: 192.168.0.102
+          </pre>
+
+          <li>Change RPC address of the server.By default it is "localhost", change it to the ip address of the host where you
+          have the cassandra server. <b>You need to change the RPC address of the each server to it's ip address. Here
+          for the server 192.168.0.103, it will like bellow. </b></li>
+           <pre>
+             rpc_address: 192.168.0.103
+          </pre>
+      </ul>
+
+      <p>
+               <b>Configuring Zookeeper Cluster</b>
+           </p>
+           <p> Then we need to configure the Zoo Keeper Servers to create a ring within among all broker nodes. We can do it by
+            adding client port address to the "zoo.cfg" which is located at "wso2mb-2.0.1/repository/conf/etc " . </p>
+
+           <p>After modifying the file , it will look like bellow. </p>
+           <pre>
+                tickTime=2000
+                dataDir=repository/data/zookeeper
+                clientPort=2181
+               <b>start_zk_server=true</b>
+               <b>clientPortAddress=192.168.0.101</b>
+               <b>server.1=192.168.0.100:2888:3888</b>
+               <b>server.2=192.168.0.101:2888:3888</b>
+               <b>server.3=192.168.0.102:2888:3888</b>
+           </pre>
+
+           <p> Above zoo.cfg file is for the server 192.168.0.101. You can copy the same zoo.cfg file to other two servers
+           and change the entry "clientPortAddress" to the ip of that particular server.</p>
+
+           <p> Then you need to create file "myid" in the data directory (repository/data/zookeeper) of each server. In that file
+           you need to specify the id of the server.</p>
+
+           <p>
+               eg: Id of the the server 192.168.0.100 will be "1". You need only to have the number 1 in that myid file.
+           </p>
+
+           <p>You can find more information on this in  <a href="http://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_zkMulitServerSetup">zookeeper clustering setup guide</a></p>
+
+           <p>
+               <b>You need to do above configuration in each of the message broker servers appropriately.</b>
+           </p>
+
+      <p>
+          Then you need to do the following configuration changes in each Message broker nodes
+      </p>
+      <p>
+         Modify qpid-config.xml file which is located at : /repository/conf/advanced directory as bellow
+      </p>
+      <ul>
+
+          <li>Enable clustering</li>
+          <li>Change the server of the Zookeeper</li>
+      </ul>
+      <pre>
+          &lt;clustering>
+
+          &lt;enabled><b>true</b>&lt;/enabled>
+          &lt;OnceInOrderSupportEnabled>false&lt;/OnceInOrderSupportEnabled>
+          &lt;externalCassandraServerRequired>false&lt;/externalCassandraServerRequired>
+
+          &lt;coordination>
+              &lt;!-- Apache Zookeeper Address -->
+              &lt;ZooKeeperConnection><b>192.168.0.100:2181,192.168.0.101:2181,192.168.0.102:2181</b>&lt;/ZooKeeperConnection>
+              &lt;!-- Format yyyy-MM-dd HH:mm:ss -->
+              &lt;ReferenceTime>2012-02-29 08:08:08&lt;/ReferenceTime>
+          &lt;/coordination>
+      </pre>
+
+      <p>Now you can start all three Message Broker nodes.</p>
+
+      <h2>
+
+      Other Resources
+    </h2>
+    <p/>
+    <p>
+      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
+      Library</a> : The Library contains articles, tutorials,
+      presentations, and other knowledge base items published on The Oxygen
+      Tank on different styles of deployments.
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/cluster_scenario_05.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/cluster_scenario_05.xml b/products/cloud-controller/docs/xdoc/cluster_scenario_05.xml
new file mode 100644
index 0000000..a6aa31d
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/cluster_scenario_05.xml
@@ -0,0 +1,216 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+    <title>
+      WSO2 MB Clustered Deployment - Scenario 04
+    </title>
+    <link href="css/mb-docs.css" rel="stylesheet"/>
+    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
+  </head>
+  <body xml:lang="en">
+      [ <a href="docs_index.html"> Documentation Index </a> ]
+
+      <h2>Use inbuilt cassandra server and zoo keeper server in a customized manner</h2>
+
+      <p> The deployment model of this scenario will be like bellow </p>
+      <p>
+          <img src="images/cluster_scenario_05.png" alt="Cluster Setup Scenario 05" height="600" width ="950"/>
+      </p>
+      <p> In this model we have two rings, Cassandra ring and ZooKeeper ring. There is a common Message broker node for these rings.
+          <b>The reason for having a common broker node is , there should be at least on cassandra server and one zoo keeper server
+          to start WSO2 Message broker in clustered mode</b>   Apart from that we have a message broker server
+          which points to both of these rings.Since we are shipping a cassandra server and zoo keeper server
+          with Message broker product we can use them and create a cassandra ring and a zoo keeper ring in the cluster.</p>
+
+      <p> As in the image, We have four Message Broker servers in four different hosts. In that we use two servers to create a cassandra ring, another two
+      servers to create a zoo keeper ring and another server uses above created rings as in the diagram.</p>
+
+      <p>Servers used to create cassandra ring</p>
+      <ul>
+          <li>MB Server 01 - 192.168.0.100</li>
+          <li>MB Server 02 - 192.168.0.101</li>
+      </ul>
+
+      <p>Servers used to create zoo keeper ring</p>
+
+      <ul>
+          <li>MB Server 01 - 192.168.0.101</li>
+          <li>MB Server 02 - 192.168.0.102</li>
+      </ul>
+
+      <p>Standalone server</p>
+      <ul>
+          <li>MB Server 01 - 192.168.0.103</li>
+      </ul>
+
+      <p><font color="red">Note that 192.168.0.101 server is common to both rings !</font> </p>
+
+      <p>First we need to configure the HostName in carbon.xml file which is located in "wso2mb-2.0.1/repository/conf/" directory.
+      Specify the ip of the host as follows</p>
+      <pre>
+          &lt;!--
+                 Host name or IP address of the machine hosting this server
+                 e.g. www.wso2.org, 192.168.1.10
+                 This is will become part of the End Point Reference of the
+                 services deployed on this server instance.
+              -->
+              &lt;HostName>192.168.0.101&lt;/HostName>
+
+      </pre>
+
+      <p> We need to configure cassandra servers in these MB servers to form a cassandra ring. For that we need to change the following
+          entries in the "Cassandra.yaml" file which is located in the "wso2mb-2.0.1/repository/conf/etc" directory.</p>
+
+      <ul>
+          <li>Change the seeds in the ring. You can get a better idea on setting a cassandra from following <a href="http://www.datastax.com/docs/1.0/install/cluster_init">web page.</a>
+          Here we are configuring two seed nodes. (MB Server 01 and 02)</li>
+
+          <pre>
+              # seeds is actually a comma-delimited list of addresses.
+              # Ex: "&lt;ip1>,&lt;ip2>,&lt;ip3>"
+              - seeds: "192.168.0.100,192.168.0.101"
+
+          </pre>
+
+          <li>Change listen address of the server. By default it is "localhost", change it to the ip address of the host where you
+          have the cassandra server. <b>You need to change the listen address of the each server to it's ip address. Here
+          for the server 192.168.0.100, it will like bellow. </b>
+          </li>
+          <pre>
+             listen_address: 192.168.0.100
+          </pre>
+
+          <li>Change RPC address of the server.By default it is "localhost", change it to the ip address of the host where you
+          have the cassandra server. <b>You need to change the RPC address of the each server to it's ip address. Here
+          for the server 192.168.0.100, it will like bellow. </b></li>
+           <pre>
+             rpc_address: 192.168.0.100
+          </pre>
+      </ul>
+       <p>
+          <b>You need to change this entry in the 192.168.0.101 message broker server also.</b>
+      </p>
+
+
+      <p>
+               <b>Configuring Zookeeper Cluster</b>
+           </p>
+           <p> Then we need to configure the Zoo Keeper Servers to create a ring within among all broker nodes. We can do it by
+            adding client port address to the "zoo.cfg" which is located at "wso2mb-2.0.1/repository/conf/etc " . </p>
+
+           <p>After modifying the file , it will look like bellow. </p>
+           <pre>
+                tickTime=2000
+                dataDir=repository/data/zookeeper
+                clientPort=2181
+               <b>start_zk_server=true</b>
+               <b>clientPortAddress=192.168.0.101</b>
+               <b>server.1=192.168.0.101:2888:3888</b>
+               <b>server.2=192.168.0.102:2888:3888</b>
+           </pre>
+
+           <p> Above zoo.cfg file is for the server 192.168.0.101. You can copy the same zoo.cfg file to other two servers
+           and change the entry "clientPortAddress" to the ip of that particular server.</p>
+
+           <p> Then you need to create file "myid" in the data directory (repository/data/zookeeper) of each server. In that file
+           you need to specify the id of the server.</p>
+
+           <p>
+               eg: Id of the the server 192.168.0.101 will be "1". You need only to have the number 1 in that myid file.
+           </p>
+
+           <p>You can find more information on this in  <a href="http://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_zkMulitServerSetup">zookeeper clustering setup guide</a></p>
+
+           <p>
+               <b>You need to do above configuration in each of the message broker servers appropriately.</b>
+           </p>
+
+      <p>
+          <b>You need to change this entry in the 192.168.0.102 message broker server also.</b>
+      </p>
+
+      <p>
+          Then you need to do the following configuration changes in 192.168.0.100,192.168.0.101 (Servers with cassandra) Message broker nodes
+          and 192.168.0.103 node.
+      </p>
+      <p>
+         Modify qpid-config.xml file which is located at : /repository/conf/advanced directory as bellow
+      </p>
+      <ul>
+
+          <li>Enable clustering</li>
+          <li>Change the server of the Zookeeper</li>
+      </ul>
+      <pre>
+          &lt;clustering>
+
+          &lt;enabled><b>true</b>&lt;/enabled>
+          &lt;OnceInOrderSupportEnabled>false&lt;/OnceInOrderSupportEnabled>
+          &lt;externalCassandraServerRequired>false&lt;/externalCassandraServerRequired>
+
+          &lt;coordination>
+              &lt;!-- Apache Zookeeper Address -->
+              &lt;ZooKeeperConnection><b>192.168.0.101:2181,192.168.0.102:2181</b>&lt;/ZooKeeperConnection>
+              &lt;!-- Format yyyy-MM-dd HH:mm:ss -->
+              &lt;ReferenceTime>2012-02-29 08:08:08&lt;/ReferenceTime>
+          &lt;/coordination>
+      </pre>
+
+       <p>
+          Then you need to do the following configuration changes in 192.168.0.101,192.168.0.102 (Servers with zookeeper) Message broker nodes
+            and 192.168.0.103 node.
+      </p>
+
+        <p>Modify qpid-virtualhosts.xml file which is located at :/repository/conf/advanced directory as bellow</p>
+       <ul>
+          <li>Change the connection string by pointing to the cassandra server</li>
+      </ul>
+      <pre>
+          &lt;store>
+              &lt;class>org.wso2.andes.server.store.CassandraMessageStore&lt;/class>
+              &lt;username>admin&lt;/username>
+              &lt;password>admin&lt;/password>
+              &lt;cluster>ClusterOne&lt;/cluster>
+              &lt;idGenerator>org.wso2.andes.server.cluster.coordination.TimeStampBasedMessageIdGenerator&lt;/idGenerator>
+              &lt;connectionString><b>192.168.0.101</b>:9160&lt;/connectionString>
+          &lt;/store>
+      </pre>
+      <p>Now you can start node common to both of the rings (192.168.0.101) which have cassandra servers and  zookeeper server and
+      then you can start all the other nodes.</p>
+
+      <h2>
+
+      Other Resources
+    </h2>
+    <p/>
+    <p>
+      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
+      Library</a> : The Library contains articles, tutorials,
+      presentations, and other knowledge base items published on The Oxygen
+      Tank on different styles of deployments.
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/deployment_guide.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/deployment_guide.xml b/products/cloud-controller/docs/xdoc/deployment_guide.xml
new file mode 100644
index 0000000..385eeb8
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/deployment_guide.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+    <title>
+      WSO2 MB - Deployment Guide
+    </title>
+    <link href="css/mb-docs.css" rel="stylesheet"/>
+    <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
+  </head>
+  <body xml:lang="en">
+      [ <a href="docs_index.html"> Documentation Index </a> ]
+    <h1>
+      WSO2 Message Broker Server  (MB) Deployment Guide
+    </h1>
+    <p>Deploying the WSO2 MB correctly on your infrastructure is a vital task for the success
+        of the usage of the MB. You should first analyze the requirement and then select the
+        best matching deployment mode. There are different set of possible deployment modes with
+        different configurations.
+    </p>
+    <h2>
+      Available Deployment options
+    </h2>
+    <p>
+      <a href="installation_guide.html">Standalone Deployment Guide</a> :
+      Describes the default standalone installation and deployment of the MB
+    </p>
+    <p>
+      <a>Clustered Deployment Guide</a> :
+      Contains the information on deploying the Message Broker in a clustered environment, this particular guide
+      explains the available options on a clustered deployment.
+    </p>
+      <h2>Clustered Deployment Guide </h2>
+      <p> In clustered deployment of WSO2 message broker, there are several scenarios which can be implemented. Basically
+      in WSO2 message broker, there are three components.
+      </p>
+      <ul>
+                <li>Broker</li>
+                <li>Cassandra Server</li>
+                <li>Zoo Keeper Server</li>
+      </ul>
+      <p>By default, WSO2 mb is packed with all these three component. In a clustered setup, it is possible to have these
+      three components separately and shared with each other.
+      </p>
+      <p>Here we are describing some of the possible deployment scenarios and it can be customized according to your
+      requirement.</p>
+
+      <h3> Deployment models</h3>
+       <ul>
+                <li><a href="cluster_scenario_01.html">Starting external cassandra server and zoo keeper server and point all broker nodes to them</a> </li>
+                <li><a href="cluster_scenario_02.html">Starting external zoo keeper server and use the inbuilt cassandra server in ring model with broker nodes</a></li>
+                <li><a href="cluster_scenario_03.html">Starting external cassandra server and use inbuilt zoo keeper server in ring model with broker nodes</a></li>
+                <li><a href="cluster_scenario_04.html">Use inbuilt cassandra server and zoo keeper server for all the broker nodes</a></li>
+                <li><a href="cluster_scenario_05.html">Use inbuilt cassandra server and zoo keeper server in a customized manner</a></li>
+      </ul>
+
+      <h2>
+
+      Other Resources
+    </h2>
+    <p/>
+    <p>
+      <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
+      Library</a> : The Library contains articles, tutorials,
+      presentations, and other knowledge base items published on The Oxygen
+      Tank on different styles of deployments.
+    </p>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/docs_index.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/docs_index.xml b/products/cloud-controller/docs/xdoc/docs_index.xml
new file mode 100644
index 0000000..4e4c9c7
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/docs_index.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>
+            WSO2 MB - Documentation Index
+        </title>
+        <link href="css/mb-docs.css" rel="stylesheet"/>
+        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
+    </head>
+    <body xml:lang="en">
+        <h1>
+            WSO2 Message Broker Server (MB) Documentation Index
+        </h1>
+        <h2>
+            Getting Started
+        </h2>
+        <p>
+            <a href="installation_guide.html">Installation Guide</a>
+            : Gives
+            basic steps on how to download, install, and run WSO2 MB using the binary
+            distribution, and how to build WSO2 MB using the source distribution.
+        </p>
+        <p>
+            <a href="user_guide.html">User Guide</a>
+            : A
+            manual on how to run and configure the WSO2 MB through the management
+            console. The user guide is centered on describing key features such as pub/sub of WSO2
+            MB product.
+        </p>
+
+        <h2>
+            Samples
+        </h2>
+        <p>
+            <a href="samples_index.html">How to Run the WSO2 MB Samples</a>
+            :
+            This document provides you with a set of MB samples demonstrating various capabilities
+            of the MB. 
+        </p>
+        <p>
+            <a href="http://wso2.org/library/mb">The WSO2 Oxygen Tank
+                Library
+            </a>
+            : The Library contains articles, tutorials,
+            presentations, and other knowledge base items published on The Oxygen
+            Tank.
+        </p>
+        <p>
+            <a href="http://wso2.org/wiki/display/mb">Wiki Space</a>
+            :
+            This is the working Wiki for WSO2 MB.
+        </p>
+    </body>
+</html>


[28/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/js/jquery.orbit-1.2.3.min.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/js/jquery.orbit-1.2.3.min.js b/products/stratos-controller/modules/distribution/lib/home/js/jquery.orbit-1.2.3.min.js
new file mode 100755
index 0000000..13acb8d
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/lib/home/js/jquery.orbit-1.2.3.min.js
@@ -0,0 +1,17 @@
+/*
+ * jQuery Orbit Plugin 1.2.3
+ * www.ZURB.com/playground
+ * Copyright 2010, ZURB
+ * Free to use under the MIT license.
+ * http://www.opensource.org/licenses/mit-license.php
+*/
+
+(function(d){d.fn.orbit=function(a){a=d.extend({animation:"horizontal-push",animationSpeed:600,timer:!0,advanceSpeed:4E3,pauseOnHover:!1,startClockOnMouseOut:!1,startClockOnMouseOutAfter:1E3,directionalNav:!0,captions:!0,captionAnimation:"fade",captionAnimationSpeed:600,bullets:!1,bulletThumbs:!1,bulletThumbLocation:"",afterSlideChange:function(){}},a);return this.each(function(){function q(){if(!a.timer||a.timer=="false")return!1;else r.is(":hidden")?s=setInterval(function(){l("next")},a.advanceSpeed):
+(o=!0,x.removeClass("active"),s=setInterval(function(){var a="rotate("+m+"deg)";m+=2;t.css({"-webkit-transform":a,"-moz-transform":a,"-o-transform":a});m>180&&(t.addClass("move"),z.addClass("move"));m>360&&(t.removeClass("move"),z.removeClass("move"),m=0,l("next"))},a.advanceSpeed/180))}function n(){if(!a.timer||a.timer=="false")return!1;else o=!1,clearInterval(s),x.addClass("active")}function A(){if(!a.captions||a.captions=="false")return!1;else{var y=e.eq(b).data("caption");(_captionHTML=d(y).html())?
+(j.attr("id",y).html(_captionHTML),a.captionAnimation=="none"&&j.show(),a.captionAnimation=="fade"&&j.fadeIn(a.captionAnimationSpeed),a.captionAnimation=="slideOpen"&&j.slideDown(a.captionAnimationSpeed)):(a.captionAnimation=="none"&&j.hide(),a.captionAnimation=="fade"&&j.fadeOut(a.captionAnimationSpeed),a.captionAnimation=="slideOpen"&&j.slideUp(a.captionAnimationSpeed))}}function B(){if(a.bullets)D.children("li").removeClass("active").eq(b).addClass("active");else return!1}function l(d){function c(){e.eq(f).css({"z-index":1});
+u=!1;a.afterSlideChange.call(this)}var f=b,g=d;if(f==g)return!1;if(e.length=="1")return!1;u||(u=!0,d=="next"?(b++,b==p&&(b=0)):d=="prev"?(b--,b<0&&(b=p-1)):(b=d,f<b?g="next":f>b&&(g="prev")),B(),e.eq(f).css({"z-index":2}),a.animation=="fade"&&e.eq(b).css({opacity:0,"z-index":3}).animate({opacity:1},a.animationSpeed,c),a.animation=="horizontal-slide"&&(g=="next"&&e.eq(b).css({left:h,"z-index":3}).animate({left:0},a.animationSpeed,c),g=="prev"&&e.eq(b).css({left:-h,"z-index":3}).animate({left:0},a.animationSpeed,
+c)),a.animation=="vertical-slide"&&(g=="prev"&&e.eq(b).css({top:v,"z-index":3}).animate({top:0},a.animationSpeed,c),g=="next"&&e.eq(b).css({top:-v,"z-index":3}).animate({top:0},a.animationSpeed,c)),a.animation=="horizontal-push"&&(g=="next"&&(e.eq(b).css({left:h,"z-index":3}).animate({left:0},a.animationSpeed,c),e.eq(f).animate({left:-h},a.animationSpeed)),g=="prev"&&(e.eq(b).css({left:-h,"z-index":3}).animate({left:0},a.animationSpeed,c),e.eq(f).animate({left:h},a.animationSpeed))),A())}var b=0,
+p=0,h,v,u,f=d(this).addClass("orbit"),c=f.wrap('<div class="orbit-wrapper" />').parent();f.add(h).width("1px").height("1px");var e=f.children("img, a, div");e.each(function(){var a=d(this),b=a.width(),a=a.height();b>f.width()&&(f.add(c).width(b),h=f.width());a>f.height()&&(f.add(c).height(a),v=f.height());p++});if(e.length==1)a.directionalNav=!1,a.timer=!1,a.bullets=!1;e.eq(b).css({"z-index":3}).fadeIn(function(){e.css({display:"block"})});if(a.timer){c.append('<div class="timer"><span class="mask"><span class="rotator"></span></span><span class="pause"></span></div>');
+var r=d("div.timer"),o;if(r.length!=0){var t=d("div.timer span.rotator"),z=d("div.timer span.mask"),x=d("div.timer span.pause"),m=0,s;q();r.click(function(){o?n():q()});if(a.startClockOnMouseOut){var C;c.mouseleave(function(){C=setTimeout(function(){o||q()},a.startClockOnMouseOutAfter)});c.mouseenter(function(){clearTimeout(C)})}}}a.pauseOnHover&&c.mouseenter(function(){n()});if(a.captions){c.append('<div class="orbit-caption"></div>');var j=c.children(".orbit-caption");A()}if(a.directionalNav){if(a.directionalNav==
+"false")return!1;c.append('<div class="slider-nav"><span class="right">Right</span><span class="left">Left</span></div>');var k=c.children("div.slider-nav").children("span.left"),w=c.children("div.slider-nav").children("span.right");k.click(function(){n();l("prev")});w.click(function(){n();l("next")})}if(a.bullets){c.append('<ul class="orbit-bullets"></ul>');var D=d("ul.orbit-bullets");for(i=0;i<p;i++){k=d("<li>"+(i+1)+"</li>");if(a.bulletThumbs&&(w=e.eq(i).data("thumb")))k=d('<li class="has-thumb">'+
+i+"</li>"),k.css({background:"url("+a.bulletThumbLocation+w+") no-repeat"});d("ul.orbit-bullets").append(k);k.data("index",i);k.click(function(){n();l(d(this).data("index"))})}B()}})}})(jQuery);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/js/orbit-1.2.3.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/js/orbit-1.2.3.css b/products/stratos-controller/modules/distribution/lib/home/js/orbit-1.2.3.css
new file mode 100755
index 0000000..bff4f1f
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/lib/home/js/orbit-1.2.3.css
@@ -0,0 +1,202 @@
+/* CSS for jQuery Orbit Plugin 1.2.3
+ * www.ZURB.com/playground
+ * Copyright 2010, ZURB
+ * Free to use under the MIT license.
+ * http://www.opensource.org/licenses/mit-license.php
+ 
+ 
+ 
+/* PUT IN YOUR SLIDER ID AND SIZE TO MAKE LOAD BEAUTIFULLY
+   ================================================== */
+#featured { 
+	width: 940px;
+	height: 450px;
+	url('orbit/loading.gif') no-repeat center center;
+	overflow: hidden; }
+#featured>img,  
+#featured>div,
+#featured>a { display: none; }
+
+
+
+
+/* CONTAINER
+   ================================================== */
+
+div.orbit-wrapper {
+    width: 1px;
+    height: 1px;
+    position: relative; }
+
+div.orbit {
+    width: 1px;
+    height: 1px;
+    position: relative;
+    overflow: hidden }
+
+div.orbit>img {
+    position: absolute;
+    top: 0;
+    left: 0;
+    display: none; }
+
+div.orbit>a {
+    border: none;
+    position: absolute;
+    top: 0;
+    left: 0;
+    line-height: 0; 
+    display: none; }
+
+.orbit>div {
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 100%; }
+
+/* Note: If your slider only uses content or anchors, you're going to want to put the width and height declarations on the ".orbit>div" and "div.orbit>a" tags in addition to just the .orbit-wrapper */
+
+
+/* TIMER
+   ================================================== */
+
+div.timer {
+    width: 40px;
+    height: 40px;
+    overflow: hidden;
+    position: absolute;
+    top: 10px;
+    right: 10px;
+    opacity: .6;
+    cursor: pointer;
+    z-index: 1001; }
+
+span.rotator {
+    display: block;
+    width: 40px;
+    height: 40px;
+    position: absolute;
+    top: 0;
+    left: -20px;
+    background: url(orbit/rotator-black.png) no-repeat;
+    z-index: 3; }
+
+span.mask {
+    display: block;
+    width: 20px;
+    height: 40px;
+    position: absolute;
+    top: 0;
+    right: 0;
+    z-index: 2;
+    overflow: hidden; }
+
+span.rotator.move {
+    left: 0 }
+
+span.mask.move {
+    width: 40px;
+    left: 0;
+    background: url(orbit/timer-black.png) repeat 0 0; }
+
+span.pause {
+    display: block;
+    width: 40px;
+    height: 40px;
+    position: absolute;
+    top: 0;
+    left: 0;
+    background: url(orbit/pause-black.png) no-repeat;
+    z-index: 4;
+    opacity: 0; }
+
+span.pause.active {
+    background: url(orbit/pause-black.png) no-repeat 0 -40px }
+
+div.timer:hover span.pause,
+span.pause.active {
+    opacity: 1 }
+
+
+/* CAPTIONS
+   ================================================== */
+
+.orbit-caption {
+    display: none;
+    font-family: "HelveticaNeue", "Helvetica-Neue", Helvetica, Arial, sans-serif; }
+
+.orbit-wrapper .orbit-caption {
+    background: #000;
+    background: rgba(0,0,0,.6);
+    z-index: 1000;
+    color: #fff;
+	text-align: center;
+	padding: 7px 0;
+    font-size: 13px;
+    position: absolute;
+    right: 0;
+    bottom: 0;
+    width: 100%; }
+
+
+/* DIRECTIONAL NAV
+   ================================================== */
+
+div.slider-nav {
+    display: block }
+
+div.slider-nav span {
+    width: 30px;
+    height: 41px;
+    text-indent: -9999px;
+    position: absolute;
+    z-index: 1000;
+    background-color: #fffff;
+    top: 50%;
+    margin-top: -22px;
+    cursor: pointer; }
+
+div.slider-nav span.right {
+    background: url(orbit/right-arrow.png);
+    right: 0; }
+
+div.slider-nav span.left {
+    background: url(orbit/left-arrow.png);
+    left: 0; }
+
+/* BULLET NAV
+   ================================================== */
+
+.orbit-bullets {
+    position: absolute;
+    z-index: 1000;
+    list-style: none;
+    bottom: -40px;
+    left: 50%;
+	margin-left: -50px;
+    padding: 0; }
+
+.orbit-bullets li {
+    float: left;
+    margin-left: 5px;
+    cursor: pointer;
+    color: #999;
+    text-indent: -9999px;
+    background: url(orbit/bullets.jpg) no-repeat 4px 0;
+    width: 13px;
+    height: 12px;
+    overflow: hidden; }
+
+.orbit-bullets li.active {
+    color: #222;
+    background-position: -8px 0; }
+    
+.orbit-bullets li.has-thumb {
+    background: none;
+    width: 100px;
+    height: 75px; }
+
+.orbit-bullets li.active.has-thumb {
+    background-position: 0 0;
+    border-top: 2px solid #000; }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/js/orbit/left-arrow.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/js/orbit/left-arrow.png b/products/stratos-controller/modules/distribution/lib/home/js/orbit/left-arrow.png
new file mode 100755
index 0000000..bd65cb1
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/js/orbit/left-arrow.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/js/orbit/loading.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/js/orbit/loading.gif b/products/stratos-controller/modules/distribution/lib/home/js/orbit/loading.gif
new file mode 100755
index 0000000..969f505
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/js/orbit/loading.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/js/orbit/mask-black.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/js/orbit/mask-black.png b/products/stratos-controller/modules/distribution/lib/home/js/orbit/mask-black.png
new file mode 100755
index 0000000..e4e77b5
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/js/orbit/mask-black.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/js/orbit/right-arrow.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/js/orbit/right-arrow.png b/products/stratos-controller/modules/distribution/lib/home/js/orbit/right-arrow.png
new file mode 100755
index 0000000..2c9baab
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/js/orbit/right-arrow.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/js/orbit/rotator-black.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/js/orbit/rotator-black.png b/products/stratos-controller/modules/distribution/lib/home/js/orbit/rotator-black.png
new file mode 100755
index 0000000..a0d24a7
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/js/orbit/rotator-black.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/js/orbit/timer-black.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/js/orbit/timer-black.png b/products/stratos-controller/modules/distribution/lib/home/js/orbit/timer-black.png
new file mode 100755
index 0000000..e4e77b5
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/js/orbit/timer-black.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/style.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/style.css b/products/stratos-controller/modules/distribution/lib/home/style.css
new file mode 100755
index 0000000..587c997
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/lib/home/style.css
@@ -0,0 +1,160 @@
+body { font-family: "Calibri","Lucida Grande","Lucida Sans","Microsoft Sans Serif","Lucida Sans Unicode","Verdana","Sans-serif","trebuchet ms"; font-size: .85em; line-height: 135%; color: #434343; margin: 0px; padding: 0px; background-color: #94C8EC;}
+
+p { }
+
+td { }
+
+a:link { text-decoration: none; }
+
+a:visited { text-decoration: none; }
+
+a:hover { text-decoration: none; }
+
+a:active { text-decoration: none; }
+
+a img { border: 0px; }
+div.clear { clear: both; }
+
+div#main-content { width: 960px; margin: auto; background-image: url(images/top.gif); background-repeat: no-repeat; background-position: left 15px; }
+
+div#header { height: 140px; }
+div.top-nav {
+	float: right;
+}
+div.top-nav ul {
+	list-style: none;
+	margin: 0px;
+	padding: 0px;
+}
+div.top-nav ul li {
+	position: relative;
+	float: left;
+	padding-left: 10px;
+	padding-right: 10px;
+	padding-top: 10px;
+	padding-bottom: 0px;
+	border-right: solid 1px #005577;
+}
+div.top-nav ul li.right {
+	border-right: 0px;
+}
+div.top-nav ul li a {
+	color: #005577;
+	font-weight: bold;
+	font-size: 16px;
+}
+div.top-nav ul li a:hover {
+	color: #ffffff;
+}
+div.logo { float: left; margin-top: 25px; }
+div#content { background-color: #ffffff; background-image: url(images/content-bg.gif); background-repeat: repeat-y; background-position: left top; }
+div#left {
+	float: left;
+	width: 400px;
+	background-image: url(images/left-bg.gif);
+	background-position: right top;
+	background-repeat: no-repeat;
+}
+div#left div.stratos-products div.title {
+	margin-left: 30px;
+	margin-top: 5px;
+	font-size: 24px;
+	font-weight: normal;
+	line-height: 32px;
+}
+div#left div.stratos-products div.products {
+	margin-left: 30px;
+	margin-top: 25px;
+	padding-bottom: 40px;
+}
+div#left div.stratos-products div.products a {
+	display: block;
+	height: 24px;
+	margin-bottom: 7px;
+	background-image: url(images/stratos-products.gif);
+	background-repeat: no-repeat;
+	background-position: left top;
+}
+div#left div.stratos-products div.products a {
+	background: url(images/stratos-products-new.jpg) no-repeat top left;
+}
+div#left div.stratos-products div.products a.as-new{ background-position: 0 0; width: 170px; height: 24px; } 
+div#left div.stratos-products div.products a.bam-new{ background-position: 0 -74px; width: 204px; height: 23px; } 
+div#left div.stratos-products div.products a.bps-new{ background-position: 0 -147px; width: 198px; height: 23px; } 
+div#left div.stratos-products div.products a.brs-new{ background-position: 0 -220px; width: 183px; height: 23px; } 
+div#left div.stratos-products div.products a.cep-new{ background-position: 0 -293px; width: 231px; height: 22px; } 
+div#left div.stratos-products div.products a.cg-new{ background-position: 0 -365px; width: 148px; height: 24px; } 
+div#left div.stratos-products div.products a.dss-new{ background-position: 0 -439px; width: 181px; height: 24px; } 
+div#left div.stratos-products div.products a.esb-new{ background-position: 0 -513px; width: 192px; height: 24px; }
+div#left div.stratos-products div.products a.greg-new{ background-position: 0 -587px; width: 180px; height: 23px; } 
+div#left div.stratos-products div.products a.is-new{ background-position: 0 -660px; width: 147px; height: 23px; } 
+div#left div.stratos-products div.products a.mb-new{ background-position: 0 -733px; width: 157px; height: 23px; } 
+div#left div.stratos-products div.products a.ss-new{ background-position: 0 -806px; width: 142px; height: 23px; } 
+div#left div.stratos-products div.products a.ts-new{ background-position: 0 -879px; width: 130px; height: 23px; } 
+div#left div.stratos-products div.products a:hover { opacity:0.7;filter:alpha(opacity=70) }
+div#right {
+	float: left;
+	width: 560px;
+}
+
+div#right div.register { width: 555px; margin-top: 15px; margin-right: 0px; padding-bottom: 10px; text-align: center;
+background-image: url(images/intro-bg.gif);background-position: center bottom; background-repeat: no-repeat;
+}
+div#right div.register a { display: block; height: 62px; margin-bottom: 10px; }
+div#right div.register a img { margin-bottom: 7px; }
+div#right div.register a:hover img { opacity:0.7;filter:alpha(opacity=70) }
+
+div#right div.banner{
+	width: 500px;
+	margin: auto;
+	height: 297px;
+	margin-top: 30px;
+}
+div#right div.banner div#featured {
+	width: 500px;
+	height: 297px;
+}
+div#right div.banner div#featured div.screencast {
+	width: 500px;
+	height: 297px;
+	text-align: center;
+}
+div#right div.banner div#featured div.screencast h2 {
+	font-size: 16px;
+	margin-top: 0px;
+	margin-bottom: 0px;
+	padding-bottom: 8px;
+	padding-top: 8px;
+	line-height: 16px;
+	background-color: #000000;
+	color: #ffffff;
+	margin-left: 30px;
+	margin-right: 30px;
+}
+div#right div.banner div#featured div.whitepaper, div#right div.banner div#featured div.webinar {
+	width: 500px;
+	height: 297px;
+	text-align: center;
+	margin-top: 23px;
+}
+div#bottom { 
+	background-image: url(images/feature-middle-bg.gif);
+	background-position: center top;
+	background-repeat: no-repeat; 
+	}
+div#bottom div.feature {
+	float: left; 
+	width: 240px;
+	padding-left: 40px;
+	padding-right: 40px;
+	font-size: 20px;
+	line-height: 25px;
+	font-weight: bold;
+	text-align: center;
+	padding-bottom: 20px;
+}
+div#footer { height: 80px; background-image: url(images/bottom.gif); background-position: left top; background-repeat: no-repeat; padding-top: 25px;}
+div#footer div.powered { color: #333333; float: right; font-size: 85%; margin-right: 10px; }
+div#footer div.powered span { float: left; line-height: 23px; margin-right: 5px; }
+div.footer-links { padding-bottom: 5px; padding-left: 10px; border-bottom: solid 1px #4E84C4; margin-bottom: 10px; color: #4E84C4; }
+div#footer span.copyright { font-size: 90%; padding-left: 10px; }

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/pom.xml b/products/stratos-controller/modules/distribution/pom.xml
new file mode 100755
index 0000000..dcbe288
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/pom.xml
@@ -0,0 +1,770 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-controller-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>apache-stratos-sc</artifactId>
+    <packaging>jar</packaging>
+    <name>Apache Stratos - Distribution</name>
+    <description>Apache Stratos - Distribution</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.rampart</groupId>
+            <artifactId>rampart</artifactId>
+            <version>${rampart.mar.version}</version>
+            <type>mar</type>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.andes.wso2</groupId>
+            <artifactId>andes-client</artifactId>
+            <version>0.13.wso2v6</version>
+            <type>jar</type>
+        </dependency>
+        <!--dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>features-dashboard</artifactId>
+                <version>${features-dashboard.war.version}</version>
+                <type>war</type>
+            </dependency-->
+        <!--dependency>
+            <groupId>com.h2database.wso2</groupId>
+            <artifactId>h2-database-engine</artifactId>
+            <version>${orbit.version.h2.engine}</version>
+        </dependency-->
+        <!-- Carbon core distribution -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>wso2carbon-core</artifactId>
+            <version>${carbon.kernel.version}</version>
+            <type>zip</type>
+        </dependency>
+
+        <!-- Synapse dependencies -->
+        <!--dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-commons</artifactId>
+            <version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-nhttp-transport</artifactId>
+            <version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-pipe-transport</artifactId>
+            <version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-core</artifactId>
+            <version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-tasks</artifactId>
+            <version>${synapse.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.synapse</groupId>
+            <artifactId>synapse-extensions</artifactId>
+            <version>${synapse.version}</version>
+        </dependency-->
+
+        <!-- Carbon mediation initializer -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediation.initializer</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.bridge</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediation.dependency.mgt</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+
+
+        <!-- ### Required Carbon components ### -->
+        <!-- Transport managament components -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.transport.mgt</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Transport components -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.transport.http</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.transport.nhttp</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.transport.https</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.transport.mail</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Sequence management components -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.service</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.sequences.common</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.sequences</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.router.impl</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.clazz.services</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.command.services</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+
+        <!--Entitlement mediator dependency -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.identity.entitlement.mediator</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+
+        <!--OAuth mediator dependency -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.identity.oauth.mediator</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+
+        <!--Drools dependency-->
+        <dependency>
+            <groupId>org.drools.wso2</groupId>
+            <artifactId>drools</artifactId>
+            <version>5.0.1.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>jsr94.wso2</groupId>
+            <artifactId>jsr94</artifactId>
+            <version>1.1.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.mvel.wso2</groupId>
+            <artifactId>mvel2</artifactId>
+            <version>2.0.10.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>joda-time.wso2</groupId>
+            <artifactId>joda-time</artifactId>
+            <version>1.6.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.antlr.wso2</groupId>
+            <artifactId>antlr-runtime</artifactId>
+            <version>3.1.1.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>janino.wso2</groupId>
+            <artifactId>janino</artifactId>
+            <version>2.5.15.wso2v1</version>
+        </dependency>
+        <!-- Endpoints component -->
+        <!--dependency>
+          <groupId>org.wso2.carbon</groupId>
+          <artifactId>org.wso2.carbon.endpoint.common</artifactId>
+          <version>${carbon.version}</version>
+      </dependency-->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.endpoint</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Local Entries component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.localentry</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Service management component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.service.mgt</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Operation management component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.operation.mgt</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Module Management component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.module.mgt</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Security components (orbit) -->
+        <dependency>
+            <groupId>org.apache.rampart.wso2</groupId>
+            <artifactId>rampart-policy</artifactId>
+            <version>1.6.1.wso2v1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.rampart.wso2</groupId>
+            <artifactId>rampart-trust</artifactId>
+            <version>1.6.1.wso2v1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.rampart.wso2</groupId>
+            <artifactId>rampart-core</artifactId>
+            <version>1.6.1.wso2v1</version>
+        </dependency>
+
+        <!-- Policy Editor component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.policyeditor</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Task component with startups -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.startup</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.task</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.task.services</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Synapse Config admin component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediation.configadmin</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Synapse Registry component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediation.registry</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Datasources component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.datasource</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Throttle component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.throttle</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- Caching component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.caching</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- RM component -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.rm</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+
+        <!-- Menus -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.ui.menu.registry</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+        <!-- ### Required Carbon orbit dependencies ### -->
+        <dependency>
+            <groupId>org.apache.geronimo.specs.wso2</groupId>
+            <artifactId>geronimo-jms_1.1_spec</artifactId>
+            <version>1.1.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-net.wso2</groupId>
+            <artifactId>commons-net</artifactId>
+            <version>2.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>jsch.wso2</groupId>
+            <artifactId>jsch</artifactId>
+            <version>0.1.41-wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents.wso2</groupId>
+            <artifactId>httpcore-nio</artifactId>
+            <version>4.1.0.wso2v2</version>
+        </dependency>
+        <dependency>
+            <groupId>org.quartz-scheduler.wso2</groupId>
+            <artifactId>quartz</artifactId>
+            <version>2.1.1.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.codehaus.woodstox</groupId>
+            <artifactId>wstx-asl</artifactId>
+            <version>3.2.1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-stax-api_1.0_spec</artifactId>
+            <version>1.0.1</version>
+        </dependency>
+        <dependency>
+            <groupId>net.sf.saxon.wso2</groupId>
+            <artifactId>saxon</artifactId>
+            <version>8.9.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.abdera.wso2</groupId>
+            <artifactId>abdera</artifactId>
+            <version>1.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.ws.wso2</groupId>
+            <artifactId>spring.framework</artifactId>
+            <version>2.5.1.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-io.wso2</groupId>
+            <artifactId>commons-io</artifactId>
+            <version>2.0.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-collections.wso2</groupId>
+            <artifactId>commons-collections</artifactId>
+            <version>3.2.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ws.savan.wso2</groupId>
+            <artifactId>savan-core</artifactId>
+            <version>1.0.0-wso2v2</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.caching</groupId>
+            <artifactId>wso2caching-core</artifactId>
+            <version>3.5.0</version>
+        </dependency>
+        <!--Bouncycastle dependency for clients and servers-->
+        <dependency>
+            <groupId>bouncycastle</groupId>
+            <artifactId>bcprov-jdk15</artifactId>
+            <version>132</version>
+        </dependency>
+
+        <!-- autoscale components -->
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.mediator.autoscale</artifactId>
+            <version>4.0.3</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.discovery.core</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.relay</artifactId>
+            <version>${carbon.version}</version>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>maven-buildnumber-plugin</artifactId>
+                <version>0.9.4</version>
+                <configuration>
+                    <format>{0,date,dd MMM yyyy}</format>
+                    <items>
+                        <item>timestamp</item>
+                    </items>
+                    <doCheck>false</doCheck>
+                    <doUpdate>false</doUpdate>
+                </configuration>
+                <executions>
+                    <execution>
+                        <phase>validate</phase>
+                        <goals>
+                            <goal>create</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <version>2.0-alpha-4</version>
+                <inherited>false</inherited>
+                <executions>
+                    <execution>
+                        <id>2-unpack-wso2carbon</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>unpack</goal>
+                        </goals>
+                        <configuration>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.wso2.carbon</groupId>
+                                    <artifactId>wso2carbon-core</artifactId>
+                                    <version>${carbon.kernel.version}</version>
+                                    <type>zip</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target</outputDirectory>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>com.acme.shoppingcart.global</groupId>
+                                    <artifactId>shopping-cart-global</artifactId>
+                                    <version>${shoppingcart.global.version}</version>
+                                    <type>zip</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target</outputDirectory>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.1</version>
+                <executions>
+                    <execution>
+                        <id>1-run-ant</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <path id="h2.classpath">
+                                    <path refid="maven.compile.classpath"/>
+                                </path>
+                                <echo
+                                        message="########### Create Billing Database ##############"/>
+                                <sql
+                                        driver="org.h2.Driver"
+                                        url="jdbc:h2:${basedir}/target/database/WSO2BILLING_DB"
+                                        userid="wso2carbon" password="wso2carbon" autocommit="true"
+                                        onerror="continue">
+                                    <classpath>
+                                        <path refid="h2.classpath"/>
+                                    </classpath>
+                                    <fileset file="../../billing-script/billing-h2.sql"/>
+                                    <fileset file="../../billing-script/metering_h2.sql"/>
+                                </sql>
+                                <echo
+                                        message="##################### END ########################"/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+
+                    <execution>
+                        <id>1-run-ant2</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <path id="h2.classpath">
+                                    <path refid="maven.compile.classpath"/>
+                                </path>
+                                <echo
+                                        message="########### Create S2 Foundation Schema Database ##############"/>
+                                <sql
+                                        driver="org.h2.Driver"
+                                        url="jdbc:h2:${basedir}/target/database/WSO2S2_DB"
+                                        userid="wso2carbon" password="wso2carbon" autocommit="true"
+                                        onerror="continue">
+                                    <classpath>
+                                        <path refid="h2.classpath"/>
+                                    </classpath>
+                                    <fileset file="../../billing-script/s2_h2.sql"/>
+                                </sql>
+                                <echo
+                                        message="##################### END ########################"/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>3-extract-docs-from-components</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <property name="tempdir" value="target/docs-temp"/>
+                                <mkdir dir="${tempdir}"/>
+                                <unzip dest="${tempdir}">
+                                    <fileset dir="target">
+                                        <include name="${project.artifactId}-${project.version}.zip"/>
+                                    </fileset>
+                                </unzip>
+                                <copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components"
+                                      overwrite="true">
+                                    <fileset
+                                            dir="${tempdir}/${project.artifactId}-${project.version}/repository/components">
+                                    </fileset>
+                                </copy>
+                                <copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/conf"
+                                      overwrite="true">
+                                    <fileset dir="../../conf">
+                                        <include name="user-mgt.xml"/>
+                                    </fileset>
+                                </copy>
+                                <delete file="target/${project.artifactId}-${project.version}.zip"/>
+                                <delete dir="${tempdir}"/>
+                                <mkdir dir="${tempdir}"/>
+                                <unzip dest="${tempdir}">
+                                    <fileset
+                                            dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/">
+                                        <include name="*.ui*.jar"/>
+                                    </fileset>
+                                </unzip>
+                                <move todir="${tempdir}/web/" includeemptydirs="false">
+                                    <fileset dir="${tempdir}/web/">
+                                        <exclude name="**/yui/**"/>
+                                        <exclude name="**/ajax/**"/>
+                                        <exclude name="**/WEB-INF/**"/>
+                                        <include name="**/*.html"/>
+                                    </fileset>
+                                    <mapper type="glob" from="*.html" to="*.xml"/>
+                                </move>
+                                <mkdir dir="src/site/xdoc"/>
+                                <copy todir="src/site/xdoc" overwrite="false" includeemptydirs="false">
+                                    <fileset dir="${tempdir}/web">
+                                        <exclude name="**/yui/**"/>
+                                        <exclude name="**/ajax/**"/>
+                                        <exclude name="**/WEB-INF/**"/>
+                                        <exclude name="**/*.html"/>
+                                        <exclude name="**/*.js"/>
+                                        <exclude name="**/*.jsp"/>
+                                        <exclude name="**/*.xsl"/>
+                                        <exclude name="*.*"/>
+                                    </fileset>
+                                </copy>
+                                <copy todir="target/site/" overwrite="false" includeemptydirs="false">
+                                    <fileset dir="src/site/xdoc/">
+                                        <include name="**/images/**/*.*"/>
+                                    </fileset>
+                                </copy>
+                                <delete dir="${tempdir}"/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>clean_target</id>
+                        <phase>install</phase>
+                        <configuration>
+                            <tasks>
+                                <delete dir="target/archive-tmp"/>
+                                <delete dir="target/dependency-maven-plugin-markers"/>
+                                <delete dir="target/maven-archiver"/>
+                                <delete dir="target/wso2carbon-core-${carbon.kernel.version}"/>
+                                <delete dir="target/shopping-cart-global-${shoppingcart.global.version}"/>
+                                <delete file="target/${project.artifactId}-${project.version}.jar"/>
+                                <delete dir="target/sources"/>
+                                <delete dir="target/site"/>
+                                <delete dir="target/database"/>
+				<delete dir="src/site"/>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-site-plugin</artifactId>
+                <version>3.0</version>
+                <executions>
+                    <execution>
+                        <phase>5-package</phase>
+                        <goals>
+                            <goal>site</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+    <profiles>
+        <profile>
+            <id>default</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-assembly-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>1-pre_dist</id>
+                                <phase>test</phase>
+                                <goals>
+                                    <goal>attached</goal>
+                                </goals>
+                                <configuration>
+                                    <filters>
+                                        <filter>${basedir}/src/assembly/filter.properties</filter>
+                                    </filters>
+                                    <descriptors>
+                                        <descriptor>${basedir}/src/assembly/dist.xml</descriptor>
+                                    </descriptors>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>4-dist</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>attached</goal>
+                                </goals>
+                                <configuration>
+                                    <filters>
+                                        <filter>${basedir}/src/assembly/filter.properties</filter>
+                                    </filters>
+                                    <descriptors>
+                                        <descriptor>${basedir}/src/assembly/bin.xml</descriptor>
+                                        <!--<descriptor>${basedir}/src/assembly/src.xml</descriptor>-->
+                                        <!--<descriptor>${basedir}/src/assembly/docs.xml</descriptor>-->
+                                    </descriptors>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
+            <id>fix_configuration</id>
+            <activation>
+                <property>
+                    <name>build</name>
+                    <value>box</value>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-assembly-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>1-pre_dist</id>
+                                <phase>test</phase>
+                                <goals>
+                                    <goal>attached</goal>
+                                </goals>
+                                <configuration>
+                                    <filters>
+                                        <filter>${basedir}/src/assembly/filter.properties</filter>
+                                    </filters>
+                                    <descriptors>
+                                        <descriptor>${basedir}/src/assembly/dist.xml</descriptor>
+                                    </descriptors>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>4-dist</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>attached</goal>
+                                </goals>
+                                <configuration>
+                                    <filters>
+                                        <filter>${basedir}/src/assembly/filter.properties</filter>
+                                    </filters>
+                                    <descriptors>
+                                        <descriptor>${basedir}/src/assembly/bin.xml</descriptor>
+                                        <!--<descriptor>${basedir}/src/assembly/src.xml</descriptor>-->
+                                        <!--<descriptor>${basedir}/src/assembly/docs.xml</descriptor>-->
+                                    </descriptors>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/qpid-resources/etc/config.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/qpid-resources/etc/config.xml b/products/stratos-controller/modules/distribution/qpid-resources/etc/config.xml
new file mode 100755
index 0000000..a54dd98
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/qpid-resources/etc/config.xml
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<broker>
+    <prefix>${QPID_HOME}</prefix>
+    <work>${QPID_WORK}</work>
+    <conf>${prefix}/etc</conf>
+
+    <plugin-directory>${QPID_HOME}/lib/plugins</plugin-directory>
+    <cache-directory>${QPID_WORK}/cache</cache-directory>
+    
+    <connector>
+        <!-- To enable SSL edit the keystorePath and keystorePassword
+	     and set enabled to true. 
+             To disasble Non-SSL port set sslOnly to true -->
+        <ssl>
+            <enabled>false</enabled>
+            <sslOnly>false</sslOnly>
+            <keystorePath>/path/to/keystore.ks</keystorePath>
+            <keystorePassword>keystorepass</keystorePassword>
+        </ssl>
+        <qpidnio>false</qpidnio>
+        <protectio>
+            <enabled>false</enabled>
+            <readBufferLimitSize>262144</readBufferLimitSize>
+            <writeBufferLimitSize>262144</writeBufferLimitSize>	    
+        </protectio>
+        <transport>nio</transport>
+        <port>5672</port>
+        <sslport>8672</sslport>
+        <socketReceiveBuffer>32768</socketReceiveBuffer>
+        <socketSendBuffer>32768</socketSendBuffer>
+    </connector>
+    <management>
+        <enabled>true</enabled>
+        <jmxport>8999</jmxport>
+        <ssl>
+            <enabled>false</enabled>
+            <!-- Update below path to your keystore location, or run the bin/create-example-ssl-stores(.sh|.bat)
+                 script from within the etc/ folder to generate an example store with self-signed cert -->
+            <keyStorePath>${conf}/qpid.keystore</keyStorePath>
+            <keyStorePassword>password</keyStorePassword>
+        </ssl>
+    </management>
+    <advanced>
+        <filterchain enableExecutorPool="true"/>
+        <enablePooledAllocator>false</enablePooledAllocator>
+        <enableDirectBuffers>false</enableDirectBuffers>
+        <framesize>65535</framesize>
+        <compressBufferOnQueue>false</compressBufferOnQueue>
+        <enableJMSXUserID>false</enableJMSXUserID>
+        <locale>en_US</locale>	
+    </advanced>
+
+    <security>
+        <principal-databases>
+            <principal-database>
+                <name>carbon-user-store</name>
+                <class>org.wso2.carbon.qpid.authentication.qpid.CarbonBasedPrincipalDatabase</class>
+            </principal-database>
+        </principal-databases>
+
+        <msg-auth>false</msg-auth>
+        
+        <jmx>
+            <access>${conf}/jmxremote.access</access>
+            <principal-database>carbon-user-store</principal-database>
+        </jmx>
+    </security>
+
+    <virtualhosts>${conf}/virtualhosts.xml</virtualhosts>
+    
+    <heartbeat>
+        <delay>0</delay>
+        <timeoutFactor>2.0</timeoutFactor>
+    </heartbeat>
+    <queue>
+        <auto_register>true</auto_register>
+    </queue>
+
+    <status-updates>ON</status-updates>
+
+</broker>
+
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/qpid-resources/etc/jmxremote.access
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/qpid-resources/etc/jmxremote.access b/products/stratos-controller/modules/distribution/qpid-resources/etc/jmxremote.access
new file mode 100755
index 0000000..f496e92
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/qpid-resources/etc/jmxremote.access
@@ -0,0 +1,23 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+#Generated by JMX Console : Last edited by user:admin
+#Tue Jun 12 16:46:39 BST 2007
+#admin=admin
+#guest=readonly
+#user=readwrite

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/qpid-resources/etc/virtualhosts.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/qpid-resources/etc/virtualhosts.xml b/products/stratos-controller/modules/distribution/qpid-resources/etc/virtualhosts.xml
new file mode 100755
index 0000000..f55e8c8
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/qpid-resources/etc/virtualhosts.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<virtualhosts>
+    <default>carbon</default>
+    <virtualhost>
+        <name>carbon</name>
+        <carbon>
+            <store>
+                <!--class>org.apache.qpid.server.store.MemoryMessageStore</class-->
+		<class>org.apache.qpid.server.store.DerbyMessageStore</class>
+		<environment-path>repository/database/qpid/derbystore</environment-path>
+            </store>
+
+            <housekeeping>
+                <threadCount>2</threadCount>
+                <expiredMessageCheckPeriod>20000</expiredMessageCheckPeriod>
+            </housekeeping>
+
+            <exchanges>
+                <exchange>
+                    <type>direct</type>
+                    <name>carbon.direct</name>
+                    <durable>true</durable>
+                </exchange>
+                <exchange>
+                    <type>topic</type>
+                    <name>carbon.topic</name>
+                </exchange>
+            </exchanges>
+            
+	    <queues>
+                <maximumQueueDepth>4235264</maximumQueueDepth>
+                <!-- 4Mb -->
+                <maximumMessageSize>2117632</maximumMessageSize>
+                <!-- 2Mb -->
+                <maximumMessageAge>600000</maximumMessageAge>
+                <!-- 10 mins -->
+                <maximumMessageCount>50</maximumMessageCount>
+                <!-- 50 messages -->
+            </queues>
+        </carbon>
+    </virtualhost>
+</virtualhosts>
+
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/qpid-resources/qpid.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/qpid-resources/qpid.xml b/products/stratos-controller/modules/distribution/qpid-resources/qpid.xml
new file mode 100755
index 0000000..086fb08
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/qpid-resources/qpid.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<Qpid>
+    <!-- Start Qpid broker when Carbon starts up -->
+    <AutoStart>true</AutoStart>
+    <RegistryRoot>event</RegistryRoot>
+</Qpid>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/release-notes.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/release-notes.html b/products/stratos-controller/modules/distribution/release-notes.html
new file mode 100755
index 0000000..76a379d
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/release-notes.html
@@ -0,0 +1,134 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<html>
+<head>
+    <meta http-equiv="content-type" content=""/>
+    <title>Apache Stratos Manager 3.0.0-SNAPSHOT Release Notes</title>
+    <link href="./tools/cmd/css/appserver-dist-doc.css" rel="stylesheet"
+          type="text/css" media="all"/>
+</head>
+
+<body>
+<h1>Apache Stratos Manager 3.0.0-SNAPSHOT Release Notes</h1>
+
+<h3>${buildNumber}</h3>
+
+<p> Apache Stratos is a complete cloud middleware platform for implementing an enterprise service-oriented
+architecture (SOA). Apache Stratos is open source and is available under Apache license. It is built on
+top of and extends <a target="_blank" href="http://wso2.com/products/carbon/">WSO2 Carbon</a>, 
+the award-winning, comprehensive, concise, lean enterprise middleware platform.</p>
+
+<p>With Apache Stratos, IT professionals have a fully hosted platform-as-a-service (PaaS) for rapidly
+building and deploying services and composite applications, with instant provisioning capability.
+Apache Stratos delivers on the promise of cloud computing with a complete, enterprise middleware
+platform for delivering applications that can run on, and integrate with, any combination of private
+clouds, public clouds and on-premise systems. Apache Stratos is equipped with features for auto-scaling
+and single sign-on, as well as enhanced functionality for automatic activity monitoring, usage metering,
+and centralized governance and identity management.</p>
+
+
+<p>An open source product, Apache Stratos is available under the <a target="_blank" href="http://www.apache.org/licenses/LICENSE-2.0.html">
+        Apache Software License (v2.0)
+    </a>
+   . This includes all of the extra integration and management
+   functionality as well.
+</p>
+
+<h2>New Features In This Release</h2> <ul>
+    <li>Service Aware Dynamic Load Balancing - Improved load balancing and auto-scaling</li>
+    <li>Registry Database performance improvements through storage optimization</li>
+    <li>Subversion backed deployment artifacts storage</li>
+    <li>Local transport improvements</li>
+	<li>Tenant aware logging</li>
+	<li>Ability to facilitate billing upon tenant registration</li>
+	<li>Migrated usage metering to WSO2 BAM2</li>
+    <li>Ghost deployer improvements</li>
+	<li>Stratos Manager can now act as a Single Sign On (SSO) provider</li>
+</ul>
+
+<h2>Key Features</h2>
+
+<ul>
+    <li>Auto-scaling capabilities.
+        Apache Stratos automatically adjusts the use of cloud resources to meet increased or decreased demand.</li>
+    <li>Single sign-on functionality.
+        Users only need to sign on once to access all Apache Stratos services that they are authorized to use.</li>
+    <li>Enhanced automatic activity monitoring.
+        Activity monitoring is available in real time, so there is no time gap between data collection and
+        the availability of data for monitoring.</li>
+    <li>Enhanced usage metering.
+        Metering is automated so that every operation by tenant users will be monitored and recorded.
+        The metering information can be used for billing and for offering constrained access for certain services.
+    </li>
+    <li>Enhanced centralized governance and identity management.
+        All the resources of all Stratos services can be monitored and governed from a single point - from WSO2
+        Stratos governance. When a modification, such as changing a security policy, or changing the keystore,
+        is done from a single place, it is immediately visible to all other services. In addition to that,
+        all services share a single user store. When a user is added from a service, that new user can immediately
+        access all other services available for the tenant.</li>
+	<li>Tenant aware logging.
+		Tenants can view their logs in order to monitor the status of the deployed services
+		of and applications. It is also helpful for debugging purposes.</li>
+    <li>Data-as-a-Service
+        Data-as-a-service offers storage for tenant's application data. In this release of Stratos, we offer two
+        built-in storage options. WSO2 RSS (Relational Storage Service) & CSS (Cassandra Storage Service).
+        RSS allows creating tenant specific MySQL databases instances and CSS allows creating column family
+        based storage. In addition, one can use other RDBMS engines to store data as well.</li>
+</ul>
+
+<h2>Reporting Problems</h2>
+<br/>
+Issues can be reported using the public JIRA available at
+<a href="https://wso2.org/jira/browse/STRATOS" target="_blank">
+    https://wso2.org/jira/browse/STRATOS</a>
+
+<h2>Contact us</h2>
+Apache Stratos team can be contacted via the mailing list:
+<br/>
+<strong>For Stratos Cloud Middleware Platform:</strong>
+<a href="mailto:dev@stratos.incubator.apache.org">Apache Developer Mailing List</a>
+<br/>
+
+<br/>
+<strong>Forum</strong>
+WSO2 participates in community support for the products using the excellent Q&A site 
+<a href="http://stackoverflow.com/questions/tagged/wso2" target="_blank">stackoverflow.com</a> with tags "WSO2", "Stratos" etc.
+<br/>
+
+<h2>Support</h2>
+
+<p>
+As a fully open source solution Apache Stratos does not require any licensing fees.
+
+WSO2 offers a range of service and support options, including evaluation support, CloudStart(SM)
+consulting program, development support, and production support.    <br/>
+    <br/>
+
+    For additional support information please refer to
+    <a target="_blank"
+       href="http://wso2.com/support/">http://wso2.com/support/</a>
+</p>
+<p>Thank you for your interest in WSO2 Stratos</p>
+<strong>
+    <em>-The WSO2 Stratos Team</em>
+</strong>
+<hr/>
+
+</body>
+</html>


[14/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/billing-script/metering_mysql.sql
----------------------------------------------------------------------
diff --git a/products/stratos_controller/billing-script/metering_mysql.sql b/products/stratos_controller/billing-script/metering_mysql.sql
deleted file mode 100755
index 3ab4ee3..0000000
--- a/products/stratos_controller/billing-script/metering_mysql.sql
+++ /dev/null
@@ -1,149 +0,0 @@
--- WSO2 METERING DATABASE SQL FOR MySQL
-
-SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
-
-SET AUTOCOMMIT=0;
-START TRANSACTION;
-
---
--- TABLES
---
-
-CREATE TABLE IF NOT EXISTS USAGE_HOURLY_ANALYTICS (
-        ID VARCHAR(200) NOT NULL,
-        HOUR_FACT TIMESTAMP,
-        SERVER_NAME VARCHAR(100),
-        TENANT_ID VARCHAR(50),
-        PAYLOAD_TYPE VARCHAR(50),
-        PAYLOAD_VALUE  BIGINT,
-        PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS USAGE_DAILY_ANALYTICS (
-        ID VARCHAR(200) NOT NULL,
-        DAY_FACT TIMESTAMP,
-        SERVER_NAME VARCHAR(100),
-        TENANT_ID VARCHAR(50),
-        PAYLOAD_TYPE VARCHAR(50),
-        PAYLOAD_VALUE  BIGINT,
-        PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS USAGE_MONTHLY_ANALYTICS (
-        ID VARCHAR(200) NOT NULL,
-        MONTH_FACT TIMESTAMP,
-        SERVER_NAME VARCHAR(100),
-        TENANT_ID VARCHAR(50),
-        PAYLOAD_TYPE VARCHAR(50),
-        PAYLOAD_VALUE  BIGINT,
-        PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS USAGE_LAST_HOURLY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-	
-CREATE TABLE IF NOT EXISTS USAGE_LAST_DAILY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS USAGE_LAST_MONTHLY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_HOURLY_ANALYTICS (
-	ID VARCHAR(200) NOT NULL,
-	HOUR_FACT TIMESTAMP,
-	SERVER_NAME VARCHAR(100),
-	TENANT_ID VARCHAR(50),
-	REQUEST_COUNT BIGINT,
-	RESPONSE_COUNT BIGINT,
-	FAULT_COUNT BIGINT,
-	PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_DAILY_ANALYTICS (
-	ID VARCHAR(200) NOT NULL,
-	DAY_FACT TIMESTAMP,
-	SERVER_NAME VARCHAR(100),
-	TENANT_ID VARCHAR(50),
-	REQUEST_COUNT BIGINT,
-	RESPONSE_COUNT BIGINT,
-	FAULT_COUNT BIGINT,
-	PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_MONTHLY_ANALYTICS (
-	ID VARCHAR(200) NOT NULL,
-	MONTH_FACT TIMESTAMP,
-	SERVER_NAME VARCHAR(100),
-	TENANT_ID VARCHAR(50),
-	REQUEST_COUNT BIGINT,
-	RESPONSE_COUNT BIGINT,
-	FAULT_COUNT BIGINT,
-	PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_HOURLY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-	
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_DAILY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_MONTHLY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS REGISTRY_USAGE_HOURLY_ANALYTICS ( 
-	ID VARCHAR(50),
-	TENANT_ID VARCHAR(50),	
-	HISTORY_USAGE BIGINT,
-	CURRENT_USAGE BIGINT,
-	PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS CARTRIDGE_STATS_HOURLY_ANALYTICS (
-        HOUR_FACT TIMESTAMP,
-        TENANT_ID VARCHAR(50),
-	CARTRIDGE_TYPE VARCHAR(20),
-	IMAGE_ID VARCHAR(100),
-	NODE_ID VARCHAR(100),
-	DURATION_HOURS INT(5),
-        PRIMARY KEY (`NODE_ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS CARTRIDGE_STATS_LAST_HOURLY_TS (
-        ID VARCHAR(200) NOT NULL,
-        TIMESTMP TIMESTAMP,
-        PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS CARTRIDGE_STATS_LAST_DAILY_TS (
-        ID VARCHAR(200) NOT NULL,
-        TIMESTMP TIMESTAMP,
-        PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
-
-CREATE TABLE IF NOT EXISTS CARTRIDGE_STATS_LAST_MONTHLY_TS (
-        ID VARCHAR(200) NOT NULL,
-        TIMESTMP TIMESTAMP,
-        PRIMARY KEY (`ID`)
-) ENGINE=INNODB;
- 
-
-COMMIT;
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/billing-script/migration.sql
----------------------------------------------------------------------
diff --git a/products/stratos_controller/billing-script/migration.sql b/products/stratos_controller/billing-script/migration.sql
deleted file mode 100755
index 379e859..0000000
--- a/products/stratos_controller/billing-script/migration.sql
+++ /dev/null
@@ -1,7 +0,0 @@
-ALTER TABLE UM_TENANT ADD UM_CREATED_DATE TIMESTAMP NOT NULL DEFAULT '2010-06-01 00:00:01';  
-ALTER TABLE UM_TENANT ADD UNIQUE INDEX INDEX_UM_TENANT_UM_DOMAIN_NAME (UM_DOMAIN_NAME);
-
-ALTER TABLE REG_ASSOCIATION ADD INDEX REG_ASSOCIATION_INDEX_SOURCEPATH (REG_SOURCEPATH, REG_TENANT_ID);
-ALTER TABLE REG_ASSOCIATION ADD INDEX REG_ASSOCIATION_INDEX_TARGETPATH (REG_TARGETPATH, REG_TENANT_ID);
-ALTER TABLE REG_ASSOCIATION ADD INDEX REG_ASSOCIATION_INDEX_ASSOCIATION_TYPE (REG_ASSOCIATION_TYPE, REG_TENANT_ID); 
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/billing-script/s2_h2.sql
----------------------------------------------------------------------
diff --git a/products/stratos_controller/billing-script/s2_h2.sql b/products/stratos_controller/billing-script/s2_h2.sql
deleted file mode 100644
index 170c77b..0000000
--- a/products/stratos_controller/billing-script/s2_h2.sql
+++ /dev/null
@@ -1,96 +0,0 @@
---
--- Create schema s2_db
---
-
--- CREATE SCHEMA  IF NOT EXISTS s2_db; 
--- SET SCHEMA s2_db;
-
---
--- Definition of table s2_db.CARTRIDGE_INSTANCE
---
-
-DROP TABLE IF EXISTS CARTRIDGE_INSTANCE;
-CREATE TABLE  CARTRIDGE_INSTANCE (
-  ID int(11) NOT NULL AUTO_INCREMENT,
-  INSTANCE_IP varchar(255) NOT NULL,
-  TENANT_ID int(11) DEFAULT NULL,
-  TENANT_DOMAIN varchar(255) DEFAULT NULL,
-  CARTRIDGE_TYPE varchar(255) NOT NULL,
-  STATE varchar(255) NOT NULL,
-  CLUSTER_DOMAIN varchar(255) NOT NULL,
-  CLUSTER_SUBDOMAIN varchar(255) NOT NULL,
-  PRIMARY KEY (ID)
-);
-
---
--- Definition of table CARTRIDGE_SUBSCRIPTION
---
-
-DROP TABLE IF EXISTS CARTRIDGE_SUBSCRIPTION;
-CREATE TABLE  CARTRIDGE_SUBSCRIPTION (
-  SUBSCRIPTION_ID int(11) NOT NULL AUTO_INCREMENT,
-  TENANT_ID int(11) NOT NULL,
-  CARTRIDGE varchar(30) NOT NULL,
-  PROVIDER varchar(30) NOT NULL,
-  HOSTNAME varchar(255) NOT NULL,
-  POLICY varchar(50) NULL,
-  CLUSTER_DOMAIN varchar(255) NOT NULL,
-  CLUSTER_SUBDOMAIN varchar(255) NOT NULL,
-  MGT_DOMAIN varchar(255) NOT NULL,
-  MGT_SUBDOMAIN varchar(255) NOT NULL,
-  STATE varchar(30) NOT NULL,
-  ALIAS varchar(255) NOT NULL,
-  TENANT_DOMAIN varchar(255) NOT NULL,
-  BASE_DIR varchar(255) NOT NULL,
-  REPO_ID int(11) DEFAULT NULL,
-  DATA_CARTRIDGE_ID int(11) DEFAULT NULL,
-  MAPPED_DOMAIN varchar(255),
-  PRIMARY KEY (SUBSCRIPTION_ID)
-);
-
-
-
---
--- Definition of table DATA_CARTRIDGE
---
-
-DROP TABLE IF EXISTS DATA_CARTRIDGE;
-CREATE TABLE  DATA_CARTRIDGE (
-  DATA_CART_ID int(11) NOT NULL AUTO_INCREMENT,
-  TYPE varchar(30) NOT NULL,
-  USER_NAME varchar(255) NOT NULL,
-  PASSWORD varchar(255) NOT NULL,
-  STATE varchar(255) NOT NULL,
-  PRIMARY KEY (DATA_CART_ID) 
-);
-
-
---
--- Definition of table PORT_MAPPING
---
-
-DROP TABLE IF EXISTS PORT_MAPPING;
-CREATE TABLE  PORT_MAPPING (
-  PORT_MAPPING_ID int(11) NOT NULL AUTO_INCREMENT,
-  SUBSCRIPTION_ID int(11) NOT NULL,
-  TYPE varchar(30) NOT NULL,
-  PRIMARY_PORT varchar(30) NOT NULL,
-  PROXY_PORT varchar(30) NOT NULL,
-  STATE varchar(30) NOT NULL,
-  PRIMARY KEY (PORT_MAPPING_ID)
-);
-
-
---
--- Definition of table REPOSITORY
---
-
-DROP TABLE IF EXISTS REPOSITORY;
-CREATE TABLE  REPOSITORY (
-  REPO_ID int(11) NOT NULL AUTO_INCREMENT,
-  REPO_NAME varchar(255) NOT NULL,
-  STATE varchar(30) NOT NULL,
-  REPO_USER_NAME varchar(255) NOT NULL,
-  REPO_USER_PASSWORD varchar(255) NOT NULL,
-  PRIMARY KEY (REPO_ID)
-);

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/billing-script/wso2_rss.sql
----------------------------------------------------------------------
diff --git a/products/stratos_controller/billing-script/wso2_rss.sql b/products/stratos_controller/billing-script/wso2_rss.sql
deleted file mode 100755
index 411b1ce..0000000
--- a/products/stratos_controller/billing-script/wso2_rss.sql
+++ /dev/null
@@ -1,81 +0,0 @@
-
-CREATE TABLE RSS_INSTANCE (
-  rss_instance_id INTEGER AUTO_INCREMENT,
-  name VARCHAR(128) NOT NULL,
-  server_url VARCHAR(1024) NOT NULL,
-  dbms_type VARCHAR(128) NOT NULL,
-  instance_type VARCHAR(128) NOT NULL,
-  server_category VARCHAR(128) NOT NULL,
-  admin_username VARCHAR(128),
-  admin_password VARCHAR(128),
-  tenant_id INTEGER NOT NULL,
-  UNIQUE (name, tenant_id),
-  PRIMARY KEY (rss_instance_id)
-) ENGINE="InnoDB";
-
-CREATE TABLE DATABASE_INSTANCE (
-  database_instance_id INTEGER AUTO_INCREMENT,
-  name VARCHAR(128) NOT NULL,
-  rss_instance_id INTEGER,
-  tenant_id INTEGER,
-  UNIQUE (name, rss_instance_id),
-  PRIMARY KEY (database_instance_id),
-  FOREIGN KEY (rss_instance_id) REFERENCES RSS_INSTANCE (rss_instance_id)
-) ENGINE="InnoDB";
-
-CREATE TABLE DATABASE_USER (
-  user_id INTEGER AUTO_INCREMENT,
-  db_username VARCHAR(128) NOT NULL,
-  rss_instance_id INTEGER,
-  user_tenant_id INTEGER,
-  UNIQUE (db_username, rss_instance_id, user_tenant_id),
-  PRIMARY KEY (user_id),
-  FOREIGN KEY (rss_instance_id) REFERENCES RSS_INSTANCE (rss_instance_id)
-) ENGINE="InnoDB";
-
-CREATE TABLE DATABASE_INSTANCE_PROPERTY (
-  db_property_id INTEGER AUTO_INCREMENT,
-  prop_name VARCHAR(128) NOT NULL,
-  prop_value TEXT,
-  database_instance_id INTEGER,
-  UNIQUE (prop_name, database_instance_id),
-  PRIMARY KEY (db_property_id),
-  FOREIGN KEY (database_instance_id) REFERENCES DATABASE_INSTANCE (database_instance_id)
-) ENGINE="InnoDB";
-
-CREATE TABLE USER_DATABASE_ENTRY (
-  user_id INTEGER,
-  database_instance_id INTEGER,
-  PRIMARY KEY (user_id, database_instance_id),
-  FOREIGN KEY (user_id) REFERENCES DATABASE_USER (user_id),
-  FOREIGN KEY (database_instance_id) REFERENCES DATABASE_INSTANCE (database_instance_id)
-) ENGINE="InnoDB";
-
-CREATE TABLE USER_DATABASE_PERMISSION (
-  user_id INTEGER,
-  database_instance_id INTEGER,
-  perm_name VARCHAR(128) NOT NULL,
-  perm_value VARCHAR(128),
-  PRIMARY KEY (user_id, database_instance_id, perm_name),
-  FOREIGN KEY (user_id) REFERENCES DATABASE_USER (user_id),
-  FOREIGN KEY (database_instance_id) REFERENCES DATABASE_INSTANCE (database_instance_id)
-) ENGINE="InnoDB";
-
-CREATE TABLE WSO2_RSS_DATABASE_INSTANCE_COUNT (
-  instance_count INTEGER NOT NULL DEFAULT 0
-) ENGINE="InnoDB";
-
-CREATE TABLE USER_PRIVILEGE_GROUP (
-  priv_group_id INTEGER AUTO_INCREMENT,
-  priv_group_name VARCHAR(128),
-  tenant_id INTEGER,
-  PRIMARY KEY (priv_group_id, priv_group_name, tenant_id)
-) ENGINE="InnoDB";
-
-CREATE TABLE USER_PRIVILEGE_GROUP_ENTRY (
-  priv_group_id INTEGER,
-  perm_name VARCHAR(128),
-  perm_value CHAR(1),
-  PRIMARY KEY (priv_group_id, perm_name),
-  FOREIGN KEY (priv_group_id) REFERENCES USER_PRIVILEGE_GROUP (priv_group_id)
-) ENGINE="InnoDB";

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/README-STRATOS
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/README-STRATOS b/products/stratos_controller/conf/README-STRATOS
deleted file mode 100755
index f41daf5..0000000
--- a/products/stratos_controller/conf/README-STRATOS
+++ /dev/null
@@ -1,90 +0,0 @@
-CARBON_HOME/repository/conf directory contains all the Stratos configuration files. 
-carbon/products/manager/conf contains all the Stratos specific configuration files,
- in the source tree structure.
-
-1. announcement.xml
-   Originally added to customize the announcement using the announcement module. Not used as of now.
-
-2. bam.xml
-   The configuration for billing and metering.
-
-3. billing-config.xml
-   Defines the database and the Task for billing. Multi-tenancy billing rules (by default, uses 
-   multitenancy-billing-rules.drl) and email for billing notifications (by default, uses 
-   email-billing-notifications.xml) are specified here.
-
-4. cloud-services-desc.xml
-   This has the configurations for the cloud services. 
-   Label, link, icon, description, and the other similar information for each of the services are
-   given here.
-
-5. email-admin-config.xml
-   Contains the body of the mail that to be sent upon the tenant configuration request by the admin
-   of the tenant. This includes the password reset link, for the forgotten passwords.
-
-6. email-billing-notifications.xml
-   Contains the body of the mail that to be sent as the invoice of the tenant for the period.
-
-7. email-new-tenant-activation.xml
-   Contains the body of the mail that to be sent to the super admin or a given admin email address,
-    when a new tenant activates their unactivated account.
-
-8. email-new-tenant-registration.xml
-   Contains the body of the mail that to be sent to the super admin or a given admin email address,
-    when a new tenant registers for an account.
-
-9. email-password-reset.xml
-   Contains the body of the mail that to be sent when the tenant admin's password is reset, mostly
-   by a service administrator, known as the super-tenant in Stratos-world.
-
-10. email-registration.xml
-   Contains the body of the mail to be sent for the tenant registration validation. 
-   This mail has the registration validation link to validate the email too.
-
-11. email-registration-complete.xml
-    Contains the mail that to be sent upon successful registration and the successful validation 
-    of the email.
-
-12.  email-update.xml
-    Contains the body of the mail that to be sent upon receiving an email change request from the 
-    account management. The new email address will be notified of this change.
-
-13. eula.xml
-    Contains the End User License Agreement for Stratos. Will be displayed during the self-registration
-    of the tenant.
-
-14. identity.xml
-    Security, SSO store, Personal certificate stores of the user, authentication, and the other 
-    identity related parameters can be configured from here.
-
-15. metering-config-non-manager.xml
-    This file contains configuration related to the metering.
-
-16. multitenancy-billing-rules
-    This file defines the rules for the billing for multiple tenants.
-
-17. multitenancy-packages.xml
-    This contains the subscription types and the respective limits of parameters for each of the 
-    packages.
-
-18. README-STRATOS
-    This file. This has the information about the stratos specific configurations files.
-
-19. samples-desc.xml
-    This has the description of the platform sample (currently included, shopping cart sample).
-
-20. stratos.xml
-    This is the configuration file for Stratos specific constants. 
-    Feel free to add your custom parameters and constants here.
-
-21. tenant-reg-agent.xml
-    tenantRegListenerServers configuration
-
-22. throttling-config.xml
-    Configuration file for throttling.
-
-23. throttling-rules.drl
-    Defines the throttling rules.
-
-24. user-mgt.xml
-   The User Manager configuration file used for configuring user management details.

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/axis2.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/axis2.xml b/products/stratos_controller/conf/axis2.xml
deleted file mode 100755
index 01075e5..0000000
--- a/products/stratos_controller/conf/axis2.xml
+++ /dev/null
@@ -1,526 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<axisconfig name="AxisJava2.0">
-    
-    <!-- ================================================= -->
-    <!--                  Parameters                       -->
-    <!-- ================================================= -->
-
-    <!-- This will give out the timout of the configuration contexts, in milliseconds -->
-    <parameter name="ConfigContextTimeoutInterval" locked="false">30000</parameter>
-
-    <!-- Synapse Configuration file location relative to CARBON_HOME -->
-    <parameter name="SynapseConfig.ConfigurationFile" locked="false">repository/deployment/server/synapse-configs</parameter>
-    <!-- Synapse Home parameter -->
-    <parameter name="SynapseConfig.HomeDirectory" locked="false">.</parameter>
-    <!-- Resolve root used to resolve synapse references like schemas inside a WSDL -->
-    <parameter name="SynapseConfig.ResolveRoot" locked="false">.</parameter>
-    <!-- Synapse Server name parameter -->
-    <parameter name="SynapseConfig.ServerName" locked="false">localhost</parameter>
-   
-
-    <!-- ================================================= -->
-    <!--                Message Formatters                 -->
-    <!-- ================================================= -->
-
-    <!-- Following content type to message formatter mapping can be used to implement support -->
-    <!-- for different message format serializations in Axis2. These message formats are -->
-    <!-- expected to be resolved based on the content type. -->
-    <messageFormatters>
-        <!--messageFormatter contentType="application/xml"
-                          class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>-->
-        <!--messageFormatter contentType="text/xml"
-                         class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>-->
-        <!--messageFormatter contentType="application/soap+xml"
-                         class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>-->
-        <!--messageFormatter contentType="application/x-www-form-urlencoded"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/-->
-        <messageFormatter contentType="multipart/related"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/xml"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/txt"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="text/html"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/soap+xml"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="text/xml"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <!--messageFormatter contentType="x-application/hessian"
-                         class="org.apache.synapse.format.hessian.HessianMessageFormatter"/-->
-        <!--messageFormatter contentType=""
-                         class="org.apache.synapse.format.hessian.HessianMessageFormatter"/-->
-
-        <messageFormatter contentType="text/css"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="text/javascript"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-        <messageFormatter contentType="image/gif"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="img/gif"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="image/jpeg"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="image/png"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="image/ico"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="image/x-icon"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-	    <messageFormatter contentType="application/x-javascript"
-                             class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-	    <messageFormatter contentType="application/x-shockwave-flash"
-                             class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-	    <messageFormatter contentType="application/atom+xml"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/x-www-form-urlencoded"
-                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-	    <messageFormatter contentType="application/xhtml+xml"
-                              class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-	    <messageFormatter contentType="application/octet-stream"
-                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/javascript"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-        <messageFormatter contentType="multipart/form-data"
-                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/soap+xml"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-        <!--JSON Message Formatters-->
-        <messageFormatter contentType="application/json"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/json/badgerfish"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="text/javascript"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-
-        <messageFormatter contentType=".*"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-    </messageFormatters>
-
-    <!-- ================================================= -->
-    <!--                Message Builders                   -->
-    <!-- ================================================= -->
-
-    <!-- Following content type to builder mapping can be used to implement support for -->
-    <!-- different message formats in Axis2. These message formats are expected to be -->
-    <!-- resolved based on the content type. -->
-    <messageBuilders>
-        <messageBuilder contentType="application/xml"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="application/txt"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <!--messageBuilder contentType="application/xml"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
-        <!--messageBuilder contentType="application/x-www-form-urlencoded"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
-        <!--messageBuilder contentType="multipart/form-data"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
-        <messageBuilder contentType="multipart/related"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="application/soap+xml"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="text/plain"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="text/xml"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <!--messageBuilder contentType="x-application/hessian"
-                        class="org.apache.synapse.format.hessian.HessianMessageBuilder"/-->
-        <!--messageBuilder contentType=""
-                         class="org.apache.synapse.format.hessian.HessianMessageBuilder"/-->
-
-        <!--JSON Message Builders-->
-        <messageBuilder contentType="application/json"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="application/json/badgerfish"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="text/javascript"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-
-        <messageBuilder contentType="text/html"
-                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="text/css"
-                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="text/javascript"
-                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-        <messageBuilder contentType="image/gif"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="img/gif"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="image/jpeg"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="image/png"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="image/ico"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="image/x-icon"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-
-	    <messageBuilder contentType="application/x-javascript"
-                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-	    <messageBuilder contentType="application/x-shockwave-flash"
-                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-	    <messageBuilder contentType="application/atom+xml"
-                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-	    <messageBuilder contentType="application/x-www-form-urlencoded"
-                            class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-	    <messageBuilder contentType="application/xhtml+xml"
-                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-	    <messageBuilder contentType="application/octet-stream"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="application/javascript"
-                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-        <messageBuilder contentType="multipart/form-data"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="application/soap+xml"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-
-        <messageBuilder contentType=".*"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-    </messageBuilders>
-
-    <!-- ================================================= -->
-    <!--             Transport Ins (Listeners)             -->
-    <!-- ================================================= -->
-    <!--Default trasnport will be passthrough if you need to change please add it here -->
-   <transportReceiver name="http" class="org.apache.synapse.transport.passthru.PassThroughHttpListener">
-      <parameter name="port">8280</parameter>
-      <parameter name="non-blocking"> true</parameter>
-      <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor</parameter>
-   </transportReceiver>
-   <transportReceiver name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLListener">
-        <parameter name="port" locked="false">8243</parameter>
-        <parameter name="non-blocking" locked="false">true</parameter>
-        <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor</parameter>
-        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
-        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
-        <parameter name="keystore" locked="false">
-            <KeyStore>
-                <Location>repository/resources/security/wso2carbon.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-                <KeyPassword>wso2carbon</KeyPassword>
-            </KeyStore>
-        </parameter>
-        <parameter name="truststore" locked="false">
-            <TrustStore>
-                <Location>repository/resources/security/client-truststore.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-            </TrustStore>
-        </parameter>
-        <!--<parameter name="SSLVerifyClient">require</parameter>
-            supports optional|require or defaults to none -->
-    </transportReceiver>
-
-    <!-- uncomment for non blocking http transport based on HttpCore + NIO extensions -->
-    <!--transportReceiver name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOListener">
-        <parameter name="port" locked="false">8280</parameter>
-        <parameter name="non-blocking" locked="false">true</parameter-->
-        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
-        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
-        <!--parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter-->
-    <!--/transportReceiver-->
-
-    <!-- the non blocking https transport based on HttpCore + SSL-NIO extensions -->
-    <!--transportReceiver name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener">
-        <parameter name="port" locked="false">8243</parameter>
-        <parameter name="non-blocking" locked="false">true</parameter-->
-        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
-        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
-        <!--parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter-->
-        <!--parameter name="keystore" locked="false">
-            <KeyStore>
-                <Location>repository/resources/security/wso2carbon.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-                <KeyPassword>wso2carbon</KeyPassword>
-            </KeyStore>
-        </parameter>
-        <parameter name="truststore" locked="false">
-            <TrustStore>
-                <Location>repository/resources/security/client-truststore.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-            </TrustStore>
-        </parameter-->
-        <!--<parameter name="SSLVerifyClient">require</parameter>
-            supports optional|require or defaults to none -->
-    <!--/transportReceiver-->
-
-    <!-- ================================================= -->
-    <!--             Transport Outs (Senders)              -->
-    <!-- ================================================= -->
-    <!--Default trasnport will be passthrough if you need to change please add it here -->
-    <transportSender name="http"  class="org.apache.synapse.transport.passthru.PassThroughHttpSender">
-        <parameter name="non-blocking" locked="false">true</parameter>
-        <parameter name="warnOnHTTP500" locked="false">*</parameter>
-        <!--parameter name="http.proxyHost" locked="false">localhost</parameter>
-        <parameter name="http.proxyPort" locked="false">3128</parameter>
-        <parameter name="http.nonProxyHosts" locked="false">localhost|moon|sun</parameter-->
-    </transportSender>
-    <transportSender name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLSender">
-        <parameter name="non-blocking" locked="false">true</parameter>
-        <parameter name="keystore" locked="false">
-            <KeyStore>
-                <Location>repository/resources/security/wso2carbon.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-                <KeyPassword>wso2carbon</KeyPassword>
-            </KeyStore>
-        </parameter>
-        <parameter name="truststore" locked="false">
-            <TrustStore>
-                <Location>repository/resources/security/client-truststore.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-            </TrustStore>
-        </parameter>
-        <parameter name="HostnameVerifier">AllowAll</parameter>
-            <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
-     </transportSender>
-    <!-- Uncomment for non-blocking http transport based on HttpCore + NIO extensions -->
-    <!--transportSender name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSender">
-        <parameter name="non-blocking" locked="false">true</parameter>
-    </transportSender>
-    <transportSender name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender">
-        <parameter name="non-blocking" locked="false">true</parameter>
-        <parameter name="keystore" locked="false">
-            <KeyStore>
-                <Location>repository/resources/security/wso2carbon.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-                <KeyPassword>wso2carbon</KeyPassword>
-            </KeyStore>
-        </parameter>
-        <parameter name="truststore" locked="false">
-            <TrustStore>
-                <Location>repository/resources/security/client-truststore.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-            </TrustStore>
-        </parameter>
-        <parameter name="HostnameVerifier">AllowAll</parameter-->
-            <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
-    <!--/transportSender-->
-
-    <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
-
-    <!-- ================================================= -->
-    <!--                Clustering                         -->
-    <!-- ================================================= -->
-    <!--
-     To enable clustering for this node, set the value of "enable" attribute of the "clustering"
-     element to "true". The initialization of a node in the cluster is handled by the class
-     corresponding to the "class" attribute of the "clustering" element. It is also responsible for
-     getting this node to join the cluster.
-     -->
-    <clustering class="org.apache.axis2.clustering.tribes.TribesClusteringAgent" enable="true">
-
-        <!--
-           This parameter indicates whether the cluster has to be automatically initalized
-           when the AxisConfiguration is built. If set to "true" the initialization will not be
-           done at that stage, and some other party will have to explictly initialize the cluster.
-        -->
-        <parameter name="AvoidInitiation">true</parameter>
-
-        <!--
-           The membership scheme used in this setup. The only values supported at the moment are
-           "multicast" and "wka"
-
-           1. multicast - membership is automatically discovered using multicasting
-           2. wka - Well-Known Address based multicasting. Membership is discovered with the help
-                    of one or more nodes running at a Well-Known Address. New members joining a
-                    cluster will first connect to a well-known node, register with the well-known node
-                    and get the membership list from it. When new members join, one of the well-known
-                    nodes will notify the others in the group. When a member leaves the cluster or
-                    is deemed to have left the cluster, it will be detected by the Group Membership
-                    Service (GMS) using a TCP ping mechanism.
-        -->
-        <parameter name="membershipScheme">wka</parameter>
-
-        <!--
-         The clustering domain/group. Nodes in the same group will belong to the same multicast
-         domain. There will not be interference between nodes in different groups.
-        -->
-        <parameter name="domain">wso2.adc.domain</parameter>
-
-        <!--
-           When a Web service request is received, and processed, before the response is sent to the
-           client, should we update the states of all members in the cluster? If the value of
-           this parameter is set to "true", the response to the client will be sent only after
-           all the members have been updated. Obviously, this can be time consuming. In some cases,
-           such this overhead may not be acceptable, in which case the value of this parameter
-           should be set to "false"
-        -->
-        <parameter name="synchronizeAll">false</parameter>
-
-        <!--
-          The maximum number of times we need to retry to send a message to a particular node
-          before giving up and considering that node to be faulty
-        -->
-        <parameter name="maxRetries">10</parameter>
-
-        <!-- The multicast address to be used -->
-        <parameter name="mcastAddress">228.0.0.4</parameter>
-
-        <!-- The multicast port to be used -->
-        <parameter name="mcastPort">45564</parameter>
-
-        <!-- The frequency of sending membership multicast messages (in ms) -->
-        <parameter name="mcastFrequency">500</parameter>
-
-        <!-- The time interval within which if a member does not respond, the member will be
-         deemed to have left the group (in ms)
-         -->
-        <parameter name="memberDropTime">3000</parameter>
-
-        <!--
-           The IP address of the network interface to which the multicasting has to be bound to.
-           Multicasting would be done using this interface.
-        -->
-        <parameter name="mcastBindAddress">127.0.0.1</parameter>
-
-        <!-- The host name or IP address of this member -->
-        
-        <!--parameter name="localMemberHost">127.0.0.1</parameter-->
-        
-
-        <!--
-        The TCP port used by this member. This is the port through which other nodes will
-        contact this member
-         -->
-        <parameter name="localMemberPort">4000</parameter>
-
-        <!--
-        Preserve message ordering. This will be done according to sender order.
-        -->
-        <parameter name="preserveMessageOrder">false</parameter>
-
-        <!--
-        Maintain atmost-once message processing semantics
-        -->
-        <parameter name="atmostOnceMessageSemantics">false</parameter>
-         
-        <!--
-           This interface is responsible for handling state replication. The property changes in
-           the Axis2 context hierarchy in this node, are propagated to all other nodes in the cluster.
-
-           The "excludes" patterns can be used to specify the prefixes (e.g. local_*) or
-           suffixes (e.g. *_local) of the properties to be excluded from replication. The pattern
-           "*" indicates that all properties in a particular context should not be replicated.
-
-            The "enable" attribute indicates whether context replication has been enabled
-        -->
-        <stateManager class="org.apache.axis2.clustering.state.DefaultStateManager"
-                      enable="false">
-            <replication>
-                <defaults>
-                    <exclude name="local_*"/>
-                    <exclude name="LOCAL_*"/>
-                </defaults>
-                <context class="org.apache.axis2.context.ConfigurationContext">
-                    <exclude name="local_*"/>
-                    <exclude name="UseAsyncOperations"/>
-                    <exclude name="SequencePropertyBeanMap"/>
-                </context>
-                <context class="org.apache.axis2.context.ServiceGroupContext">
-                    <exclude name="local_*"/>
-                    <exclude name="my.sandesha.*"/>
-                </context>
-                <context class="org.apache.axis2.context.ServiceContext">
-                    <exclude name="local_*"/>
-                    <exclude name="my.sandesha.*"/>
-                </context>
-            </replication>
-        </stateManager>
-    </clustering>
-
-    <!-- ================================================= -->
-    <!--                    Phases                         -->
-    <!-- ================================================= -->
-
-    <phaseOrder type="InFlow">
-        <!--  System pre defined phases       -->
-        <phase name="Transport"/>
-        <phase name="Addressing"/>
-        <phase name="Security"/>
-        <phase name="PreDispatch"/>
-        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/>
-        <!--  System pre defined phases       -->
-        <phase name="RMPhase"/>
-        <phase name="OpPhase"/>
-    </phaseOrder>
-
-    <phaseOrder type="OutFlow">
-        <!-- Handlers related to unified-endpoint component are added to the UEPPhase -->
-        <phase name="UEPPhase" />
-        <!--      user can add his own phases to this area  -->
-        <phase name="RMPhase"/>
-        <phase name="MUPhase"/>
-        <phase name="OpPhase"/>
-        <phase name="OperationOutPhase"/>
-        <!--system predefined phase-->
-        <!--these phase will run irrespective of the service-->
-        <phase name="PolicyDetermination"/>
-        <phase name="MessageOut"/>
-        <phase name="Security"/>
-    </phaseOrder>
-
-    <phaseOrder type="InFaultFlow">
-        <phase name="Transport"/>
-        <phase name="Addressing"/>
-        <phase name="Security"/>
-        <phase name="PreDispatch"/>
-        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/>
-        <!--      user can add his own phases to this area  -->
-        <phase name="RMPhase"/>
-        <phase name="OpPhase"/>
-        <phase name="MUPhase"/>
-        <phase name="OperationInFaultPhase"/>
-    </phaseOrder>
-
-    <phaseOrder type="OutFaultFlow">
-        <!-- Handlers related to unified-endpoint component are added to the UEPPhase -->
-        <phase name="UEPPhase" />
-        <!--      user can add his own phases to this area  -->
-        <phase name="RMPhase"/>
-        <!-- Must Understand Header processing phase -->
-        <phase name="MUPhase"/>
-        <phase name="OperationOutFaultPhase"/>
-        <phase name="PolicyDetermination"/>
-        <phase name="MessageOut"/>
-        <phase name="Security"/>
-    </phaseOrder>
-
-</axisconfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/bam.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/bam.xml b/products/stratos_controller/conf/bam.xml
deleted file mode 100755
index 8e8822b..0000000
--- a/products/stratos_controller/conf/bam.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<bamServer>
-
-    <!--
-        Configuration for Billing and Metering. 
-    -->
-    
-    <!--Configuration for summary generation task. 
-          1. initial-delay = Time for first summary generation after the server start. (in seconds)
-          2. interval = Periodic interval to run summary generation task. (in seconds)
-    -->
-    <summaryGeneration>
-             <initial-delay>600</initial-delay>
-             <interval>3600</interval>
-    </summaryGeneration>
-
-    <!--Configuration for data collection task for pull mode servers. 
-          1. initial-delay = Time for first data collection after the server start. (in seconds)
-          2. interval = Periodic interval to run summary generation task. (in seconds)
-    -->
-    <dataCollection>
-             <initial-delay>60</initial-delay>
-             <interval>60</interval>
-    </dataCollection>
-
-</bamServer>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/billing-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/billing-config.xml b/products/stratos_controller/conf/billing-config.xml
deleted file mode 100755
index e50beb6..0000000
--- a/products/stratos_controller/conf/billing-config.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-     Defines the database and the Task for billing. Multi-tenancy billing rules (by default, uses 
-     multitenancy-billing-rules.drl) and email for billing notifications (by default, uses 
-     email-billing-notifications.xml) are specified here. 
-  -->
-
-<billingConfig xmlns="http://wso2.com/carbon/multitenancy/billing/config">
-    <tasks>
-        <task id="multitenancyScheduledTask">
-            <schedule scheduleHelperClass="org.wso2.carbon.billing.core.scheduler.scheduleHelpers.MonthlyScheduleHelper">
-                <parameter name="timeZone">GMT-8:00</parameter>
-		<!--cron format: second minute hour dayOfTheMonth Month DayOfWeek-->
-                <parameter name="cron">0 0 0 1 * ?</parameter>
-            </schedule>
-            <handlers>
-                <handler service="org.wso2.carbon.billing.mgt.handlers.MultitenancySubscriptionFeedingHandler">
-                </handler>
-                <handler class="org.wso2.carbon.billing.core.handlers.SubscriptionTreeBuildingHandler">
-                </handler>
-                <handler class="org.wso2.carbon.billing.core.handlers.RuleHandler">
-                    <parameter name="file">multitenancy-billing-rules.drl</parameter>
-                </handler>
-                <handler class="org.wso2.carbon.billing.core.handlers.InvoiceCalculationHandler">
-                </handler>
-                <handler class="org.wso2.carbon.billing.core.handlers.DefaultFinalizingHandler">
-                </handler>
-                <handler class="org.wso2.carbon.billing.core.handlers.EmailSendingHandler">
-                    <parameter name="file">email-billing-notifications.xml</parameter>
-                </handler>
-            </handlers>
-        </task>
-        <task id="multitenancyViewingTask">
-            <handlers>
-                <handler service="org.wso2.carbon.billing.mgt.handlers.MultitenancySubscriptionFeedingHandler">
-                </handler>
-                <handler class="org.wso2.carbon.billing.core.handlers.SubscriptionTreeBuildingHandler">
-                </handler>
-                <handler class="org.wso2.carbon.billing.core.handlers.RuleHandler">
-                    <parameter name="file">multitenancy-billing-rules.drl</parameter>
-                </handler>
-                <handler class="org.wso2.carbon.billing.core.handlers.InvoiceCalculationHandler">
-                </handler>
-                <!--
-                <handler class="org.wso2.carbon.billing.core.handlers.DefaultFinalizingHandler">
-                </handler>-->
-            </handlers>
-        </task>
-    </tasks>
-</billingConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/cipher-text.properties
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/cipher-text.properties b/products/stratos_controller/conf/cipher-text.properties
deleted file mode 100644
index 4a1c469..0000000
--- a/products/stratos_controller/conf/cipher-text.properties
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-#aliases=esb
-#
-## configuration  per each plaintext
-#esb.secret=M6U74dMVvRm4XFMczki2qZ6CsTvnUuRTjSditlACR5vTISSMI7F/mCTVJGOGdKJjij+VWVhBtmAOkElyvR9TwlUECnZ1o5DNsTK6l8je+9amc/ziTQLP3Q1tzm/Ex1pzHsG6jPGGrv3O0B9pZTfYFqRvlcNhM7Ve3WvA3ibs4Yk=
-#esb.secret.alias=wso2carbon
-#esb.secret.keystore=identity
-#

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/cloud-services-desc.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/cloud-services-desc.xml b/products/stratos_controller/conf/cloud-services-desc.xml
deleted file mode 100644
index d7253bc..0000000
--- a/products/stratos_controller/conf/cloud-services-desc.xml
+++ /dev/null
@@ -1,195 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!--
-     This has the configurations for the cloud services. 
-     Label, link, icon, description, and the other similar information for each of the services are
-     given here. 
-  -->
-<cloudServices xmlns="http://wso2.com/carbon/cloud/mgt/services">
-     <cloudService name="WSO2 Stratos Controller" default="true">
-	<key>SCC</key>
-        <label>WSO2 Stratos Controller</label>
-        <link>https://scc.cloud.wso2.com</link>
-        <!--icon>
-            https://localhost:9443/cloud-services-icons/esb.gif
-        </icon-->
-        <productPageURL>http://wso2.com/cloud/stratos</productPageURL>
-        <description>WSO2 stratos controller.</description>
-    </cloudService>
-    <cloudService name="WSO2 Cloud Controller" default="true">
-	<key>CC</key>
-        <label>WSO2 Cloud Controller</label>
-        <link>https://cc.cloud.wso2.com</link>
-        <!--icon>
-            https://localhost:9443/cloud-services-icons/esb.gif
-        </icon-->
-        <productPageURL>http://wso2.com/cloud/stratos</productPageURL>
-        <description>WSO2 Cloud Controller.</description>
-    </cloudService>
-    <cloudService name="WSO2 Stratos Agent" default="true">
-	<key>Agent</key>
-        <label>WSO2 Stratos Agent</label>
-        <link>https://cc.cloud.wso2.com</link>
-        <!--icon>
-            https://localhost:9443/cloud-services-icons/esb.gif
-        </icon-->
-        <productPageURL>http://wso2.com/cloud/stratos</productPageURL>
-        <description>WSO2 Stratos Agent.</description>
-    </cloudService>
-    <cloudService name="WSO2 Enterprise Service Bus" default="true">
-	<key>ESB</key>
-        <label>Enterprise Service Bus</label>
-        <link>https://esb.cloud.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/esb.gif
-        </icon>
-        <productPageURL>http://wso2.com/products/enterprise-service-bus/</productPageURL>
-        <description>Enterprise Service Bus in the cloud.</description>
-    </cloudService>
-    <cloudService name="Application Server" default="true">
-	<key>AS</key>
-        <label>Application Server</label>
-        <link>https://appserver.cloud.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/appserver.gif
-        </icon>
-        <productPageURL>http://wso2.com/products/application-server/</productPageURL>
-        <description>Application Server in the cloud.</description>
-    </cloudService>
-    <cloudService name="WSO2 Data Services Server" default="true">
-	<key>DSS</key>
-        <label>WSO2 Data Services Server</label>
-        <link>https://dss.cloud.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/ds.gif
-        </icon>
-        <productPageURL>http://wso2.com/products/data-services-server/</productPageURL>
-        <description>Data Services Server in the cloud.</description>
-    </cloudService>
-    <cloudService name="WSO2 Governance Registry" default="true">
-	<key>Greg</key>
-        <label>Governance</label>
-        <link>https://governance.cloud.wso2.com</link>
-        <description>Governance in the cloud.</description>
-        <icon>
-            https://localhost:9443/cloud-services-icons/governance.gif
-        </icon>
-        <productPageURL>http://wso2.com/products/governance-registry/</productPageURL>
-    </cloudService>
-    <cloudService name="WSO2 Identity Server" default="true">
-	<key>IS</key>
-        <label>WSO2 Identity Server</label>
-        <link>https://identity.cloud.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/identity.gif
-        </icon>
-        <description>Identity in the cloud.</description>
-        <productPageURL>http://wso2.com/products/identity-server/</productPageURL>
-    </cloudService>
-    <cloudService name="WSO2 Business Activity Monitor" default="true">
-        <label>Business Activity Monitor</label>
-        <link>https://bam.cloud.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/bam.gif
-        </icon>
-        <description>Business Activity Monitor in the cloud.</description>
-        <productPageURL>http://wso2.com/products/business-activity-monitor/</productPageURL>
-    </cloudService>
-    <cloudService name="WSO2 Business Process Server" default="true">
-	<key>BPS</key>
-        <label>Business Process Server</label>
-        <link>https://bps.cloud.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/bps.gif
-        </icon>
-        <description>Business Process Server in the cloud.</description>
-        <productPageURL>http://wso2.com/products/business-process-server/</productPageURL>
-    </cloudService>
-    <cloudService name="WSO2 Business Rule Server" default="true">
-	<key>BRS</key>
-        <label>Business Rule Server</label>
-        <link>https://brs.cloud.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/brs.gif
-        </icon>
-        <description>Business Rules Server in the cloud.</description>
-        <productPageURL>http://wso2.com/products/business-rules-server/</productPageURL>
-    </cloudService>
-    <cloudService name="WSO2 Mashup Server" default="true">
-	<key>MB</key>
-        <label>Mashup Server</label>
-        <link>https://mashup.cloud.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/mashup.gif
-        </icon>
-        <description>Mashup Server in the cloud.</description>
-        <productPageURL>http://wso2.com/products/mashup-server/</productPageURL>
-    </cloudService>
-    <cloudService name="WSO2 Gadget Server" default="true">
-	<key>GS</key>
-        <label>Gadget Server</label>
-        <link>https://gadget.cloud.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/gadget.gif
-        </icon>
-        <description>Gadgets in the cloud.</description>
-        <productPageURL>http://wso2.com/products/gadget-server/</productPageURL>
-    </cloudService>
-    <cloudService name="Cloud Gateway" default="true">
-	<key>CG</key>
-        <label>Cloud Gateway</label>
-        <link>https://cg.stratoslive.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/csg.gif
-        </icon>
-        <description>Cloud Gateway in the cloud.</description>
-		<productPageURL>http://wso2.com/products/cloud-services-gateway/</productPageURL> <!-- FIXME, put the correct project home -->
-    </cloudService>
-    <cloudService name="WSO2 Complex Event Processor" default="true">
-	<key>CEP</key>
-        <label>Complex Event Processor</label>
-        <link>https://cep.cloud.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/cep.gif
-        </icon>
-        <productPageURL>http://wso2.com/products/complex-event-processing-server/</productPageURL> <!-- FIXME, put the correct project home -->
-        <description>Complex Event Processor in the cloud.</description>
-    </cloudService>
-    <cloudService name="WSO2 Message Broker" default="true">
-	<key>MB</key>
-        <label>Message Broker</label>
-        <link>https://mb.cloud.wso2.com</link>
-        <icon>
-            https://localhost:9443/cloud-services-icons/mb.gif
-        </icon>
-        <productPageURL>http://wso2.com/products/message-broker/</productPageURL>
-        <description>Message Broker in the cloud.</description>
-    </cloudService>
-    <cloudService name="WSO2 Storage Server" default="true">
-	<key>SS</key>
-   	<label>WSO2 Storage Server</label>
-   	<link>https://ss.stratoslive.wso2.com</link>
-   	<icon>
-       		https://localhost:9443/cloud-services-icons/ss.gif
-   	</icon>
-   	<description>WSO2 Storage Server.</description>
-   	<productPageURL>http://wso2.com/products/storage-server/</productPageURL>
-    </cloudService>
-</cloudServices>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/datasources.properties
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/datasources.properties b/products/stratos_controller/conf/datasources.properties
deleted file mode 100644
index 0cf8cdb..0000000
--- a/products/stratos_controller/conf/datasources.properties
+++ /dev/null
@@ -1,58 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-################################################################################
-## DataSources Configuration
-################################################################################
-#synapse.datasources=lookupds,reportds
-#synapse.datasources.icFactory=com.sun.jndi.rmi.registry.RegistryContextFactory
-#synapse.datasources.providerPort=2199
-## If following property is present , then assumes that there is an external JNDI provider and will not start a RMI registry
-##synapse.datasources.providerUrl=rmi://localhost:2199
-#
-#synapse.datasources.lookupds.registry=Memory
-#synapse.datasources.lookupds.type=BasicDataSource
-#synapse.datasources.lookupds.driverClassName=org.apache.derby.jdbc.ClientDriver
-#synapse.datasources.lookupds.url=jdbc:derby://localhost:1527/lookupdb;create=false
-## Optionally you can specifiy a specific password provider implementation which overrides any globally configured provider
-#synapse.datasources.lookupds.secretProvider=org.apache.synapse.commons.security.secret.handler.SharedSecretCallbackHandler
-#synapse.datasources.lookupds.username=esb
-## Depending on the password provider used, you may have to use an encrypted password here!
-#synapse.datasources.lookupds.password=esb
-#synapse.datasources.lookupds.dsName=lookupdb
-#synapse.datasources.lookupds.maxActive=100
-#synapse.datasources.lookupds.maxIdle=20
-#synapse.datasources.lookupds.maxWait=10000
-#
-#synapse.datasources.reportds.registry=JNDI
-#synapse.datasources.reportds.type=PerUserPoolDataSource
-#synapse.datasources.reportds.cpdsadapter.factory=org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
-#synapse.datasources.reportds.cpdsadapter.className=org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
-#synapse.datasources.reportds.cpdsadapter.name=cpds
-#synapse.datasources.reportds.dsName=reportdb
-#synapse.datasources.reportds.driverClassName=org.apache.derby.jdbc.ClientDriver
-#synapse.datasources.reportds.url=jdbc:derby://localhost:1527/reportdb;create=false
-## Optionally you can specifiy a specific password provider implementation which overrides any globally configured provider
-#synapse.datasources.reportds.secretProvider=org.apache.synapse.commons.security.secret.handler.SharedSecretCallbackHandler
-#synapse.datasources.reportds.username=esb
-## Depending on the password provider used, you may have to use an encrypted password here!
-#synapse.datasources.reportds.password=esb
-#synapse.datasources.reportds.maxActive=100
-#synapse.datasources.reportds.maxIdle=20
-#synapse.datasources.reportds.maxWait=10000
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-bill-generated.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-bill-generated.xml b/products/stratos_controller/conf/email-bill-generated.xml
deleted file mode 100755
index 2310fa4..0000000
--- a/products/stratos_controller/conf/email-bill-generated.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-    Contains the body of the mail that to be sent when bill generation is completed.
-  -->
-
-<configuration>       
-    <subject>[BillGeneration] Bill generation completed</subject>
-    <body>
-Hi ,
-
-Bill generation completed successfully on {date}. Following customers may need your attention.
-
-Customer Name	Subscription Plan	Carried Forward Balance
-===============================================
-{reported-customers}
-
-Best Regards,
-WSO2 Cloud Services
-http://stratoslive.wso2.com
-    </body>
-</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-billing-notifications.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-billing-notifications.xml b/products/stratos_controller/conf/email-billing-notifications.xml
deleted file mode 100755
index afc2807..0000000
--- a/products/stratos_controller/conf/email-billing-notifications.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-    Contains the body of the mail that to be sent as the invoice of the tenant for the period.
-  -->
-
-<configuration>       
-    <subject>WSO2 Cloud Services</subject>
-    <body>
-Hi {customer-name},
-
-This is the billing information for the time period of {start-date} to {end-date} for the use of WSO2 cloud services.
-
-Charges for subscriptions
-=========================
-{subscription-charges}
-
-Payment details
-===============
-{payment-details}
-
-Invoice Summary
-===============
-Brought Forward      {bought-forward}
-Total Cost          {total-cost}
-Total Payments      {total-payments}
-Carried Forward     {carried-forward}
-
-Best Regards,
-WSO2 Cloud Services
-http://stratoslive.wso2.com
-    </body>
-</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-new-tenant-activation.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-new-tenant-activation.xml b/products/stratos_controller/conf/email-new-tenant-activation.xml
deleted file mode 100755
index e24b0cb..0000000
--- a/products/stratos_controller/conf/email-new-tenant-activation.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!--    
-    Contains the body of the mail that to be sent to the super admin or a given admin email address,
-    when a new tenant activates their account.
-  -->
-
-<configuration>       
-    <subject>WSO2 Cloud Services - A Tenant Has Activated Their Account</subject>
-    <body>
-Hi,
-
-Congratulations! A tenant has activated their account just now in WSO2 Cloud Services. 
-
-Tenant Details
-===============
-Admin Name: {user-name}
-Domain Name: {domain-name}
-Email Address: {email-address}
-
-Tenant Admin Profile
-====================
-First Name: {first-name}
-Last Name: {last-name}
-
-Best Regards,
-WSO2 Cloud Services Team
-http://stratoslive.wso2.com
-    </body>
-</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-new-tenant-registration.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-new-tenant-registration.xml b/products/stratos_controller/conf/email-new-tenant-registration.xml
deleted file mode 100755
index 8423625..0000000
--- a/products/stratos_controller/conf/email-new-tenant-registration.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!--    
-    Contains the body of the mail that to be sent to the super admin or a given admin email address,
-    when a new tenant registers for an account.
-  -->
-
-<configuration>       
-    <subject>WSO2 Cloud Services - A New Tenant Has Registererd To Stratos</subject>
-    <body>
-Hi,
-
-Congratulations! A new tenant has registered an account in WSO2 Cloud Services. 
-
-Tenant Details
-===============
-Admin Name: {user-name}
-Domain Name: {domain-name}
-Email Address: {email-address}
-
-Tenant Admin Profile
-====================
-First Name: {first-name}
-Last Name: {last-name}
-
-Best Regards,
-WSO2 Cloud Services Team
-http://stratoslive.wso2.com
-    </body>
-</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-password-reset.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-password-reset.xml b/products/stratos_controller/conf/email-password-reset.xml
deleted file mode 100755
index d5a0937..0000000
--- a/products/stratos_controller/conf/email-password-reset.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-   Contains the body of the mail that to be sent when the tenant admin's password is reset, mostly
-   by a service administrator, known as the super-tenant in Stratos-world.
-  -->
-
-<configuration>       
-    <subject>WSO2 Cloud Services - Password Reset</subject>
-    <body>
-Hi {first-name},
-
-Your password for the WSO2 Cloud Services has been reset by the Service Administrator.
-
-Admin Name: {user-name}
-Domain: {domain-name}
-
-Your New Password: {password}
-
-Please use this password along with your existing username to log in to your account. You are adviced to change the password once you logged in to your account using this password.
-
-Best Regards,
-WSO2 Cloud Services Team
-http://stratoslive.wso2.com
-    </body>
-</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-payment-received-customer.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-payment-received-customer.xml b/products/stratos_controller/conf/email-payment-received-customer.xml
deleted file mode 100755
index dff13bc..0000000
--- a/products/stratos_controller/conf/email-payment-received-customer.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-    Contains the body of the mail that to be sent when a payment is received.
-  -->
-
-<configuration>       
-    <subject>[Payment Received] WSO2 Cloud Services</subject>
-    <body>
-Hi {customer-name},
-
-Thank you for your payment done on {date}. Following are the payment details.
-
-Transaction ID	: {transaction-id}
-Amount		: {amount}
-Invoice ID	: {invoice-id}
-
-Best Regards,
-WSO2 Cloud Services
-http://stratoslive.wso2.com
-    </body>
-</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-payment-received-wso2.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-payment-received-wso2.xml b/products/stratos_controller/conf/email-payment-received-wso2.xml
deleted file mode 100755
index c81b5f4..0000000
--- a/products/stratos_controller/conf/email-payment-received-wso2.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-    Contains the body of the mail that to be sent when a payment is received.
-  -->
-
-<configuration>       
-    <subject>[Payment Received] WSO2 Cloud Services</subject>
-    <body>
-Hi Finance Team,
-
-A payment was recived from customer {customer-name} on {date}. Following are the payment details.
-
-Transaction ID	: {transaction-id}
-Amount		: {amount}
-Invoice ID	: {invoice-id}
-
-Best Regards,
-WSO2 Cloud Services
-http://stratoslive.wso2.com
-    </body>
-</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-registration-complete.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-registration-complete.xml b/products/stratos_controller/conf/email-registration-complete.xml
deleted file mode 100755
index 02565ec..0000000
--- a/products/stratos_controller/conf/email-registration-complete.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-   The mail that to be sent upon successful registration and the successful validation 
-    of the email.
-  -->
-
-<configuration>       
-    <subject>WSO2 Cloud Services - Registration completed</subject>
-    <body>
-Hi {first-name},
-
-Congratulations! You have successfully created an account in WSO2 Cloud Services. Now you can access your account by visiting the following URL. Please bookmark this URL to visit your account later.
-
-Your account url: https://stratoslive.wso2.com/t/{domain-name}
-
-Best Regards,
-WSO2 Cloud Services Team
-http://stratoslive.wso2.com
-    </body>
-</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-registration-moderation.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-registration-moderation.xml b/products/stratos_controller/conf/email-registration-moderation.xml
deleted file mode 100755
index 73fb689..0000000
--- a/products/stratos_controller/conf/email-registration-moderation.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-   The mail to be sent for the tenant registration validation.    
-   This mail has the registration validation link to validate the email too.
-  -->
-
-<configuration>
-    <targetEpr>https://stratoslive.wso2.com/carbon/email-verification/validator_ajaxprocessor.jsp</targetEpr>
-    <subject>WSO2 StratosLive - A New Tenant Awaits Approval</subject>
-    <body>
-Hi,
-
-A new tenant has registered an account in WSO2 StratosLive.
-
-Admin Name: {user-name}
-Domain: {domain-name}
-
-User Name: {user-name}@{domain-name}
-
-Please click the following link to complete the registration request. The registered tenant will not be able to 
-log in or use their account till then.
-    </body>
-    <footer>
-Best Regards,
-WSO2 Stratos Team
-http://stratoslive.wso2.com
-    </footer>
-    <redirectPath>../account-mgt/update_verifier_redirector_ajaxprocessor.jsp</redirectPath>
-</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-registration-payment-received-customer.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-registration-payment-received-customer.xml b/products/stratos_controller/conf/email-registration-payment-received-customer.xml
deleted file mode 100755
index 8e1951e..0000000
--- a/products/stratos_controller/conf/email-registration-payment-received-customer.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-    Contains the body of the mail that to be sent when a payment is received.
-  -->
-
-<configuration>       
-    <subject>[Registration Payment] WSO2 Cloud Services</subject>
-    <body>
-Hi {customer-name},
-
-Thank you for your payment done on {date} for StratosLive registration. Following are the payment details.
-
-Transaction ID	: {transaction-id}
-Amount		: {amount}
-Registered domain	: {tenant-domain}
-
-Best Regards,
-WSO2 Cloud Services
-http://stratoslive.wso2.com
-    </body>
-</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-registration.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-registration.xml b/products/stratos_controller/conf/email-registration.xml
deleted file mode 100755
index c789bc0..0000000
--- a/products/stratos_controller/conf/email-registration.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-   The mail to be sent for the tenant registration validation.    
-   This mail has the registration validation link to validate the email too.
-  -->
-
-<configuration>
-    <targetEpr>https://localhost:9443/carbon/email-verification/validator_ajaxprocessor.jsp</targetEpr>
-    <subject>WSO2 Cloud Services - Email validation instructions</subject>
-    <body>
-Hi {first-name},
-
-Thank you for registering an account in WSO2 Cloud Services.
-
-Your Admin Name: {user-name}
-Your Domain: {domain-name}
-
-Your User Name: {user-name}@{domain-name}
-
-Please click the following link to verify your email address.
-    </body>
-    <footer>
-Best Regards,
-WSO2 Cloud Services Team
-http://stratoslive.wso2.com
-    </footer>
-    <redirectPath>../account-mgt/update_verifier_redirector_ajaxprocessor.jsp</redirectPath>
-</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/email-update.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/email-update.xml b/products/stratos_controller/conf/email-update.xml
deleted file mode 100755
index 4036900..0000000
--- a/products/stratos_controller/conf/email-update.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- 
-   The mail that to be sent upon receiving an email change request from the account management.
-   The new email address will be notified of this change.
-  -->
-
-<configuration>       
-    <targetEpr>https://localhost:9443/carbon/email-verification/validator_ajaxprocessor.jsp</targetEpr>
-    <subject>WSO2 Cloud Services - Updating the contact email address</subject>
-    <body>
-Hi {first-name},
-
-We got a request from you or some one to associate this email address, as the contact email address of your WSO2 cloud services account. Please click the following link to verify your email address.
-    </body>
-    <footer>
-Best Regards,
-WSO2 Cloud Services Team
-http://stratoslive.wso2.com
-    </footer>
-    <redirectPath>../account-mgt/update_verifier_redirector_ajaxprocessor.jsp</redirectPath>
-</configuration>


[22/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.js b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.js
new file mode 100755
index 0000000..6ecf0fa
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.js
@@ -0,0 +1 @@
+(function(jQuery,undefined){jQuery.ui=jQuery.ui||{};if(jQuery.ui.version){return}jQuery.extend(jQuery.ui,{version:"1.8.14",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});jQuery.fn.extend({_focus:jQuery.fn.focus,focus:function(delay,fn){return typeof delay==="number"?this.each(function(){var elem=this;setTimeout(function(){jQuery(elem).focus();if(fn){fn.call(elem)}},delay)}):this._focus.apply(this,arguments)},scrollParent:function(){var scrollParent;if((jQuery.browser.msie&&(/(static|relative)/).test(this.css('position')))||(/absolute/).test(this.css('position'))){scrollParent=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(jQuery
 .curCSS(this,'position',1))&&(/(auto|scroll)/).test(jQuery.curCSS(this,'overflow',1)+jQuery.curCSS(this,'overflow-y',1)+jQuery.curCSS(this,'overflow-x',1))}).eq(0)}else{scrollParent=this.parents().filter(function(){return(/(auto|scroll)/).test(jQuery.curCSS(this,'overflow',1)+jQuery.curCSS(this,'overflow-y',1)+jQuery.curCSS(this,'overflow-x',1))}).eq(0)}return(/fixed/).test(this.css('position'))||!scrollParent.length?jQuery(document):scrollParent},zIndex:function(zIndex){if(zIndex!==undefined){return this.css("zIndex",zIndex)}if(this.length){var elem=jQuery(this[0]),position,value;while(elem.length&&elem[0]!==document){position=elem.css("position");if(position==="absolute"||position==="relative"||position==="fixed"){value=parseInt(elem.css("zIndex"),10);if(!isNaN(value)&&value!==0){return value}}elem=elem.parent()}}return 0},disableSelection:function(){return this.bind((jQuery.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(event){event.preventDefault(
 )})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});jQuery.each(["Width","Height"],function(i,name){var side=name==="Width"?["Left","Right"]:["Top","Bottom"],type=name.toLowerCase(),orig={innerWidth:jQuery.fn.innerWidth,innerHeight:jQuery.fn.innerHeight,outerWidth:jQuery.fn.outerWidth,outerHeight:jQuery.fn.outerHeight};function reduce(elem,size,border,margin){jQuery.each(side,function(){size-=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;if(border){size-=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0}if(margin){size-=parseFloat(jQuery.curCSS(elem,"margin"+this,true))||0}});return size}jQuery.fn["inner"+name]=function(size){if(size===undefined){return orig["inner"+name].call(this)}return this.each(function(){jQuery(this).css(type,reduce(this,size)+"px")})};jQuery.fn["outer"+name]=function(size,margin){if(typeof size!=="number"){return orig["outer"+name].call(this,size)}return this.each(function(){jQuery(this).css(type,reduce(this,size
 ,true,margin)+"px")})}});function focusable(element,isTabIndexNotNaN){var nodeName=element.nodeName.toLowerCase();if("area"===nodeName){var map=element.parentNode,mapName=map.name,img;if(!element.href||!mapName||map.nodeName.toLowerCase()!=="map"){return false}img=jQuery("img[usemap=#"+mapName+"]")[0];return!!img&&visible(img)}return(/input|select|textarea|button|object/.test(nodeName)?!element.disabled:"a"==nodeName?element.href||isTabIndexNotNaN:isTabIndexNotNaN)&&visible(element)}function visible(element){return!jQuery(element).parents().andSelf().filter(function(){return jQuery.curCSS(this,"visibility")==="hidden"||jQuery.expr.filters.hidden(this)}).length}jQuery.extend(jQuery.expr[":"],{data:function(elem,i,match){return!!jQuery.data(elem,match[3])},focusable:function(element){return focusable(element,!isNaN(jQuery.attr(element,"tabindex")))},tabbable:function(element){var tabIndex=jQuery.attr(element,"tabindex"),isTabIndexNaN=isNaN(tabIndex);return(isTabIndexNaN||tabIndex>=0)&
 &focusable(element,!isTabIndexNaN)}});jQuery(function(){var body=document.body,div=body.appendChild(div=document.createElement("div"));jQuery.extend(div.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});jQuery.support.minHeight=div.offsetHeight===100;jQuery.support.selectstart="onselectstart"in div;body.removeChild(div).style.display="none"});jQuery.extend(jQuery.ui,{plugin:{add:function(module,option,set){var proto=jQuery.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode){return}for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(el,a){if(jQuery(el).css("overflow")==="hidden"){return false}var scroll=(a&&a==="l
 eft")?"scrollLeft":"scrollTop",has=false;if(el[scroll]>0){return true}el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has},isOverAxis:function(x,reference,size){return(x>reference)&&(x<(reference+size))},isOver:function(y,x,top,left,height,width){return jQuery.ui.isOverAxis(y,top,height)&&jQuery.ui.isOverAxis(x,left,width)}})})(jQuery);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.min.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.min.js b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.min.js
new file mode 100755
index 0000000..577548e
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.core.min.js
@@ -0,0 +1,17 @@
+/*!
+ * jQuery UI 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI
+ */
+(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.14",
+keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();
+b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,
+"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",
+function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,
+outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,"tabindex"),d=isNaN(b);
+return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=
+0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&c.ui.isOverAxis(b,e,i)}})}})(jQuery);

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.tabs.min.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.tabs.min.js b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.tabs.min.js
new file mode 100755
index 0000000..11a67c1
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.tabs.min.js
@@ -0,0 +1,35 @@
+/*
+ * jQuery UI Tabs 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Tabs
+ *
+ * Depends:
+ *	jquery.ui.core.js
+ *	jquery.ui.widget.js
+ */
+(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&&
+e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=
+d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]||
+(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
+this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected=
+this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
+if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
+this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+
+g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal",
+function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")};
+this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected=
+-1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
+d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e=
+d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b,
+e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]);
+j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();
+if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1<this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=b}),function(h){return h>=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null,
+this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this},
+load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c,
+"cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},
+url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.14"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k<a.anchors.length?k:0)},b);j&&j.stopPropagation()});e=a._unrotate||(a._unrotate=!e?function(j){j.clientX&&
+a.rotate(null)}:function(){t=c.selected;h()});if(b){this.element.bind("tabsshow",h);this.anchors.bind(c.event+".tabs",e);h()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(c.event+".tabs",e);delete this._rotate;delete this._unrotate}return this}})})(jQuery);

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.widget.min.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.widget.min.js b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.widget.min.js
new file mode 100755
index 0000000..39ab91a
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.ui.widget.min.js
@@ -0,0 +1,15 @@
+/*!
+ * jQuery UI Widget 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Widget
+ */
+(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)b(d).triggerHandler("remove");k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,
+a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.charAt(0)==="_")return h;
+e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,
+this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},
+widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},
+enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.validate.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.validate.js b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.validate.js
new file mode 100755
index 0000000..c602148
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery.validate.js
@@ -0,0 +1,1166 @@
+/**
+ * jQuery Validation Plugin 1.8.1
+ *
+ * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
+ * http://docs.jquery.com/Plugins/Validation
+ *
+ * Copyright (c) 2006 - 2011 Jörn Zaefferer
+ *
+ * Dual licensed under the MIT and GPL licenses:
+ *   http://www.opensource.org/licenses/mit-license.php
+ *   http://www.gnu.org/licenses/gpl.html
+ */
+
+(function(jQuery) {
+
+jQuery.extend(jQuery.fn, {
+	// http://docs.jquery.com/Plugins/Validation/validate
+	validate: function( options ) {
+
+		// if nothing is selected, return nothing; can't chain anyway
+		if (!this.length) {
+			options && options.debug && window.console && console.warn( "nothing selected, can't validate, returning nothing" );
+			return;
+		}
+
+		// check if a validator for this form was already created
+		var validator = jQuery.data(this[0], 'validator');
+		if ( validator ) {
+			return validator;
+		}
+
+		validator = new jQuery.validator( options, this[0] );
+		jQuery.data(this[0], 'validator', validator);
+
+		if ( validator.settings.onsubmit ) {
+
+			// allow suppresing validation by adding a cancel class to the submit button
+			this.find("input, button").filter(".cancel").click(function() {
+				validator.cancelSubmit = true;
+			});
+
+			// when a submitHandler is used, capture the submitting button
+			if (validator.settings.submitHandler) {
+				this.find("input, button").filter(":submit").click(function() {
+					validator.submitButton = this;
+				});
+			}
+
+			// validate the form on submit
+			this.submit( function( event ) {
+				if ( validator.settings.debug )
+					// prevent form submit to be able to see console output
+					event.preventDefault();
+
+				function handle() {
+					if ( validator.settings.submitHandler ) {
+						if (validator.submitButton) {
+							// insert a hidden input as a replacement for the missing submit button
+							var hidden = jQuery("<input type='hidden'/>").attr("name", validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm);
+						}
+						validator.settings.submitHandler.call( validator, validator.currentForm );
+						if (validator.submitButton) {
+							// and clean up afterwards; thanks to no-block-scope, hidden can be referenced
+							hidden.remove();
+						}
+						return false;
+					}
+					return true;
+				}
+
+				// prevent submit for invalid forms or custom submit handlers
+				if ( validator.cancelSubmit ) {
+					validator.cancelSubmit = false;
+					return handle();
+				}
+				if ( validator.form() ) {
+					if ( validator.pendingRequest ) {
+						validator.formSubmitted = true;
+						return false;
+					}
+					return handle();
+				} else {
+					validator.focusInvalid();
+					return false;
+				}
+			});
+		}
+
+		return validator;
+	},
+	// http://docs.jquery.com/Plugins/Validation/valid
+	valid: function() {
+        if ( jQuery(this[0]).is('form')) {
+            return this.validate().form();
+        } else {
+            var valid = true;
+            var validator = jQuery(this[0].form).validate();
+            this.each(function() {
+				valid &= validator.element(this);
+            });
+            return valid;
+        }
+    },
+	// attributes: space seperated list of attributes to retrieve and remove
+	removeAttrs: function(attributes) {
+		var result = {},
+			$element = this;
+		jQuery.each(attributes.split(/\s/), function(index, value) {
+			result[value] = $element.attr(value);
+			$element.removeAttr(value);
+		});
+		return result;
+	},
+	// http://docs.jquery.com/Plugins/Validation/rules
+	rules: function(command, argument) {
+		var element = this[0];
+
+		if (command) {
+			var settings = jQuery.data(element.form, 'validator').settings;
+			var staticRules = settings.rules;
+			var existingRules = jQuery.validator.staticRules(element);
+			switch(command) {
+			case "add":
+				jQuery.extend(existingRules, jQuery.validator.normalizeRule(argument));
+				staticRules[element.name] = existingRules;
+				if (argument.messages)
+					settings.messages[element.name] = jQuery.extend( settings.messages[element.name], argument.messages );
+				break;
+			case "remove":
+				if (!argument) {
+					delete staticRules[element.name];
+					return existingRules;
+				}
+				var filtered = {};
+				jQuery.each(argument.split(/\s/), function(index, method) {
+					filtered[method] = existingRules[method];
+					delete existingRules[method];
+				});
+				return filtered;
+			}
+		}
+
+		var data = jQuery.validator.normalizeRules(
+		jQuery.extend(
+			{},
+			jQuery.validator.metadataRules(element),
+			jQuery.validator.classRules(element),
+			jQuery.validator.attributeRules(element),
+			jQuery.validator.staticRules(element)
+		), element);
+
+		// make sure required is at front
+		if (data.required) {
+			var param = data.required;
+			delete data.required;
+			data = jQuery.extend({required: param}, data);
+		}
+
+		return data;
+	}
+});
+
+// Custom selectors
+jQuery.extend(jQuery.expr[":"], {
+	// http://docs.jquery.com/Plugins/Validation/blank
+	blank: function(a) {return !jQuery.trim("" + a.value);},
+	// http://docs.jquery.com/Plugins/Validation/filled
+	filled: function(a) {return !!jQuery.trim("" + a.value);},
+	// http://docs.jquery.com/Plugins/Validation/unchecked
+	unchecked: function(a) {return !a.checked;}
+});
+
+// constructor for validator
+jQuery.validator = function( options, form ) {
+	this.settings = jQuery.extend( true, {}, jQuery.validator.defaults, options );
+	this.currentForm = form;
+	this.init();
+};
+
+jQuery.validator.format = function(source, params) {
+	if ( arguments.length == 1 )
+		return function() {
+			var args = jQuery.makeArray(arguments);
+			args.unshift(source);
+			return jQuery.validator.format.apply( this, args );
+		};
+	if ( arguments.length > 2 && params.constructor != Array  ) {
+		params = jQuery.makeArray(arguments).slice(1);
+	}
+	if ( params.constructor != Array ) {
+		params = [ params ];
+	}
+	jQuery.each(params, function(i, n) {
+		source = source.replace(new RegExp("\\{" + i + "\\}", "g"), n);
+	});
+	return source;
+};
+
+jQuery.extend(jQuery.validator, {
+
+	defaults: {
+		messages: {},
+		groups: {},
+		rules: {},
+		errorClass: "error",
+		validClass: "valid",
+		errorElement: "label",
+		focusInvalid: true,
+		errorContainer: jQuery( [] ),
+		errorLabelContainer: jQuery( [] ),
+		onsubmit: true,
+		ignore: [],
+		ignoreTitle: false,
+		onfocusin: function(element) {
+			this.lastActive = element;
+
+			// hide error label and remove error class on focus if enabled
+			if ( this.settings.focusCleanup && !this.blockFocusCleanup ) {
+				this.settings.unhighlight && this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass );
+				this.addWrapper(this.errorsFor(element)).hide();
+			}
+		},
+		onfocusout: function(element) {
+			if ( !this.checkable(element) && (element.name in this.submitted || !this.optional(element)) ) {
+				this.element(element);
+			}
+		},
+		onkeyup: function(element) {
+			if ( element.name in this.submitted || element == this.lastElement ) {
+				this.element(element);
+			}
+		},
+		onclick: function(element) {
+			// click on selects, radiobuttons and checkboxes
+			if ( element.name in this.submitted )
+				this.element(element);
+			// or option elements, check parent select in that case
+			else if (element.parentNode.name in this.submitted)
+				this.element(element.parentNode);
+		},
+		highlight: function(element, errorClass, validClass) {
+			if (element.type === 'radio') {
+				this.findByName(element.name).addClass(errorClass).removeClass(validClass);
+			} else {
+				jQuery(element).addClass(errorClass).removeClass(validClass);
+			}
+		},
+		unhighlight: function(element, errorClass, validClass) {
+			if (element.type === 'radio') {
+				this.findByName(element.name).removeClass(errorClass).addClass(validClass);
+			} else {
+				jQuery(element).removeClass(errorClass).addClass(validClass);
+			}
+		}
+	},
+
+	// http://docs.jquery.com/Plugins/Validation/Validator/setDefaults
+	setDefaults: function(settings) {
+		jQuery.extend( jQuery.validator.defaults, settings );
+	},
+
+	messages: {
+		required: "This field is required.",
+		remote: "Please fix this field.",
+		email: "Please enter a valid email address.",
+		url: "Please enter a valid URL.",
+		date: "Please enter a valid date.",
+		dateISO: "Please enter a valid date (ISO).",
+		number: "Please enter a valid number.",
+		digits: "Please enter only digits.",
+		creditcard: "Please enter a valid credit card number.",
+		equalTo: "Please enter the same value again.",
+		accept: "Please enter a value with a valid extension.",
+		maxlength: jQuery.validator.format("Please enter no more than {0} characters."),
+		minlength: jQuery.validator.format("Please enter at least {0} characters."),
+		rangelength: jQuery.validator.format("Please enter a value between {0} and {1} characters long."),
+		range: jQuery.validator.format("Please enter a value between {0} and {1}."),
+		max: jQuery.validator.format("Please enter a value less than or equal to {0}."),
+		min: jQuery.validator.format("Please enter a value greater than or equal to {0}.")
+	},
+
+	autoCreateRanges: false,
+
+	prototype: {
+
+		init: function() {
+			this.labelContainer = jQuery(this.settings.errorLabelContainer);
+			this.errorContext = this.labelContainer.length && this.labelContainer || jQuery(this.currentForm);
+			this.containers = jQuery(this.settings.errorContainer).add( this.settings.errorLabelContainer );
+			this.submitted = {};
+			this.valueCache = {};
+			this.pendingRequest = 0;
+			this.pending = {};
+			this.invalid = {};
+			this.reset();
+
+			var groups = (this.groups = {});
+			jQuery.each(this.settings.groups, function(key, value) {
+				jQuery.each(value.split(/\s/), function(index, name) {
+					groups[name] = key;
+				});
+			});
+			var rules = this.settings.rules;
+			jQuery.each(rules, function(key, value) {
+				rules[key] = jQuery.validator.normalizeRule(value);
+			});
+
+			function delegate(event) {
+				var validator = jQuery.data(this[0].form, "validator"),
+					eventType = "on" + event.type.replace(/^validate/, "");
+				validator.settings[eventType] && validator.settings[eventType].call(validator, this[0] );
+			}
+			jQuery(this.currentForm)
+				.validateDelegate(":text, :password, :file, select, textarea", "focusin focusout keyup", delegate)
+				.validateDelegate(":radio, :checkbox, select, option", "click", delegate);
+
+			if (this.settings.invalidHandler)
+				jQuery(this.currentForm).bind("invalid-form.validate", this.settings.invalidHandler);
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Validator/form
+		form: function() {
+			this.checkForm();
+			jQuery.extend(this.submitted, this.errorMap);
+			this.invalid = jQuery.extend({}, this.errorMap);
+			if (!this.valid())
+				jQuery(this.currentForm).triggerHandler("invalid-form", [this]);
+			this.showErrors();
+			return this.valid();
+		},
+
+		checkForm: function() {
+			this.prepareForm();
+			for ( var i = 0, elements = (this.currentElements = this.elements()); elements[i]; i++ ) {
+				this.check( elements[i] );
+			}
+			return this.valid();
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Validator/element
+		element: function( element ) {
+			element = this.clean( element );
+			this.lastElement = element;
+			this.prepareElement( element );
+			this.currentElements = jQuery(element);
+			var result = this.check( element );
+			if ( result ) {
+				delete this.invalid[element.name];
+			} else {
+				this.invalid[element.name] = true;
+			}
+			if ( !this.numberOfInvalids() ) {
+				// Hide error containers on last error
+				this.toHide = this.toHide.add( this.containers );
+			}
+			this.showErrors();
+			return result;
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Validator/showErrors
+		showErrors: function(errors) {
+			if(errors) {
+				// add items to error list and map
+				jQuery.extend( this.errorMap, errors );
+				this.errorList = [];
+				for ( var name in errors ) {
+					this.errorList.push({
+						message: errors[name],
+						element: this.findByName(name)[0]
+					});
+				}
+				// remove items from success list
+				this.successList = jQuery.grep( this.successList, function(element) {
+					return !(element.name in errors);
+				});
+			}
+			this.settings.showErrors
+				? this.settings.showErrors.call( this, this.errorMap, this.errorList )
+				: this.defaultShowErrors();
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Validator/resetForm
+		resetForm: function() {
+			if ( jQuery.fn.resetForm )
+				jQuery( this.currentForm ).resetForm();
+			this.submitted = {};
+			this.prepareForm();
+			this.hideErrors();
+			this.elements().removeClass( this.settings.errorClass );
+		},
+
+		numberOfInvalids: function() {
+			return this.objectLength(this.invalid);
+		},
+
+		objectLength: function( obj ) {
+			var count = 0;
+			for ( var i in obj )
+				count++;
+			return count;
+		},
+
+		hideErrors: function() {
+			this.addWrapper( this.toHide ).hide();
+		},
+
+		valid: function() {
+			return this.size() == 0;
+		},
+
+		size: function() {
+			return this.errorList.length;
+		},
+
+		focusInvalid: function() {
+			if( this.settings.focusInvalid ) {
+				try {
+					jQuery(this.findLastActive() || this.errorList.length && this.errorList[0].element || [])
+					.filter(":visible")
+					.focus()
+					// manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find
+					.trigger("focusin");
+				} catch(e) {
+					// ignore IE throwing errors when focusing hidden elements
+				}
+			}
+		},
+
+		findLastActive: function() {
+			var lastActive = this.lastActive;
+			return lastActive && jQuery.grep(this.errorList, function(n) {
+				return n.element.name == lastActive.name;
+			}).length == 1 && lastActive;
+		},
+
+		elements: function() {
+			var validator = this,
+				rulesCache = {};
+
+			// select all valid inputs inside the form (no submit or reset buttons)
+			return jQuery(this.currentForm)
+			.find("input, select, textarea")
+			.not(":submit, :reset, :image, [disabled]")
+			.not( this.settings.ignore )
+			.filter(function() {
+				!this.name && validator.settings.debug && window.console && console.error( "%o has no name assigned", this);
+
+				// select only the first element for each name, and only those with rules specified
+				if ( this.name in rulesCache || !validator.objectLength(jQuery(this).rules()) )
+					return false;
+
+				rulesCache[this.name] = true;
+				return true;
+			});
+		},
+
+		clean: function( selector ) {
+			return jQuery( selector )[0];
+		},
+
+		errors: function() {
+			return jQuery( this.settings.errorElement + "." + this.settings.errorClass, this.errorContext );
+		},
+
+		reset: function() {
+			this.successList = [];
+			this.errorList = [];
+			this.errorMap = {};
+			this.toShow = jQuery([]);
+			this.toHide = jQuery([]);
+			this.currentElements = jQuery([]);
+		},
+
+		prepareForm: function() {
+			this.reset();
+			this.toHide = this.errors().add( this.containers );
+		},
+
+		prepareElement: function( element ) {
+			this.reset();
+			this.toHide = this.errorsFor(element);
+		},
+
+		check: function( element ) {
+			element = this.clean( element );
+
+			// if radio/checkbox, validate first element in group instead
+			if (this.checkable(element)) {
+				element = this.findByName( element.name ).not(this.settings.ignore)[0];
+			}
+
+			var rules = jQuery(element).rules();
+			var dependencyMismatch = false;
+			for (var method in rules ) {
+				var rule = { method: method, parameters: rules[method] };
+				try {
+					var result = jQuery.validator.methods[method].call( this, element.value.replace(/\r/g, ""), element, rule.parameters );
+
+					// if a method indicates that the field is optional and therefore valid,
+					// don't mark it as valid when there are no other rules
+					if ( result == "dependency-mismatch" ) {
+						dependencyMismatch = true;
+						continue;
+					}
+					dependencyMismatch = false;
+
+					if ( result == "pending" ) {
+						this.toHide = this.toHide.not( this.errorsFor(element) );
+						return;
+					}
+
+					if( !result ) {
+						this.formatAndAdd( element, rule );
+						return false;
+					}
+				} catch(e) {
+					this.settings.debug && window.console && console.log("exception occured when checking element " + element.id
+						 + ", check the '" + rule.method + "' method", e);
+					throw e;
+				}
+			}
+			if (dependencyMismatch)
+				return;
+			if ( this.objectLength(rules) )
+				this.successList.push(element);
+			return true;
+		},
+
+		// return the custom message for the given element and validation method
+		// specified in the element's "messages" metadata
+		customMetaMessage: function(element, method) {
+			if (!jQuery.metadata)
+				return;
+
+			var meta = this.settings.meta
+				? jQuery(element).metadata()[this.settings.meta]
+				: jQuery(element).metadata();
+
+			return meta && meta.messages && meta.messages[method];
+		},
+
+		// return the custom message for the given element name and validation method
+		customMessage: function( name, method ) {
+			var m = this.settings.messages[name];
+			return m && (m.constructor == String
+				? m
+				: m[method]);
+		},
+
+		// return the first defined argument, allowing empty strings
+		findDefined: function() {
+			for(var i = 0; i < arguments.length; i++) {
+				if (arguments[i] !== undefined)
+					return arguments[i];
+			}
+			return undefined;
+		},
+
+		defaultMessage: function( element, method) {
+			return this.findDefined(
+				this.customMessage( element.name, method ),
+				this.customMetaMessage( element, method ),
+				// title is never undefined, so handle empty string as undefined
+				!this.settings.ignoreTitle && element.title || undefined,
+				jQuery.validator.messages[method],
+				"<strong>Warning: No message defined for " + element.name + "</strong>"
+			);
+		},
+
+		formatAndAdd: function( element, rule ) {
+			var message = this.defaultMessage( element, rule.method ),
+				theregex = /\$?\{(\d+)\}/g;
+			if ( typeof message == "function" ) {
+				message = message.call(this, rule.parameters, element);
+			} else if (theregex.test(message)) {
+				message = jQuery.format(message.replace(theregex, '{$1}'), rule.parameters);
+			}
+			this.errorList.push({
+				message: message,
+				element: element
+			});
+
+			this.errorMap[element.name] = message;
+			this.submitted[element.name] = message;
+		},
+
+		addWrapper: function(toToggle) {
+			if ( this.settings.wrapper )
+				toToggle = toToggle.add( toToggle.parent( this.settings.wrapper ) );
+			return toToggle;
+		},
+
+		defaultShowErrors: function() {
+			for ( var i = 0; this.errorList[i]; i++ ) {
+				var error = this.errorList[i];
+				this.settings.highlight && this.settings.highlight.call( this, error.element, this.settings.errorClass, this.settings.validClass );
+				this.showLabel( error.element, error.message );
+			}
+			if( this.errorList.length ) {
+				this.toShow = this.toShow.add( this.containers );
+			}
+			if (this.settings.success) {
+				for ( var i = 0; this.successList[i]; i++ ) {
+					this.showLabel( this.successList[i] );
+				}
+			}
+			if (this.settings.unhighlight) {
+				for ( var i = 0, elements = this.validElements(); elements[i]; i++ ) {
+					this.settings.unhighlight.call( this, elements[i], this.settings.errorClass, this.settings.validClass );
+				}
+			}
+			this.toHide = this.toHide.not( this.toShow );
+			this.hideErrors();
+			this.addWrapper( this.toShow ).show();
+		},
+
+		validElements: function() {
+			return this.currentElements.not(this.invalidElements());
+		},
+
+		invalidElements: function() {
+			return jQuery(this.errorList).map(function() {
+				return this.element;
+			});
+		},
+
+		showLabel: function(element, message) {
+			var label = this.errorsFor( element );
+			if ( label.length ) {
+				// refresh error/success class
+				label.removeClass().addClass( this.settings.errorClass );
+
+				// check if we have a generated label, replace the message then
+				label.attr("generated") && label.html(message);
+			} else {
+				// create label
+				label = jQuery("<" + this.settings.errorElement + "/>")
+					.attr({"for":  this.idOrName(element), generated: true})
+					.addClass(this.settings.errorClass)
+					.html(message || "");
+				if ( this.settings.wrapper ) {
+					// make sure the element is visible, even in IE
+					// actually showing the wrapped element is handled elsewhere
+					label = label.hide().show().wrap("<" + this.settings.wrapper + "/>").parent();
+				}
+				if ( !this.labelContainer.append(label).length )
+					this.settings.errorPlacement
+						? this.settings.errorPlacement(label, jQuery(element) )
+						: label.insertAfter(element);
+			}
+			if ( !message && this.settings.success ) {
+				label.text("");
+				typeof this.settings.success == "string"
+					? label.addClass( this.settings.success )
+					: this.settings.success( label );
+			}
+			this.toShow = this.toShow.add(label);
+		},
+
+		errorsFor: function(element) {
+			var name = this.idOrName(element);
+    		return this.errors().filter(function() {
+				return jQuery(this).attr('for') == name;
+			});
+		},
+
+		idOrName: function(element) {
+			return this.groups[element.name] || (this.checkable(element) ? element.name : element.id || element.name);
+		},
+
+		checkable: function( element ) {
+			return /radio|checkbox/i.test(element.type);
+		},
+
+		findByName: function( name ) {
+			// select by name and filter by form for performance over form.find("[name=...]")
+			var form = this.currentForm;
+			return jQuery(document.getElementsByName(name)).map(function(index, element) {
+				return element.form == form && element.name == name && element  || null;
+			});
+		},
+
+		getLength: function(value, element) {
+			switch( element.nodeName.toLowerCase() ) {
+			case 'select':
+				return jQuery("option:selected", element).length;
+			case 'input':
+				if( this.checkable( element) )
+					return this.findByName(element.name).filter(':checked').length;
+			}
+			return value.length;
+		},
+
+		depend: function(param, element) {
+			return this.dependTypes[typeof param]
+				? this.dependTypes[typeof param](param, element)
+				: true;
+		},
+
+		dependTypes: {
+			"boolean": function(param, element) {
+				return param;
+			},
+			"string": function(param, element) {
+				return !!jQuery(param, element.form).length;
+			},
+			"function": function(param, element) {
+				return param(element);
+			}
+		},
+
+		optional: function(element) {
+			return !jQuery.validator.methods.required.call(this, jQuery.trim(element.value), element) && "dependency-mismatch";
+		},
+
+		startRequest: function(element) {
+			if (!this.pending[element.name]) {
+				this.pendingRequest++;
+				this.pending[element.name] = true;
+			}
+		},
+
+		stopRequest: function(element, valid) {
+			this.pendingRequest--;
+			// sometimes synchronization fails, make sure pendingRequest is never < 0
+			if (this.pendingRequest < 0)
+				this.pendingRequest = 0;
+			delete this.pending[element.name];
+			if ( valid && this.pendingRequest == 0 && this.formSubmitted && this.form() ) {
+				jQuery(this.currentForm).submit();
+				this.formSubmitted = false;
+			} else if (!valid && this.pendingRequest == 0 && this.formSubmitted) {
+				jQuery(this.currentForm).triggerHandler("invalid-form", [this]);
+				this.formSubmitted = false;
+			}
+		},
+
+		previousValue: function(element) {
+			return jQuery.data(element, "previousValue") || jQuery.data(element, "previousValue", {
+				old: null,
+				valid: true,
+				message: this.defaultMessage( element, "remote" )
+			});
+		}
+
+	},
+
+	classRuleSettings: {
+		required: {required: true},
+		email: {email: true},
+		url: {url: true},
+		date: {date: true},
+		dateISO: {dateISO: true},
+		dateDE: {dateDE: true},
+		number: {number: true},
+		numberDE: {numberDE: true},
+		digits: {digits: true},
+		creditcard: {creditcard: true}
+	},
+
+	addClassRules: function(className, rules) {
+		className.constructor == String ?
+			this.classRuleSettings[className] = rules :
+			jQuery.extend(this.classRuleSettings, className);
+	},
+
+	classRules: function(element) {
+		var rules = {};
+		var classes = jQuery(element).attr('class');
+		classes && jQuery.each(classes.split(' '), function() {
+			if (this in jQuery.validator.classRuleSettings) {
+				jQuery.extend(rules, jQuery.validator.classRuleSettings[this]);
+			}
+		});
+		return rules;
+	},
+
+	attributeRules: function(element) {
+		var rules = {};
+		var $element = jQuery(element);
+
+		for (var method in jQuery.validator.methods) {
+			var value = $element.attr(method);
+			if (value) {
+				rules[method] = value;
+			}
+		}
+
+		// maxlength may be returned as -1, 2147483647 (IE) and 524288 (safari) for text inputs
+		if (rules.maxlength && /-1|2147483647|524288/.test(rules.maxlength)) {
+			delete rules.maxlength;
+		}
+
+		return rules;
+	},
+
+	metadataRules: function(element) {
+		if (!jQuery.metadata) return {};
+
+		var meta = jQuery.data(element.form, 'validator').settings.meta;
+		return meta ?
+			jQuery(element).metadata()[meta] :
+			jQuery(element).metadata();
+	},
+
+	staticRules: function(element) {
+		var rules = {};
+		var validator = jQuery.data(element.form, 'validator');
+		if (validator.settings.rules) {
+			rules = jQuery.validator.normalizeRule(validator.settings.rules[element.name]) || {};
+		}
+		return rules;
+	},
+
+	normalizeRules: function(rules, element) {
+		// handle dependency check
+		jQuery.each(rules, function(prop, val) {
+			// ignore rule when param is explicitly false, eg. required:false
+			if (val === false) {
+				delete rules[prop];
+				return;
+			}
+			if (val.param || val.depends) {
+				var keepRule = true;
+				switch (typeof val.depends) {
+					case "string":
+						keepRule = !!jQuery(val.depends, element.form).length;
+						break;
+					case "function":
+						keepRule = val.depends.call(element, element);
+						break;
+				}
+				if (keepRule) {
+					rules[prop] = val.param !== undefined ? val.param : true;
+				} else {
+					delete rules[prop];
+				}
+			}
+		});
+
+		// evaluate parameters
+		jQuery.each(rules, function(rule, parameter) {
+			rules[rule] = jQuery.isFunction(parameter) ? parameter(element) : parameter;
+		});
+
+		// clean number parameters
+		jQuery.each(['minlength', 'maxlength', 'min', 'max'], function() {
+			if (rules[this]) {
+				rules[this] = Number(rules[this]);
+			}
+		});
+		jQuery.each(['rangelength', 'range'], function() {
+			if (rules[this]) {
+				rules[this] = [Number(rules[this][0]), Number(rules[this][1])];
+			}
+		});
+
+		if (jQuery.validator.autoCreateRanges) {
+			// auto-create ranges
+			if (rules.min && rules.max) {
+				rules.range = [rules.min, rules.max];
+				delete rules.min;
+				delete rules.max;
+			}
+			if (rules.minlength && rules.maxlength) {
+				rules.rangelength = [rules.minlength, rules.maxlength];
+				delete rules.minlength;
+				delete rules.maxlength;
+			}
+		}
+
+		// To support custom messages in metadata ignore rule methods titled "messages"
+		if (rules.messages) {
+			delete rules.messages;
+		}
+
+		return rules;
+	},
+
+	// Converts a simple string to a {string: true} rule, e.g., "required" to {required:true}
+	normalizeRule: function(data) {
+		if( typeof data == "string" ) {
+			var transformed = {};
+			jQuery.each(data.split(/\s/), function() {
+				transformed[this] = true;
+			});
+			data = transformed;
+		}
+		return data;
+	},
+
+	// http://docs.jquery.com/Plugins/Validation/Validator/addMethod
+	addMethod: function(name, method, message) {
+		jQuery.validator.methods[name] = method;
+		jQuery.validator.messages[name] = message != undefined ? message : jQuery.validator.messages[name];
+		if (method.length < 3) {
+			jQuery.validator.addClassRules(name, jQuery.validator.normalizeRule(name));
+		}
+	},
+
+	methods: {
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/required
+		required: function(value, element, param) {
+			// check if dependency is met
+			if ( !this.depend(param, element) )
+				return "dependency-mismatch";
+			switch( element.nodeName.toLowerCase() ) {
+			case 'select':
+				// could be an array for select-multiple or a string, both are fine this way
+				var val = jQuery(element).val();
+				return val && val.length > 0;
+			case 'input':
+				if ( this.checkable(element) )
+					return this.getLength(value, element) > 0;
+			default:
+				return jQuery.trim(value).length > 0;
+			}
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/remote
+		remote: function(value, element, param) {
+			if ( this.optional(element) )
+				return "dependency-mismatch";
+
+			var previous = this.previousValue(element);
+			if (!this.settings.messages[element.name] )
+				this.settings.messages[element.name] = {};
+			previous.originalMessage = this.settings.messages[element.name].remote;
+			this.settings.messages[element.name].remote = previous.message;
+
+			param = typeof param == "string" && {url:param} || param;
+
+			if ( this.pending[element.name] ) {
+				return "pending";
+			}
+			if ( previous.old === value ) {
+				return previous.valid;
+			}
+
+			previous.old = value;
+			var validator = this;
+			this.startRequest(element);
+			var data = {};
+			data[element.name] = value;
+			jQuery.ajax(jQuery.extend(true, {
+				url: param,
+				mode: "abort",
+				port: "validate" + element.name,
+				dataType: "json",
+				data: data,
+				success: function(response) {
+					validator.settings.messages[element.name].remote = previous.originalMessage;
+					var valid = response === true;
+					if ( valid ) {
+						var submitted = validator.formSubmitted;
+						validator.prepareElement(element);
+						validator.formSubmitted = submitted;
+						validator.successList.push(element);
+						validator.showErrors();
+					} else {
+						var errors = {};
+						var message = response || validator.defaultMessage( element, "remote" );
+						errors[element.name] = previous.message = jQuery.isFunction(message) ? message(value) : message;
+						validator.showErrors(errors);
+					}
+					previous.valid = valid;
+					validator.stopRequest(element, valid);
+				}
+			}, param));
+			return "pending";
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/minlength
+		minlength: function(value, element, param) {
+			return this.optional(element) || this.getLength(jQuery.trim(value), element) >= param;
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/maxlength
+		maxlength: function(value, element, param) {
+			return this.optional(element) || this.getLength(jQuery.trim(value), element) <= param;
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/rangelength
+		rangelength: function(value, element, param) {
+			var length = this.getLength(jQuery.trim(value), element);
+			return this.optional(element) || ( length >= param[0] && length <= param[1] );
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/min
+		min: function( value, element, param ) {
+			return this.optional(element) || value >= param;
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/max
+		max: function( value, element, param ) {
+			return this.optional(element) || value <= param;
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/range
+		range: function( value, element, param ) {
+			return this.optional(element) || ( value >= param[0] && value <= param[1] );
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/email
+		email: function(value, element) {
+			// contributed by Scott Gonzalez: http://projects.scottsplayground.com/email_address_validation/
+			return this.optional(element) || /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(value);
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/url
+		url: function(value, element) {
+			// contributed by Scott Gonzalez: http://projects.scottsplayground.com/iri/
+			return this.optional(element) || /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.
 |_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/date
+		date: function(value, element) {
+			return this.optional(element) || !/Invalid|NaN/.test(new Date(value));
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/dateISO
+		dateISO: function(value, element) {
+			return this.optional(element) || /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value);
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/number
+		number: function(value, element) {
+			return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value);
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/digits
+		digits: function(value, element) {
+			return this.optional(element) || /^\d+$/.test(value);
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/creditcard
+		// based on http://en.wikipedia.org/wiki/Luhn
+		creditcard: function(value, element) {
+			if ( this.optional(element) )
+				return "dependency-mismatch";
+			// accept only digits and dashes
+			if (/[^0-9-]+/.test(value))
+				return false;
+			var nCheck = 0,
+				nDigit = 0,
+				bEven = false;
+
+			value = value.replace(/\D/g, "");
+
+			for (var n = value.length - 1; n >= 0; n--) {
+				var cDigit = value.charAt(n);
+				var nDigit = parseInt(cDigit, 10);
+				if (bEven) {
+					if ((nDigit *= 2) > 9)
+						nDigit -= 9;
+				}
+				nCheck += nDigit;
+				bEven = !bEven;
+			}
+
+			return (nCheck % 10) == 0;
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/accept
+		accept: function(value, element, param) {
+			param = typeof param == "string" ? param.replace(/,/g, '|') : "png|jpe?g|gif";
+			return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i"));
+		},
+
+		// http://docs.jquery.com/Plugins/Validation/Methods/equalTo
+		equalTo: function(value, element, param) {
+			// bind to the blur event of the target in order to revalidate whenever the target field is updated
+			// TODO find a way to bind the event just once, avoiding the unbind-rebind overhead
+			var target = jQuery(param).unbind(".validate-equalTo").bind("blur.validate-equalTo", function() {
+				jQuery(element).valid();
+			});
+			return value == target.val();
+		}
+
+	}
+
+});
+
+// deprecated, use jQuery.validator.format instead
+jQuery.format = jQuery.validator.format;
+
+})(jQuery);
+
+// ajax mode: abort
+// usage: jQuery.ajax({ mode: "abort"[, port: "uniqueport"]});
+// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort()
+;(function(jQuery) {
+	var pendingRequests = {};
+	// Use a prefilter if available (1.5+)
+	if ( jQuery.ajaxPrefilter ) {
+		jQuery.ajaxPrefilter(function(settings, _, xhr) {
+			var port = settings.port;
+			if (settings.mode == "abort") {
+				if ( pendingRequests[port] ) {
+					pendingRequests[port].abort();
+				}
+				pendingRequests[port] = xhr;
+			}
+		});
+	} else {
+		// Proxy ajax
+		var ajax = jQuery.ajax;
+		jQuery.ajax = function(settings) {
+			var mode = ( "mode" in settings ? settings : jQuery.ajaxSettings ).mode,
+				port = ( "port" in settings ? settings : jQuery.ajaxSettings ).port;
+			if (mode == "abort") {
+				if ( pendingRequests[port] ) {
+					pendingRequests[port].abort();
+				}
+				return (pendingRequests[port] = ajax.apply(this, arguments));
+			}
+			return ajax.apply(this, arguments);
+		};
+	}
+})(jQuery);
+
+// provides cross-browser focusin and focusout events
+// IE has native support, in other browsers, use event caputuring (neither bubbles)
+
+// provides delegate(type: String, delegate: Selector, handler: Callback) plugin for easier event delegation
+// handler is only called when jQuery(event.target).is(delegate), in the scope of the jquery-object for event.target
+;(function(jQuery) {
+	// only implement if not provided by jQuery core (since 1.4)
+	// TODO verify if jQuery 1.4's implementation is compatible with older jQuery special-event APIs
+	if (!jQuery.event.special.focusin && !jQuery.event.special.focusout && document.addEventListener) {
+		jQuery.each({
+			focus: 'focusin',
+			blur: 'focusout'
+		}, function( original, fix ){
+			jQuery.event.special[fix] = {
+				setup:function() {
+					this.addEventListener( original, handler, true );
+				},
+				teardown:function() {
+					this.removeEventListener( original, handler, true );
+				},
+				handler: function(e) {
+					arguments[0] = jQuery.event.fix(e);
+					arguments[0].type = fix;
+					return jQuery.event.handle.apply(this, arguments);
+				}
+			};
+			function handler(e) {
+				e = jQuery.event.fix(e);
+				e.type = fix;
+				return jQuery.event.handle.call(this, e);
+			}
+		});
+	};
+	jQuery.extend(jQuery.fn, {
+		validateDelegate: function(delegate, type, handler) {
+			return this.bind(type, function(event) {
+				var target = jQuery(event.target);
+				if (target.is(delegate)) {
+					return handler.apply(target, arguments);
+				}
+			});
+		}
+	});
+})(jQuery);

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
new file mode 100755
index 0000000..954e22d
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
new file mode 100755
index 0000000..64ece57
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
new file mode 100755
index 0000000..abdc010
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
new file mode 100755
index 0000000..9b383f4
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
new file mode 100755
index 0000000..a23baad
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
new file mode 100755
index 0000000..42ccba2
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
new file mode 100755
index 0000000..39d5824
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
new file mode 100755
index 0000000..f127367
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
new file mode 100755
index 0000000..359397a
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_222222_256x240.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_222222_256x240.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_222222_256x240.png
new file mode 100755
index 0000000..b273ff1
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_222222_256x240.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_228ef1_256x240.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_228ef1_256x240.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_228ef1_256x240.png
new file mode 100755
index 0000000..a641a37
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_228ef1_256x240.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png
new file mode 100755
index 0000000..2675cae
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png
new file mode 100755
index 0000000..e117eff
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ffffff_256x240.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ffffff_256x240.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ffffff_256x240.png
new file mode 100755
index 0000000..42f8f99
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/images/ui-icons_ffffff_256x240.png differ


[16/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/ss.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/ss.gif b/products/stratos-controller/resources/cloud-services-icons/ss.gif
new file mode 100755
index 0000000..f2bcc75
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/ss.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/ts.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/ts.gif b/products/stratos-controller/resources/cloud-services-icons/ts.gif
new file mode 100755
index 0000000..a2f3ebc
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/ts.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/powerded-by-logos/appserver-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/powerded-by-logos/appserver-logo.gif b/products/stratos-controller/resources/powerded-by-logos/appserver-logo.gif
new file mode 100755
index 0000000..55e4751
Binary files /dev/null and b/products/stratos-controller/resources/powerded-by-logos/appserver-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/powerded-by-logos/bam-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/powerded-by-logos/bam-logo.gif b/products/stratos-controller/resources/powerded-by-logos/bam-logo.gif
new file mode 100755
index 0000000..f8b6a74
Binary files /dev/null and b/products/stratos-controller/resources/powerded-by-logos/bam-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/powerded-by-logos/bps-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/powerded-by-logos/bps-logo.gif b/products/stratos-controller/resources/powerded-by-logos/bps-logo.gif
new file mode 100755
index 0000000..5dd2171
Binary files /dev/null and b/products/stratos-controller/resources/powerded-by-logos/bps-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/powerded-by-logos/brs-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/powerded-by-logos/brs-logo.gif b/products/stratos-controller/resources/powerded-by-logos/brs-logo.gif
new file mode 100755
index 0000000..ccba887
Binary files /dev/null and b/products/stratos-controller/resources/powerded-by-logos/brs-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/powerded-by-logos/csg-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/powerded-by-logos/csg-logo.gif b/products/stratos-controller/resources/powerded-by-logos/csg-logo.gif
new file mode 100755
index 0000000..e69aaa6
Binary files /dev/null and b/products/stratos-controller/resources/powerded-by-logos/csg-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/powerded-by-logos/ds-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/powerded-by-logos/ds-logo.gif b/products/stratos-controller/resources/powerded-by-logos/ds-logo.gif
new file mode 100755
index 0000000..f70a205
Binary files /dev/null and b/products/stratos-controller/resources/powerded-by-logos/ds-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/powerded-by-logos/esb-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/powerded-by-logos/esb-logo.gif b/products/stratos-controller/resources/powerded-by-logos/esb-logo.gif
new file mode 100755
index 0000000..95cb5b3
Binary files /dev/null and b/products/stratos-controller/resources/powerded-by-logos/esb-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/powerded-by-logos/gadget-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/powerded-by-logos/gadget-logo.gif b/products/stratos-controller/resources/powerded-by-logos/gadget-logo.gif
new file mode 100755
index 0000000..8e89ef5
Binary files /dev/null and b/products/stratos-controller/resources/powerded-by-logos/gadget-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/powerded-by-logos/governance-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/powerded-by-logos/governance-logo.gif b/products/stratos-controller/resources/powerded-by-logos/governance-logo.gif
new file mode 100755
index 0000000..af1ac45
Binary files /dev/null and b/products/stratos-controller/resources/powerded-by-logos/governance-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/powerded-by-logos/identity-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/powerded-by-logos/identity-logo.gif b/products/stratos-controller/resources/powerded-by-logos/identity-logo.gif
new file mode 100755
index 0000000..a2447bc
Binary files /dev/null and b/products/stratos-controller/resources/powerded-by-logos/identity-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/powerded-by-logos/mashup-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/powerded-by-logos/mashup-logo.gif b/products/stratos-controller/resources/powerded-by-logos/mashup-logo.gif
new file mode 100755
index 0000000..f8ed9be
Binary files /dev/null and b/products/stratos-controller/resources/powerded-by-logos/mashup-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/INSTALL.txt
----------------------------------------------------------------------
diff --git a/products/stratos_agent/INSTALL.txt b/products/stratos_agent/INSTALL.txt
deleted file mode 100644
index 9d41b13..0000000
--- a/products/stratos_agent/INSTALL.txt
+++ /dev/null
@@ -1,52 +0,0 @@
-Installing Apache Stratos Stratos Agent 1.0.1
-==================================================
-
-Standalone Mode
-===============
-1. The directory containing this INSTALL.txt file will be the root and it will be
-   treated as Carbon home directory and let it be CARBON_HOME.
-
-2. All the shell scripts and .bat files are available in CARBON_HOME/bin folder.
-
-3. To start Stratos Agent one can use either stratos.sh in all Unix
-   systems & stratos.bat file on Windows operating systems.
-
-4. Either of the following commands can be used to start Stratos Agent
-      i)  ./stratos.sh {console|start|stop|restart|version}
-     ii)  stratos.bat {start|stop|version}
-
-        Usage: stratos.sh [command] [options] [system-properties]
-
-            command:
-                --start		    Start Stratos Agent as a Unix daemon in the background
-                --console	    Start Stratos Agent as a Unix daemon in the foreground
-                --stop		    Stop the Stratos Agent Unix daemon
-                --restart	    Restart the Stratos Agent Unix daemon
-                --version	    What version of the Stratos Agent server are you running
-            options:
-                --debug <port> 	Start the server in remote debugging mode.
-                                port: The remote debugging port.
-
-            system-properties:
-                -DhttpPort		Overrides the HTTP port defined in the
-                                catalina-server.xml file
-                -DhttpsPort		Overrides the HTTPS port defined in the
-                                catalina-server.xml file
-                -DosgiConsole=[port]
-                                Start Carbon with Equinox OSGi console.
-                                If the optional 'port' parameter is provided, a
-                                telnet port will be opened
-                -DosgiDebugOptions=[options-file]
-                                Start Carbon with OSGi debugging enabled.
-                                If the optional 'options-file is provided, the
-                                OSGi debug options will be loaded from it.
-                -Dsetup			Clean the Registry database & other
-                                configuration, recreate DB, re-populate the
-                                configuration, and start Carbon
-
-System Requirements
-=======================
-1. Minimum memory - 1.5GB
-2. Processor      - Pentium 800MHz or equivalent at minimum
-3. Java SE Development Kit 1.6.0_24 or higher
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/LICENSE.txt
----------------------------------------------------------------------
diff --git a/products/stratos_agent/LICENSE.txt b/products/stratos_agent/LICENSE.txt
deleted file mode 100644
index e9542e3..0000000
--- a/products/stratos_agent/LICENSE.txt
+++ /dev/null
@@ -1,250 +0,0 @@
-
-This product is licensed by Apache under Apache License 2.0. The license
-can be downloaded from the following locations:
-	http://www.apache.org/licenses/LICENSE-2.0.html
-	http://www.apache.org/licenses/LICENSE-2.0.txt
-
-This product also contains software under different licenses. This table below
-all the contained libraries (jar files) and the license under which they are 
-provided to you.
-
-At the bottom of this file is a table that shows what each license indicated
-below is and where the actual text of the license can be found.
-
-Name                                                                            Type           License   
----------------------------------------------------------------------------------------------------------
-abdera_1.0.0.wso2v3.jar                                                         bundle         apache2   
-addressing-1.6.1-wso2v9.mar                                                     bundle         apache2   
-ajaxtags_1.3.0.beta-rc7-wso2v1.jar                                              bundle         apache2   
-andes-client-0.13.wso2v5.jar                                                    bundle         apache2   
-annogen_0.1.0.wso2v1.jar                                                        bundle         apache2   
-antlr_3.2.0.wso2v1.jar                                                          bundle         bsd       
-ant_1.7.0.wso2v1.jar                                                            bundle         apache2   
-authenticator_0.7.0.wso2v1.jar                                                  bundle         apache2   
-axiom_1.2.11.wso2v4.jar                                                         bundle         apache2   
-axis2-json_1.6.1.wso2v9.jar                                                     bundle         apache2   
-axis2-transport-jms_1.1.0.wso2v7.jar                                            bundle         apache2   
-axis2_1.6.1.wso2v8.jar                                                          bundle         apache2   
-axis2_1.6.1.wso2v9.jar                                                          bundle         apache2   
-backport-util-concurrent_3.1.0.wso2v1.jar                                       bundle         public    
-bcprov-jdk15-132.jar                                                            jarinbundle    bouncy    
-bcprov-jdk15.jar                                                                jar            mit       
-com.google.gson_2.1.0.jar                                                       bundle         apache2   
-commons-beanutils-1.7.0.jar                                                     jarinbundle    apache2   
-commons-codec_1.4.0.wso2v1.jar                                                  bundle         apache2   
-commons-collections-3.2.0.wso2v1.jar                                            bundle         apache2   
-commons-collections_3.2.0.wso2v1.jar                                            bundle         apache2   
-commons-dbcp_1.4.0.wso2v1.jar                                                   bundle         apache2   
-commons-digester-1.8.jar                                                        jarinbundle    apache2   
-commons-fileupload_1.2.2.wso2v1.jar                                             bundle         apache2   
-commons-httpclient_3.1.0.wso2v2.jar                                             bundle         apache2   
-commons-io_2.0.0.wso2v2.jar                                                     bundle         apache2   
-commons-lang-2.6.0.wso2v1.jar                                                   bundle         apache2   
-commons-lang_2.6.0.wso2v1.jar                                                   bundle         apache2   
-commons-pool_1.5.6.wso2v1.jar                                                   bundle         apache2   
-compass_2.0.1.wso2v2.jar                                                        bundle         apache2   
-ehcache_1.5.0.wso2v3.jar                                                        bundle         apache2   
-el-impl_2.2.0.wso2v1.jar                                                        bundle         cddl1     
-geronimo-jms_1.1_spec-1.1.0.wso2v1.jar                                          bundle         apache2   
-geronimo-saaj_1.3_spec_1.0.0.wso2v3.jar                                         bundle         apache2   
-geronimo-stax-api_1.0_spec-1.0.1.wso2v2.jar                                     bundle         apache2   
-h2-1.2.140-wso2v3.jar                                                           bundle         epl1      
-h2-database-engine_1.2.140.wso2v3.jar                                           bundle         epl1      
-httpcore_4.2.3.wso2v1.jar                                                       bundle         apache2   
-infinispan-core_5.1.2.wso2v1.jar                                                bundle         lgpl2     
-javasysmon_0.3.3.wso2v1.jar                                                     bundle         jsmon     
-javax.el_2.2.0.v201108011116.jar                                                bundle         cddl1     
-javax.servlet.jsp_2.2.0.v201112011158.jar                                       bundle         cddl1     
-javax.servlet_3.0.0.v201112011016.jar                                           bundle         cddl1     
-jaxb-api-2.2.6.jar                                                              jar            cddl+gpl  
-jaxb_2.2.5.wso2v1.jar                                                           bundle         cddl1     
-jboss-logging_3.1.0.wso2v1.jar                                                  bundle         lgpl2     
-jboss-transaction-api_1.1_spec-1.0.0.Final.jar                                  jar            lgpl2     
-jdbc-pool_7.0.34.wso2v1.jar                                                     bundle         apache2   
-jericho-html-2.4.jar                                                            jarinbundle    epl1      
-jettison_1.1.0.wso2v1.jar                                                       bundle         apache2   
-jgroups_3.0.6.wso2v1.jar                                                        bundle         lgpl2     
-jsr107cache_1.1.0.wso2v3.jar                                                    bundle         apache2   
-jstl_1.2.1.wso2v1.jar                                                           bundle         cddl1     
-marshalling_1.3.6.wso2v1.jar                                                    bundle         lgpl2     
-neethi_2.0.4.wso2v4.jar                                                         bundle         apache2   
-opencsv-1.8.jar                                                                 jarinbundle    apache2   
-opencsv_1.8.0.wso2v1.jar                                                        bundle         apache2   
-opensaml-1.1.406.jar                                                            jarinbundle    apache2   
-opensaml-2.4.1.jar                                                              jarinbundle    apache2   
-opensaml2_2.4.1.wso2v1.jar                                                      bundle         apache2   
-openws-1.4.1.jar                                                                jarinbundle    apache2   
-org.apache.felix.gogo.command_0.8.0.v201108120515.jar                           bundle         apache2   
-org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar                           bundle         apache2   
-org.apache.felix.gogo.shell_0.8.0.v201110170705.jar                             bundle         apache2   
-org.apache.jasper.glassfish_2.2.2.v201205150955.jar                             bundle         apache2   
-org.eclipse.core.contenttype_3.4.200.v20120523-2004.jar                         bundle         epl1      
-org.eclipse.core.expressions_3.4.401.v20120627-124442.jar                       bundle         epl1      
-org.eclipse.core.jobs_3.5.300.v20120622-204750.jar                              bundle         epl1      
-org.eclipse.core.runtime_3.8.0.v20120521-2346.jar                               bundle         epl1      
-org.eclipse.ecf.filetransfer_5.0.0.v20110531-2218.jar                           bundle         epl1      
-org.eclipse.ecf.identity_3.1.100.v20110531-2218.jar                             bundle         epl1      
-org.eclipse.ecf.provider.filetransfer.httpclient_4.0.200.v20120319-0616.jar     bundle         epl1      
-org.eclipse.ecf.provider.filetransfer_3.2.0.v20110531-2218.jar                  bundle         epl1      
-org.eclipse.ecf_3.1.300.v20110531-2218.jar                                      bundle         epl1      
-org.eclipse.equinox.app_1.3.100.v20120522-1841.jar                              bundle         epl1      
-org.eclipse.equinox.common_3.6.100.v20120522-1841.jar                           bundle         epl1      
-org.eclipse.equinox.concurrent_1.0.300.v20120522-2049.jar                       bundle         epl1      
-org.eclipse.equinox.console_1.0.0.v20120522-1841.jar                            bundle         epl1      
-org.eclipse.equinox.ds_1.4.0.v20120522-1841.jar                                 bundle         epl1      
-org.eclipse.equinox.frameworkadmin.equinox_1.0.400.v20120428-0117.jar           bundle         epl1      
-org.eclipse.equinox.frameworkadmin_2.0.100.v20120606-175127.jar                 bundle         epl1      
-org.eclipse.equinox.http.helper_1.1.0.wso2v1.jar                                bundle         epl1      
-org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar                     bundle         epl1      
-org.eclipse.equinox.jsp.jasper_1.0.400.v20120522-2049.jar                       bundle         epl1      
-org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar                           bundle         epl1      
-org.eclipse.equinox.p2.artifact.repository_1.1.100.v20110519.jar                bundle         epl1      
-org.eclipse.equinox.p2.console_1.0.300.v20110502-1955.jar                       bundle         epl1      
-org.eclipse.equinox.p2.core_2.1.0.v20110502-1955.jar                            bundle         epl1      
-org.eclipse.equinox.p2.director.app_1.0.300.v20110505.jar                       bundle         epl1      
-org.eclipse.equinox.p2.directorywatcher_1.0.300.v20110502-1955.jar              bundle         epl1      
-org.eclipse.equinox.p2.director_2.1.0.v20110504-1715.jar                        bundle         epl1      
-org.eclipse.equinox.p2.engine_2.1.0.v20110511.jar                               bundle         epl1      
-org.eclipse.equinox.p2.extensionlocation_1.2.100.v20110510.jar                  bundle         epl1      
-org.eclipse.equinox.p2.garbagecollector_1.0.200.v20110510.jar                   bundle         epl1      
-org.eclipse.equinox.p2.jarprocessor_1.0.200.v20110502-1955.jar                  bundle         epl1      
-org.eclipse.equinox.p2.metadata.repository_1.2.0.v20110511-1359.jar             bundle         epl1      
-org.eclipse.equinox.p2.metadata_2.1.0.v20110510.jar                             bundle         epl1      
-org.eclipse.equinox.p2.publisher_1.2.0.v20110511.jar                            bundle         epl1      
-org.eclipse.equinox.p2.repository.tools_2.0.100.v20110512-1320.jar              bundle         epl1      
-org.eclipse.equinox.p2.repository_2.1.0.v20110601.jar                           bundle         epl1      
-org.eclipse.equinox.p2.touchpoint.eclipse_2.1.0.v20110511-wso2v1.jar            bundle         epl1      
-org.eclipse.equinox.p2.touchpoint.natives_1.0.300.v20110502-1955.jar            bundle         epl1      
-org.eclipse.equinox.p2.transport.ecf_1.0.100.v20110902-0807.jar                 bundle         epl1      
-org.eclipse.equinox.p2.updatechecker_1.1.200.v20110502-1955.jar                 bundle         epl1      
-org.eclipse.equinox.p2.updatesite_1.0.300.v20110510.jar                         bundle         epl1      
-org.eclipse.equinox.preferences_3.5.0.v20120522-1841.jar                        bundle         epl1      
-org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar                         bundle         epl1      
-org.eclipse.equinox.security_1.1.100.v20120522-1841.jar                         bundle         epl1      
-org.eclipse.equinox.simpleconfigurator.manipulator_2.0.0.v20110808-1657.jar     bundle         epl1      
-org.eclipse.equinox.simpleconfigurator_1.0.301.v20120828-033635.jar             bundle         epl1      
-org.eclipse.equinox.util_1.0.400.v20120522-2049.jar                             bundle         epl1      
-org.eclipse.osgi.services_3.3.0.v20110513.jar                                   bundle         epl1      
-org.eclipse.osgi.services_3.3.100.v20120522-1822.jar                            bundle         epl1      
-org.eclipse.osgi_3.8.1.v20120830-144521.jar                                     bundle         epl1      
-org.sat4j.core_2.3.0.v20110329.jar                                              bundle         epl1      
-org.sat4j.pb_2.3.0.v20110329.jar                                                bundle         epl1      
-org.wso2.carbon.adc.instanceinfo.mgt.stub_4.1.1.jar                             bundle         apache2   
-org.wso2.carbon.addressing_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.apache.jasper.fragment_4.1.0.jar                                bundle         apache2   
-org.wso2.carbon.application.deployer_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.authenticator.proxy_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.authenticator.stub_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.base_4.1.0.jar                                                  bundle         apache2   
-org.wso2.carbon.bootstrap-4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.bridge-4.1.0.jar                                                bundle         apache2   
-org.wso2.carbon.caching.core_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.cartridge.agent_2.1.3.jar                                       bundle         apache2   
-org.wso2.carbon.cartridge.messages_2.1.1.jar                                    bundle         apache2   
-org.wso2.carbon.cluster.mgt.core_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.core.bootup.validator_4.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.core.commons.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.core.common_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.core.services_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.core_4.1.0.jar                                                  bundle         apache2   
-org.wso2.carbon.feature.mgt.core_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.feature.mgt.services_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.feature.mgt.stub_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.framework.exporter_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.http.bridge-4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.i18n_4.1.0.jar                                                  bundle         apache2   
-org.wso2.carbon.jasper.patch_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.lb.common_4.1.3.jar                                             bundle         apache2   
-org.wso2.carbon.logging-4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.logging_4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.mediator.bridge-4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.ndatasource.common_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.ndatasource.core_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.ndatasource.rdbms_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.osgi.security_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.queuing_4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.registry.api_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.registry.core_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.registry.server_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.roles.mgt.stub_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.roles.mgt_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.securevault_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.server-4.1.0.jar                                                bundle         apache2   
-org.wso2.carbon.server.admin.common_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.server.admin.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.server.admin_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.servletbridge-4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.tomcat.ext_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.tomcat.fragment.dummy_4.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.tomcat.patch_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.tomcat_4.1.0.jar                                                bundle         apache2   
-org.wso2.carbon.user.api_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.user.core_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.user.mgt.common_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.user.mgt.stub_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.user.mgt_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.utils_4.1.0.jar                                                 bundle         apache2   
-org.wso2.ciphertool-1.0.0-wso2v2.jar                                            bundle         apache2   
-org.wso2.securevault_1.0.0.wso2v2.jar                                           bundle         apache2   
-pdepublishing-ant.jar                                                           jar            epl1      
-pdepublishing.jar                                                               jar            epl1      
-poi-ooxml_3.5.0.wso2v1.jar                                                      bundle         apache2   
-poi-scratchpad_3.5.0.wso2v1.jar                                                 bundle         apache2   
-poi_3.5.0.wso2v1.jar                                                            bundle         apache2   
-quartz_2.1.1.wso2v1.jar                                                         bundle         apache2   
-rampart-1.6.1-wso2v9.mar                                                        bundle         apache2   
-rampart-core_1.6.1.wso2v8.jar                                                   bundle         apache2   
-rampart-policy_1.6.1.wso2v8.jar                                                 bundle         apache2   
-rampart-trust_1.6.1.wso2v8.jar                                                  bundle         apache2   
-saxon_8.9.0.wso2v1.jar                                                          bundle         mpl10     
-slf4j.api_1.6.4.jar                                                             bundle         mit       
-slf4j.log4j12_1.6.4.jar                                                         bundle         mit       
-synapse-commons_2.1.1.wso2v4.jar                                                bundle         apache2   
-synapse-core_2.1.1.wso2v4.jar                                                   bundle         apache2   
-synapse-extensions_2.1.1.wso2v4.jar                                             bundle         apache2   
-synapse-tasks_2.1.1.wso2v4.jar                                                  bundle         apache2   
-tcpmon-1.0.jar                                                                  jar            apache2   
-tiles-jsp_2.0.5.wso2v1.jar                                                      bundle         apache2   
-tomcat-ha_7.0.34.wso2v1.jar                                                     bundle         apache2   
-tomcat-juli-7.0.34.jar                                                          jar            apache2   
-tomcat_7.0.34.wso2v1.jar                                                        bundle         apache2   
-tribes_7.0.28.wso2v1.jar                                                        bundle         apache2   
-woden_1.0.0.M8-wso2v1.jar                                                       bundle         apache2   
-wsdl4j_1.6.2.wso2v4.jar                                                         bundle         cpl1      
-wss4j_1.5.11.wso2v5.jar                                                         bundle         apache2   
-xalan-2.7.1.wso2v1.jar                                                          bundle         apache2   
-xercesImpl-2.8.1.wso2v2.jar                                                     bundle         apache2   
-xml-apis-1.3.04.wso2v2.jar                                                      bundle         apache2   
-xmlbeans-2.3.0.jar                                                              jarinbundle    apache2   
-xmlbeans_2.3.0.wso2v1.jar                                                       bundle         apache2   
-XmlSchema_1.4.7.wso2v2.jar                                                      bundle         apache2   
-xmltooling-1.3.1.jar                                                            jarinbundle    apache2   
-
-
-
-The license types used by the above libraries and their information is given below:
-
-cddl+gpl       CDDL + GPLv2
-               https://glassfish.dev.java.net/public/CDDL+GPL.html
-cpl1           Common Public License 1.0
-               http://www.eclipse.org/legal/cpl-v10.html
-epl1           Eclipse Public License
-               http://www.eclipse.org/legal/epl-v10.html
-jsmon          ThoughtWorks Javasysmon License
-               https://github.com/jezhumble/javasysmon/blob/master/LICENSE
-lgpl2          Lesser GPL v2.1
-               http://www.opensource.org/licenses/lgpl-2.1.php
-apache2        Apache License Version 2.0
-               http://www.apache.org/licenses/LICENSE-2.0.html
-mpl10          Mozilla Public License 1.0
-               http://www.mozilla.org/MPL/
-mit            MIT License
-               http://www.opensource.org/licenses/mit-license.php
-bsd            Berkeley License
-               http://www.opensource.org/licenses/bsd-license.php
-cddl1          Common Development and Distribution License
-               http://www.opensource.org/licenses/cddl1.php
-bouncy         Bouncy Castle License
-               http://www.bouncycastle.org/licence.html
-public         Public Domain
-               http://creativecommons.org/licenses/publicdomain/

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/README.txt
----------------------------------------------------------------------
diff --git a/products/stratos_agent/README.txt b/products/stratos_agent/README.txt
deleted file mode 100755
index 2b1e978..0000000
--- a/products/stratos_agent/README.txt
+++ /dev/null
@@ -1,114 +0,0 @@
-================================================================================
-                        Apache Stratos Agent 1.0.1
-================================================================================
-
-Welcome to the Apache Stratos Agent 1.0.1 release
-
-Apache Stratos Agent provides services to Non-Carbon Cartridges and it helps
-to communicate the status of Cartridge Instances with Apache Stratos Controller.
-
-System Requirements
-==================================
-
-1. Minimum memory - 1GB
-2. Processor      - Pentium 800MHz or equivalent at minimum
-3. Java SE Development Kit 1.6.0_24 or higher
-
-
-Apache Stratos Agent 1.0.1 distribution directory structure
-=========================================================
-
-    CARBON_HOME
-	|- bin <folder>
-	|- lib <folder>
-	|- repository <folder>
-	|- tmp <folder>
-	|- LICENSE.txt <file>
-	|- README.txt <file>
-	|- INSTALL.txt <file>		
-	|- release-notes.html <file>
-
-    - bin
-	  Contains various scripts, .sh & .bat files
-
-    - dbscripts
-    Contains all the database scripts
-
-    - lib
-	  Contains the basic set of libraries required to startup Stratos Agent
-	  in standalone mode
-
-    - repository
-	  The repository where services and modules deployed in Apache Stratos Agent
-	  are stored. In addition to this, the components directory inside the
-	  repository directory contains the carbon runtime and the user added
-	  jar files including mediators, third party libraries etc. All
-	  global and LB specific configuration files, generated log files
-	  and other deployed artifacts are also housed under this directory.
-
-    - tmp
-	  Used for storing temporary files, and is pointed to by the
-	  java.io.tmpdir System property
-
-    - LICENSE.txt
-	  Apache License 2.0 and the relevant other licenses under which
-	  Apache Stratos Agent is distributed.
-
-    - README.txt
-	  This document.
-
-    - INSTALL.txt
-      This document will contain information on installing Apache Stratos Agent
-
-
-Support
-==================================
-
-Any problem with this release can be reported to Apache Stratos mailing list
-or in the JIRA issue tracker. If you are sending an email to the mailing
-list make sure to add the [Apache Stratos] prefix to the subject.
-
-Mailing list subscription:
-    dev-subscribe@stratos.incubator.apache.org
-
-
-Issue Tracker
-==================================
-
-Jira:
-    https://issues.apache.org/jira/browse/stratos
-
-
-Crypto Notice
-==================================
-
-   This distribution includes cryptographic software.  The country in
-   which you currently reside may have restrictions on the import,
-   possession, use, and/or re-export to another country, of
-   encryption software.  BEFORE using any encryption software, please
-   check your country's laws, regulations and policies concerning the
-   import, possession, or use, and re-export of encryption software, to
-   see if this is permitted.  See <http://www.wassenaar.org/> for more
-   information.
-
-   The U.S. Government Department of Commerce, Bureau of Industry and
-   Security (BIS), has classified this software as Export Commodity
-   Control Number (ECCN) 5D002.C.1, which includes information security
-   software using or performing cryptographic functions with asymmetric
-   algorithms.  The form and manner of this Apache Software Foundation
-   distribution makes it eligible for export under the License Exception
-   ENC Technology Software Unrestricted (TSU) exception (see the BIS
-   Export Administration Regulations, Section 740.13) for both object
-   code and source code.
-
-   The following provides more details on the included cryptographic
-   software:
-
-   Apache Rampart   : http://ws.apache.org/rampart/
-   Apache WSS4J     : http://ws.apache.org/wss4j/
-   Apache Santuario : http://santuario.apache.org/
-   Bouncycastle     : http://www.bouncycastle.org/
-
-
-Thank you for using Apache Stratos!
-The Stratos Team.

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/docs/xdoc/release-notes.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/docs/xdoc/release-notes.xml b/products/stratos_agent/docs/xdoc/release-notes.xml
deleted file mode 100644
index 65d02bb..0000000
--- a/products/stratos_agent/docs/xdoc/release-notes.xml
+++ /dev/null
@@ -1,169 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<!DOCTYPE html
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-  <head>
-      <meta content="text/html; charset=iso-8859-1" http-equiv="content-type"/>
-      <title>Apache Stratos ELB v2.0.3 Release </title>
-  </head>
-  <body>
-  <div id="header">
-</div>
-
-<div id="main-content">
-<h1>The Apache Stratos Elastic Load Balancer (ELB) 2.0.3 Release - 28th January 2013!</h1>
-
-<p>
-    The Apache Stratos ELB team is pleased to announce the release of version 2.0.3 of
-    the Open Source Elastic Load Balancer (ELB).
-</p>
-
-<p>
-    Apache Stratos ELB is a fast, lightweight and user friendly open source Elastic Load Balancer (ELB)
-    distributed under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache
-    Software License v2.0</a>. Apache Stratos ELB allows system administrators and developers to
-    easily configure fail over routing, load balancing, service aware load balancing, 
-    tenant aware load balancing and dynamic load balancing with auto scaling.The ELB runtime 
-    is designed to be completely asynchronous, non-blocking and streaming based on the 
-    <a href="http://synapse.apache.org">Apache Synapse</a> mediation engine.
-</p>
-
-<p>
-    Apache Stratos ELB 2.0.3 is developed on top of the revolutionary
-    <a href="http://wso2.org/projects/carbon">WSO2 Carbon platform</a> (Middleware a' la carte),
-    an OSGi based framework that provides seamless modularity to your SOA via
-    componentization. This release also contains many new features and a range of optional
-    components (add-ons) that can be installed to customize the behavior of the ELB. Further, any
-    existing features of the ELB which are not required to your environment can be easily
-    removed using the underlying provisioning framework of Carbon. In brief, Apache Stratos ELB can
-    be fully customized and tailored to meet your exact SOA needs.
-</p>
-
-<p>
-    You can download this distribution from <a href="http://wso2.com/products/elastic-load-balancer/">
-    http://wso2.com/products/elastic-load-balancer/</a> our product page and give it a try.</p>
-
-<h2>How to Run </h2>
-<ol>
-  <li>Extract the downloaded zip</li>
-  <li>Go to the bin directory in the extracted folder</li>
-  <li>Run the stratos.sh or stratos.bat as appropriate</li>
-  <li>Configure the load balancer to manage the load across the instances to be balanced.</li>
-  <li>If you need to start the OSGi console with the server use the property
-    -DosgiConsole when starting the server. The INSTALL.txt file found on the
-    installation directory will give you a comprehensive set of options and
-    properties that can be passed into the startup script</li>
-</ol>
-
-<h2>Key Features of Apache Stratos ELB</h2>
-<ul>
-  <li>Non-blocking HTTP/S transports based on Apache HttpCore-NIO for ultra-fast
-   execution and support for thousands of connections at high concurrency with
-   constant memory usage. Integrated high performing, Passthrough Transport.</li>
-  <li>Load-balancing (with or without sticky sessions)/Fail-over, and clustered
-   Throttling and Caching support</li>
-  <li>Lightweight, XML and Web services centric messaging model</li>
-  <li><b>NEW! Automatically scaling the system according to the number of requests in-flight for 
-          a particular service cluster - "Scale up early, scale down slowly"</b> 
-  </li>
-  <li>Service aware dynamic load balancing - A single load balancer
-   can centrally manage the load across the nodes of different service clusters.
-  </li>
-  <li>Tenant aware load balancing - Tenants can be loaded and unloaded dynamically.
-   Tenants can be partitioned to different service clusters.
-</ul>
-
-<h2>Known Issues</h2>
-<p>
-    All the open issues pertaining to Apache Stratos ELB 2.0.3 are reported at following
-    locations:
-</p>
-
-<ul>
-    <li>
-        <a href="http://goo.gl/W8KYs">
-            Open ELB issues
-        </a>
-    </li>
-</ul>
-
-    <h2>Release 2.0.3</h2>
-    <p>Change Log: This release brings out the autoscaling support for ELB and also contains fixes for some critical issues.</p>
-    <ol>
-        <li>LB-17 - SSO Enables deployment does not work with load balancer.</li>
-        <li>LB-31 - No response code in the access log.</li>
-        <li>LB-37 - Browser tries to save the page sent via LB time to time rather than display it.</li>
-        <li>LB-51 - Disable management console in LB and do not print mgmt console URL at startup.</li>
-        <li>LB-52 - When member leaves the cluster, session continued to bind to that cluster member.</li>
-        <li>LB-55 - Make autoscaling algorithm configurable.</li>
-        <li>LB-64 - Failover is broken in ELB.</li>
-        <li>LB-65 - If one member of a cluster is going off and during that time, the requests redirected to that member by the load balancer, will be failed with a timeout, until the load balancer gets updated that this member has left cluster.</li>
-        <li>LB-66 - Embed Cloud Controller Service aka Autoscaler Service into ELB.</li>
-    </ol>
-
-<h2>How You Can Contribute</h2>
-    <h3>
-      Mailing Lists
-    </h3>
-    <p>
-      Join our mailing list and correspond with the developers directly.
-    </p>
-    <ul>
-      <li>
-        Developer List : <a href="mailto:dev@wso2.org">dev@wso2.org</a>
-        | <a href="mailto:dev-request@wso2.org?subject=subscribe">Subscribe</a>
-        | <a href="http://wso2.org/mailarchive/carbon-dev/">Mail Archive</a>
-      </li>
-    </ul>
-    <h3>
-      Reporting Issues
-    </h3>
-    <p>
-      We encourage you to report issues, documentation faults and feature requests regarding
-      Apache Stratos ELB through the public <a href="https://wso2.org/jira/browse/LB">ELB JIRA</a>. You
-      can use the <a href="https://wso2.org/jira/browse/CARBON">Carbon JIRA</a> to report any
-      issues related to the Carbon base framework or associated Carbon components.
-    </p>
-
-    <h3>
-      Discussion Forums
-    </h3>
-    <p>
-      Alternatively, questions could be raised using <a href="http://stackoverflow.com/questions/tagged/wso2">StackOverflow</a> website.
-    </p>
-
-<h2>Support</h2>
-<p>
-    We are committed to ensuring that your enterprise middleware deployment is
-    completely supported from evaluation to production. Our unique approach
-    ensures that all support leverages our open development methodology and is
-    provided by the very same engineers who build the technology.
-</p>
-<p>
-    For more details and to take advantage of this unique opportunity please
-    visit <a href="http://wso2.com/support">http://wso2.com/support</a>.
-</p>
-
-<p><i>-- The Apache Stratos ELB Team --</i> </p>
-</div>
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/pom.xml b/products/stratos_agent/modules/distribution/pom.xml
deleted file mode 100755
index 8ed5e1e..0000000
--- a/products/stratos_agent/modules/distribution/pom.xml
+++ /dev/null
@@ -1,594 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-    <parent>
-        <groupId>org.apache.stratos</groupId>
-        <artifactId>stratos-agent-parent</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
-        <relativePath>../../pom.xml</relativePath>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>stratos-s2-agent</artifactId>
-    <packaging>pom</packaging>
-    <name>Apache Stratos - Agent - Distribution</name>
-    <url>http://apache.org</url>
-    <description>WSO2 Stratos Agent Distribution</description>
-
-    <dependencies>
-
-        <!-- Carbon core distribution -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>wso2carbon-core</artifactId>
-            <version>${carbon.version}</version>
-            <type>zip</type>
-        </dependency>
-
-        <!-- Synapse dependencies -->
-        <dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-commons</artifactId>
-            <version>${synapse.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-nhttp-transport</artifactId>
-            <version>${synapse.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-pipe-transport</artifactId>
-            <version>${synapse.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-core</artifactId>
-            <version>${synapse.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-tasks</artifactId>
-            <version>${synapse.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.synapse</groupId>
-            <artifactId>synapse-extensions</artifactId>
-            <version>${synapse.version}</version>
-        </dependency>
-
-        <!-- Carbon mediation initializer -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediation.initializer</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.bridge</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-	      <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediation.dependency.mgt</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-
-        
-        <!-- ### Required Carbon components ### -->
-        <!-- Transport managament components -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.transport.mgt</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Transport components -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.transport.http</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.transport.nhttp</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.transport.https</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.transport.mail</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Sequence management components -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.service</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.sequences.common</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.sequences</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.router.impl</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.clazz.services</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.command.services</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        
-         <!--Entitlement mediator dependency -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.identity.entitlement.mediator</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        
-         <!--OAuth mediator dependency -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.identity.oauth.mediator</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-
-        <!--Drools dependency-->
-        <dependency>
-            <groupId>org.drools.wso2</groupId>
-            <artifactId>drools</artifactId>
-            <version>5.0.1.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>jsr94.wso2</groupId>
-            <artifactId>jsr94</artifactId>
-            <version>1.1.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.mvel.wso2</groupId>
-            <artifactId>mvel2</artifactId>
-            <version>2.0.10.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>joda-time.wso2</groupId>
-            <artifactId>joda-time</artifactId>
-            <version>1.6.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.antlr.wso2</groupId>
-            <artifactId>antlr-runtime</artifactId>
-            <version>3.1.1.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>janino.wso2</groupId>
-            <artifactId>janino</artifactId>
-            <version>2.5.15.wso2v1</version>
-        </dependency>
-        <!-- Endpoints component -->
-	      <!--dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.endpoint.common</artifactId>
-            <version>${carbon.version}</version>
-        </dependency-->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.endpoint</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Local Entries component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.localentry</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Service management component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.service.mgt</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Operation management component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.operation.mgt</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Module Management component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.module.mgt</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Security components (orbit) -->
-         <dependency>
-            <groupId>org.apache.rampart.wso2</groupId>
-            <artifactId>rampart-policy</artifactId>
-            <version>1.6.1.wso2v1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.rampart.wso2</groupId>
-            <artifactId>rampart-trust</artifactId>
-            <version>1.6.1.wso2v1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.rampart.wso2</groupId>
-            <artifactId>rampart-core</artifactId>
-            <version>1.6.1.wso2v1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.rampart</groupId>
-            <artifactId>rampart</artifactId>
-            <type>mar</type>
-            <version>1.6.1-wso2v9</version>
-        </dependency>
-        
-        <!-- Policy Editor component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.policyeditor</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Task component with startups -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.startup</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.task</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.task.services</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Synapse Config admin component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediation.configadmin</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Synapse Registry component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediation.registry</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Datasources component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.datasource</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Throttle component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.throttle</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Caching component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.caching</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- RM component -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.rm</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- Eventing components -->
-        <!--dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.eventing</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.eventing.core</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.eventing.impl</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.eventing.broker</artifactId>
-            <version>${carbon.version}</version>
-        </dependency-->
-        <!-- Eventsource component.-->
-	      <!-- Removed since this is not required by LB product.-->
-        <!--dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.eventing.eventsource</artifactId>
-            <version>${carbon.version}</version>
-        </dependency-->
-        <!-- Menus -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.ui.menu.registry</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        <!-- ### Required Carbon orbit dependencies ### -->
-        <dependency>
-            <groupId>org.apache.geronimo.specs.wso2</groupId>
-            <artifactId>geronimo-jms_1.1_spec</artifactId>
-            <version>1.1.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.andes.wso2</groupId>
-            <artifactId>andes-client</artifactId>
-            <version>0.13.wso2v5</version>
-        </dependency>
-        <dependency>
-            <groupId>commons-net.wso2</groupId>
-            <artifactId>commons-net</artifactId>
-            <version>2.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>jsch.wso2</groupId>
-            <artifactId>jsch</artifactId>
-            <version>0.1.41-wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.httpcomponents.wso2</groupId>
-            <artifactId>httpcore-nio</artifactId>
-            <version>4.1.0.wso2v2</version>
-        </dependency>
-        <dependency>
-            <groupId>org.quartz-scheduler.wso2</groupId>
-            <artifactId>quartz</artifactId>
-            <version>2.1.1.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.codehaus.woodstox</groupId>
-            <artifactId>wstx-asl</artifactId>
-            <version>3.2.1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-stax-api_1.0_spec</artifactId>
-            <version>1.0.1</version>
-        </dependency>
-        <dependency>
-            <groupId>net.sf.saxon.wso2</groupId>
-            <artifactId>saxon</artifactId>
-            <version>8.9.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.abdera.wso2</groupId>
-            <artifactId>abdera</artifactId>
-            <version>1.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.springframework.ws.wso2</groupId>
-            <artifactId>spring.framework</artifactId>
-            <version>2.5.1.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>commons-io.wso2</groupId>
-            <artifactId>commons-io</artifactId>
-            <version>2.0.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>commons-collections.wso2</groupId>
-            <artifactId>commons-collections</artifactId>
-            <version>3.2.0.wso2v1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.ws.savan.wso2</groupId>
-            <artifactId>savan-core</artifactId>
-            <version>1.0.0-wso2v2</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.caching</groupId>
-            <artifactId>wso2caching-core</artifactId>
-            <version>3.5.0</version>
-        </dependency>
-        <!--Bouncycastle dependency for clients and servers-->
-        <dependency>
-            <groupId>bouncycastle</groupId>
-            <artifactId>bcprov-jdk15</artifactId>
-            <version>132</version>
-        </dependency>
-
-        <!-- autoscale components -->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.mediator.autoscale</artifactId>
-            <version>4.0.3</version>
-        </dependency>
-        
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.discovery.core</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-        
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.relay</artifactId>
-            <version>${carbon.version}</version>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-dependency-plugin</artifactId>
-                <version>2.0-alpha-4</version>
-                <inherited>false</inherited>
-                <executions>
-                    <execution>
-                        <id>unpack-wso2carbon</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>unpack</goal>
-                        </goals>
-                        <configuration>
-                            <artifactItems>
-                                <artifactItem>
-                                    <groupId>org.wso2.carbon</groupId>
-                                    <artifactId>wso2carbon-core</artifactId>
-                                    <version>${carbon.kernel.version}</version>
-                                    <type>zip</type>
-                                    <overWrite>true</overWrite>
-                                    <outputDirectory>target</outputDirectory>
-                                </artifactItem>
-                            </artifactItems>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
- 	    <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <version>1.1</version>
-                <executions>
-                    <execution>
-                        <id>extract-docs-from-components</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                        <configuration>
-                            <tasks>
-                                <property name="tempdir" value="target/docs-temp"/>
-                                <mkdir dir="${tempdir}"/>
-                                <unzip dest="${tempdir}">
-                                    <fileset dir="target">
-                                        <include name="${project.artifactId}-${project.version}.zip"/>
-                                    </fileset>
-                                </unzip>
-                                <copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/" overwrite="false">
-                                    <fileset dir="${tempdir}/${project.artifactId}-${project.version}/repository/components/">
-                                    </fileset>
-                                </copy>
-                                <delete file="target/${project.artifactId}-${project.version}.zip"/>
-                                <delete dir="${tempdir}"/>
-                                <mkdir dir="${tempdir}"/>
-                                <unzip dest="${tempdir}">
-                                    <fileset dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/">
-                                        <include name="*.ui*.jar"/>
-                                    </fileset>
-                                </unzip>
-                                <move todir="${tempdir}/web/" includeemptydirs="false">
-                                    <fileset dir="${tempdir}/web/">
-                                        <exclude name="**/yui/**"/>
-                                        <exclude name="**/ajax/**"/>
-                                        <exclude name="**/WEB-INF/**"/>
-                                        <include name="**/*.html"/>
-                                    </fileset>
-                                    <mapper type="glob" from="*.html" to="*.xml"/>
-                                </move>
-                                <delete dir="${tempdir}"/>
-                            </tasks>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>clean_target</id>
-                        <phase>install</phase>
-                        <configuration>
-                            <tasks>
-                                <delete dir="target/archive-tmp"/>
-                                <delete dir="target/dependency-maven-plugin-markers"/>
-                                <delete dir="target/maven-archiver"/>
-                                <delete dir="target/wso2carbon-core-${carbon.kernel.version}"/>
-                                <delete dir="target/sources"/>
-                                <delete dir="target/site"/>
-                                <delete dir="src/site"/>
-                            </tasks>
-                        </configuration>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>   
-
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-assembly-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>pre_dist</id>
-                        <phase>test</phase>
-                        <goals>
-                            <goal>attached</goal>
-                        </goals>
-                        <configuration>
-                            <filters>
-                                <filter>${basedir}/src/main/assembly/filter.properties</filter>
-                            </filters>
-                            <descriptors>
-                                <descriptor>src/main/assembly/dist.xml</descriptor>
-                            </descriptors>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>dist</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>attached</goal>
-                        </goals>
-                        <configuration>
-                            <filters>
-                                <filter>${basedir}/src/main/assembly/filter.properties</filter>
-                            </filters>
-                            <descriptors>
-                                <descriptor>src/main/assembly/bin.xml</descriptor>
-                            </descriptors>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
-    
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/conf/log4j.properties
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/conf/log4j.properties b/products/stratos_agent/modules/distribution/src/conf/log4j.properties
deleted file mode 100644
index 258b9ba..0000000
--- a/products/stratos_agent/modules/distribution/src/conf/log4j.properties
+++ /dev/null
@@ -1,168 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-#
-# This is the log4j configuration file used by WSO2 Carbon
-#
-# IMPORTANT : Please do not remove or change the names of any
-# of the Appenders defined here. The layout pattern & log file
-# can be changed using the WSO2 Carbon Management Console, and those
-# settings will override the settings in this file.
-#
-
-log4j.rootLogger=INFO, CARBON_CONSOLE, CARBON_LOGFILE, CARBON_MEMORY, CARBON_SYS_LOG
-
-log4j.logger.AUDIT_LOG=INFO, AUDIT_LOGFILE
-log4j.logger.org.apache.axis2.wsdl.codegen.writer.PrettyPrinter=ERROR, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.axis2.clustering=INFO, CARBON_CONSOLE, CARBON_LOGFILE
-log4j.logger.org.apache=INFO, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.catalina=WARN
-log4j.logger.org.apache.tomcat=WARN
-log4j.logger.org.wso2.carbon.apacheds=WARN
-log4j.logger.org.apache.directory.server.ldap=WARN
-log4j.logger.org.apache.directory.server.core.event=WARN
-log4j.logger.com.atomikos=INFO,ATOMIKOS
-log4j.logger.org.quartz=WARN
-log4j.logger.org.apache.jackrabbit.webdav=WARN
-log4j.logger.org.apache.juddi=ERROR
-log4j.logger.org.apache.commons.digester.Digester=WARN
-log4j.logger.org.apache.jasper.compiler.TldLocationsCache=WARN
-log4j.logger.org.apache.qpid=WARN
-log4j.logger.org.apache.qpid.server.Main=INFO
-log4j.logger.qpid.message=WARN
-log4j.logger.qpid.message.broker.listening=INFO
-log4j.logger.org.apache.tiles=WARN
-log4j.logger.org.apache.commons.httpclient=ERROR
-log4j.logger.org.apache.coyote=WARN
-log4j.logger.org.apache.solr=ERROR
-log4j.logger.org.infinispan=WARN
-log4j.logger.org.jgroups=ERROR
-log4j.logger.me.prettyprint.cassandra.hector.TimingLogger=ERROR
-log4j.logger.org.wso2=INFO
-log4j.logger.org.apache.axis2.enterprise=FATAL, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.opensaml.xml=WARN, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.shared.ldap=WARN, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.server.ldap.handlers=WARN, CARBON_LOGFILE, CARBON_MEMORY 
-#Following are to remove false error messages from startup (IS)
-log4j.logger.org.apache.directory.shared.ldap.entry.DefaultServerAttribute=FATAL, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.server.core.DefaultDirectoryService=ERROR, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.shared.ldap.ldif.LdifReader=ERROR, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.server.ldap.LdapProtocolHandler=ERROR, CARBON_LOGFILE, CARBON_MEMORY
-log4j.logger.org.apache.directory.server.core=ERROR, CARBON_LOGFILE, CARBON_MEMORY
-#Hive Related Log configurations
-log4j.logger.DataNucleus=ERROR
-log4j.logger.Datastore=ERROR
-log4j.logger.Datastore.Schema=ERROR
-log4j.logger.JPOX.Datastore=ERROR
-log4j.logger.JPOX.Plugin=ERROR
-log4j.logger.JPOX.MetaData=ERROR
-log4j.logger.JPOX.Query=ERROR
-log4j.logger.JPOX.General=ERROR
-log4j.logger.JPOX.Enhancer=ERROR
-log4j.logger.org.apache.hadoop.hive=WARN
-log4j.logger.hive=WARN
-log4j.logger.ExecMapper=WARN
-log4j.logger.ExecReducer=WARN
-log4j.logger.net.sf.ehcache.config.ConfigurationFactory=ERROR
-log4j.logger.org.apache.axis2.clustering.tribes.Axis2GroupChannel=FATAL
-
-log4j.logger.trace.messages=TRACE,CARBON_TRACE_LOGFILE
-
-log4j.additivity.org.apache.axis2.clustering=false
-log4j.additivity.com.atomikos=false
-
-# CARBON_CONSOLE is set to be a ConsoleAppender using a PatternLayout.
-log4j.appender.CARBON_CONSOLE=org.apache.log4j.ConsoleAppender
-log4j.appender.CARBON_CONSOLE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-# ConversionPattern will be overridden by the configuration setting in the DB
-log4j.appender.CARBON_CONSOLE.layout.ConversionPattern=[%d] %P%5p {%c} - %x %m%n
-log4j.appender.CARBON_CONSOLE.layout.TenantPattern=%U%@%D[%T]
-log4j.appender.CARBON_CONSOLE.threshold=DEBUG
-
-# CARBON_MEMORY is set to be a MemoryAppender using a PatternLayout.
-log4j.appender.CARBON_MEMORY=org.wso2.carbon.logging.appenders.MemoryAppender
-log4j.appender.CARBON_MEMORY.layout=org.apache.log4j.PatternLayout
-log4j.appender.CARBON_MEMORY.bufferSize=200
-# ConversionPattern will be overridden by the configuration setting in the DB
-#log4j.appender.CARBON_MEMORY.layout.ConversionPattern=[%d] %5p - %x %m {%c}%n
-log4j.appender.CARBON_MEMORY.layout.ConversionPattern=[%d] %5p {%c} - %x %m%n
-log4j.appender.CARBON_MEMORY.threshold=DEBUG
-
-
-# CARBON_LOGFILE is set to be a DailyRollingFileAppender using a PatternLayout.
-log4j.appender.CARBON_LOGFILE=org.apache.log4j.DailyRollingFileAppender
-# Log file will be overridden by the configuration setting in the DB
-# This path should be relative to WSO2 Carbon Home
-log4j.appender.CARBON_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon${instance.log}.log
-log4j.appender.CARBON_LOGFILE.Append=true
-log4j.appender.CARBON_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-# ConversionPattern will be overridden by the configuration setting in the DB
-log4j.appender.CARBON_LOGFILE.layout.ConversionPattern=TID: [%T] [%S] [%d] %P%5p {%c} - %x %m {%c}%n
-log4j.appender.CARBON_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
-log4j.appender.CARBON_LOGFILE.threshold=DEBUG
-
-log4j.appender.CARBON_SYS_LOG = org.apache.log4j.net.SyslogAppender
-log4j.appender.CARBON_SYS_LOG.layout=org.apache.log4j.PatternLayout
-log4j.appender.CARBON_SYS_LOG.layout.ConversionPattern=[%d] %5p {%c} - %x %m {%c}%n
-log4j.appender.CARBON_SYS_LOG.SyslogHost=localhost
-log4j.appender.CARBON_SYS_LOG.Facility=USER
-log4j.appender.CARBON_SYS_LOG.threshold=DEBUG
-
-# LOGEVENT is set to be a LogEventAppender using a PatternLayout to send logs to LOGEVENT 
-log4j.appender.LOGEVENT=org.wso2.carbon.logging.appender.LogEventAppender
-log4j.appender.LOGEVENT.url=tcp://10.100.3.103:7611
-log4j.appender.LOGEVENT.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-log4j.appender.LOGEVENT.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%I,%Stacktrace
-log4j.appender.LOGEVENT.userName=admin
-log4j.appender.LOGEVENT.password=admin
-
-# Appender config to CARBON_TRACE_LOGFILE
-log4j.appender.CARBON_TRACE_LOGFILE=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.CARBON_TRACE_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon-trace-messages${instance.log}.log
-log4j.appender.CARBON_TRACE_LOGFILE.Append=true
-log4j.appender.CARBON_TRACE_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-log4j.appender.CARBON_TRACE_LOGFILE.layout.ConversionPattern=[%d] %P%5p {%c} - %x %m {%c}%n
-log4j.appender.CARBON_TRACE_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
-log4j.appender.CARBON_TRACE_LOGFILE.threshold=TRACE
-log4j.additivity.trace.messages=false
-
-# Appender config to AUDIT_LOGFILE
-log4j.appender.AUDIT_LOGFILE=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.AUDIT_LOGFILE.File=${carbon.home}/repository/logs/audit.log
-log4j.appender.AUDIT_LOGFILE.Append=true
-log4j.appender.AUDIT_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-log4j.appender.AUDIT_LOGFILE.layout.ConversionPattern=[%d] %P%5p - %x %m %n
-log4j.appender.AUDIT_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
-log4j.appender.AUDIT_LOGFILE.threshold=INFO
-log4j.additivity.AUDIT_LOG=false
-
-# Appender config to send Atomikos transaction logs to new log file tm.out.
-log4j.appender.ATOMIKOS = org.apache.log4j.RollingFileAppender
-log4j.appender.ATOMIKOS.File = repository/logs/tm.out
-log4j.appender.ATOMIKOS.Append = true
-log4j.appender.ATOMIKOS.layout = org.apache.log4j.PatternLayout
-log4j.appender.ATOMIKOS.layout.ConversionPattern=%p %t %c - %m%n
-
-# This file is used to override the default logger settings, and is used to remove unwanted logs from Shindig appearing on the console.
-
-# Specification of Handler used by Console Logger
-handlers=java.util.logging.ConsoleHandler
-
-# Replacing default INFO level with SEVERE
-java.util.logging.ConsoleHandler.level=SEVERE


[32/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Constants.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Constants.java b/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Constants.java
new file mode 100644
index 0000000..3b615b2
--- /dev/null
+++ b/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Constants.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.services.mgt.util;
+
+public class Constants {
+    public static final String CLOUD_SERVICE_INFO_STORE_PATH =
+            "/repository/components/org.wso2.stratos/cloud-manager/cloud-services";
+    public static final String CLOUD_SERVICE_ICONS_STORE_PATH =
+            "/repository/components/org.wso2.stratos/cloud-manager/" +
+                    "cloud-services-icons";
+
+    public static final String CLOUD_SERVICE_IS_ACTIVE_PROP_KEY = "active";
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Util.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Util.java b/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Util.java
new file mode 100644
index 0000000..904537f
--- /dev/null
+++ b/products/stratos-controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Util.java
@@ -0,0 +1,264 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.services.mgt.util;
+
+import org.wso2.carbon.registry.core.Collection;
+import org.wso2.carbon.registry.core.RegistryConstants;
+import org.wso2.carbon.registry.core.Resource;
+import org.wso2.carbon.registry.core.exceptions.RegistryException;
+import org.wso2.carbon.registry.core.service.RegistryService;
+import org.wso2.carbon.registry.core.session.UserRegistry;
+import org.apache.stratos.common.config.CloudServiceConfig;
+import org.apache.stratos.common.config.CloudServicesDescConfig;
+import org.apache.stratos.common.config.PermissionConfig;
+import org.apache.stratos.common.constants.StratosConstants;
+import org.apache.stratos.common.util.CommonUtil;
+import org.wso2.carbon.user.api.RealmConfiguration;
+import org.wso2.carbon.user.core.service.RealmService;
+import org.wso2.carbon.user.core.tenant.TenantManager;
+import org.wso2.carbon.user.mgt.UserMgtConstants;
+import org.wso2.carbon.utils.CarbonUtils;
+
+import org.apache.axiom.om.OMElement;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.activation.MimetypesFileTypeMap;
+
+public class Util {
+
+    private static final Log log = LogFactory.getLog(Util.class);
+
+    private static final String CONFIG_FILENAME = "cloud-services-desc.xml";
+
+    private static RegistryService registryService;
+    private static RealmService realmService;
+    private static CloudServicesDescConfig cloudServicesDescConfig = null;
+
+    public static synchronized void setRegistryService(RegistryService service) {
+        if ((registryService == null) || (service == null)) {
+            registryService = service;
+        }
+    }
+
+    public static RegistryService getRegistryService() {
+        return registryService;
+    }
+
+    public static synchronized void setRealmService(RealmService service) {
+        if ((realmService == null) || (service == null)) {
+            realmService = service;
+        }
+    }
+
+    public static RealmService getRealmService() {
+        return realmService;
+    }
+
+    public static TenantManager getTenantManager() {
+        return realmService.getTenantManager();
+    }
+
+    public static RealmConfiguration getBootstrapRealmConfiguration() {
+        return realmService.getBootstrapRealmConfiguration();
+    }
+
+    public static UserRegistry getTenantZeroSystemGovernanceRegistry() throws RegistryException {
+        return registryService.getGovernanceSystemRegistry();
+    }
+
+    public static UserRegistry getSystemGovernanceRegistry(int tenantId) throws RegistryException {
+        return registryService.getGovernanceSystemRegistry(tenantId);
+    }
+
+    public static UserRegistry getSystemConfigRegistry(int tenantId) throws RegistryException {
+        return registryService.getConfigSystemRegistry(tenantId);
+    }
+
+    public static void loadCloudServicesConfiguration() throws Exception {
+        // now load the cloud services configuration
+        String configFileName =
+                CarbonUtils.getCarbonConfigDirPath() + File.separator + StratosConstants.MULTITENANCY_CONFIG_FOLDER +
+                        File.separator+ CONFIG_FILENAME;
+        OMElement configElement;
+        try {
+            configElement = CommonUtil.buildOMElement(new FileInputStream(configFileName));
+        } catch (Exception e) {
+            String msg = "Error in building the cloud service configuration. config filename: " +
+                            configFileName + ".";
+            log.error(msg, e);
+            throw new Exception(msg, e);
+        }
+        cloudServicesDescConfig = new CloudServicesDescConfig(configElement);
+    }
+
+    public static CloudServicesDescConfig getCloudServicesDescConfig() {
+        return cloudServicesDescConfig;
+    }
+
+    public static CloudServiceConfig getCloudServiceConfig(String cloudServiceName) {
+        Map<String, CloudServiceConfig> cloudServiceConfigs =
+                cloudServicesDescConfig.getCloudServiceConfigs();
+        return cloudServiceConfigs.get(cloudServiceName);
+    }
+
+    public static void setCloudServiceActive(boolean active, String cloudServiceName, 
+                                             int tenantId)throws Exception {
+        CloudServiceConfig cloudServiceConfig = getCloudServiceConfig(cloudServiceName);
+        if (cloudServiceConfig.getLabel() == null) {
+            // for the non-labeled services, we are not setting/unsetting the service active
+            return;
+        }
+
+        UserRegistry tenantZeroSystemGovernanceRegistry;
+        UserRegistry systemConfigRegistry;
+        try {
+            tenantZeroSystemGovernanceRegistry = Util.getTenantZeroSystemGovernanceRegistry();
+            systemConfigRegistry = Util.getSystemConfigRegistry(tenantId);
+        } catch (RegistryException e) {
+            String msg = "Error in getting the tenant 0 system config registry";
+            log.error(msg, e);
+            throw new Exception(msg, e);
+        }
+
+        String cloudServiceInfoPath =
+                Constants.CLOUD_SERVICE_INFO_STORE_PATH + RegistryConstants.PATH_SEPARATOR +
+                        tenantId + RegistryConstants.PATH_SEPARATOR + cloudServiceName;
+        Resource cloudServiceInfoResource;
+        if (tenantZeroSystemGovernanceRegistry.resourceExists(cloudServiceInfoPath)) {
+            cloudServiceInfoResource = tenantZeroSystemGovernanceRegistry.get(cloudServiceInfoPath);
+        } else {
+            cloudServiceInfoResource = tenantZeroSystemGovernanceRegistry.newCollection();
+        }
+        cloudServiceInfoResource.setProperty(Constants.CLOUD_SERVICE_IS_ACTIVE_PROP_KEY,
+                active ? "true" : "false");
+        tenantZeroSystemGovernanceRegistry.put(cloudServiceInfoPath, cloudServiceInfoResource);
+
+        // then we will copy the permissions
+        List<PermissionConfig> permissionConfigs = cloudServiceConfig.getPermissionConfigs();
+        for (PermissionConfig permissionConfig : permissionConfigs) {
+            String path = permissionConfig.getPath();
+            String name = permissionConfig.getName();
+            if (active) {
+                if (!systemConfigRegistry.resourceExists(path)) {
+                    Collection collection = systemConfigRegistry.newCollection();
+                    collection.setProperty(UserMgtConstants.DISPLAY_NAME, name);
+                    systemConfigRegistry.put(path, collection);
+                }
+            } else {
+                if (systemConfigRegistry.resourceExists(path)) {
+                    systemConfigRegistry.delete(path);
+                }
+            }
+        }
+    }
+
+    public static boolean isCloudServiceActive(String cloudServiceName, 
+                                               int tenantId)throws Exception {
+        UserRegistry systemGovernanceRegistry;
+        try {
+            systemGovernanceRegistry = Util.getTenantZeroSystemGovernanceRegistry();
+        } catch (RegistryException e) {
+            String msg = "Error in getting the tenant 0 system config registry";
+            log.error(msg, e);
+            throw new Exception(msg, e);
+        }
+
+        String cloudServiceInfoPath =
+                Constants.CLOUD_SERVICE_INFO_STORE_PATH + RegistryConstants.PATH_SEPARATOR +
+                        tenantId + RegistryConstants.PATH_SEPARATOR + cloudServiceName;
+        
+        if (systemGovernanceRegistry.resourceExists(cloudServiceInfoPath)) {
+            Resource cloudServiceInfoResource = systemGovernanceRegistry.get(cloudServiceInfoPath);
+            String isActiveStr = cloudServiceInfoResource.getProperty(
+                    Constants.CLOUD_SERVICE_IS_ACTIVE_PROP_KEY);
+            return "true".equals(isActiveStr);
+        }
+        
+        return false;
+    }
+
+    /**
+     * Currently this is not used, as the icons are loaded from the webapps
+     * 
+     * @throws Exception
+     */
+    public static void loadServiceIcons() throws Exception {
+        String serviceIconDirLocation =
+                CarbonUtils.getCarbonHome() + "/resources/cloud-service-icons";
+        File serviceIconDirDir = new File(serviceIconDirLocation);
+        UserRegistry registry = getTenantZeroSystemGovernanceRegistry();
+        try {
+            // adding the common media types
+            Map<String, String> extensionToMediaTypeMap = new HashMap<String, String>();
+            extensionToMediaTypeMap.put("gif", "img/gif");
+            extensionToMediaTypeMap.put("jpg", "img/gif");
+            extensionToMediaTypeMap.put("png", "img/png");
+
+            File[] filesAndDirs = serviceIconDirDir.listFiles();
+            if (filesAndDirs == null) {
+                return;
+            }
+            List<File> filesDirs = Arrays.asList(filesAndDirs);
+
+            for (File file : filesDirs) {
+                String filename = file.getName();
+                String fileRegistryPath = Constants.CLOUD_SERVICE_ICONS_STORE_PATH +
+                                RegistryConstants.PATH_SEPARATOR + filename;
+
+                // Add the file to registry
+                Resource newResource = registry.newResource();
+                String mediaType = null;
+                if (filename.contains(".")) {
+                    String fileExt = filename.substring(filename.lastIndexOf(".") + 1);
+                    mediaType = extensionToMediaTypeMap.get(fileExt.toLowerCase());
+                }
+                if (mediaType == null) {
+                    mediaType = new MimetypesFileTypeMap().getContentType(file);
+                }
+                newResource.setMediaType(mediaType);
+                newResource.setContentStream(new FileInputStream(file));
+                registry.put(fileRegistryPath, newResource);
+            }
+        } catch (Exception e) {
+            String msg = "Error loading icons to the system registry for registry path: " +
+                            Constants.CLOUD_SERVICE_ICONS_STORE_PATH;
+            log.error(msg, e);
+            throw new Exception(msg, e);
+        }
+
+        try {
+            CommonUtil.setAnonAuthorization(RegistryConstants.GOVERNANCE_REGISTRY_BASE_PATH + 
+                    Constants.CLOUD_SERVICE_ICONS_STORE_PATH, registry.getUserRealm());
+        } catch (RegistryException e) {
+            String msg = "Setting the annon access enabled for the services icons paths.";
+            log.error(msg, e);
+            throw new Exception(msg, e);
+        }
+
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/cloud-service-mgt/src/main/resources/META-INF/component.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/cloud-service-mgt/src/main/resources/META-INF/component.xml b/products/stratos-controller/modules/cloud-service-mgt/src/main/resources/META-INF/component.xml
new file mode 100644
index 0000000..29bdc6b
--- /dev/null
+++ b/products/stratos-controller/modules/cloud-service-mgt/src/main/resources/META-INF/component.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  #  Licensed to the Apache Software Foundation (ASF) under one
+  #  or more contributor license agreements.  See the NOTICE file
+  #  distributed with this work for additional information
+  #  regarding copyright ownership.  The ASF licenses this file
+  #  to you under the Apache License, Version 2.0 (the
+  #  "License"); you may not use this file except in compliance
+  #  with the License.  You may obtain a copy of the License at
+  #
+  #  http://www.apache.org/licenses/LICENSE-2.0
+  #
+  #  Unless required by applicable law or agreed to in writing,
+  #  software distributed under the License is distributed on an
+  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  #  KIND, either express or implied.  See the License for the
+  #  specific language governing permissions and limitations
+  #  under the License.
+  -->
+
+<component xmlns="http://products.wso2.org/carbon">
+    <ManagementPermissions>
+        <ManagementPermission>
+            <DisplayName>Configure</DisplayName>
+            <ResourceId>/permission/admin/configure</ResourceId>
+        </ManagementPermission>
+        <ManagementPermission>
+            <DisplayName>Cloud-Services</DisplayName>
+            <ResourceId>/permission/admin/configure/cloud-services</ResourceId>
+        </ManagementPermission>
+   </ManagementPermissions>
+</component>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/cloud-service-mgt/src/main/resources/META-INF/services.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/cloud-service-mgt/src/main/resources/META-INF/services.xml b/products/stratos-controller/modules/cloud-service-mgt/src/main/resources/META-INF/services.xml
new file mode 100644
index 0000000..efc772e
--- /dev/null
+++ b/products/stratos-controller/modules/cloud-service-mgt/src/main/resources/META-INF/services.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  #  Licensed to the Apache Software Foundation (ASF) under one
+  #  or more contributor license agreements.  See the NOTICE file
+  #  distributed with this work for additional information
+  #  regarding copyright ownership.  The ASF licenses this file
+  #  to you under the Apache License, Version 2.0 (the
+  #  "License"); you may not use this file except in compliance
+  #  with the License.  You may obtain a copy of the License at
+  #
+  #  http://www.apache.org/licenses/LICENSE-2.0
+  #
+  #  Unless required by applicable law or agreed to in writing,
+  #  software distributed under the License is distributed on an
+  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  #  KIND, either express or implied.  See the License for the
+  #  specific language governing permissions and limitations
+  #  under the License.
+  -->
+<serviceGroup>
+    <service name="CloudManagerService" scope="transportsession">
+        <transports>
+            <transport>https</transport>
+        </transports>
+        <parameter name="ServiceClass" locked="false">
+            org.apache.stratos.manager.services.mgt.services.CloudManagerService
+        </parameter>
+        <operation name="retrieveCloudServiceInfo">
+            <parameter name="AuthorizationAction" locked="true">/permission/admin/login</parameter>
+        </operation>
+        <operation name="saveCloudServicesActivity">
+            <parameter name="AuthorizationAction" locked="true">/permission/admin/configure/cloud-services</parameter>
+        </operation>
+        <operation name="activate">
+            <parameter name="AuthorizationAction" locked="true">/permission/admin/configure/cloud-services</parameter>
+        </operation>
+        <operation name="deactivate">
+            <parameter name="AuthorizationAction" locked="true">/permission/admin/configure/cloud-services</parameter>
+        </operation>
+    </service>
+    <parameter name="adminService" locked="true">true</parameter>
+    <parameter name="hiddenService" locked="true">true</parameter>
+</serviceGroup>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/pom.xml b/products/stratos-controller/modules/dashboard/pom.xml
new file mode 100644
index 0000000..6e2a5da
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/pom.xml
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+	<groupId>org.apache.stratos</groupId>
+	<artifactId>stratos-controller-parent</artifactId>
+	<version>3.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.stratos.manager.dashboard.ui</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Stratos - Cloud Manager Dashboard User Interface</name>
+
+    <build>
+
+        <plugins>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+                        <Bundle-Name>${project.artifactId}</Bundle-Name>
+                        <Export-Package>
+                            org.apache.stratos.manager.dashboard.ui.*,
+                        </Export-Package>
+                        <Import-Package>
+                            org.wso2.carbon.ui.servlets.*,
+                            javax.servlet; version=2.4.0,
+                            javax.servlet.http; version=2.4.0,
+                            org.apache.lucene.*,
+                            *;resolution:=optional
+                        </Import-Package>
+                        <Carbon-Component>UIBundle</Carbon-Component>
+                    </instructions>
+                </configuration>
+            </plugin>
+            
+        </plugins>
+    </build>
+
+   
+    <dependencies>
+
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.registry.common.ui</artifactId>
+            <version>${wso2carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.registry.core</artifactId>
+            <version>${wso2carbon.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2.wso2</groupId>
+            <artifactId>axis2</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ws.commons.axiom.wso2</groupId>
+            <artifactId>axiom</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.ui</artifactId>
+            <version>${wso2carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.core</artifactId>
+            <version>${wso2carbon.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.registry.profiles.ui</artifactId>
+            <version>${registry-component.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.registry.resource.ui</artifactId>
+            <version>${governance-component.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.account.mgt.ui</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.common</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.manager.dashboard.stub</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+    </dependencies>
+
+    <properties>
+        <eclipse.version>3.2.0</eclipse.version>
+        <!-- Component versions == Carbon version, if not, please change the properties below. -->
+        <registry-component.version>4.1.0</registry-component.version>
+       <governance-component.version>4.1.0</governance-component.version>
+    </properties>
+
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/clients/CloudManagerServiceClient.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/clients/CloudManagerServiceClient.java b/products/stratos-controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/clients/CloudManagerServiceClient.java
new file mode 100644
index 0000000..5359afa
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/clients/CloudManagerServiceClient.java
@@ -0,0 +1,124 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.dashboard.ui.clients;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.client.Options;
+import org.apache.axis2.client.ServiceClient;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.wso2.carbon.CarbonConstants;
+import org.wso2.carbon.context.CarbonContext;
+import org.wso2.carbon.registry.core.exceptions.RegistryException;
+import org.wso2.carbon.ui.CarbonUIUtil;
+import org.wso2.carbon.utils.ServerConstants;
+import org.apache.stratos.manager.dashboard.stub.CloudManagerServiceStub;
+import org.apache.stratos.manager.dashboard.stub.xsd.CloudService;
+
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletRequest;
+import javax.servlet.http.HttpSession;
+
+public class CloudManagerServiceClient {
+     private static final Log log = LogFactory.getLog(CloudManagerServiceClient.class);
+
+    private CloudManagerServiceStub stub;
+    private String epr;
+    public static final String CLOUD_SERVICE = "cloudService";
+
+    public CloudManagerServiceClient(
+            String cookie, String backendServerURL, ConfigurationContext configContext)
+            throws RegistryException {
+
+        epr = backendServerURL + "CloudManagerService";
+
+        try {
+            stub = new CloudManagerServiceStub(configContext, epr);
+
+            ServiceClient client = stub._getServiceClient();
+            Options option = client.getOptions();
+            option.setManageSession(true);
+            option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
+
+        } catch (AxisFault axisFault) {
+            String msg = "Failed to initiate AddServices service client. " + axisFault.getMessage();
+            log.error(msg, axisFault);
+            throw new RegistryException(msg, axisFault);
+        }
+    }
+
+    public CloudManagerServiceClient(ServletRequest request, ServletConfig config, HttpSession session)
+            throws RegistryException {
+
+        String cookie = (String)session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
+        String backendServerURL = CarbonUIUtil.getServerURL(config.getServletContext(), session);
+        ConfigurationContext configContext = (ConfigurationContext) config.
+                getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);
+        epr = backendServerURL + "CloudManagerService";
+
+        try {
+            stub = new CloudManagerServiceStub(configContext, epr);
+
+            ServiceClient client = stub._getServiceClient();
+            Options option = client.getOptions();
+            option.setManageSession(true);
+            option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
+
+        } catch (AxisFault axisFault) {
+            String msg = "Failed to initiate Add Services service client. " + axisFault.getMessage();
+            log.error(msg, axisFault);
+            throw new RegistryException(msg, axisFault);
+        }
+    }
+
+    public CloudService[] retrieveCloudServiceInfo() throws Exception {
+        try {
+            if (CarbonContext.getCurrentContext().getCache(null).containsKey(CLOUD_SERVICE)) {
+                return (CloudService[]) CarbonContext.getCurrentContext()
+                        .getCache(null).get(CLOUD_SERVICE);
+            }
+        } catch (Exception ignored) {
+            // TODO: this exception needs not be handled, but the situation which leads to this
+            // exception needs to be.
+        }
+        CloudService[] cloudServices = stub.retrieveCloudServiceInfo();
+        CarbonContext.getCurrentContext().getCache(null).put(CLOUD_SERVICE, cloudServices);
+        return cloudServices;
+    }
+
+
+    public void saveCloudServicesActivity(String[] activeServiceNames) throws Exception {
+        CloudService[] cloudServices =
+                (CloudService[]) CarbonContext.getCurrentContext().getCache(null).get(CLOUD_SERVICE);
+
+        for (CloudService cloudService : cloudServices) {
+            for (String activeService : activeServiceNames) {
+                if (cloudService.getName().equals(activeService)) {
+                    cloudService.setActive(true);
+                    break;
+                } else {
+                    cloudService.setActive(false);
+                }
+            }
+        }
+
+        stub.saveCloudServicesActivity(activeServiceNames);
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/utils/Util.java
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/utils/Util.java b/products/stratos-controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/utils/Util.java
new file mode 100644
index 0000000..9d3e1a1
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/utils/Util.java
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.manager.dashboard.ui.utils;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Util {
+    public static List<String> getNewlyActivatedServices(List<String> oldActivateServices,
+                                                  List<String> newActivateServices) {
+        List<String> newlyActivatedServices = new ArrayList<String>();
+        for (String service: newActivateServices) {
+            if (!oldActivateServices.contains(service)) {
+                newlyActivatedServices.add(service);
+            }
+        }
+        return newlyActivatedServices;
+    }
+    public static List<String> getNewlyDeactivatedServices(List<String> oldActivateServices,
+                                                  List<String> newActivateServices) {
+        List<String> newlyDeactivatedServices = new ArrayList<String>();
+        for (String service: oldActivateServices) {
+            if (!newActivateServices.contains(service)) {
+                newlyDeactivatedServices.add(service);
+            }
+        }
+        return newlyDeactivatedServices;
+    }
+
+   
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/CloudManagerService.wsdl
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/CloudManagerService.wsdl b/products/stratos-controller/modules/dashboard/src/main/resources/CloudManagerService.wsdl
new file mode 100644
index 0000000..6be162a
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/CloudManagerService.wsdl
@@ -0,0 +1,312 @@
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd"
+                  xmlns:ns="http://services.mgt.services.manager.stratos.wso2.org"
+                  xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+                  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+                  xmlns:ax2298="http://beans.mgt.services.manager.stratos.wso2.org/xsd"
+                  xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+                  xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+                  xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+                  targetNamespace="http://services.mgt.services.manager.stratos.wso2.org">
+    <wsdl:documentation>CloudManagerService</wsdl:documentation>
+    <wsdl:types>
+        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified"
+                   targetNamespace="http://beans.mgt.services.manager.stratos.wso2.org/xsd">
+            <xs:complexType name="CloudService">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="active" type="xs:boolean"/>
+                    <xs:element minOccurs="0" name="description" nillable="true" type="xs:string"/>
+                    <xs:element minOccurs="0" name="icon" nillable="true" type="xs:string"/>
+
+                    <xs:element minOccurs="0" name="label" nillable="true" type="xs:string"/>
+                    <xs:element minOccurs="0" name="link" nillable="true" type="xs:string"/>
+                    <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
+                    <xs:element minOccurs="0" name="productPageURL" nillable="true" type="xs:string"/>
+                </xs:sequence>
+            </xs:complexType>
+        </xs:schema>
+        <xs:schema xmlns:ax2299="http://beans.mgt.services.manager.stratos.wso2.org/xsd"
+                   attributeFormDefault="qualified" elementFormDefault="qualified"
+                   targetNamespace="http://services.mgt.services.manager.stratos.wso2.org">
+            <xs:import namespace="http://beans.mgt.services.manager.stratos.wso2.org/xsd"/>
+
+            <xs:element name="CloudManagerServiceException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="CloudManagerServiceException" nillable="true"
+                                    type="ns:Exception"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:complexType name="Exception">
+                <xs:sequence>
+
+                    <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string"/>
+                </xs:sequence>
+            </xs:complexType>
+            <xs:element name="saveCloudServicesActivity">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element maxOccurs="unbounded" minOccurs="0" name="activeServiceNames" nillable="true"
+                                    type="xs:string"/>
+                    </xs:sequence>
+                </xs:complexType>
+
+            </xs:element>
+            <xs:element name="retrieveCloudServiceInfo">
+                <xs:complexType>
+                    <xs:sequence/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="retrieveCloudServiceInfoResponse">
+                <xs:complexType>
+                    <xs:sequence>
+
+                        <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true"
+                                    type="ax2299:CloudService"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="deactivate">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="cloudServiceName" nillable="true" type="xs:string"/>
+                    </xs:sequence>
+
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="activate">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="cloudServiceName" nillable="true" type="xs:string"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+
+        </xs:schema>
+    </wsdl:types>
+    <wsdl:message name="saveCloudServicesActivityRequest">
+        <wsdl:part name="parameters" element="ns:saveCloudServicesActivity"/>
+    </wsdl:message>
+    <wsdl:message name="saveCloudServicesActivityResponse"/>
+    <wsdl:message name="CloudManagerServiceException">
+        <wsdl:part name="parameters" element="ns:CloudManagerServiceException"/>
+    </wsdl:message>
+
+    <wsdl:message name="activateRequest">
+        <wsdl:part name="parameters" element="ns:activate"/>
+    </wsdl:message>
+    <wsdl:message name="activateResponse"/>
+    <wsdl:message name="retrieveCloudServiceInfoRequest">
+        <wsdl:part name="parameters" element="ns:retrieveCloudServiceInfo"/>
+    </wsdl:message>
+    <wsdl:message name="retrieveCloudServiceInfoResponse">
+        <wsdl:part name="parameters" element="ns:retrieveCloudServiceInfoResponse"/>
+
+    </wsdl:message>
+    <wsdl:message name="deactivateRequest">
+        <wsdl:part name="parameters" element="ns:deactivate"/>
+    </wsdl:message>
+    <wsdl:message name="deactivateResponse"/>
+    <wsdl:portType name="CloudManagerServicePortType">
+        <wsdl:operation name="saveCloudServicesActivity">
+            <wsdl:input message="ns:saveCloudServicesActivityRequest" wsaw:Action="urn:saveCloudServicesActivity"/>
+            <wsdl:output message="ns:saveCloudServicesActivityResponse"
+                         wsaw:Action="urn:saveCloudServicesActivityResponse"/>
+
+            <wsdl:fault message="ns:CloudManagerServiceException" name="CloudManagerServiceException"
+                        wsaw:Action="urn:saveCloudServicesActivityCloudManagerServiceException"/>
+        </wsdl:operation>
+        <wsdl:operation name="activate">
+            <wsdl:input message="ns:activateRequest" wsaw:Action="urn:activate"/>
+            <wsdl:output message="ns:activateResponse" wsaw:Action="urn:activateResponse"/>
+            <wsdl:fault message="ns:CloudManagerServiceException" name="CloudManagerServiceException"
+                        wsaw:Action="urn:activateCloudManagerServiceException"/>
+        </wsdl:operation>
+        <wsdl:operation name="retrieveCloudServiceInfo">
+            <wsdl:input message="ns:retrieveCloudServiceInfoRequest" wsaw:Action="urn:retrieveCloudServiceInfo"/>
+
+            <wsdl:output message="ns:retrieveCloudServiceInfoResponse"
+                         wsaw:Action="urn:retrieveCloudServiceInfoResponse"/>
+            <wsdl:fault message="ns:CloudManagerServiceException" name="CloudManagerServiceException"
+                        wsaw:Action="urn:retrieveCloudServiceInfoCloudManagerServiceException"/>
+        </wsdl:operation>
+        <wsdl:operation name="deactivate">
+            <wsdl:input message="ns:deactivateRequest" wsaw:Action="urn:deactivate"/>
+            <wsdl:output message="ns:deactivateResponse" wsaw:Action="urn:deactivateResponse"/>
+            <wsdl:fault message="ns:CloudManagerServiceException" name="CloudManagerServiceException"
+                        wsaw:Action="urn:deactivateCloudManagerServiceException"/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+    <wsdl:binding name="CloudManagerServiceSoap11Binding" type="ns:CloudManagerServicePortType">
+        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+        <wsdl:operation name="saveCloudServicesActivity">
+            <soap:operation soapAction="urn:saveCloudServicesActivity" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+
+            </wsdl:output>
+            <wsdl:fault name="CloudManagerServiceException">
+                <soap:fault use="literal" name="CloudManagerServiceException"/>
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="activate">
+            <soap:operation soapAction="urn:activate" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="CloudManagerServiceException">
+                <soap:fault use="literal" name="CloudManagerServiceException"/>
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="retrieveCloudServiceInfo">
+
+            <soap:operation soapAction="urn:retrieveCloudServiceInfo" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="CloudManagerServiceException">
+                <soap:fault use="literal" name="CloudManagerServiceException"/>
+
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="deactivate">
+            <soap:operation soapAction="urn:deactivate" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+
+            </wsdl:output>
+            <wsdl:fault name="CloudManagerServiceException">
+                <soap:fault use="literal" name="CloudManagerServiceException"/>
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="CloudManagerServiceSoap12Binding" type="ns:CloudManagerServicePortType">
+        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+        <wsdl:operation name="saveCloudServicesActivity">
+
+            <soap12:operation soapAction="urn:saveCloudServicesActivity" style="document"/>
+            <wsdl:input>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="CloudManagerServiceException">
+                <soap12:fault use="literal" name="CloudManagerServiceException"/>
+
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="activate">
+            <soap12:operation soapAction="urn:activate" style="document"/>
+            <wsdl:input>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal"/>
+
+            </wsdl:output>
+            <wsdl:fault name="CloudManagerServiceException">
+                <soap12:fault use="literal" name="CloudManagerServiceException"/>
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="retrieveCloudServiceInfo">
+            <soap12:operation soapAction="urn:retrieveCloudServiceInfo" style="document"/>
+            <wsdl:input>
+                <soap12:body use="literal"/>
+
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="CloudManagerServiceException">
+                <soap12:fault use="literal" name="CloudManagerServiceException"/>
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="deactivate">
+
+            <soap12:operation soapAction="urn:deactivate" style="document"/>
+            <wsdl:input>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="CloudManagerServiceException">
+                <soap12:fault use="literal" name="CloudManagerServiceException"/>
+
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="CloudManagerServiceHttpBinding" type="ns:CloudManagerServicePortType">
+        <http:binding verb="POST"/>
+        <wsdl:operation name="saveCloudServicesActivity">
+            <http:operation location="saveCloudServicesActivity"/>
+            <wsdl:input>
+                <mime:content type="text/xml" part="parameters"/>
+
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="parameters"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="activate">
+            <http:operation location="activate"/>
+            <wsdl:input>
+                <mime:content type="text/xml" part="parameters"/>
+
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="parameters"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="retrieveCloudServiceInfo">
+            <http:operation location="retrieveCloudServiceInfo"/>
+            <wsdl:input>
+                <mime:content type="text/xml" part="parameters"/>
+
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="parameters"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="deactivate">
+            <http:operation location="deactivate"/>
+            <wsdl:input>
+                <mime:content type="text/xml" part="parameters"/>
+
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="parameters"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="CloudManagerService">
+        <wsdl:port name="CloudManagerServiceHttpsSoap11Endpoint" binding="ns:CloudManagerServiceSoap11Binding">
+            <soap:address
+                    location="https://10.100.0.26:9443/services/CloudManagerService.CloudManagerServiceHttpsSoap11Endpoint/"/>
+
+        </wsdl:port>
+        <wsdl:port name="CloudManagerServiceHttpsSoap12Endpoint" binding="ns:CloudManagerServiceSoap12Binding">
+            <soap12:address
+                    location="https://10.100.0.26:9443/services/CloudManagerService.CloudManagerServiceHttpsSoap12Endpoint/"/>
+        </wsdl:port>
+        <wsdl:port name="CloudManagerServiceHttpsEndpoint" binding="ns:CloudManagerServiceHttpBinding">
+            <http:address
+                    location="https://10.100.0.26:9443/services/CloudManagerService.CloudManagerServiceHttpsEndpoint/"/>
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/META-INF/component.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/META-INF/component.xml b/products/stratos-controller/modules/dashboard/src/main/resources/META-INF/component.xml
new file mode 100644
index 0000000..e127fda
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/META-INF/component.xml
@@ -0,0 +1,36 @@
+<!--
+  #  Licensed to the Apache Software Foundation (ASF) under one
+  #  or more contributor license agreements.  See the NOTICE file
+  #  distributed with this work for additional information
+  #  regarding copyright ownership.  The ASF licenses this file
+  #  to you under the Apache License, Version 2.0 (the
+  #  "License"); you may not use this file except in compliance
+  #  with the License.  You may obtain a copy of the License at
+  #
+  #  http://www.apache.org/licenses/LICENSE-2.0
+  #
+  #  Unless required by applicable law or agreed to in writing,
+  #  software distributed under the License is distributed on an
+  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  #  KIND, either express or implied.  See the License for the
+  #  specific language governing permissions and limitations
+  #  under the License.
+  -->
+<component xmlns="http://products.wso2.org/carbon">
+    <!-- sample menu configuration -->
+    <menus>
+        <menu>
+            <id>mt_cloud_services_configurations</id>
+            <i18n-key>cloud.services.configurations</i18n-key>
+            <i18n-bundle>org.apache.stratos.manager.dashboard.ui.i18n.Resources</i18n-bundle>
+            <parent-menu>configure_menu</parent-menu>
+            <link>../tenant-dashboard/cloud_services_configuration.jsp</link>
+            <region>region1</region>
+            <icon>../tenant-dashboard/images/service-configuration.gif</icon>
+            <order>40</order>
+            <style-class>home</style-class>
+            <require-permission>/permission/admin/configure/cloud-services</require-permission>
+            <require-not-super-tenant>true</require-not-super-tenant>
+        </menu>
+    </menus>
+</component>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/JSResources.properties
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/JSResources.properties b/products/stratos-controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/JSResources.properties
new file mode 100644
index 0000000..49efc22
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/JSResources.properties
@@ -0,0 +1,3 @@
+password.mismatched=Passwords do not match.
+current.password.should.provided=You should provide the current password inorder to change the password.
+session.timed.out=Session timed out.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/Resources.properties
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/Resources.properties b/products/stratos-controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/Resources.properties
new file mode 100644
index 0000000..3d49083
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/Resources.properties
@@ -0,0 +1,3 @@
+cloud.services.configurations=Services
+activate.your.cloud.services=Activate your Cloud Services
+cloud.services=Cloud Services

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_configuration.jsp
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_configuration.jsp b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_configuration.jsp
new file mode 100644
index 0000000..cb970ec
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_configuration.jsp
@@ -0,0 +1,204 @@
+<%-- 
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~ 
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~ 
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+--%>
+<%@ page import="org.wso2.stratos.manager.dashboard.ui.clients.CloudManagerServiceClient" %>
+<%@ page import="org.apache.stratos.manager.dashboard.stub.xsd.CloudService" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
+<%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %>
+<%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %>
+<%@ page import="org.apache.stratos.account.mgt.ui.clients.AccountMgtClient" %>
+<%@ page import="org.apache.stratos.common.constants.StratosConstants" %>
+<%@ page import="java.util.List" %>
+<%@ page import="java.util.ArrayList" %>
+<%@ page import="org.wso2.stratos.manager.dashboard.ui.utils.Util" %>
+<%@ page import="org.wso2.carbon.utils.multitenancy.MultitenantConstants" %>
+
+
+<jsp:include page="../registry_common/registry_common-i18n-ajaxprocessor.jsp"/>
+<script type="text/javascript" src="../registry_common/js/registry_validation.js"></script>
+<script type="text/javascript" src="../registry_common/js/registry_common.js"></script>
+<script type="text/javascript" src="../ajax/js/prototype.js"></script>
+<script type="text/javascript" src="../tenant-dashboard/js/dashboard.js"></script>
+<link href="../tenant-dashboard/css/dashboard.css" rel="stylesheet" type="text/css" media="all"/>
+
+
+<%
+
+    CloudManagerServiceClient cloudManagerClient;
+    CloudService[] cloudServices = null;
+    String error = "Error in getting the available and active service details.";
+    try {
+        cloudManagerClient = new CloudManagerServiceClient(request, config, session);
+        cloudServices = cloudManagerClient.retrieveCloudServiceInfo();
+    } catch (Exception e) {
+        request.setAttribute(CarbonUIMessage.ID, new CarbonUIMessage(error,error,null)); 
+%>
+        <jsp:include page="../admin/error.jsp?<%=error%>"/>
+<%
+        return;
+    }
+%>
+<fmt:bundle basename="org.apache.stratos.manager.dashboard.ui.i18n.Resources">
+<carbon:jsi18n
+        resourceBundle="org.apache.stratos.manager.dashboard.ui.i18n.JSResources"
+        request="<%=request%>" namespace="org.wso2.stratos.manager.dashboard.ui"/>
+
+<div id="middle">
+<h2><fmt:message key="activate.your.cloud.services"/></h2>
+<div id="workArea">
+<%
+// if the account management permission there, we are showing the message to validate email address
+if (CarbonUIUtil.isUserAuthorized(request, "/permission/admin/configure/account")) {
+
+    AccountMgtClient client = new AccountMgtClient(config, session);
+    boolean isEmailValidated = client.isEmailValidated();
+
+    if (!isEmailValidated) {
+%>
+
+<div class="green-note">Your organization has not validated the contact email address yet. Please validate it following
+the instructions in the <a href="../account-mgt/account_mgt.jsp">Account Management</a> page (Accessible from Configure-&gt;Account menu). </div>
+<%
+    }
+}
+String tenantDomain = null;
+if (session.getAttribute(MultitenantConstants.TENANT_DOMAIN) != null) {
+    tenantDomain = (String)session.getAttribute(MultitenantConstants.TENANT_DOMAIN);
+} else {
+    // user is not logged in or just logged out, but still they are inside url own to the domain
+    tenantDomain = (String)request.getAttribute(MultitenantConstants.TENANT_DOMAIN);
+}
+String linkSuffix = "";
+    if (tenantDomain != null) {
+        linkSuffix = "/" + MultitenantConstants.TENANT_AWARE_URL_PREFIX + "/" + tenantDomain;
+    }
+
+boolean isUserAuthorized = CarbonUIUtil.isUserAuthorized(request, "/permission/admin/configure/cloud-services");    
+%>
+<form id="cloudService" action="cloud_services_save_ajaxprocessor.jsp" method="post">
+<div>
+    <table cellspacing="0" class="tips">
+<%
+    List<String> activeServices = new ArrayList<String>();
+    int index = 1;
+
+    for (CloudService cloudService: cloudServices) {
+        index++;
+        String name = cloudService.getName();       
+        String imagePath = "images/" + name.replace(" ", "-") + "-logo.gif";
+        String projectPageUrl = cloudService.getProductPageURL();
+        String link = cloudService.getLink() + linkSuffix;
+        String icon = cloudService.getIcon();
+        String iconPath = icon.substring(0, icon.lastIndexOf('/'));
+        String iconName = icon.substring(icon.lastIndexOf('/') + 1);
+        String inactiveIcon = iconPath + "/" + "inactive-" + iconName;
+        String description = cloudService.getDescription();
+        String label = cloudService.getLabel();
+        boolean active = name.equals(StratosConstants.CLOUD_IDENTITY_SERVICE) ||
+                name.equals(StratosConstants.CLOUD_GOVERNANCE_SERVICE) ||
+                cloudService.getActive();
+        String disabledStr = (name.equals(StratosConstants.CLOUD_IDENTITY_SERVICE) ||
+                name.equals(StratosConstants.CLOUD_GOVERNANCE_SERVICE))?" disabled ": "";
+        boolean disabledBtn = (name.equals(StratosConstants.CLOUD_IDENTITY_SERVICE) ||
+                name.equals(StratosConstants.CLOUD_GOVERNANCE_SERVICE));
+        if (!isUserAuthorized) {
+            disabledStr = " disabled ";
+        }
+        /*if (name.equals(StratosConstants.CLOUD_ESB_SERVICE)) {
+            active = false;
+            disabledStr = " disabled "; // we show an inactive and disabled link
+        }*/
+        if (active) {
+            activeServices.add(label);
+        }
+%>
+            <tr class="tips-row">
+
+            <td class="tip-checkbox">
+                <input type="checkbox" <%=disabledStr%> <%=active ? " checked=\"true\"" : ""%>
+                       name="cloudServices" id="cloudServices<%=index%>"  value="<%=name%>" style="display:none;"/>
+            </td>
+
+            <td>
+            	<img src="<%=icon%>" class="iconImage">
+                <% if (active) { %>
+            	<a target="_blank" href="<%=link%>" class="linkToService"><%=label%></a>
+                 <% } else { %>
+                <a class="linkToService"><%=label%></a>
+                <% } %>
+
+            </td>
+	<td class="access">
+        <% if (!disabledBtn) { %>          
+                <% if (active) { %>
+                <a target="_blank" input type="button" onclick="document.getElementById('cloudServices<%=index%>').checked=false;onChangeServiceSubscription()" class="deactivate-button"> Deactivate
+                </a>
+                <% } else { %>
+                <a target="_blank" input type="button" onclick="document.getElementById('cloudServices<%=index%>').checked=true;onChangeServiceSubscription()" class="activate-button"> Activate
+                <% } %>
+        <% } %>
+    </td>
+                
+	<td class="powered">Powered by<br/><a href="<%=projectPageUrl%>" target="_blank"><img src="<%=imagePath%>"/></a></td>
+                 </tr>
+               <% index++;
+            } %>
+
+                <td>&nbsp;</td>
+                </tr>
+    </table>
+    </div>
+</form>
+<%
+    List<String> oldActiveServices = (List<String>)session.getAttribute("active-statos-services");
+    if (oldActiveServices != null) {
+        List<String> newlyActivatedServices = Util.getNewlyActivatedServices(oldActiveServices, activeServices);
+        List<String> newlyDeactivatedServices = Util.getNewlyDeactivatedServices(oldActiveServices, activeServices);
+        String msg = null;
+        if (newlyActivatedServices.size() > 0) {
+            msg = "<li>";
+            for (String service: newlyActivatedServices) {
+                msg += "<ul>" + service + " <strong>activated</strong></ul>";
+            }
+            msg += "</li>";
+        }
+        if (newlyDeactivatedServices.size() > 0) {
+            if (msg == null) {
+                msg = "<li>";
+            }
+            for (String service: newlyDeactivatedServices) {
+                msg += "<ul>" + service + " <strong>deactivated</strong></ul>";
+            }
+            msg += "</li>";
+        }
+        if (msg != null) {
+%>
+    <script type="text/javascript">
+        jQuery(document).ready(function() {
+            CARBON.showInfoDialog('<%=msg%>');
+        });
+    </script>
+<%
+        }
+    }
+    session.setAttribute("active-statos-services", activeServices);
+%>
+</div>
+</div>
+</fmt:bundle>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_save_ajaxprocessor.jsp
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_save_ajaxprocessor.jsp b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_save_ajaxprocessor.jsp
new file mode 100644
index 0000000..4de7357
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_save_ajaxprocessor.jsp
@@ -0,0 +1,35 @@
+<%-- 
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~ 
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~ 
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  --%>
+<%@ page import="org.wso2.stratos.manager.dashboard.ui.clients.CloudManagerServiceClient" %>
+<%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %><%
+    String[] activeCloudServiceNames = request.getParameterValues("cloudServices");
+
+    String error = "Error in saving the results of the activities";
+    try {
+        CloudManagerServiceClient cloudServiceClient = new CloudManagerServiceClient(request, config, session);
+        cloudServiceClient.saveCloudServicesActivity(activeCloudServiceNames);
+    } catch (Exception e) {
+        request.setAttribute(CarbonUIMessage.ID, new CarbonUIMessage(error,error,null));
+%>
+        <jsp:include page="../admin/error.jsp?<%=error%>"/>
+<%
+        return;
+    }
+    response.sendRedirect("../tenant-dashboard/cloud_services_configuration.jsp");
+%>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/css/dashboard.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/css/dashboard.css b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/css/dashboard.css
new file mode 100644
index 0000000..de0a70f
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/css/dashboard.css
@@ -0,0 +1,231 @@
+div.dashboard-clear {
+    clear:both;
+    margin-top:5px;
+}
+
+div.dashboard-comp {
+    width: 300px;
+    margin: 5px;
+    float: left;
+    border:1px solid #6997b2;
+    background: #ffffff;
+    height: 300px;
+}
+.dashboard-comp-head{
+background-image:url( ../../admin/images/table-header.gif);
+background-position:left bottom;
+background-repeat:repeat-x;
+font-weight:normal;
+height:22px;
+line-height:22px;
+text-indent:5px;
+font-weight:bold;
+}
+.dashboard-comp-bottom{
+padding-left:5px;
+padding-top:5px;
+}
+.dashboard-comp-msg{
+color:#505050;
+padding:5px;
+}
+
+div.dashboard-comp-body {
+    overflow: auto;
+    max-height: 230px;
+}
+
+div.activity-comp-body {
+    overflow: auto;
+    max-height: 278px;
+}
+table.tips {
+	border-collapse: separate;
+	padding-bottom: 10px;
+	width: 90%;
+}
+table.tips tbody tr.tips-row {
+}
+tr.tips-row td {
+	border-bottom: solid 1px #ccc;
+}
+tr.tips-row td.tip-checkbox {
+	padding-left: 40px;
+	padding-top: 4px;
+	padding-bottom: 4px;
+    border-left: 0px;
+    border-right: 0px;
+    border-top: 0px;
+    vertical-align: top;
+    padding-right:12px !important;
+}
+tr.tips-row td.tip-img {
+	padding-left: 15px;
+	padding-top: 4px;
+	padding-bottom: 4px;
+    border-left: 0px;
+    border-right: 0px;
+    border-top: 0px;
+    vertical-align: top;
+    padding-right:12px !important;
+}
+tr.tips-row td.tip-img a img {
+	border: 0px;
+}
+tr.tips-row td.tip {
+	background-image: url(../images/aas-top.gif);
+	background-repeat: no-repeat;
+	background-position: left 7px;
+    margin: 0px;
+    padding-left: 0px;
+    padding-right: 15px;
+    padding-top: 20px;
+    padding-bottom: 0px;
+    /*border-bottom: 1px solid #aaa;*/
+    border-left: 0px;
+    border-right: 0px;
+    border-top: 0px;
+    vertical-align: top;
+}
+tr.tips-row td.tip img {
+	float: left;
+	margin-top: -20px;
+	margin-left: 17px;
+	margin-right: 12px;
+	margin-bottom: 20px;
+}
+tr.tips-row td.tip h2 {
+    background-color: transparent !important;
+	font-size: 125%;
+	line-height: 125%;
+	margin-top: 0px;
+	margin-bottom: 3px;
+    border:medium none !important;
+    margin-top:3px !important;
+    margin-left: 0px !important;
+    padding-left: 0px !important;
+}
+tr.tips-row td.tip h2 a {
+	font-size:14px;
+    text-decoration:underline;
+}
+tr.tips-row td.tip p {
+	padding-bottom: 15px;
+}
+tr.tips-row td.access {
+	padding-left: 30px;
+	padding-right: 30px;
+	vertical-align: middle;
+}
+tr.tips-row td.access a.go-button {
+	width: 63px;
+	height: 42px;
+	display: block;
+	background-color: #ccc;
+	font-size: 20px;
+	line-height: 40px;
+	font-weight: bold;
+	color: #000000;
+	text-decoration: none;
+	padding-left: 19px;
+	background-image: url(../images/go-button.gif);
+	background-repeat: no-repeat;
+	background-position: left top;
+}
+tr.tips-row td.access span.inactive {
+	width: 63px;
+	height: 42px;
+	display: block;
+	background-color: #ccc;
+	font-size: 20px;
+	line-height: 40px;
+	font-weight: bold;
+	color: #999999;
+	text-decoration: none;
+	padding-left: 19px;
+	background-image: url(../images/inactive-go-button.gif);
+	background-repeat: no-repeat;
+	background-position: left top;
+}
+tr.tips-row td.access a.go-button:hover {
+	color: #0084A9;
+}
+tr.tips-row td.powered {
+	padding-left: 10px;
+	padding-right: 20px;
+	text-align: right;
+	font-size: 12px;
+	line-height: 20px;
+	color: #666666;
+	vertical-align: middle;
+}
+.green-note {
+    color: #f00;
+}
+div#menu ul.main li a.menu-home {
+display:block !important;
+}
+/* service config buttons */
+td.access a.activate-button {
+	width: 98px;
+	height: 42px;
+	cursor: pointer;
+	display: block;
+	background-color: #ccc;
+	font-size: 15px;
+	line-height: 40px;
+	font-weight: normal;
+	color: #000000;
+	text-decoration: none;
+	padding-left: 47px;
+	background-image: url(../images/activate-button.gif);
+	background-repeat: no-repeat;
+	background-position: left top;
+}
+td.access a.activate-button:hover {
+	color: #00853F;
+}
+td.access a.deactivate-button {
+	width: 103px;
+	height: 42px;
+	cursor: pointer;
+	display: block;
+	background-color: #ccc;
+	font-size: 15px;
+	line-height: 40px;
+	font-weight: normal;
+	color: #000000;
+	text-decoration: none;
+	padding-left: 42px;
+	background-image: url(../images/deactivate-button.gif);
+	background-repeat: no-repeat;
+	background-position: left top;
+}
+td.access a.deactivate-button:hover {
+	color: #B5121B;
+}
+.home_tips{
+width:100%;
+}
+.home_tips td{
+border-bottom:solid 1px #ccc;
+padding-bottom:5px !important;
+padding-top:5px !important;
+}
+.home_tips td img{
+vertical-align:middle;
+
+}
+.home_tips td img.iconImage{
+margin-right:10px;
+
+}
+.linkToService{
+color:#0D4D79 !important;
+padding-left:10px !important;
+font-size:18px;
+text-decoration:underline !important;
+}
+.home_tips td.powered{
+text-align:right;
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/images/dashboard.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/images/dashboard.png b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/images/dashboard.png
new file mode 100644
index 0000000..1386a9e
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/images/dashboard.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide-old.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide-old.html b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide-old.html
new file mode 100644
index 0000000..e57a9b5
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide-old.html
@@ -0,0 +1,101 @@
+<!-- 
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~ 
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~ 
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<html>
+<head>
+    <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
+  <title>Cloud Services - User Guide</title>
+  <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
+</head>
+
+<body>
+<p>[<a href="../../issue/viewAccounts.jsp">Issue Tracking</a>]
+            | [<a href="http://wso2.com/cloud/services/privacy-policy">Privacy Policy</a>] | [<a href="http://wso2.com/cloud/services/terms-of-use/">Terms of Use</a>]
+        </p>
+
+<h2><a href="http://wso2.com/cloud/stratos/">Cloud Services Home</a> </h1>
+
+<p>
+Cloud Services Home page provides an interface to access the services of the SOA platform of your organization. Stratos provides a web-based console for provisioning new tenants on the platform, allowing self-service provisioning of any WSO2 Carbon product, and running elastically on your choice of underlying virtualization infrastructure to provide all the PaaS benefits inherent to a cloud-native platform. A list of the services available under WSO2 Stratos for the tenant can be found in the cloud services home.
+</p>
+
+<img src="../../tenant-dashboard/docs/images/dashboard.png"/>
+<p>Figure1: Cloud Services Home Page</p>
+</body>
+
+<h3><a href="http://wso2.com/products/application-server/">Application Server</a></h3>
+<p>
+The WSO2 Application Server is an open source, enterprise-ready, Web services engine based on Apache Axis2. Bringing together a number of Apache Web services projects, WSO2 Application Server provides a secure, transactional and reliable runtime to create, consume, deploy and manage Web services for your SOA. 
+</p>
+
+<h3><a href="http://wso2.com/products/data-services-server/">Data Services Server</a></h3>
+<p>
+The WSO2 Data Services Server, data service tier assures ready access to enterprise data scattered across heterogeneous data sources in a unified manner. Due to the single data layer, benefits of optimizations and availability of more processing power will be visible to every service consumer. Access to real time data provides more accurate, up-to-date information for applications. Further this single interface to enterprise data can greatly help in preserving integrity of frequently modified data. 
+</p>
+
+<h3><a href="http://wso2.com/products/mashup-server/">Mashup Server</a></h3>
+<p>
+The WSO2 Mashup Server provides a platform for rapidly deploying Web service Mashups. Combining simple yet rich mashups with reusability, security, reliability and governance, the WSO2 Mashup Server offers enterprise-class service composition.  
+</p>
+
+<h3><a href="http://wso2.com/products/identity-server/">Identity Server</a></h3>
+<p>
+The WSO2 Identity Server is an open source identity and entitlement management server. It supports Information Cards and OpenID for authentication as well as XACML for fine grained authorization. Providing a complete enterprise ready identity solution, it integrates easily into existing user stores such as LDAP or Active Directory and supports multi-factor authentication and much more. The WSO2 Identity Server helps you build secured SOA in a few very easy steps.
+</p>
+
+<h3><a href="http://wso2.com/products/governance-registry/">Governance Registry</a></h3>
+<p>
+The WSO2 Governance Registry addresses both design-time and runtime governance scenarios, to ensure compliance with corporate standards. It allows enterprise architects and developers to always keep track of the services being created and used within an SOA. 
+</p>
+
+<h3><a href="http://wso2.com/products/gadget-server/">Gadget Server</a></h3>
+<p>
+With the WSO2 Gadget Server, you can offer your execs, employees, partners, or customers a way to get all the information in one place that they need. Each user's dashboard is individualized, allowing him/her to add, customize, and rearrange gadgets, as well as group them into tab sets. The open "Web" model means users can select gadgets not only from your enterprise, but also from Google and many others.
+</p>
+
+<h3><a href="http://wso2.com/products/business-activity-monitor/">Business Activity Monitor</a></h3>
+<p>
+The WSO2 Business Activity Monitor (WSO2 BAM) serves the needs of both business and IT domain experts to monitor and understand business activities within an SOA deployment. While specifically designed to monitor SOA deployments, it can be extended to cater to other general monitoring requirements as well. 
+</p>
+
+<h3><a href="http://wso2.com/products/business-process-server/">Business Process Server</a></h3>
+<p>
+The WSO2 Business Process Server is an easy-to-use open source business process server that executes business processes written using the WS-BPEL standard. Powered by Apache ODE, it provides a complete Web-based graphical console to deploy, manage and view processes in addition to managing and viewing process instances
+</p>
+
+<h3><a href="http://wso2.com/products/business-rules-server/">Business Rules Server</a></h3>
+<p>
+The WSO2 Business Rules Server brings the agility of business rules to your Service Oriented Architecture toolkit. Based on a solid platform for hosting business rules, our BRS excels at extending the capabilities of your SOA. 
+</p>
+
+<h3><a href="http://wso2.com/products/enterprise-service-bus/">Enterprise Service Bus</a></h3>
+<p>
+The WSO2 Enterprise Service Bus offers a lean approach to create a Service Oriented Architecture by adding monitoring, management, and virtualization to your existing service interactions. Its innovative design leads it to be one of the highest performance, lowest footprint, and widest interoperability integration systems available.
+</p>
+
+<h3><a href="http://wso2.com/products/message-broker/">Message Broker</a></h3>
+<p>
+The WSO2 Message Broker brings messaging and eventing capabilities into your Service Oriented Architecture. Extending the WSO2 Carbon platform to support event driven architectures, WSO2 Message Broker is powered by Apache Qpid, one of the leading Advanced Message Queuing Protocol (AMQP) messaging engines available today. 
+</p>
+
+<h3><a href="http://wso2.com/products/complex-event-processing-server/">Complex Event Processing Server</a></h3>
+<p>
+The WSO2 Complex Event Processing Server enables you to intelligently single out events with predefined properties and even manage and combine them in a manner that allows for real time analysis and a rapid response to whatever threat or opportunity that enterprises face.
+</p>
+
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide.html b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide.html
new file mode 100644
index 0000000..f4f4ff1
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide.html
@@ -0,0 +1,37 @@
+<!-- 
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~ 
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~ 
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<html>
+<head>
+    <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
+  <title>Cloud Services - User Guide</title>
+  <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
+</head>
+
+<body>
+
+	<h1>Cloud Services</h1>
+
+
+	<p>
+		Please refer <a href="http://docs.wso2.org/wiki/display/Stratos200/WSO2+Stratos+Documentation">
+			WSO2 Stratos 2.0 Documentation</a> for more information.
+	</p>
+</body>
+
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Cloud-Gateway-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Cloud-Gateway-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Cloud-Gateway-logo.gif
new file mode 100644
index 0000000..2154397
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Cloud-Gateway-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Storage-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Storage-Server-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Storage-Server-logo.gif
new file mode 100644
index 0000000..3ee3303
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Storage-Server-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Application-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Application-Server-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Application-Server-logo.gif
new file mode 100644
index 0000000..55e4751
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Application-Server-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Activity-Monitor-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Activity-Monitor-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Activity-Monitor-logo.gif
new file mode 100644
index 0000000..f8b6a74
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Activity-Monitor-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Process-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Process-Server-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Process-Server-logo.gif
new file mode 100644
index 0000000..5dd2171
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Process-Server-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Rules-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Rules-Server-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Rules-Server-logo.gif
new file mode 100644
index 0000000..ccba887
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Rules-Server-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Cloud-Services-Gateway-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Cloud-Services-Gateway-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Cloud-Services-Gateway-logo.gif
new file mode 100644
index 0000000..e69aaa6
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Cloud-Services-Gateway-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Complex-Event-Processing-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Complex-Event-Processing-Server-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Complex-Event-Processing-Server-logo.gif
new file mode 100644
index 0000000..b80554a
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Complex-Event-Processing-Server-logo.gif differ


[39/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/assembly/bin.xml b/products/cloud_controller/modules/distribution/src/main/assembly/bin.xml
deleted file mode 100644
index df5f831..0000000
--- a/products/cloud_controller/modules/distribution/src/main/assembly/bin.xml
+++ /dev/null
@@ -1,340 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<assembly>
-    <formats>
-        <format>zip</format>
-    </formats>
-    <includeBaseDirectory>false</includeBaseDirectory>
-    <fileSets>
-        <fileSet>
-            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
-            <excludes>
-                <exclude>**/*.sh</exclude>
-                <exclude>**/*.bat</exclude>
-                <exclude>**/log4j.properties</exclude>
-                <exclude>**/conf/axis2/axis2.xml</exclude>
-                <exclude>**/services/sample01.aar</exclude>
-                <exclude>**/repository/services/version/**</exclude>
-                <exclude>**/version.txt</exclude>
-                <exclude>**/LICENSE.txt</exclude>
-                <exclude>**/stratos.bat</exclude>
-		<exclude>**/launch.ini</exclude>
-                <exclude>**/README.txt</exclude>
-                <exclude>**/INSTALL.txt</exclude>
-                <exclude>**/release-notes.html</exclude>
-                <exclude>**/carbon.xml</exclude>
-            </excludes>
-        </fileSet>
-        <fileSet>
-            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
-            <excludes>
-                <exclude>**/wso2server.sh</exclude>
-                <exclude>**/wso2server.bat</exclude>
-            </excludes>
-	    <includes>
-                <include>**/*.sh</include>
-                <include>**/native/*</include>
-            </includes>
-            <fileMode>755</fileMode>
-        </fileSet>
-		<!--samples set of product-->
-        <fileSet>
-            <directory>../../modules/samples/product/jmsclient</directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}/samples/jmsclient</outputDirectory>
-        </fileSet>
-        <fileSet>
-            <directory>../../modules/samples/product/jmstransport</directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}/samples/jmstransport</outputDirectory>
-        </fileSet>
-        <fileSet>
-            <directory>../../modules/samples/product/wsclient</directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}/samples/wsclient</outputDirectory>
-        </fileSet>
-        <fileSet>
-            <directory>../../modules/samples/product/services</directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}/samples/services</outputDirectory>
-        </fileSet>
-        <fileSet>
-            <directory>
-                ../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/advanced/
-            </directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/advanced
-            </outputDirectory>
-            <includes>
-                <include>**/qpid-config.xml</include>
-                <include>**/qpid-jmxremote.access</include>
-                <include>**/qpid-virtualhosts.xml</include>
-            </includes>
-        </fileSet>
-	<fileSet>
-            <directory>src/main/conf/synapse-configs</directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/deployment/server/synapse-configs
-            </outputDirectory>
-        </fileSet>
-	 <fileSet>
-            <directory>src/main/cartridges</directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/deployment/server/cartridges</outputDirectory>
-        </fileSet>
-        <fileSet>
-            <directory>src/main/services</directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/deployment/server/services</outputDirectory>
-        </fileSet>
-	 <!--Multitenancy related file -->
-        <fileSet>
-            <directory>
-                ../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/multitenancy/
-            </directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/multitenancy</outputDirectory>
-            <includes>
-                <include>**/stratos.xml</include>
-                <include>**/multitenancy-packages.xml</include>
-                <include>**/usage-throttling-agent-config.xml</include>
-                <include>**/cloud-services-desc.xml</include>
-            </includes>
-        </fileSet>
-
-        <fileSet>
-           <directory>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/</directory>
-           <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/etc</outputDirectory>
-           <includes>
-               <include>**/cassandra.yaml</include>
-           </includes>
-        </fileSet>
-      
-	<!-- copy the landing page webapp -->
-        <fileSet>
-		<directory>lib/home</directory>
-		<outputDirectory>apache-stratos-cc-${pom.version}/repository/deployment/server/webapps/STRATOS_ROOT</outputDirectory>
-        </fileSet>
-        <fileSet>
-            <directory>
-                ../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/identity/
-            </directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}/dbscripts/identity</outputDirectory>
-            <includes>
-                <include>**/h2.sql</include>
-            </includes>
-        </fileSet>
-        <fileSet>
-            <directory>../styles/service/src/main/resources/web/styles/css</directory>
-           <outputDirectory>${pom.artifactId}-${pom.version}/resources/allthemes/Default/admin</outputDirectory>
-            <includes>
-                <include>**/**.css</include>
-           </includes>
-        </fileSet>
-        <fileSet>
-           <directory>../styles/service/src/main/resources/web/styles/images</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/resources/allthemes/Default/images</outputDirectory>
-            <includes>
-                <include>**/**.gif</include>
-                <include>**/**.png</include>
-            </includes>
-        </fileSet>
-
-	<!-- get axis2_1.6.1.wso2v9.jar from carbon kernel patch 0002 -->
-        <fileSet>
-           <directory>../p2-profile/target/WSO2-CARBON-PATCH-4.1.0-0002/</directory>
-           <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/patches</outputDirectory>
-           <includes>
-              <include>**/patch0002/axis2_1.6.1.wso2v9.jar</include>
-           </includes>
-        </fileSet>
-    </fileSets>
-
-    <dependencySets>
-        <dependencySet>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/deployment/client/modules
-            </outputDirectory>
-            <includes>
-                <include>org.apache.rampart:rampart:mar</include>
-            </includes>
-        </dependencySet>
-	<dependencySet>
-            <outputDirectory>apache-stratos-cc-${pom.version}/client-lib</outputDirectory>
-            <includes>
-                <include>org.wso2.andes.wso2:andes-client:jar</include>
-                <include>org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar</include>
-                <include>org.wso2.carbon:org.wso2.carbon.event.client.stub:jar</include>
-                <include>org.wso2.carbon:org.wso2.carbon.event.client:jar</include>
-		        <include>slf4j.wso2:slf4j:jar</include>
-                <include>log4j:log4j:jar</include>
-            </includes>
-        </dependencySet>
-    </dependencySets>
-
-    <files>
-        <file>
-            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/conf/axis2/axis2.xml</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/axis2</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>src/main/conf/event-broker.xml</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
-        </file>
-	<!--file>
-            <source>src/main/conf/user-mgt.xml</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
-            <destName>user-mgt.xml</destName>
-        </file-->
-	  <!-- Setting jamm javaagent in bam -->
-        <file>
-            <source>src/main/resources/launch.ini</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>src/main/conf/embedded-ldap.xml</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
-            <destName>embedded-ldap.xml</destName>
-        </file>
-         <file>
-            <source>src/main/conf/zoo.cfg</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/etc</outputDirectory>
-        </file>
-         <file>
-            <source>src/main/conf/jaas.conf</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/security</outputDirectory>
-        </file>
-         <file>
-            <source>src/main/resources/stratos.sh</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-        <file>
-            <source>src/main/resources/log4j.properties</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-	 <file>
-            <source>src/main/conf/synapse.properties</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
-            <destName>synapse.properties</destName>
-            <filtered>true</filtered>
-        </file>
-        <file>
-            <source>src/main/conf/cipher-text.properties</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/lib</outputDirectory>
-            <destName>cipher-text.properties</destName>
-            <filtered>true</filtered>
-        </file>
-         <file>
-            <source>src/main/resources/stratos.bat</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-	<file>
-            <source>src/main/conf/datasources.properties</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
-            <destName>datasources.properties</destName>
-            <filtered>true</filtered>
-        </file>
-        <file>
-            <source>../../LICENSE.txt</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>../../README.txt</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>../../INSTALL.txt</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <!--file>
-            <source>../../docs/xdoc/release-notes.xml</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
-            <destName>release-notes.html</destName>
-            <fileMode>644</fileMode>
-        </file-->
-<!--
-        <file>
-            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/README.txt</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>-->
-        <file>
-            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/version.txt</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/conf/carbon.xml</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/</outputDirectory>
-            <filtered>true</filtered>
-        </file>
-	<!--file>
-            <source>
-                ../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/security/authenticators.xml
-            </source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/security/</outputDirectory>
-            <filtered>true</filtered>
-        </file-->
-
-	<!-- Including logging-config.xml file -->
- 	<file>
-            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/logging-config.xml</source>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/etc/</outputDirectory>
-        </file>
-        <file>
-             <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity.xml</source>
-	     <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/</outputDirectory>
-        </file>
-	<file>
-            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cloud-controller.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
-        </file>
-	<file>
-            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/cartridge.xsd</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-        </file>
-	<file>
-            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/services.xsd</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-        </file>
-	<file>
-            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/service.xsd</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-        </file>
-	<file>
-            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/cartridges.xsd</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-        </file>
-	<file>
-            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/coordination-client-config.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-        </file>
-    </files>
-</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/assembly/dist.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/assembly/dist.xml b/products/cloud_controller/modules/distribution/src/main/assembly/dist.xml
deleted file mode 100644
index 262851d..0000000
--- a/products/cloud_controller/modules/distribution/src/main/assembly/dist.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<assembly>
-    <formats>
-        <format>zip</format>
-    </formats>
-    <includeBaseDirectory>false</includeBaseDirectory>
-    <fileSets>
-        <!-- Copying p2 profile and osgi bundles-->
-        <fileSet>
-            <directory>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/components</directory>
-            <outputDirectory>apache-stratos-cc-${pom.version}/repository/components</outputDirectory>
-            <excludes>
-                <exclude>**/eclipse.ini</exclude>
-                <exclude>**/*.lock</exclude>
-                <exclude>**/.data</exclude>
-                <exclude>**/.settings</exclude>
-            </excludes>
-        </fileSet>
-    </fileSets>
-</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/assembly/filter.properties
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/assembly/filter.properties b/products/cloud_controller/modules/distribution/src/main/assembly/filter.properties
deleted file mode 100644
index 1d2a3aa..0000000
--- a/products/cloud_controller/modules/distribution/src/main/assembly/filter.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-product.name=Apache Stratos Cloud Controller
-product.key=CC
-product.version=1.0.0
-carbon.version=4.1.1

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/axis2.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/axis2.xml b/products/cloud_controller/modules/distribution/src/main/conf/axis2.xml
deleted file mode 100755
index 77dcf02..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/axis2.xml
+++ /dev/null
@@ -1,524 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<axisconfig name="AxisJava2.0">
-    
-    <!-- ================================================= -->
-    <!--                  Parameters                       -->
-    <!-- ================================================= -->
-
-    <!-- This will give out the timout of the configuration contexts, in milliseconds -->
-    <parameter name="ConfigContextTimeoutInterval" locked="false">30000</parameter>
-
-    <!-- Synapse Configuration file location relative to CARBON_HOME -->
-    <parameter name="SynapseConfig.ConfigurationFile" locked="false">repository/deployment/server/synapse-configs</parameter>
-    <!-- Synapse Home parameter -->
-    <parameter name="SynapseConfig.HomeDirectory" locked="false">.</parameter>
-    <!-- Resolve root used to resolve synapse references like schemas inside a WSDL -->
-    <parameter name="SynapseConfig.ResolveRoot" locked="false">.</parameter>
-    <!-- Synapse Server name parameter -->
-    <parameter name="SynapseConfig.ServerName" locked="false">localhost</parameter>
-   
-
-    <!-- ================================================= -->
-    <!--                Message Formatters                 -->
-    <!-- ================================================= -->
-
-    <!-- Following content type to message formatter mapping can be used to implement support -->
-    <!-- for different message format serializations in Axis2. These message formats are -->
-    <!-- expected to be resolved based on the content type. -->
-    <messageFormatters>
-        <!--messageFormatter contentType="application/xml"
-                          class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>-->
-        <!--messageFormatter contentType="text/xml"
-                         class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>-->
-        <!--messageFormatter contentType="application/soap+xml"
-                         class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>-->
-        <!--messageFormatter contentType="application/x-www-form-urlencoded"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/-->
-        <messageFormatter contentType="multipart/related"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/xml"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/txt"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="text/html"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/soap+xml"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="text/xml"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <!--messageFormatter contentType="x-application/hessian"
-                         class="org.apache.synapse.format.hessian.HessianMessageFormatter"/-->
-        <!--messageFormatter contentType=""
-                         class="org.apache.synapse.format.hessian.HessianMessageFormatter"/-->
-
-        <messageFormatter contentType="text/css"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="text/javascript"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-        <messageFormatter contentType="image/gif"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="img/gif"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="image/jpeg"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="image/png"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="image/ico"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="image/x-icon"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-	    <messageFormatter contentType="application/x-javascript"
-                             class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-	    <messageFormatter contentType="application/x-shockwave-flash"
-                             class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-	    <messageFormatter contentType="application/atom+xml"
-                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/x-www-form-urlencoded"
-                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-	    <messageFormatter contentType="application/xhtml+xml"
-                              class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-	    <messageFormatter contentType="application/octet-stream"
-                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/javascript"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-        <messageFormatter contentType="multipart/form-data"
-                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/soap+xml"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-        <!--JSON Message Formatters-->
-        <messageFormatter contentType="application/json"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="application/json/badgerfish"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-        <messageFormatter contentType="text/javascript"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-
-        <messageFormatter contentType=".*"
-                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
-
-    </messageFormatters>
-
-    <!-- ================================================= -->
-    <!--                Message Builders                   -->
-    <!-- ================================================= -->
-
-    <!-- Following content type to builder mapping can be used to implement support for -->
-    <!-- different message formats in Axis2. These message formats are expected to be -->
-    <!-- resolved based on the content type. -->
-    <messageBuilders>
-        <messageBuilder contentType="application/xml"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="application/txt"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <!--messageBuilder contentType="application/xml"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
-        <!--messageBuilder contentType="application/x-www-form-urlencoded"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
-        <!--messageBuilder contentType="multipart/form-data"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
-        <messageBuilder contentType="multipart/related"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="application/soap+xml"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="text/plain"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="text/xml"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <!--messageBuilder contentType="x-application/hessian"
-                        class="org.apache.synapse.format.hessian.HessianMessageBuilder"/-->
-        <!--messageBuilder contentType=""
-                         class="org.apache.synapse.format.hessian.HessianMessageBuilder"/-->
-
-        <!--JSON Message Builders-->
-        <messageBuilder contentType="application/json"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="application/json/badgerfish"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="text/javascript"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-
-        <messageBuilder contentType="text/html"
-                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="text/css"
-                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="text/javascript"
-                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-        <messageBuilder contentType="image/gif"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="img/gif"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="image/jpeg"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="image/png"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="image/ico"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="image/x-icon"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-
-	    <messageBuilder contentType="application/x-javascript"
-                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-	    <messageBuilder contentType="application/x-shockwave-flash"
-                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-	    <messageBuilder contentType="application/atom+xml"
-                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-	    <messageBuilder contentType="application/x-www-form-urlencoded"
-                            class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-	    <messageBuilder contentType="application/xhtml+xml"
-                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-	    <messageBuilder contentType="application/octet-stream"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="application/javascript"
-                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-        <messageBuilder contentType="multipart/form-data"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-        <messageBuilder contentType="application/soap+xml"
-                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-
-        <messageBuilder contentType=".*"
-                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
-
-    </messageBuilders>
-
-    <!-- ================================================= -->
-    <!--             Transport Ins (Listeners)             -->
-    <!-- ================================================= -->
-    <!--Default trasnport will be passthrough if you need to change please add it here -->
-   <transportReceiver name="http" class="org.wso2.carbon.transport.passthru.PassThroughHttpListener">
-      <parameter name="port">8280</parameter>
-      <parameter name="non-blocking"> true</parameter>
-   </transportReceiver>
-   <transportReceiver name="https" class="org.wso2.carbon.transport.passthru.PassThroughHttpSSLListener">
-        <parameter name="port" locked="false">8243</parameter>
-        <parameter name="non-blocking" locked="false">true</parameter>
-        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
-        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
-        <parameter name="keystore" locked="false">
-            <KeyStore>
-                <Location>repository/resources/security/wso2carbon.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-                <KeyPassword>wso2carbon</KeyPassword>
-            </KeyStore>
-        </parameter>
-        <parameter name="truststore" locked="false">
-            <TrustStore>
-                <Location>repository/resources/security/client-truststore.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-            </TrustStore>
-        </parameter>
-        <!--<parameter name="SSLVerifyClient">require</parameter>
-            supports optional|require or defaults to none -->
-    </transportReceiver>
-
-    <!-- uncomment for non blocking http transport based on HttpCore + NIO extensions -->
-    <!--transportReceiver name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOListener">
-        <parameter name="port" locked="false">8280</parameter>
-        <parameter name="non-blocking" locked="false">true</parameter-->
-        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
-        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
-        <!--parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter-->
-    <!--/transportReceiver-->
-
-    <!-- the non blocking https transport based on HttpCore + SSL-NIO extensions -->
-    <!--transportReceiver name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener">
-        <parameter name="port" locked="false">8243</parameter>
-        <parameter name="non-blocking" locked="false">true</parameter-->
-        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
-        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
-        <!--parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter-->
-        <!--parameter name="keystore" locked="false">
-            <KeyStore>
-                <Location>repository/resources/security/wso2carbon.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-                <KeyPassword>wso2carbon</KeyPassword>
-            </KeyStore>
-        </parameter>
-        <parameter name="truststore" locked="false">
-            <TrustStore>
-                <Location>repository/resources/security/client-truststore.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-            </TrustStore>
-        </parameter-->
-        <!--<parameter name="SSLVerifyClient">require</parameter>
-            supports optional|require or defaults to none -->
-    <!--/transportReceiver-->
-
-    <!-- ================================================= -->
-    <!--             Transport Outs (Senders)              -->
-    <!-- ================================================= -->
-    <!--Default trasnport will be passthrough if you need to change please add it here -->
-    <transportSender name="http"  class="org.wso2.carbon.transport.passthru.PassThroughHttpSender">
-        <parameter name="non-blocking" locked="false">true</parameter>
-        <parameter name="warnOnHTTP500" locked="false">*</parameter>
-        <!--parameter name="http.proxyHost" locked="false">localhost</parameter>
-        <parameter name="http.proxyPort" locked="false">3128</parameter>
-        <parameter name="http.nonProxyHosts" locked="false">localhost|moon|sun</parameter-->
-    </transportSender>
-    <transportSender name="https" class="org.wso2.carbon.transport.passthru.PassThroughHttpSSLSender">
-        <parameter name="non-blocking" locked="false">true</parameter>
-        <parameter name="keystore" locked="false">
-            <KeyStore>
-                <Location>repository/resources/security/wso2carbon.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-                <KeyPassword>wso2carbon</KeyPassword>
-            </KeyStore>
-        </parameter>
-        <parameter name="truststore" locked="false">
-            <TrustStore>
-                <Location>repository/resources/security/client-truststore.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-            </TrustStore>
-        </parameter>
-        <parameter name="HostnameVerifier">AllowAll</parameter>
-            <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
-     </transportSender>
-    <!-- Uncomment for non-blocking http transport based on HttpCore + NIO extensions -->
-    <!--transportSender name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSender">
-        <parameter name="non-blocking" locked="false">true</parameter>
-    </transportSender>
-    <transportSender name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender">
-        <parameter name="non-blocking" locked="false">true</parameter>
-        <parameter name="keystore" locked="false">
-            <KeyStore>
-                <Location>repository/resources/security/wso2carbon.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-                <KeyPassword>wso2carbon</KeyPassword>
-            </KeyStore>
-        </parameter>
-        <parameter name="truststore" locked="false">
-            <TrustStore>
-                <Location>repository/resources/security/client-truststore.jks</Location>
-                <Type>JKS</Type>
-                <Password>wso2carbon</Password>
-            </TrustStore>
-        </parameter>
-        <parameter name="HostnameVerifier">AllowAll</parameter-->
-            <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
-    <!--/transportSender-->
-
-    <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
-
-    <!-- ================================================= -->
-    <!--                Clustering                         -->
-    <!-- ================================================= -->
-    <!--
-     To enable clustering for this node, set the value of "enable" attribute of the "clustering"
-     element to "true". The initialization of a node in the cluster is handled by the class
-     corresponding to the "class" attribute of the "clustering" element. It is also responsible for
-     getting this node to join the cluster.
-     -->
-    <clustering class="org.apache.axis2.clustering.tribes.TribesClusteringAgent" enable="true">
-
-        <!--
-           This parameter indicates whether the cluster has to be automatically initalized
-           when the AxisConfiguration is built. If set to "true" the initialization will not be
-           done at that stage, and some other party will have to explictly initialize the cluster.
-        -->
-        <parameter name="AvoidInitiation">true</parameter>
-
-        <!--
-           The membership scheme used in this setup. The only values supported at the moment are
-           "multicast" and "wka"
-
-           1. multicast - membership is automatically discovered using multicasting
-           2. wka - Well-Known Address based multicasting. Membership is discovered with the help
-                    of one or more nodes running at a Well-Known Address. New members joining a
-                    cluster will first connect to a well-known node, register with the well-known node
-                    and get the membership list from it. When new members join, one of the well-known
-                    nodes will notify the others in the group. When a member leaves the cluster or
-                    is deemed to have left the cluster, it will be detected by the Group Membership
-                    Service (GMS) using a TCP ping mechanism.
-        -->
-        <parameter name="membershipScheme">wka</parameter>
-
-        <!--
-         The clustering domain/group. Nodes in the same group will belong to the same multicast
-         domain. There will not be interference between nodes in different groups.
-        -->
-        <parameter name="domain">wso2.carbon.lb.domain</parameter>
-
-        <!--
-           When a Web service request is received, and processed, before the response is sent to the
-           client, should we update the states of all members in the cluster? If the value of
-           this parameter is set to "true", the response to the client will be sent only after
-           all the members have been updated. Obviously, this can be time consuming. In some cases,
-           such this overhead may not be acceptable, in which case the value of this parameter
-           should be set to "false"
-        -->
-        <parameter name="synchronizeAll">false</parameter>
-
-        <!--
-          The maximum number of times we need to retry to send a message to a particular node
-          before giving up and considering that node to be faulty
-        -->
-        <parameter name="maxRetries">10</parameter>
-
-        <!-- The multicast address to be used -->
-        <parameter name="mcastAddress">228.0.0.4</parameter>
-
-        <!-- The multicast port to be used -->
-        <parameter name="mcastPort">45564</parameter>
-
-        <!-- The frequency of sending membership multicast messages (in ms) -->
-        <parameter name="mcastFrequency">500</parameter>
-
-        <!-- The time interval within which if a member does not respond, the member will be
-         deemed to have left the group (in ms)
-         -->
-        <parameter name="memberDropTime">3000</parameter>
-
-        <!--
-           The IP address of the network interface to which the multicasting has to be bound to.
-           Multicasting would be done using this interface.
-        -->
-        <parameter name="mcastBindAddress">127.0.0.1</parameter>
-
-        <!-- The host name or IP address of this member -->
-        
-        <!--parameter name="localMemberHost">127.0.0.1</parameter-->
-        
-
-        <!--
-        The TCP port used by this member. This is the port through which other nodes will
-        contact this member
-         -->
-        <parameter name="localMemberPort">4000</parameter>
-
-        <!--
-        Preserve message ordering. This will be done according to sender order.
-        -->
-        <parameter name="preserveMessageOrder">false</parameter>
-
-        <!--
-        Maintain atmost-once message processing semantics
-        -->
-        <parameter name="atmostOnceMessageSemantics">false</parameter>
-         
-        <!--
-           This interface is responsible for handling state replication. The property changes in
-           the Axis2 context hierarchy in this node, are propagated to all other nodes in the cluster.
-
-           The "excludes" patterns can be used to specify the prefixes (e.g. local_*) or
-           suffixes (e.g. *_local) of the properties to be excluded from replication. The pattern
-           "*" indicates that all properties in a particular context should not be replicated.
-
-            The "enable" attribute indicates whether context replication has been enabled
-        -->
-        <stateManager class="org.apache.axis2.clustering.state.DefaultStateManager"
-                      enable="false">
-            <replication>
-                <defaults>
-                    <exclude name="local_*"/>
-                    <exclude name="LOCAL_*"/>
-                </defaults>
-                <context class="org.apache.axis2.context.ConfigurationContext">
-                    <exclude name="local_*"/>
-                    <exclude name="UseAsyncOperations"/>
-                    <exclude name="SequencePropertyBeanMap"/>
-                </context>
-                <context class="org.apache.axis2.context.ServiceGroupContext">
-                    <exclude name="local_*"/>
-                    <exclude name="my.sandesha.*"/>
-                </context>
-                <context class="org.apache.axis2.context.ServiceContext">
-                    <exclude name="local_*"/>
-                    <exclude name="my.sandesha.*"/>
-                </context>
-            </replication>
-        </stateManager>
-    </clustering>
-
-    <!-- ================================================= -->
-    <!--                    Phases                         -->
-    <!-- ================================================= -->
-
-    <phaseOrder type="InFlow">
-        <!--  System pre defined phases       -->
-        <phase name="Transport"/>
-        <phase name="Addressing"/>
-        <phase name="Security"/>
-        <phase name="PreDispatch"/>
-        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/>
-        <!--  System pre defined phases       -->
-        <phase name="RMPhase"/>
-        <phase name="OpPhase"/>
-    </phaseOrder>
-
-    <phaseOrder type="OutFlow">
-        <!-- Handlers related to unified-endpoint component are added to the UEPPhase -->
-        <phase name="UEPPhase" />
-        <!--      user can add his own phases to this area  -->
-        <phase name="RMPhase"/>
-        <phase name="MUPhase"/>
-        <phase name="OpPhase"/>
-        <phase name="OperationOutPhase"/>
-        <!--system predefined phase-->
-        <!--these phase will run irrespective of the service-->
-        <phase name="PolicyDetermination"/>
-        <phase name="MessageOut"/>
-        <phase name="Security"/>
-    </phaseOrder>
-
-    <phaseOrder type="InFaultFlow">
-        <phase name="Transport"/>
-        <phase name="Addressing"/>
-        <phase name="Security"/>
-        <phase name="PreDispatch"/>
-        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/>
-        <!--      user can add his own phases to this area  -->
-        <phase name="RMPhase"/>
-        <phase name="OpPhase"/>
-        <phase name="MUPhase"/>
-        <phase name="OperationInFaultPhase"/>
-    </phaseOrder>
-
-    <phaseOrder type="OutFaultFlow">
-        <!-- Handlers related to unified-endpoint component are added to the UEPPhase -->
-        <phase name="UEPPhase" />
-        <!--      user can add his own phases to this area  -->
-        <phase name="RMPhase"/>
-        <!-- Must Understand Header processing phase -->
-        <phase name="MUPhase"/>
-        <phase name="OperationOutFaultPhase"/>
-        <phase name="PolicyDetermination"/>
-        <phase name="MessageOut"/>
-        <phase name="Security"/>
-    </phaseOrder>
-
-</axisconfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/cipher-text.properties
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/cipher-text.properties b/products/cloud_controller/modules/distribution/src/main/conf/cipher-text.properties
deleted file mode 100644
index 4a1c469..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/cipher-text.properties
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-#aliases=esb
-#
-## configuration  per each plaintext
-#esb.secret=M6U74dMVvRm4XFMczki2qZ6CsTvnUuRTjSditlACR5vTISSMI7F/mCTVJGOGdKJjij+VWVhBtmAOkElyvR9TwlUECnZ1o5DNsTK6l8je+9amc/ziTQLP3Q1tzm/Ex1pzHsG6jPGGrv3O0B9pZTfYFqRvlcNhM7Ve3WvA3ibs4Yk=
-#esb.secret.alias=wso2carbon
-#esb.secret.keystore=identity
-#

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/datasources.properties
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/datasources.properties b/products/cloud_controller/modules/distribution/src/main/conf/datasources.properties
deleted file mode 100644
index 0cf8cdb..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/datasources.properties
+++ /dev/null
@@ -1,58 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-################################################################################
-## DataSources Configuration
-################################################################################
-#synapse.datasources=lookupds,reportds
-#synapse.datasources.icFactory=com.sun.jndi.rmi.registry.RegistryContextFactory
-#synapse.datasources.providerPort=2199
-## If following property is present , then assumes that there is an external JNDI provider and will not start a RMI registry
-##synapse.datasources.providerUrl=rmi://localhost:2199
-#
-#synapse.datasources.lookupds.registry=Memory
-#synapse.datasources.lookupds.type=BasicDataSource
-#synapse.datasources.lookupds.driverClassName=org.apache.derby.jdbc.ClientDriver
-#synapse.datasources.lookupds.url=jdbc:derby://localhost:1527/lookupdb;create=false
-## Optionally you can specifiy a specific password provider implementation which overrides any globally configured provider
-#synapse.datasources.lookupds.secretProvider=org.apache.synapse.commons.security.secret.handler.SharedSecretCallbackHandler
-#synapse.datasources.lookupds.username=esb
-## Depending on the password provider used, you may have to use an encrypted password here!
-#synapse.datasources.lookupds.password=esb
-#synapse.datasources.lookupds.dsName=lookupdb
-#synapse.datasources.lookupds.maxActive=100
-#synapse.datasources.lookupds.maxIdle=20
-#synapse.datasources.lookupds.maxWait=10000
-#
-#synapse.datasources.reportds.registry=JNDI
-#synapse.datasources.reportds.type=PerUserPoolDataSource
-#synapse.datasources.reportds.cpdsadapter.factory=org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
-#synapse.datasources.reportds.cpdsadapter.className=org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
-#synapse.datasources.reportds.cpdsadapter.name=cpds
-#synapse.datasources.reportds.dsName=reportdb
-#synapse.datasources.reportds.driverClassName=org.apache.derby.jdbc.ClientDriver
-#synapse.datasources.reportds.url=jdbc:derby://localhost:1527/reportdb;create=false
-## Optionally you can specifiy a specific password provider implementation which overrides any globally configured provider
-#synapse.datasources.reportds.secretProvider=org.apache.synapse.commons.security.secret.handler.SharedSecretCallbackHandler
-#synapse.datasources.reportds.username=esb
-## Depending on the password provider used, you may have to use an encrypted password here!
-#synapse.datasources.reportds.password=esb
-#synapse.datasources.reportds.maxActive=100
-#synapse.datasources.reportds.maxIdle=20
-#synapse.datasources.reportds.maxWait=10000
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/embedded-ldap.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/embedded-ldap.xml b/products/cloud_controller/modules/distribution/src/main/conf/embedded-ldap.xml
deleted file mode 100644
index 144628e..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/embedded-ldap.xml
+++ /dev/null
@@ -1,165 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!--
-	All carbon based products comes with a LDAP user store.
-	For this we use an embedded LDAP in carbon based products.
-	This file contains necessary configurations to control the behavior of embedded LDAP.
-	You may use this file to enable, disable LDAP server, configure connection admin password, etc ...
-	In addition to embedded-ldap server configurations this file also has Kerberos KDC (Key Distribution Center)
-	specific configurations.
--->
-
-<EmbeddedLDAPConfig>
-
-  <!--
-	LDAP server configurations
-	==========================
-	This section contains LDAP server specific configurations.
-
-	Property                Usage
-	=======                 ====
-	enable                  If true the embedded LDAP server will start when server starts up.
-				            Else embedded LDAP server will not start. Thus user has to use a different
-				            user store.
-	instanceid              An id given to the LDAP server instance.
-	connectionPassword      The password of the admin. (uid=admin,ou=system)
-	workingDirectory        Location where LDAP will store its schema files.
-	AdminEntryObjectClass   Object class which encapsulate attributes needed by claims.
-	allowAnonymousAccess    Should allow users to access LDAP server without credentials. Default false.
-	accessControlEnabled    Should access control be enabled among partitions. Default true.
-	saslHostName            Default host name to be used in SASL (Simple Authentication and Security Layer).
-				            This property comes from apacheds implementation itself.
-	saslPrincipalName       Default SASL principal name. Again this property also comes from apacheds implementation
-				            itself.
-  -->
-  <EmbeddedLDAP>
-    <Property name="enable">false</Property>
-    <Property name="port">${Ports.EmbeddedLDAP.LDAPServerPort}</Property>
-    <Property name="instanceId">default</Property>
-    <Property name="connectionPassword">admin</Property>
-    <Property name="workingDirectory">.</Property>
-    <Property name="AdminEntryObjectClass">wso2Person</Property>
-    <Property name="allowAnonymousAccess">false</Property>
-    <Property name="accessControlEnabled">true</Property>
-    <Property name="denormalizeOpAttrsEnabled">false</Property>
-    <Property name="maxPDUSize">2000000</Property>
-    <Property name="saslHostName">localhost</Property>
-    <Property name="saslPrincipalName">ldap/localhost@EXAMPLE.COM</Property>
-  </EmbeddedLDAP>
-
-  <!--
-	Default partition configurations
-	================================
-	When embedded LDAP server starts for the first time it will create a default partition.
-	Following properties configure values for the default partition.
-
-	Property                        Usage
-	=======                         =====
-	id                              Each partition is given an id. The id given to the default paritition.
-	realm                           Realm is the place where we store user principals and service principals.
-                                        The name of the realm for default partition.
-	kdcPassword                     This parameter is used when KDC (Key Distribution Center) is enabled. In apacheds
-                                        KDC also has a server principal. This defines a password for KDC server principal.
-	ldapServerPrinciplePassword     If LDAP server is also defined as a server principal, this will be the password.
-
-  -->
-  <DefaultPartition>
-    <Property name="id">root</Property>
-    <Property name="realm">wso2.org</Property>
-    <Property name="kdcPassword">secret</Property>
-    <Property name="ldapServerPrinciplePassword">randall</Property>
-  </DefaultPartition>
-
-  <!--
-	Default partition admin configurations
-	======================================
-	In a multi-tenant scenario each tenant will have a separate partition. Thus tenant admin will be the partition admin.
-	Following configurations define admin attributes for above created default partition.
-
-	Property            Usage
-	========            =====
-	uid                 UID attribute for partition admin.
-	commonName          The cn attribute for admin
-	lastName            The sn attribute for admin
-	email               The email attribute for admin
-	passwordType        The password hashing mechanism. Following hashing mechanisms are available, "SHA", "MD5".
-                        "Plaintext" is also a valid value. If KDC is enabled password type will be enforced to be
-                        plain text.
-  -->
-  <PartitionAdmin>
-    <Property name="uid">admin</Property>
-    <Property name="firstName">admin</Property>
-    <Property name="lastName">admin</Property>
-    <Property name="email">admin@wso2.com</Property>
-    <Property name="password">admin</Property>
-    <Property name="passwordType">SHA</Property>
-  </PartitionAdmin>
-
-  <!--
-	Default partition admin's group configuration
-	=============================================
-	Embedded LDAP is capable of keeping group information also.
-	If LDAP groups are enabled in user store (usr-mgt.xml) group information will be
-	recorded in a separate sub-context. Following configuration defines the group
-	properties.
-
-	Property                Usage
-	=======                 =====
-	adminRoleName		    The name of the role/group that admin should be included.
-	groupNameAttribute	    The attribute which group name will be recorded.
-	memberNameAttribute	    The attribute which memebers are recorded.
-  -->
-  <PartitionAdminGroup>
-    <Property name="adminRoleName">admin</Property>
-    <Property name="groupNameAttribute">cn</Property>
-    <Property name="memberNameAttribute">member</Property>
-  </PartitionAdminGroup>
-
-    <!--
-      KDC configurations
-      =================
-      Following configurations are applicable to KDC server. Generally, the KDC is only enabled in
-      Identity Server. You may enable KDC server if you wish to do so. But if you dont have any Kerberos specific
-      programs, it is recommended to disable KDC server.
-
-      Property                          Usage
-      =======                           =====
-      name                              Name given to default KDC server.
-      enabled                           If true a KDC server will start when starting LDAP server.
-                                          Else a KDC server will not start with a LDAP server.
-      protocol                          Default protocol to be used in KDC communication. Default is UDP.
-      maximumTicketLifeTime             The maximum life time of a ticket issued by the KDC.
-      maximumRenewableLifeTime          Life time which a ticket can be used by renewing it several times.
-      preAuthenticationTimeStampEnabled Pre-authentication is a feature in latest Kerberos protocol.
-                                          This property says whether to enable it or disable it.
-    -->
-  <KDCServer>
-    <Property name="name">defaultKDC</Property>
-    <Property name="enabled">false</Property>
-    <Property name="protocol">UDP</Property>
-    <Property name="host">localhost</Property>
-    <Property name="port">${Ports.EmbeddedLDAP.KDCServerPort}</Property>
-    <Property name="maximumTicketLifeTime">8640000</Property>
-    <Property name="maximumRenewableLifeTime">604800000</Property>
-    <Property name="preAuthenticationTimeStampEnabled">true</Property>
-  </KDCServer>
-
-</EmbeddedLDAPConfig>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/event-broker.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/event-broker.xml b/products/cloud_controller/modules/distribution/src/main/conf/event-broker.xml
deleted file mode 100644
index 0c242a0..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/event-broker.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<!--
-this is the configuration file for the carbon event broker component. this configuration file configures the various subsystems of the event
-broker compoent and parameters.
--->
-<eventBrokerConfig xmlns="http://wso2.org/carbon/event/broker">
-    <eventBroker name="carbonEventBroker" class = "org.wso2.carbon.event.core.internal.CarbonEventBrokerFactory">
-         <!-- topic manager implemenation class.-->
-        <topicManager name="TopicManager" class="org.wso2.carbon.event.core.internal.topic.registry.RegisistryTopicManagerFactory">
-            <!-- root node of the topic tree -->
-            <topicStoragePath>event/topics</topicStoragePath>
-        </topicManager>
-        <!-- subscriptionmnager implementaion. subscription manager persits the
-        subscriptions at the registry.  users can configure the topics root node and the topicIndex path -->
-        <subscriptionManager name="subscriptionManager"
-                             class="org.wso2.carbon.event.core.internal.subscription.registry.RegistrySubscriptionManagerFactory">
-            <topicStoragePath>event/topics</topicStoragePath>
-            <indexStoragePath>event/topicIndex</indexStoragePath>
-        </subscriptionManager>
-
-        <!-- delivary manager inmplementation. delivary manager does actual delivary part of the event broker -->
-        <deliveryManager name="deliveryManager"
-                         class="org.wso2.carbon.event.core.internal.delivery.jms.QpidJMSDeliveryManagerFactory"
-                         type="local">
-           <!--  <remoteMessageBroker>
-                <hostName>localhost</hostName>
-                <servicePort>9443</servicePort>
-                <webContext>/</webContext>
-                <userName>admin</userName>
-                <password>admin</password>
-                <qpidPort>5672</qpidPort>
-                <clientID>clientID</clientID>
-                <virtualHostName>carbon</virtualHostName>
-            </remoteMessageBroker> -->
-        </deliveryManager>
-
-         <!-- when publising an event event broker uses a seperate thread pool with an executor. following parameters configure different parameters of that -->
-        <eventPublisher>
-            <minSpareThreads>5</minSpareThreads>
-            <maxThreads>50</maxThreads>
-            <maxQueuedRequests>1000</maxQueuedRequests>
-            <keepAliveTime>1000</keepAliveTime>
-        </eventPublisher>
-    </eventBroker>
-</eventBrokerConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/jaas.conf
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/jaas.conf b/products/cloud_controller/modules/distribution/src/main/conf/jaas.conf
deleted file mode 100644
index 7a2a295..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/jaas.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-Server {
-       org.apache.zookeeper.server.auth.DigestLoginModule required
-       user_super="admin"
-       user_admin="admin";
-};
-Client {
-       org.apache.zookeeper.server.auth.DigestLoginModule required
-       username="admin"
-       password="admin";
-};

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/log4j.properties
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/log4j.properties b/products/cloud_controller/modules/distribution/src/main/conf/log4j.properties
deleted file mode 100644
index ec224d4..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/log4j.properties
+++ /dev/null
@@ -1,128 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-##
-# This is the log4j configuration file used by WSO2 ESB
-# =====================================================
-#
-# IMPORTANT : Please do not remove or change the names of any of the Appenders defined here.
-# The layout pattern & log file can be changed using the WSO2 ESB Management Console, and those
-# settings will override the settings in this file.
-##
-
-##
-# WSO2 ESB is now able to create per-service trace logs at runtime. Thus while a message
-# is being processed through a Proxy service or the Synapse service (i.e. message mediation through
-# the 'main' sequence), tracing may be turned 'on' at any Proxy, Sequence or Mediator level. This
-# trace state 'flows' with the message - i.e from a trace enabled sequence to another sequence etc.
-# and applies to all mediators within a trace enabled sequence etc. unless another sequence or
-# mediator does not override and specify a different trace setting.
-##
-
-# the root category is ERROR (applies for all 3rd party JARs etc) and will be logged to the
-# LOG_APPENDER and the CONSOLE_APPENDER
-
-log4j.rootLogger=ERROR, CARBON_CONSOLE, CARBON_LOGFILE, ERROR_LOGFILE
-
-log4j.category.org.apache.synapse=INFO
-log4j.category.org.apache.synapse.transport=INFO
-log4j.category.org.apache.axis2=INFO
-log4j.category.org.apache.axis2.transport=INFO
-log4j.logger.com.atomikos=INFO,ATOMIKOS
-log4j.logger.org.quartz=WARN
-log4j.logger.org.wso2=INFO
-log4j.logger.org.wso2.carbon=INFO
-
-log4j.logger.org.apache.catalina=WARN
-log4j.logger.org.apache.synapse.endpoints.EndpointContext=ERROR
-log4j.logger.org.apache.coyote=WARN
-log4j.logger.org.apache.axis2.enterprise=FATAL
-log4j.logger.de.hunsicker.jalopy.io=FATAL
-
-# uncomment the following logs to see HTTP headers and messages
-#log4j.logger.org.apache.synapse.transport.nhttp.headers=DEBUG
-#log4j.logger.org.apache.synapse.transport.nhttp.wire=DEBUG
-
-#nhttp accesslogs
-log4j.logger.org.apache.synapse.transport.nhttp.access=INFO
-
-# qpid related logs for the message broker
-log4j.logger.qpid=FATAL
-log4j.logger.org.apache.qpid=FATAL
-
-# The console appender is used to display general information at console
-log4j.appender.CARBON_CONSOLE=org.apache.log4j.ConsoleAppender
-log4j.appender.CARBON_CONSOLE.layout=org.apache.log4j.PatternLayout
-log4j.appender.CARBON_CONSOLE.layout.ConversionPattern=[%d{ISO8601}] %5p - %c{1} %m%n
-
-# Configure the service logger at INFO level. Writes only run-time/mediation-time audit messages
-log4j.category.SERVICE_LOGGER=INFO, SERVICE_APPENDER
-log4j.additivity.SERVICE_LOGGER=false
-log4j.appender.SERVICE_APPENDER=org.apache.log4j.RollingFileAppender
-log4j.appender.SERVICE_APPENDER.File=repository/logs/${instance.log}/wso2-cc${instance.log}.log
-log4j.appender.SERVICE_APPENDER.MaxFileSize=1000KB
-log4j.appender.SERVICE_APPENDER.MaxBackupIndex=10
-log4j.appender.SERVICE_APPENDER.layout=org.apache.log4j.PatternLayout
-log4j.appender.SERVICE_APPENDER.layout.ConversionPattern=%d{ISO8601} [%X{ip}-%X{host}] [%t] %5p %c{1} %m%n
-
-# The trace logger dumps enough information @INFO level, but maybe pushed upto TRACE.
-# Writes only run-time/mediation time tracing/debug messages for messages passing through trace
-# enabled sequences, mediators and services. Enabling tracing on these has a performance impact
-log4j.category.TRACE_LOGGER=INFO, TRACE_APPENDER
-log4j.additivity.TRACE_LOGGER=false
-log4j.appender.TRACE_APPENDER=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.TRACE_APPENDER.File=repository/logs/${instance.log}/wso2-cc-trace${instance.log}.log
-log4j.appender.TRACE_APPENDER.Append=true
-log4j.appender.TRACE_APPENDER.layout=org.apache.log4j.PatternLayout
-log4j.appender.TRACE_APPENDER.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%X{ip}-%X{host}] [%t] %5p %c{1} %m%n
-
-# CARBON_LOGFILE is set to be a DailyRollingFileAppender using a PatternLayout.
-log4j.appender.CARBON_LOGFILE=org.apache.log4j.DailyRollingFileAppender
-# Log file will be overridden by the configuration setting in the DB
-# This path should be relative to WSO2 Carbon Home
-log4j.appender.CARBON_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon${instance.log}.log
-log4j.appender.CARBON_LOGFILE.Append=true
-log4j.appender.CARBON_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
-# ConversionPattern will be overridden by the configuration setting in the DB
-log4j.appender.CARBON_LOGFILE.layout.ConversionPattern=TID: [%T] [%S] [%d] %P%5p {%c} - %x %m {%c}%n
-log4j.appender.CARBON_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
-log4j.appender.CARBON_LOGFILE.threshold=DEBUG
-
-# The standard error log where all the warnings, errors and fatal errors will be logged
-log4j.appender.ERROR_LOGFILE=org.apache.log4j.FileAppender
-log4j.appender.ERROR_LOGFILE.File=repository/logs/${instance.log}/wso2-cc-errors.log
-log4j.appender.ERROR_LOGFILE.layout=org.apache.log4j.PatternLayout
-log4j.appender.ERROR_LOGFILE.layout.ConversionPattern=%d{ISO8601} [%X{ip}-%X{host}] [%t] %5p %c{1} %m%n
-log4j.appender.ERROR_LOGFILE.threshold=WARN
-
-log4j.logger.org.apache.directory.shared.ldap=WARN, CARBON_CONSOLE
-log4j.logger.org.apache.directory.server.ldap.handlers=WARN, CARBON_CONSOLE
-log4j.logger.org.apache.directory.shared.ldap.entry.DefaultServerAttribute=FATAL, CARBON_CONSOLE
-log4j.logger.org.apache.directory.shared.ldap.ldif.LdifReader=ERROR, CARBON_CONSOLE
-log4j.logger.org.apache.directory.server.ldap.LdapProtocolHandler=ERROR, CARBON_CONSOLE
-
-# Appender config to send Atomikos transaction logs to new log file tm.out.
-log4j.appender.ATOMIKOS = org.apache.log4j.RollingFileAppender
-log4j.appender.ATOMIKOS.File = repository/logs/tm.out
-log4j.appender.ATOMIKOS.Append = true
-log4j.appender.ATOMIKOS.layout = org.apache.log4j.PatternLayout
-log4j.appender.ATOMIKOS.layout.ConversionPattern=%p %t %c - %m%n
-log4j.additivity.com.atomikos=false
-
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/rule-component.conf
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/rule-component.conf b/products/cloud_controller/modules/distribution/src/main/conf/rule-component.conf
deleted file mode 100644
index 1bd6c09..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/rule-component.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-<RuleServer>
-    <RuleEngineProvider class="org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory"/>
-</RuleServer>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/registry.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/registry.xml b/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/registry.xml
deleted file mode 100644
index f259c7a..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/registry.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- Registry declaration of the WSO2 ESB -->
-<registry xmlns="http://ws.apache.org/ns/synapse" provider="org.wso2.carbon.mediation.registry.WSO2Registry">
-    <!--all resources loaded from the URL registry would be
-    cached for this number of milliseconds -->
-    <parameter name="cachableDuration">15000</parameter>
-</registry>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/errorHandler.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/errorHandler.xml b/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/errorHandler.xml
deleted file mode 100644
index 8621bee..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/errorHandler.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-    <sequence name="errorHandler" xmlns="http://ws.apache.org/ns/synapse">
-	<log level="full">
-        	<property name="MESSAGE" value="Executing default 'fault' sequence"/>
-        	<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
-        	<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
-    	</log>
-        <makefault response="true">
-            <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
-            <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/>
-        </makefault>
-        <send/>
-    </sequence>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml b/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml
deleted file mode 100644
index 9d2d8f7..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- Default fault sequence shipped with the Apache Synapse -->
-<sequence xmlns="http://ws.apache.org/ns/synapse" name="fault">
-
-    <!-- Log the message at the full log level with the ERROR_MESSAGE and the ERROR_CODE-->
-    <!-- log level="full">
-        <property name="MESSAGE" value="Executing default 'fault' sequence"/>
-        <property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
-        <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
-    </log -->
-
-    <!-- Drops the messages by default if there is a fault -->
-    <script language="js"><![CDATA[
-        mc.setPayloadXML(
-           <{mc.getProperty("SERVICENAME")}Response xmlns="org.wso2.gateway">
-            <Timestamp>{new Date()}</Timestamp>
-            <Ack>Failure</Ack>
-            <Errors>
-             <ShortMessage>Gateway Error</ShortMessage>
-             <LongMessage>{mc.getProperty("ERROR_MESSAGE")}</LongMessage>
-             <ErrorCode>500</ErrorCode>
-             <SeverityCode>Error</SeverityCode>
-             <ErrorClassification>RequestError</ErrorClassification>
-            </Errors>
-            <ServiceName>{mc.getProperty("SERVICENAME")}</ServiceName>
-            <ResponseCode>{mc.getProperty("HTTP_SC")}</ResponseCode>
-            <ContentType>{mc.getProperty("Content-Type")}</ContentType>
-            <Version>1.5.1</Version>
-           </{mc.getProperty("SERVICENAME")}Response>
-        );
-      ]]></script>
-    <switch source="get-property('ERROR_CODE')">
-        <case regex="101504">   <!-- TIMEOUT ERROR -->
-            <property name="HTTP_SC" value="504" scope="axis2"/>
-            <sequence key="seq_timeout"/>
-        </case>
-        <case regex="303001">
-            <property name="HTTP_SC" value="503" scope="axis2"/>
-            <sequence key="seq_endpoint_down"/>
-        </case>
-        <case regex="111503">
-            <property name="HTTP_SC" value="503" scope="axis2"/>
-            <sequence key="seq_endpoint_down"/>
-        </case>
-        <default>
-            <property name="HTTP_SC" value="500" scope="axis2"/>
-        </default>
-    </switch>
-    <property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
-    <header name="To" action="remove"/>
-    <property name="RESPONSE" value="true"/>
-    <property name="messageType" value="text/xml" scope="axis2"/>
-    <property name="ContentType" value="text/xml" scope="axis2"/>
-
-    <send/>
-
-</sequence>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/main.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/main.xml b/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/main.xml
deleted file mode 100644
index c4dbf5b..0000000
--- a/products/cloud_controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/main.xml
+++ /dev/null
@@ -1,110 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- Default main sequence shipped with the WSO2 ESB -->
-<sequence xmlns="http://ws.apache.org/ns/synapse" name="main" onError="fault">
-    <description>The main sequence for the message mediation</description>
-
-    <in>
-        <property name="REQUEST_HOST_HEADER" expression="$trp:host" scope="axis2"/>
-        <property name="SERVICE_PREFIX" expression="$axis2:SERVICE_PREFIX"/>
-        <send>
-            <!--endpoint name="sdlbEndpoint">
-                <session type="http">-->
-                    <!-- Session timout is 15mins-->
-                    <!--sessionTimeout>900000</sessionTimeout>
-                </session>
-                <serviceDynamicLoadbalance failover="true"
-                                           algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"
-                                           configuration="$system:loadbalancer.xml"/>
-            </endpoint>
-            -->
-	          <!--endpoint name="tenantAwareLBEndpoint">
-                <class name ="org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint">
-                     <parameter name="algorithm"> org.apache.synapse.endpoints.algorithms.RoundRobin</parameter>
-                     <parameter name="configuration">$system:loadbalancer.conf</parameter>
-                     <parameter name="failover">true</parameter>          
-                     <parameter name="sessionTimeout">900000</parameter>
-  	            </class>
- 	          </endpoint-->
-        </send>
-        <drop/>
-    </in>
-
-    <out>
-        <!-- Handling status codes: 301, 302 Redirection -->
-        <filter source="$trp:Location" regex=".+">
-            <property name="LB_SP_Host" expression="$ctx:SERVICE_PREFIX"
-                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="2"/>
-
-            <property name="LB_Location_Protocol" expression="$trp:Location"
-                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="1"/>
-            <property name="LB_Location_Host" expression="$trp:Location"
-                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="2"/>
-            <property name="LB_Location_Path" expression="$trp:Location"
-                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="4"/>
-
-            <!--<log level="custom">
-               <property name="ameera-ocation" expression="$trp:Location"/>
-               <property name="ameera-sprefix" expression="$ctx:SERVICE_PREFIX"/>
-           </log>-->
-
-            <filter xpath="fn:lower-case($ctx:LB_SP_Host)=fn:lower-case($ctx:LB_Location_Host)">
-                <then>
-                    <switch source="fn:lower-case($ctx:LB_Location_Protocol)">
-                        <case regex="https://">
-                            <property name="Location"
-                                      expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
-                                      scope="transport"/>
-                        </case>
-                        <case regex="http://">
-                            <property name="Location"
-                                      expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
-                                      scope="transport"/>
-                        </case>
-                    </switch>
-                </then>
-
-                <else>
-                    <filter xpath="$ctx:LB_REQUEST_HOST=fn:lower-case($ctx:LB_Location_Host)">
-                        <switch source="fn:lower-case($ctx:LB_Location_Protocol)">
-                            <case regex="https://">
-                                <property name="Location"
-                                          expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
-                                          scope="transport"/>
-                            </case>
-                            <case regex="http://">
-                                <property name="Location"
-                                          expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
-                                          scope="transport"/>
-                            </case>
-                        </switch>
-                    </filter>
-                </else>
-            </filter>
-        </filter>
-
-        <!-- Send the messages where they have been sent (i.e. implicit To EPR) -->
-        <property name="messageType" value="text/html" scope="axis2"/>
-        <send/>
-        <drop/>
-    </out>
-
-</sequence>


[02/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery-1.5.1.min.js
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery-1.5.1.min.js b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery-1.5.1.min.js
deleted file mode 100755
index e8a831a..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery-1.5.1.min.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.5.1
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Wed Feb 23 13:55:29 2011 -0500
- */
-(function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h==="string"&&(f[h.toLowerCase()]=a.converters[h]);l=k,k=e[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=f[m]||f["* "+k];if(!n){p=b;for(o in f){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=f[j[1]+" "+k];if(p){o=f[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&d.error("No con
 version from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bP(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bO(a,b,c,e){if(d.isArray(b)&&b.length)d.each(b,function(b,f){c||bq.test(a)?e(a,f):bO(a+"["+(typeof f==="object"||d.isArray(f)?b:"")+"]",f,c,e)});else if(c||b==null||typeof b!=="object")e(a,b);else if(d.isArray(b)||d.isEmptyObject(b))e(a,"");else for(var f in b)bO(a+"["+f+"]",b[f],c,e)}function bN(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bH,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l==="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bN(a,c,d,e,l,g)));(k||!l)&&!g["*"
 ]&&(l=bN(a,c,d,e,"*",g));return l}function bM(a){return function(b,c){typeof b!=="string"&&(c=b,b="*");if(d.isFunction(c)){var e=b.toLowerCase().split(bB),f=0,g=e.length,h,i,j;for(;f<g;f++)h=e[f],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bo(a,b,c){var e=b==="width"?bi:bj,f=b==="width"?a.offsetWidth:a.offsetHeight;if(c==="border")return f;d.each(e,function(){c||(f-=parseFloat(d.css(a,"padding"+this))||0),c==="margin"?f+=parseFloat(d.css(a,"margin"+this))||0:f-=parseFloat(d.css(a,"border"+this+"Width"))||0});return f}function ba(a,b){b.src?d.ajax({url:b.src,async:!1,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||""),b.parentNode&&b.parentNode.removeChild(b)}function _(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function jQuery(a,b){if(b.nodeType===1){var c=b.nodeName.toLowerCase();b.clearAttributes(),b.mergeAttributes(a);if(c==="object")b.outerH
 TML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(d.expando)}}function Z(a,b){if(b.nodeType===1&&d.hasData(a)){var c=d.expando,e=d.data(a),f=d.data(b,e);if(e=e[c]){var g=e.events;f=f[c]=d.extend({},e);if(g){delete f.handle,f.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)d.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function Y(a,b){return d.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function O(a,b,c){if(d.isFunction(b))return d.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return d.grep(a,function(a,d){return a===b===c});if(typeof b==="string"){var e=d.grep(a,function(a){return a.nodeType===1});i
 f(J.test(b))return d.filter(b,e,!c);b=d.filter(b,e)}return d.grep(a,function(a,e){return d.inArray(a,b)>=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|jQuery)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;i<t.length;i++)g=t[i],g.origType.replace(p,"")===a.type?r.push(g.selector):t.splice(i--,1);f=d(a.target).closest(r,a.currentTarget);for(j=0,k=f.length;j<k;j++){m=f[j];for(i=0;i<t.length;i++){g=t[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,e=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,e=d(a.relatedTarget).closest(g.selector)[0];(!e||e!==h)&&q.push({elem:h,ha
 ndleObj:g,level:m.level})}}}for(j=0,k=q.length;j<k;j++){f=q[j];if(c&&f.level>c)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d
 .fn.init(a,b,g)},e=a.jQuery,f=a.jQuery,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery
 ?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.select
 or=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){e=i[c],f=a[c];if(i===f)continue;l&&f&&(d.isPlainObject(f)||(g=d.isArray(f)))?(g?(g=!1,h=e&&d.isArray(e)?e:[]):h=e&&d.isPlainObject(e)?e:{},i[
 c]=d.extend(l,h,f)):f!==b&&(i[c]=f)}return i},d.extend({noConflict:function(b){a.jQuery=f,b&&(a.jQuery=e);return d},isReady:!1,readyWait:1,ready:function(a){a===!0&&d.readyWait--;if(!d.readyWait||a!==!0&&!d.isReady){if(!c.body)return setTimeout(d.ready,1);d.isReady=!0;if(a!==!0&&--d.readyWait>0)return;y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=!0;if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",A,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",A),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},typ
 e:function(a){return a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||C.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.doc
 umentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g<h;)if(c.apply(a[g++],e)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(var j=a[0];g<h&&c.call(j,g,j)!==!1;j=a[++g]){}return a},trim:F?function(a){return a==null?"":F.call(a)}:function(a){return a==null?"":(a+"").replace(j,"").replace(k,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var e=d.type(a);a.length==null||e==="string"||e==="function"||e==="regexp"||d.isWindow(a)?D.call(c,a):d.merge(c,a)}return c},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length==="
 number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,b,c){var d=[],e;for(var f=0,g=a.length;f<g;f++)e=b(a[f],f,c),e!=null&&(d[d.length]=e);return d.concat.apply([],d)},guid:1,proxy:function(a,c,e){arguments.length===2&&(typeof c==="string"?(e=a,a=e[c],c=b):c&&!d.isFunction(c)&&(e=c,c=b)),!c&&a&&(c=function(){return a.apply(e||this,arguments)}),a&&(c.guid=a.guid=a.guid||c.guid||d.guid++);return c},access:function(a,c,e,f,g,h){var i=a.length;if(typeof c==="object"){for(var j in c)d.access(a,j,c[j],f,g,e);return a}if(e!==b){f=!h&&f&&d.isFunction(e);for(var k=0;k<i;k++)g(a[k],c,f?e.call(a[k],k,g(a[k],c)):e,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},_Deferred:function(){var a=[],b,c,e,f={done:function(){if(!e){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g
 ],j=d.type(i),j==="array"?f.done.apply(f,i):j==="function"&&a.push(i);k&&f.resolveWith(k[0],k[1])}return this},resolveWith:function(d,f){if(!e&&!b&&!c){c=1;try{while(a[0])a.shift().apply(d,f)}catch(g){throw g}finally{b=[d,f],c=0}}return this},resolve:function(){f.resolveWith(d.isFunction(this.promise)?this.promise():this,arguments);return this},isResolved:function(){return c||b},cancel:function(){e=1,a=[];return this}};return f},Deferred:function(a){var b=d._Deferred(),c=d._Deferred(),e;d.extend(b,{then:function(a,c){b.done(a).fail(c);return this},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,promise:function(a){if(a==null){if(e)return e;e=a={}}var c=z.length;while(c--)a[z[c]]=b[z[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){var b=arguments.length,c=b<=1&&a&&d.isFunction(a.promise)?a:d.Deferred(),e=c.promise();if(b>1){var f=E.call(arguments,0),g=b,h=function(a){return function(b){f[a]=argume
 nts.length>1?E.call(arguments,0):b,--g||c.resolveWith(e,f)}};while(b--)a=f[b],a&&d.isFunction(a.promise)?a.promise().then(h(b),c.reject):--g;g||c.resolveWith(e,f)}else c!==a&&c.resolve(a);return e},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),y=d._Deferred(),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),G&&(d.inArray=function(a,b){return G.call(b
 ,a)}),i.test(" ")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?A=function(){c.removeEventListener("DOMContentLoaded",A,!1),d.ready()}:c.attachEvent&&(A=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",A),d.ready())});return d}();(function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",o
 ptSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e),b=e=f=null}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClo
 ne=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="funct
 ion"),b=null;return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}})();var e=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!g(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,h=b.nodeType,i=h?d.cache:b,j=h?b[d.expando]:d.expa
 ndo;if(!i[j])return;if(c){var k=e?i[j][f]:i[j];if(k){delete k[c];if(!g(k))return}}if(e){delete i[j][f];if(!g(i[j]))return}var l=i[j][f];d.support.deleteExpando||i!=a?delete i[j]:i[j]=null,l?(i[j]={},h||(i[j].toJSON=d.noop),i[j][f]=l):h&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var g=this[0].attributes,h;for(var i=0,j=g.length;i<j;i++)h=g[i].name,h.indexOf("data-")===0&&(h=h.substr(5),f(this[0],h,e[h]))}}return e}if(typeof a==="object")return this.each(function(){d.data(this,a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(c===b){e=this.triggerHandler("getData"+k[1]+"!",[k[0]]),e===b&&this.length&&(e=d
 .data(this[0],a),e=f(this[0],a,e));return e===b&&k[1]?this.data(k[0]):e}return this.each(function(){var b=d(this),e=[k[0],c];b.triggerHandler("setData"+k[1]+"!",e),d.data(this,a,c),b.triggerHandler("changeData"+k[1]+"!",e)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}}),d.extend({queue:function(a,b,c){if(a){b=(b||"fx")+"queue";var e=d._data(a,b);if(!c)return e||[];!e||d.isArray(c)?e=d._data(a,b,d.makeArray(c)):e.push(c);return e}},dequeue:function(a,b){b=b||"fx";var c=d.queue(a,b),e=c.shift();e==="inprogress"&&(e=c.shift()),e&&(b==="fx"&&c.unshift("inprogress"),e.call(a,function(){d.dequeue(a,b)})),c.length||d.removeData(a,b+"queue",!0)}}),d.fn.extend({queue:function(a,c){typeof a!=="string"&&(c=a,a="fx");if(c===b)return d.queue(this[0],a);return this.each(function(b){var e=d.queue(this,a,c);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]
 ||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){d.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var h=/[\n\t\r]/g,i=/\s+/,j=/\r/g,k=/^(?:href|src|style)$/,l=/^(?:button|input)$/i,m=/^(?:button|input|object|select|textarea)$/i,n=/^a(?:rea)?$/i,o=/^(?:radio|checkbox)$/i;d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},d.fn.extend({attr:function(a,b){return d.access(this,a,b,!0,d.attr)},removeAttr:function(a,b){return this.each(function(){d.attr(this,a,""),this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.addClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"){var b=(a||"").split(i);for(var c=0,e=this.length;c<e;c++){var f=this[c];if(f.nodeType===1)if(f.className){var g="
  "+f.className+" ",h=f.className;for(var j=0,k=b.length;j<k;j++)g.indexOf(" "+b[j]+" ")<0&&(h+=" "+b[j]);f.className=d.trim(h)}else f.className=a}}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.removeClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"||a===b){var c=(a||"").split(i);for(var e=0,f=this.length;e<f;e++){var g=this[e];if(g.nodeType===1&&g.className)if(a){var j=(" "+g.className+" ").replace(h," ");for(var k=0,l=c.length;k<l;k++)j=j.replace(" "+c[k]+" "," ");g.className=d.trim(j)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,e=typeof b==="boolean";if(d.isFunction(a))return this.each(function(c){var e=d(this);e.toggleClass(a.call(this,c,e.attr("class"),b),b)});return this.each(function(){if(c==="string"){var f,g=0,h=d(this),j=b,k=a.split(i);while(f=k[g++])j=e?j:!h.hasClass(f),h[j?"addClass":"removeClass"](f)}else if(c==="undefined"||c==="boolean")this.className&&d._data(this,"__
 className__",this.className),this.className=this.className||a===!1?"":d._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(h," ").indexOf(b)>-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var k=i?f:0,l=i?f+1:h.length;k<l;k++){var m=h[k];if(m.selected&&(d.support.optDisabled?!m.disabled:m.getAttribute("disabled")===null)&&(!m.parentNode.disabled||!d.nodeName(m.parentNode,"optgroup"))){a=d(m).val();if(i)return a;g.push(a)}}if(i&&!g.length&&h.length)return d(h[f]).val();return g}if(o.test(c.type)&&!d.support.checkOn)return c.getAttribute("value")===null?"on":c.value;return(c.value||"").replace(j,"")}return b}var n=d.isFunction(a);return this.each(function(b){var 
 c=d(this),e=a;if(this.nodeType===1){n&&(e=a.call(this,b,c.val())),e==null?e="":typeof e==="number"?e+="":d.isArray(e)&&(e=d.map(e,function(a){return a==null?"":a+""}));if(d.isArray(e)&&o.test(this.type))this.checked=d.inArray(c.val(),e)>=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=k.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&l.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?
 a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var o=a.getAttributeNode("tabIndex");return o&&o.specified?o.value:m.test(a.nodeName)||n.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var p=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return p===null?b:p}h&&(a[c]=e);return a[c]}});var p=/\.(.*)$/,q=/^(?:textarea|input|select)$/i,r=/\./g,s=/ /g,t=/[^\w\s.|`]/g,u=function(a){return a.replace(t,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=v;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l=
 {}),m||(k.handle=m=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=v);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")
 <0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))d.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=d.event.special[h]||{};for(j=f||0;j<p.length;j++){q=p[j];if(e.guid===q.guid){if(l||n.test(q.namespace))f==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(f!=null)break}}if(p.length===0||f!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&d.removeEvent(a,h,s.handle),g=null,delete t[h]}if(d.isEmptyObject(t)){var w=s.handle;w&&(w.elem=null),delete s.events,delete s.handle,d.isEmptyObject(s)&&d.removeData(a,b,!0)}}},trigger:function(a,c,e){var f=a.type||a,g=arguments[3];if(!g){a=typeof a==="object"?a[d.expando]?a:d.extend(d.Event(f),a):d.Event(f),f.indexOf("!")>=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.eve
 nts&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(p,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=!0,l[m]())}catch(q){}k&&(l["on"+m]=k),d.event.triggered=!1}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.sl
 ice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l<m;l++){var n=f[l];if(e||h.test(n.namespace)){c.handler=n.handler,c.data=n.data,c.handleObj=n;var o=n.handler.apply(this,k);o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[d.expando])return a;var e=a;a=d.Event(e);for(var f=this.props.length,g;f;)g=this.props[--f],a[g]=e[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.p
 arentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=c.documentElement,i=c.body;a.pageX=a.clientX+(h&&h.scrollLeft||i&&i.scrollLeft||0)-(h&&h.clientLeft||i&&i.clientLeft||0),a.pageY=a.clientY+(h&&h.scrollTop||i&&i.scrollTop||0)-(h&&h.clientTop||i&&i.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,F(a.origType,a.selector),d.extend({},a,{handler:E,guid:a.handler.guid}))},remove:function(a){d.event.remove(this,F(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){d.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunloa
 d=null)}}}},d.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},d.Event=function(a){if(!this.preventDefault)return new d.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?w:v):this.type=a,this.timeStamp=d.now(),this[d.expando]=!0},d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=w;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=w;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=w,this.stopPropagation()},isDefaultPrevented:v,isPropagationStopped:v,isImmediatePropagationStopped:v};var x=function(a){var b=a.relatedTarget;try{if(b!==c&&!b.parentNode)r
 eturn;while(b&&b!==this)b=b.parentNode;b!==this&&(a.type=a.data,d.event.handle.apply(this,arguments))}catch(e){}},y=function(a){a.type=a.data,d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(c){d.event.add(this,b,c&&c.selector?y:x,a)},teardown:function(a){d.event.remove(this,b,a&&a.selector?y:x)}}}),d.support.submitBubbles||(d.event.special.submit={setup:function(a,b){if(this.nodeName&&this.nodeName.toLowerCase()!=="form")d.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&d(b).closest("form").length&&C("submit",this,arguments)}),d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&d(b).closest("form").length&&a.keyCode===13&&C("submit",this,arguments)});else return!1},teardown:function(a){d.event.remove(this,".specialSubmit")}});if(!d.support.changeBubbles){var z,A=function(a){var b=a.t
 ype,c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},B=function B(a){var c=a.target,e,f;if(q.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=A(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:B,beforedeactivate:B,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&B.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&B.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",A(b))}},setup:function(a,b){if(this.type==="file")r
 eturn!1;for(var c in z)d.event.add(this,c+".specialChange",z[c]);return q.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return q.test(this.nodeName)}},z=d.event.special.change.filters,z.focus=z.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){a=d.event.fix(a),a.type=b;return d.event.handle.call(this,a)}d.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i<j;i++)d.event.add(this[i],a,h,e);return this}}),d.fn.extend({unbind:function(a,b){if(typeof a!=="object"||a.preventDefault)for(var e=0,f=this.le
 ngth;e<f;e++)d.event.remove(this[e],a,b);else for(var c in a)this.unbind(c,a[c]);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var c=d.Event(a);c.preventDefault(),c.stopPropagation(),d.event.trigger(c,b,this[0]);return c.result}},toggle:function(a){var b=arguments,c=1;while(c<b.length)d.proxy(a,b[c++]);return this.click(d.proxy(a,function(e){var f=(d._data(this,"lastToggle"+a.guid)||0)%c;d._data(this,"lastToggle"+a.guid,f+1),e.preventDefault();return b[f].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var D={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,c){d.fn[c]=function(a,e,f,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:d(this.conte
 xt);if(typeof a==="object"&&!a.preventDefault){for(var o in a)n[c](o,e,a[o],m);return this}d.isFunction(e)&&(f=e,e=b),a=(a||"").split(" ");while((h=a[i++])!=null){j=p.exec(h),k="",j&&(k=j[0],h=h.replace(p,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,h==="focus"||h==="blur"?(a.push(D[h]+k),h=h+k):h=(D[h]||h)+k;if(c==="live")for(var q=0,r=n.length;q<r;q++)d.event.add(n[q],"live."+F(h,m),{data:e,selector:m,handler:f,origType:h,origHandler:f,preType:l});else n.unbind("live."+F(h,m),f)}return this}}),d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){d.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.
 sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!=="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],
 d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}re
 turn a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(f){if(f===!0)continue}else g=o=!0}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.rep
 lace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b==="string",
 d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1){}a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e
 ++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d
 ,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){r
 eturn"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType
 ===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){
 return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(a===b){g=!0;return 0}if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(
 j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeCh
 ild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p(
 [e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,d=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(e){d=!0}b&&(k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(d||!l.match.PSEUDO.test(c)&&!/!=/.test(c))return b.call(a,c)}catch(e){}return k(c,null,null,[a]).length>0})}(),function(){var a=c.createElement("div");a.innerH
 TML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};d.find=k,d.expr=k.selectors,d.expr[":"]=d.expr.filters,d.unique=k.uniqueSort,d.
 text=k.getText,d.isXMLDoc=k.isXML,d.contains=k.contains}();var G=/Until$/,H=/^(?:parents|prevUntil|prevAll)/,I=/,/,J=/^.[^:#\[\.,]*$/,K=Array.prototype.slice,L=d.expr.match.POS,M={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var b=this.pushStack("","find",a),c=0;for(var e=0,f=this.length;e<f;e++){c=b.length,d.find(a,this[e],b);if(e>0)for(var g=c;g<b.length;g++)for(var h=0;h<c;h++)if(b[h]===b[g]){b.splice(g--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(d.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(O(this,a,!1),"not",a)},filter:function(a){return this.pushStack(O(this,a,!0),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e<f;e++)i=a[e],j[i]||(j[i]=d.expr.match.POS.test(i)?d(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j
 )h=j[i],(h.jquery?h.index(g)>-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=L.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e<f;e++){g=this[e];while(g){if(l?l.index(g)>-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(N(c[0])||N(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth
 (a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=K.call(arguments);G.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!M[a]?d.unique(f):f,(this.length>1||I.test(e))&&H.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e
 )))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var P=/ jQuery\d+="(?:\d+|null)"/g,Q=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,S=/<([\w:]+)/,T=/<tbody/i,U=/<|&#?\w+;/,V=/<(?:script|object|embed|option|style)/i,W=/checked\s*(?:[^=]|=\s*.checked.)/i,X={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td,d.support.htmlSerialize||(X._default=[1,"div<div>","</div>"]),d.fn.extend({text:function(a){if(d.isFunction(a)
 )return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function
 (a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.get
 ElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(P,""):null;if(typeof a!=="string"||V.test(a)||!d.support.leadingWhitespace&&Q.test(a)||X[(S.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(R,"<$1></$2>");try{for(var c=0,e=this.length;c<e;c++)this[c].nodeType===1&&(d.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(f){this.empty().append(a)}}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var c=d(this),e=c.html();c.replaceWith(a.call(this,b,e))});typeof a!=="string"&&(a=d(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;d(thi
 s).remove(),b?d(b).before(a):d(c).append(a)})}return this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,e){var f,g,h,i,j=a[0],k=[];if(!d.support.checkClone&&arguments.length===3&&typeof j==="string"&&W.test(j))return this.each(function(){d(this).domManip(a,c,e,!0)});if(d.isFunction(j))return this.each(function(f){var g=d(this);a[0]=j.call(this,f,c?g.html():b),g.domManip(a,c,e)});if(this[0]){i=j&&j.parentNode,d.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?f={fragment:i}:f=d.buildFragment(a,this,k),h=f.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&d.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)e.call(c?Y(this[l],g):this[l],f.cacheable||m>1&&l<n?d.clone(h,!0,!0):h)}k.length&&d.each(k,ba)}return this}}),d.buildFragment=function(a,b,e){var f,g,h,i=b&&b[0]?b[0].ownerDocument||b[0]:c;a.length===1&&typeof a[0]==="string"&&a[0].length<512&&i===c&&a[
 0].charAt(0)==="<"&&!V.test(a[0])&&(d.support.checkClone||!W.test(a[0]))&&(g=!0,h=d.fragments[a[0]],h&&(h!==1&&(f=h))),f||(f=i.createDocumentFragment(),d.clean(a,i,f,e)),g&&(d.fragments[a[0]]=h?f:1);return{fragment:f,cacheable:g}},d.fragments={},d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(c){var e=[],f=d(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&f.length===1){f[b](this[0]);return this}for(var h=0,i=f.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){$(a,e),f=_(a),g=_(e);for(h=0;f[h];++h)$(f[h],g[h])}if(b){Z(a,e);if(c){f=_(a),g=_(e);for(h=0;f[h];++h)Z(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||
 c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||U.test(i)){if(typeof i==="string"){i=i.replace(R,"<$1></$2>");var j=(S.exec(i)||["",""])[1].toLowerCase(),k=X[j]||X._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=T.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]==="<table>"&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&Q.test(i)&&m.insertBefore(b.createTextNode(Q.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.make
 Array(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bb=/alpha\([^)]*\)/i,bc=/opacity=([^)]*)/,bd=/-([a-z])/ig,be=/([A-Z])/g,bf=/^-?\d+(?:px)?$/i,bg=/^-?\d/,bh={position:"absolute",visibility:"hidden",display:"block"},bi=["Left","Right"],bj=["Top","Bottom"],bk,bl,bm,bn=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cs
 sHooks:{opacity:{get:function(a,b){if(b){var c=bk(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bk)return bk(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bd,bn)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHoo
 ks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bo(a,b,e):d.swap(a,bh,function(){f=bo(a,b,e)});if(f<=0){f=bk(a,b,b),f==="0px"&&bm&&(f=bm(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bf.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return bc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bb.test(f)?f.replace(bb,e):c.filter+" "+e}}),c.defaultView&&c.defaultView.getComputedStyle&&(bl=function(a,c,e){var f,g,h;e=e.replace(be,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.styl
 e(a,e));return f}),c.documentElement.currentStyle&&(bm=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bf.test(d)&&bg.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bk=bl||bm,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var bp=/%20/g,bq=/\[\]$/,br=/\r?\n/g,bs=/#.*$/,bt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bu=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/(?:^file|^widget|\-extension):$/,bw=/^(?:GET|HEAD)$/,bx=/^\/\//,by=/\?/,bz=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bA=/^(?:select|textarea)/i,bB=/\s+/,bC=/([?&])_=[^
 &]*/,bD=/(^|\-)([a-z])/g,bE=function(a,b,c){return b+c.toUpperCase()},bF=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,bG=d.fn.load,bH={},bI={},bJ,bK;try{bJ=c.location.href}catch(bL){bJ=c.createElement("a"),bJ.href="",bJ=bJ.href}bK=bF.exec(bJ.toLowerCase()),d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bG)return bG.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("<div>").append(c.replace(bz,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.nam
 e&&!this.disabled&&(this.checked||bA.test(this.nodeName)||bu.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(br,"\r\n")}}):{name:b.name,value:c.replace(br,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bJ,isLocal:bv.test(bK[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded
 ",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bM(bH),ajaxTransport:bM(bI),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bP(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bQ(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigge
 r("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bD,bE)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bt.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bs,"").replace(bx,bK[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bB),e
 .crossDomain||(q=bF.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bK[1]||q[2]!=bK[2]||(q[3]||(q[1]==="http:"?80:443))!=(bK[3]||(bK[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bN(bH,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!bw.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(by.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bC,"$1_="+w);e.url=x+(x===e.url?(by.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);i
 f(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bN(bI,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bO(g,a[g],c,f);return e.join("&").replace(bp,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bR=d.now(),bS=/(\=)\?(&|$)|()\?\?()/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bR++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.js
 onp!=null||b.jsonp!==!1&&(bS.test(b.url)||f&&bS.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bS,l),b.url===j&&(f&&(k=k.replace(bS,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentE
 lement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bT=d.now(),bU,bV;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bX()||bY()}:bX,bV=d.ajaxSettings.xhr(),d.support.ajax=!!bV,d.support.cors=bV&&"withCredentials"in bV,bV=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),(!a.crossDomain||a.hasContent)&&!e["X-Requested-With"]&&(e["X-Requ
 ested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bU[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bU||(bU={},bW()),h=bT++,g.onreadystatechange=bU[h]=c):c()},abort:function(){c&&c(0,1)}}}});var bZ={},b$=/^(?:toggle|show|hide)$/,b_=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,cb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(cc("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)e=thi
 s[g],f=e.style.display,!d._data(e,"olddisplay")&&f==="none"&&(f=e.style.display=""),f===""&&d.css(e,"display")==="none"&&d._data(e,"olddisplay",cd(e.nodeName));for(g=0;g<h;g++){e=this[g],f=e.style.display;if(f===""||f==="none")e.style.display=d._data(e,"olddisplay")||""}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cc("hide",3),a,b,c);for(var e=0,f=this.length;e<f;e++){var g=d.css(this[e],"display");g!=="none"&&!d._data(this[e],"olddisplay")&&d._data(this[e],"olddisplay",g)}for(e=0;e<f;e++)this[e].style.display="none";return this},_toggle:d.fn.toggle,toggle:function(a,b,c){var e=typeof a==="boolean";d.isFunction(a)&&d.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:d(this).is(":hidden");d(this)[b?"show":"hide"]()}):this.animate(cc("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,e){var f=d.speed(b,c,e);i
 f(d.isEmptyObject(a))return this.each(f.complete);return this[f.queue===!1?"each":"queue"](function(){var b=d.extend({},f),c,e=this.nodeType===1,g=e&&d(this).is(":hidden"),h=this;for(c in a){var i=d.camelCase(c);c!==i&&(a[i]=a[c],delete a[c],c=i);if(a[c]==="hide"&&g||a[c]==="show"&&!g)return b.complete.call(this);if(e&&(c==="height"||c==="width")){b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(d.css(this,"display")==="inline"&&d.css(this,"float")==="none")if(d.support.inlineBlockNeedsLayout){var j=cd(this.nodeName);j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else this.style.display="inline-block"}d.isArray(a[c])&&((b.specialEasing=b.specialEasing||{})[c]=a[c][1],a[c]=a[c][0])}b.overflow!=null&&(this.style.overflow="hidden"),b.curAnim=d.extend({},a),d.each(a,function(c,e){var f=new d.fx(h,b,c);if(b$.test(e))f[e==="toggle"?g?"show":"hide":e](a);else{var i=b_.exec(e),j=f.cur();if(i){var k=parseFloat(i[2])
 ,l=i[3]||(d.cssNumber[c]?"":"px");l!=="px"&&(d.style(h,c,(k||1)+l),j=(k||1)/f.cur()*j,d.style(h,c,j+l)),i[1]&&(k=(i[1]==="-="?-1:1)*k+j),f.custom(j,k,l)}else f.custom(j,e,"")}});return!0})},stop:function(a,b){var c=d.timers;a&&this.queue([]),this.each(function(){for(var a=c.length-1;a>=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:cc("show",1),slideUp:cc("hide",1),slideToggle:cc("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.
 call(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!ca&&(ca=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(t
 his.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"line
 ar");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||d.fx.stop()},interval:13,stop:function(){clearInterval(ca),ca=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),d.expr&&d.expr.filters&&(d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length});var ce=/^t(?:able|d|h)$/i,cf=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?d.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset
 .bodyOffset(b);try{c=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!c||!d.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=f.body,i=cg(f),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||d.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||d.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:d.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var c,e=b.offsetParent,f=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(d.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===e&&(l
 +=b.offsetTop,m+=b.offsetLeft,d.offset.doesNotAddBorder&&(!d.offset.doesAddBorderForTableAndCells||!ce.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),f=e,e=b.offsetParent),d.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;d.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},d.offset={initialize:function(){var a=c.body,b=c.createElement("div"),e,f,g,h,i=parseFloat(d.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td>
 </tr></table>";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.styl
 e.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.
 fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.do
 cumentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window);
\ No newline at end of file


[47/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/samples/web_service_client_sample.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/samples/web_service_client_sample.xml b/products/cloud-controller/docs/xdoc/samples/web_service_client_sample.xml
new file mode 100644
index 0000000..2eb4e5b
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/samples/web_service_client_sample.xml
@@ -0,0 +1,235 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>WSO2 MB Samples - Web Service Client Sample</title>
+        <link href="../css/mb-docs.css" rel="stylesheet"/>
+        <link href="../styles/dist-docs.css" rel="stylesheet" type="text/css"
+              media="all"/>
+    </head>
+    <body>
+        <p>[<a href="../docs_index.html">Documentation Index</a>]  </p>
+        <h1>Web Service Client Sample</h1>
+        <p> <a href="http://www.w3.org/Submission/WS-Eventing/">Web Service Eventing Specification </a>  defines how Web
+            Services Eventing supports the simplest levels of Web
+            services interfaces for notification producers and consumers for a distributed event management system. It
+            is a baseline set of operations that allow Web services to provide asynchronous notifications to interested
+            parties. WS-Eventing defines the simplest level of Web services interfaces for notification producers and
+            notification consumers including standard message exchanges to be implemented by service providers that wish
+            to act in these roles, along with operational requirements expected of them. It has a set of functions
+            supporting publish/subscribe required by robust, scalable enterprise applications including message brokering
+            and topic based subscription management.</p>
+        <p>WSO2 MB 2.0.1 supports WS-eventing. This sample shows you how to register a Web Service as an event receiver
+            and subscribe it to the message brokering server, together with how to publish messages to that subscription
+            you have made.</p>
+        <h2>Defining Web Service</h2>
+        <pre xml:space="preserve">
+
+         /**
+         * Licensed to the Apache Software Foundation (ASF) under one
+         * or more contributor license agreements.  See the NOTICE file
+         * distributed with this work for additional information
+         * regarding copyright ownership.  The ASF licenses this file
+         * to you under the Apache License, Version 2.0 (the
+         * "License"); you may not use this file except in compliance
+         * with the License.  You may obtain a copy of the License at
+         *
+         *    http://www.apache.org/licenses/LICENSE-2.0
+         *
+         * Unless required by applicable law or agreed to in writing,
+         * software distributed under the License is distributed on an
+         * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         * KIND, either express or implied.  See the License for the
+         * specific language governing permissions and limitations
+         * under the License.
+         */
+
+
+            public class EventSinkService {
+                public void receive(String message){
+                    System.out.println("Got  the message ==> " + message);
+                }
+            }
+        </pre>
+        <h2>Host The Service And Start A Broker Client With Service URL</h2>
+        <p>Then this service has to be hosted in a server, and a broker client should be defined with that service url.</p>
+        <pre xml:space="preserve">
+
+            private AxisServer axisServer;
+            private BrokerClient brokerClient;
+            public void start() {
+                try {
+                    System.setProperty("javax.net.ssl.trustStore", "../../repository/resources/security/wso2carbon.jks");
+                    System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
+                    this.axisServer = new AxisServer();
+                    this.axisServer.deployService(EventSinkService.class.getName());
+                    this.brokerClient = new BrokerClient("https://localhost:9443/services/EventBrokerService", "admin", "admin");
+                    // give time to start the simple http server
+                    try {
+                    Thread.sleep(2000);
+                    } catch (InterruptedException e) {
+                    }
+                } catch (AxisFault axisFault) {
+                    System.out.println("Can not start the server");
+                } catch (AuthenticationExceptionException e) {
+                    e.printStackTrace();
+                }
+            }
+        </pre>
+        <h2>Subscribe The Service To Receive Events</h2>
+        <p>Now we have to subscribe the above service to the broker to receive events. For that we use a "topic". Broker
+            client implementation allows you to subscribe a service to a topic in Message Broker. Here a topic named
+            "foo/bar" is used.</p>
+        <pre xml:space="preserve">
+
+            public String subscribe() {
+                // set the properties for ssl
+                try {
+                    return this.brokerClient.subscribe("foo/bar" , "http://localhost:6060/axis2/services/EventSinkService/receive");
+                } catch (BrokerClientException e) {
+                    e.printStackTrace();
+                }
+                return null;
+            }
+        </pre>
+        <h2>Publish Messages </h2>
+        <p>When messages or events are published to the topic in message broker, it will be received by the web service.</p>
+        <pre xml:space="preserve">
+
+            public void publish(){
+                try {
+                    this.brokerClient.publish("foo/bar", getOMElementToSend());
+                } catch (AxisFault axisFault) {
+                    axisFault.printStackTrace();
+                }
+            }
+        </pre>
+        <p>As the service only doing flusing the message to the console, you should see the message getting printed in the console.</p>
+        <p>The full sample code will be like following.</p>
+        <pre xml:space="preserve">
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.apache.axiom.om.OMAbstractFactory;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMNamespace;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.engine.AxisServer;
+import org.wso2.carbon.event.client.broker.BrokerClient;
+import org.wso2.carbon.event.client.broker.BrokerClientException;
+import org.wso2.carbon.event.client.stub.generated.authentication.AuthenticationExceptionException;
+import java.rmi.RemoteException;
+            public class PubSubClient {
+                private AxisServer axisServer;
+                private BrokerClient brokerClient;
+                public void start() {
+                    try {
+                        System.setProperty("javax.net.ssl.trustStore", "../../repository/resources/security/wso2carbon.jks");
+                        System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
+                        this.axisServer = new AxisServer();
+                        this.axisServer.deployService(EventSinkService.class.getName());
+                        this.brokerClient = new BrokerClient("https://localhost:9443/services/EventBrokerService", "admin", "admin");
+                        // give time to start the simple http server
+                        try {
+                            Thread.sleep(2000);
+                        } catch (InterruptedException e) {
+                        }
+                    } catch (AxisFault axisFault) {
+                        System.out.println("Can not start the server");
+                    } catch (AuthenticationExceptionException e) {
+                        e.printStackTrace();
+                    }
+                }
+                public String subscribe() {
+                    // set the properties for ssl
+                    try {
+                        return this.brokerClient.subscribe("foo/bar" , "http://localhost:6060/axis2/services/EventSinkService/receive");
+                    } catch (BrokerClientException e) {
+                        e.printStackTrace();
+                    }
+                    return null;
+                }
+                public void publish(){
+                    try {
+                        this.brokerClient.publish("foo/bar", getOMElementToSend());
+                    } catch (AxisFault axisFault) {
+                        axisFault.printStackTrace();
+                    }
+                }
+                public void unsubscribe(String subscriptionID){
+                    try {
+                        this.brokerClient.unsubscribe(subscriptionID);
+                    } catch (RemoteException e) {
+                        e.printStackTrace();
+                    }
+                }
+                public void stop(){
+                    try {
+                        this.axisServer.stop();
+                    } catch (AxisFault axisFault) {
+                        axisFault.printStackTrace();
+                    }
+                }
+                public static void main(String[] args) {
+                    PubSubClient pubSubClient = new PubSubClient();
+                    pubSubClient.start();
+                    String subscriptionId = pubSubClient.subscribe();
+                    pubSubClient.publish();
+                    try {
+                        Thread.sleep(5000);
+                    } catch (InterruptedException e) {}
+                    pubSubClient.unsubscribe(subscriptionId);
+                    pubSubClient.stop();
+                }
+                private OMElement getOMElementToSend() {
+                    OMFactory omFactory = OMAbstractFactory.getOMFactory();
+                    OMNamespace omNamespace = omFactory.createOMNamespace("http://ws.sample.org", "ns1");
+                    OMElement receiveElement = omFactory.createOMElement("receive", omNamespace);
+                    OMElement messageElement = omFactory.createOMElement("message", omNamespace);
+                    messageElement.setText("Test publish message");
+                    receiveElement.addChild(messageElement);
+                    return receiveElement;
+                }
+}
+        </pre>
+        <p>Note: As you might have already comprehended WSO2 MB should be running when running the sample.</p>
+    </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/samples_index.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/samples_index.xml b/products/cloud-controller/docs/xdoc/samples_index.xml
new file mode 100644
index 0000000..27f262d
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/samples_index.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>
+            WSO2 MB - Samples Guide Index
+        </title>
+        <link href="css/mb-docs.css" rel="stylesheet"/>
+        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
+              media="all"/>
+    </head>
+
+    <body>
+        [
+        <a href="docs_index.html">Documentation Index</a>
+        ]
+        <h1>Running the WSO2 Message Broker Server (MB) Samples</h1>
+
+        <h2>
+            <a name="TOC">Table of Contents</a>
+        </h2>
+
+        <div class="section-content">
+            <ul>
+                <li>
+                    <a href="samples_index.html#Overview">Overview</a>
+                </li>
+                <li>
+                    <a href="samples/jms_queue_sample.html">JMS Queue Sample</a>
+                </li>
+                <li>
+                    <a href="samples/jms_topic_sample.html">JMS Topic Sample</a>
+                </li>
+                <li>
+                    <a href="samples/jms_transport_sample.html">JMS Transport Sample</a>
+                </li>
+                <li>
+                    <a href="samples/web_service_client_sample.html">Web Service Eventing Sample</a>
+                </li>
+            </ul>
+        </div>
+        <h2 id="Overview">Overview</h2>
+        <p>
+            This set of samples demonstrates the features in Message Broker product to use in
+            various situations. We will use JMS APIs with Message Broker to
+            publish,subscribe messages.
+        </p>
+        <p>
+            The source code used in the samples can be found in $CARBON_HOME/samples.
+        </p>
+
+        <p>
+            Please refers the
+            <a href="user_guide.html">User Guide</a>
+            to get familiar with Message Broker product.
+        </p>
+    </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/setting_java_home.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/setting_java_home.xml b/products/cloud-controller/docs/xdoc/setting_java_home.xml
new file mode 100644
index 0000000..f686ece
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/setting_java_home.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>How to setup JAVA_HOME environment variable in Windows</title>
+        <link href="css/mb-docs.css" rel="stylesheet"/>
+        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
+    </head>
+    <body>
+        <h2>How to setup JAVA_HOME environment variable in Windows</h2>
+
+        <p>Please follow the instructions to set up JAVA_HOME environment variable in your computer.
+            First find out the installation folder of Java development kit (JDK) in your machine.
+            Let's
+            assume it is installed in the folder "C:/j2sdk1.4.2"
+        </p>
+
+        <ol>
+            <li>Right click on the My Computer icon on your desktop and select properties</li>
+            <li>Click the Advanced Tab</li>
+            <li>Click the Environment Variables button</li>
+            <li>Under System Variable, click New</li>
+            <li>Enter the variable name as JAVA_HOME</li>
+            <li>Enter the variable value as the install path for the Development Kit</li>
+            <li>Click OK</li>
+            <li>Click Apply Changes</li>
+
+        </ol>
+
+        <img src="images/set-java-home.jpg" width="802" height="590" alt=""/>
+    </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/source-repository.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/source-repository.xml b/products/cloud-controller/docs/xdoc/source-repository.xml
new file mode 100644
index 0000000..212721f
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/source-repository.xml
@@ -0,0 +1,137 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html
+        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>
+            WSO2 MB - Source Repository
+        </title>
+        <link href="css/mb-docs.css" rel="stylesheet"/>
+        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
+              media="all"/>
+    </head>
+    <body>
+        [ <a href="docs_index.html"> Documentation Index </a> ]
+        <h1>WSO2 Message Broker Server  (MB) Source Repository</h1>
+        WSO2 MB is developed on top of the revolutionary WSO2 Carbon platform. You might need the
+        source of the Carbon platform as well apart from the MB source code. Please note that both
+        MB and the Carbon platform is open source and the code is available under the Apache
+        Software License v2.0.
+
+        <h2>Overview</h2>
+        <p>This project uses <a href="http://subversion.tigris.org/">Subversion</a>
+        to manage its source code. Instructions on Subversion use can be found at
+            <a href="http://svnbook.red-bean.com/">http://svnbook.red-bean.com/</a>.</p>
+
+        <h2>Source code of the MB 1.0.0 release</h2>
+        <p>The following is a link to the online source tag of the WSO2 MB 1.0.0 release.</p>
+        <div class="source">
+            <pre><a href="http://svn.wso2.org/repos/wso2/tags/MB/java/3.0.0/">http://svn.wso2.org/repos/wso2/tags/mb/java/1.0.0/</a></pre>
+        </div>
+        <p>The complete source including the carbon platform can be checked out anonymously from
+            SVN with this command:</p>
+        <div class="source">
+            <pre>$ svn checkout http://svn.wso2.org/repos/wso2/tags/mb/java/1.0.0 wso2mb</pre>
+        </div>
+
+        <p>This code base contains the MB product source code inside the directory "product" and
+        it also contains the source for the platform under the directory "carbon-pltform". Further
+        there will be a "build.sh" script to build the MB with the platform.</p>
+
+        <p>This script accepts any of the maven related system properties, but the property to skip
+         the tests has been shortened to "-ts", for example to build the MB with the platform on
+         skipping tests the command is;</p>
+
+        <div class="source">
+            <pre>$ ./build.sh -ts</pre>
+        </div>
+
+        <p>To build off-line with this build script you can pass in the "-o" option. If you just
+        need to build either the product or a specific part of the platform (for example Axis2)
+        you just need to traverse to that directory and use maven to build any of the projects.</p>
+
+        <h2>Source code of the WSO2 MB trunk</h2>
+        <p>Everyone can access the Subversion repository via HTTPS, but Committers must checkout
+            the Subversion repository via HTTPS.
+        </p>
+        <div class="source">
+            <pre>$ svn checkout  https://svn.wso2.org/repos/wso2/trunk/carbon/products/mb wso2mb</pre>
+        </div>
+
+        <p>The Carbon framework related source code can be checked out from the
+            following commands.</p>
+
+        <div class="source">
+            <pre>$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/core carbon</pre>
+        </div>
+
+        <div class="source">
+            <pre>$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/components carbon-components</pre>
+        </div>
+
+        <p>The Carbon project is the root project of the OSGi platform on which all the Java
+            product stack is built on top of, and the carbon-components contains all the components
+            not just MB specific components. So you obviously need to build just the set of
+            components required by the MB, which can be achieved through;
+        </p>
+
+        <div class="source">
+            <pre>$ mvn clean install -Dproduct=MB</pre>
+        </div>
+
+        <p>To commit changes to the repository, execute the following command (svn will prompt
+            you for your password)
+        </p>
+        <div class="source">
+            <pre>$ svn commit --username your-username -m "A message"</pre>
+        </div>
+
+        <h2>Access from behind a firewall</h2>
+        <p>For those users who are stuck behind a corporate firewall which is blocking http access
+            to the Subversion repository, you can try to access it via the developer connection:
+        </p>
+        <div class="source">
+            <pre>$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/products/mb wso2mb</pre>
+        </div>
+        <h2>Access through a proxy</h2>
+        <p>The Subversion client can go through a proxy, if you configure it to do so.
+            First, edit your "servers" configuration file to indicate which proxy to use. The
+            files location depends on your operating system. On Linux or Unix it is
+            located in the directory "~/.subversion". On Windows it is in "%APPDATA%\Subversion".
+            (Try "echo %APPDATA%", note this is a hidden directory.)
+        </p>
+        <p>There are comments in the file explaining what to do. If you don't have that file, get
+            the latest Subversion client and run any command; this will cause the configuration
+            directory and template files to be created.
+        </p>
+        <p>Example : Edit the 'servers' file and add something like :</p>
+        <div class="source">
+            <pre>[global]
+http-proxy-host = your.proxy.name
+http-proxy-port = 3128
+            </pre>
+        </div>
+    </body>
+</html>
+      

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/xdoc/user_guide.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/xdoc/user_guide.xml b/products/cloud-controller/docs/xdoc/user_guide.xml
new file mode 100644
index 0000000..972d78f
--- /dev/null
+++ b/products/cloud-controller/docs/xdoc/user_guide.xml
@@ -0,0 +1,417 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
+        <title>WSO2 MB - User Guide</title>
+        <link href="css/mb-docs.css" rel="stylesheet"/>
+        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
+              media="all"/>
+    </head>
+
+    <body>
+        <p>[<a href="docs_index.html">Documentation Index</a>]
+        </p>
+        <h1>WSO2 Message Broker(MB) User Guide</h1>
+
+        <p>The goal of this guide is to provide guidelines to be followed
+            in order to get familiar with WSO2 Message Broker and the procedure
+            of using the features provided by the product.
+        </p>
+
+        <h2>Contents</h2>
+
+        <div class="toc">
+            <ul>
+                <li>
+                    <a href="#Introduction">Introduction to Message Broker</a>
+                </li>
+                <!--li><a href="#Sample">Stock Quote Sample</a> </li-->
+                <li>
+                    <a href="#References">References</a>
+                </li>
+            </ul>
+        </div>
+
+        <h2 id="Introduction">Introduction to Message Broker</h2>
+        <p>This gives a brief introduction of how message broker can be used
+            in publishing and receiving messages.
+        </p>
+
+        <p>
+            WSO2 Message Broker is basically consist of two major features.They are:
+        </p>
+        <ul>
+            <li>Pub/ Sub Feature</li>
+            <li>Message Broker Clustering feature</li>
+        </ul>
+
+        <h3>
+            Pub/Sub Feature
+        </h3>
+
+        <p>This feature of the WSO2 Message Broker provides the facility for users to route messages
+            to the required users. If we are explaining deeply,
+            there is a concept called 'Topic' and message routing is done on the base of that
+            topic. When a particular user want to publish
+            a message to a particular sector , he creates a topic with a name related to the
+            messages that he is going to pulish. As an example, if a particular
+            user want to publish messages related with sports news, he can create a topic with the
+            name 'SportsNews' and publish the messages to that topic.
+        </p>
+
+        <p>
+            When another particular user is interested on any topic in the topic tree, he can
+            subscribe to that topic and receive messages which are published
+            to that topic by the publisher. As in the above example, when a particular user is
+            interested on sports, he can subscribed to the topic 'SportsNews'
+            and get messages published to that topic.
+        </p>
+
+        <p>
+            <img src="images/MessageFlowDiagram.jpg"
+                 alt="Pub/Sub Message Flow"/>
+        </p>
+        <h3>How to use Pub/Sub Feature</h3>
+
+        <p>In WSO2 Message Broker , Pub/Sub feature is one of the two major features. Inorder to use
+            this feature , it is needed to create a Topic and subscribe to it.
+        </p>
+        <ul>
+            <li>Step 01</li>
+
+            <p>Login to the server</p>
+
+            <li>Step 02</li>
+
+            <p>Click on the 'Add' menu item under the 'Topics' menu to create a topic. To create a
+                topic , the only thing needed to be provided is the name of the topic.
+            </p>
+
+            <p>
+                <img src="images/topic_add.png"
+                     alt="Add Topic"/>
+            </p>
+
+            <li>Step 03</li>
+
+            <p>When you add a topic using the 'add' button , you will be directed to the 'Topic
+                Browser' page and you will see the topic tree.
+            </p>
+            <p>
+                <img src="images/topic_browser.png"
+                     alt="Topic Browser"/>
+            </p>
+
+            <p>Once you click on a topic in the topic tree , it will display all the available
+                operations on a topic.
+                Once you click on the 'Help' link on that page you will find the information on all
+                the operations available on the topic
+            </p>
+
+            <p>If you click on details link , you will find following page.</p>
+
+            <p>
+                <img src="images/topic_details.png"
+                     alt="Topic Details"/>
+            </p>
+
+            <li>Step 04</li>
+
+            <p>Once you click on the topic , you will get the following page.</p>
+            <p>
+                <img src="images/topic_browser_clicked.png"
+                     alt="Topic Details"/>
+            </p>
+
+
+            <p>Once you click on 'Subscribe' link on the above page, you will be directed to Add
+                subscriptions page.
+            </p>
+
+            <p>
+                <img src="images/topic_addSubscription.png"
+                     alt="Subscribe to topics"/>
+            </p>
+
+            <p>You can create a subscription to the topic by provide the information on subscription
+            </p>
+            <li>Topic</li>
+            <p>User does not need to specify the topic here , since its automatically sets up.</p>
+
+            <li>Subscription Mode</li>
+
+            <p>This is the mode of the subscription and there are three modes.</p>
+
+            <p>The default mode for the subscription is "Topic Only". With this mode , user creates
+                the
+                subscription only to the topic. In this mode subscribers only receive events which
+                are published only to the that topic.
+            </p>
+
+            <p>Next mode of subscription is "Topic and Immediate child". In this mode subscribers of
+                the topic
+                receives events published not only the specified topic but also to the immediate
+                child of that topic.
+            </p>
+
+            <p>Last mode of subscription is "Topic and Children". In this mode subscribers of the
+                specified
+                topic will receive events published to the specified topic and all its children
+            </p>
+
+            <li>Event Sink URL</li>
+            <p>This is the URL which the subscriber should provide to receive events published. When
+                events are
+                published to the topic, they are sent to the specified URL here.
+            </p>
+
+            <li>Expiration Time</li>
+            <p>Here user can specify the expiration time of the subscription. This is not a required
+                parameter and
+                if user leave it alone, subscription will never be expired.
+            </p>
+
+            <p>Note : You can create a simple axis2service and use it's URL as the EventSinkURL .
+                Inorder to create an axis2service ,
+            </p>
+            <ul>
+                <li>Browse the location : /wso2mb-1.0.0/samples/services/EventSinkService
+                </li>
+                <li>Type the command : ant</li>
+
+                <P>(This ant task will create a simple axis2service 'EventSinkService' and deploy it
+                    in the location :
+                    /wso2mb-1.0.0/repository/deployment/server/axis2services/ )
+                </P>
+            </ul>
+
+            <p>Now you can create a subscription by providing the Event Sink URL :
+                https://localhost:9443/services/EventSinkService/getOMElement
+            </p>
+
+            <p>Click on the button 'Subscribe' and it will create the subscription and list it in
+                the subscription table of that topic in topic details page.
+            </p>
+
+
+            <p>
+                <img src="images/topic_subscriptionDetails.png"
+                     alt="Topic subscription details"/>
+            </p>
+
+
+            <li>Step 05</li>
+
+            <p>At the end of the subscribing process , you can test whether the topic and the
+                subscriptions created are working fine.
+                In order to do that what you have to do is type a XML message in the provided text
+                box and under the 'Publish' section
+                of Topic Details page and click on 'Publish button'
+            </p>
+
+            <p>Then check the command line and you will be able to see the XML Message that you
+                types in the provided space.
+            </p>
+            <h3>Clustering support of WSO2 Message Broker</h3>
+            <p>
+            	WSO2 MB  is now supporting clustering. That means high availability and failover support
+            	is there. You can setup several Message Broker nodes and configure them up to work as a cluster 
+            	so that if one node is down message routing and handling will be taken over by other nodes in the cluster.
+            	At the same time overhead of routing messages is distributed among the Message Broker cluster nodes so
+            	that overall performance of Message Brokering goes up. Thus, having a lot of publishers and subscribers will
+            	not be a problem anymore as there is no significant performance degrade with the number of publishers, 
+            	subscribers and exchanges. Scalability is beyond you with WSO2 MB with combined resources you have. 
+            	Fault tolerance brings you great benefits in deployment apart from the performance gain. 
+            </p>
+
+            <p>
+                There are several cluster deployment models supported by WSO2 Message Broker. Read on them at <a href="deployment_guide.html">
+                Deployment guide
+                </a>
+                and choose the suitable deployment pattern for your use-case and enable clustering as described there.
+            </p>
+
+            <li>   Sample Scenario - This sample is based on Clustering Scenario 1, <a href="cluster_scenario_01.html">'Starting external cassandra server
+                   and zoo keeper server and point all broker nodes to them'</a>:
+                <ul>
+                    <li>
+                        In your local machine setup two WSO2 MB instances running with external Cassandra server and Zookeeper server
+                        (note that you can setup Cassandra and Zookeeper to run on the same machine). In order to do that in the second WSO2 MB
+                        instance define a port offset changing &lt;MB Home&gt;/repository/conf/carbon.xml (eg: set port offset to 1).
+                    </li>
+                    <li>
+                        We will call first broker instance MB1 (runs on port 5672) and the other MB2 (runs on port 5673).
+                    </li>
+                    <li>
+                        Using following JMS client make subscriptions to a queue "myQueue" at MB1.
+                        <pre xml:space="preserve">
+
+                        import javax.jms.*;
+                        import javax.naming.InitialContext;
+                        import javax.naming.NamingException;
+                        import java.util.Properties;
+
+                        public class ConsumeClient {
+                            public void consumeMessage() {
+
+                                Properties initialContextProperties = new Properties();
+                                initialContextProperties.put("java.naming.factory.initial",
+                                        "org.wso2.andes.jndi.PropertiesFileInitialContextFactory");
+                                String connectionString = "amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5672'";
+                                initialContextProperties.put("connectionfactory.qpidConnectionfactory", connectionString);
+                                initialContextProperties.put("queue.myQueue", "myQueue");
+
+                                try {
+                                    InitialContext initialContext = new InitialContext(initialContextProperties);
+                                    QueueConnectionFactory queueConnectionFactory
+                                            = (QueueConnectionFactory) initialContext.lookup("qpidConnectionfactory");
+                                    QueueConnection queueConnection = queueConnectionFactory.createQueueConnection();
+                                    queueConnection.start();
+
+                                    QueueSession queueSession = queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+                                    Destination destination = (Destination) initialContext.lookup("myQueue");
+
+                                    MessageConsumer messageConsumer = queueSession.createConsumer(destination);
+
+                                    TextMessage textMessage = (TextMessage) messageConsumer.receive();
+                                    System.out.println("Got message ==> " + textMessage.getText());
+
+                                    try {
+                                        Thread.sleep(9000);
+                                    } catch (Exception e) {
+                                        System.out.println(e);
+                                    }
+
+                                    messageConsumer.close();
+
+                                    queueSession.close();
+                                    queueConnection.stop();
+                                    queueConnection.close();
+
+                                } catch (NamingException e) {
+                                    e.printStackTrace();
+                                } catch (JMSException e) {
+                                    e.printStackTrace();
+                                }
+
+
+                            }
+
+                            public static void main(String[] args) {
+                                ConsumeClient sendConsumeClient = new ConsumeClient();
+                                sendConsumeClient.consumeMessage();
+                            }
+                        }
+
+                        </pre>
+
+                    </li>
+                    <li>
+                        Now using Message Sender described below, send a message to "myQueue" at MB2.
+
+                        <pre xml:space="preserve">
+
+                        import javax.jms.*;
+                        import javax.naming.InitialContext;
+                        import javax.naming.NamingException;
+                        import java.util.Properties;
+
+                        public class SendClient {
+                            public static void main(String[] args) {
+                                SendClient sendClient = new SendClient();
+                                sendClient.sendMessage();
+                            }
+
+                            public void sendMessage() {
+
+                                Properties initialContextProperties = new Properties();
+                                initialContextProperties.put("java.naming.factory.initial",
+                                        "org.wso2.andes.jndi.PropertiesFileInitialContextFactory");
+                                String connectionString = "amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5673'";
+                                initialContextProperties.put("connectionfactory.qpidConnectionfactory", connectionString);
+                                initialContextProperties.put("queue.myQueue", "myQueue");
+
+
+                                try {
+                                    InitialContext initialContext = new InitialContext(initialContextProperties);
+                                    QueueConnectionFactory queueConnectionFactory
+                                            = (QueueConnectionFactory) initialContext.lookup("qpidConnectionfactory");
+
+                                    QueueConnection queueConnection = queueConnectionFactory.createQueueConnection();
+                                    queueConnection.start();
+
+                                    QueueSession queueSession = queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+
+                                    TextMessage textMessage = queueSession.createTextMessage();
+                                    textMessage.setText("Test message");
+                                    System.out.println("Sending Message : " + textMessage.getText().length());
+
+                                    // Send message
+                                    Queue queue = (Queue) initialContext.lookup("myQueue");
+
+                                    QueueSender queueSender = queueSession.createSender(queue);
+                                    queueSender.send(textMessage);
+
+                                    // Housekeeping
+                                    queueSender.close();
+                                    queueSession.close();
+                                    queueConnection.stop();
+                                    queueConnection.close();
+
+                                } catch (NamingException e) {
+                                    e.printStackTrace();
+                                } catch (JMSException e) {
+                                    e.printStackTrace();
+                                }
+
+                            }
+                        }
+                        </pre>
+                    </li>
+                    <li>
+                        Now you can run the consumer to receive messages from MB1. You will notice that the message you have
+                        sent to MB2 can be received by MB1. Even if MB2 instance was destroyed message will be consumed to the consumer.
+                    </li>
+                </ul>
+            </li>
+            <li>
+                <p>Following is a typical deployment diagram for a Message Broker cluster setup.</p>
+
+                <img src="images/Deployment_Diagram.jpg"
+                     alt="A typical cluster deployment"/>
+            </li>
+        </ul>
+        <h2 id="References">References</h2>
+        <ul>
+            <li>
+                <a href="http://zookeeper.apache.org/">Apache Zookeeper
+                </a>
+            </li>
+            <li>
+                <a href="http://cassandra.apache.org/">Apache Cassandra
+                </a>
+            </li>
+        </ul>
+
+    </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/bottom.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/bottom.gif b/products/cloud-controller/modules/distribution/lib/home/images/bottom.gif
new file mode 100644
index 0000000..5679266
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/bottom.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/content-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/content-bg.gif b/products/cloud-controller/modules/distribution/lib/home/images/content-bg.gif
new file mode 100644
index 0000000..6d0a579
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/content-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/favicon.ico
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/favicon.ico b/products/cloud-controller/modules/distribution/lib/home/images/favicon.ico
new file mode 100644
index 0000000..f7b2bbf
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/favicon.ico differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/feature-01-icon.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/feature-01-icon.gif b/products/cloud-controller/modules/distribution/lib/home/images/feature-01-icon.gif
new file mode 100644
index 0000000..b4ea8cd
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/feature-01-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/feature-02-icon.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/feature-02-icon.gif b/products/cloud-controller/modules/distribution/lib/home/images/feature-02-icon.gif
new file mode 100644
index 0000000..8754de1
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/feature-02-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/feature-03-icon.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/feature-03-icon.gif b/products/cloud-controller/modules/distribution/lib/home/images/feature-03-icon.gif
new file mode 100644
index 0000000..d81f1fe
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/feature-03-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/intro-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/intro-bg.gif b/products/cloud-controller/modules/distribution/lib/home/images/intro-bg.gif
new file mode 100644
index 0000000..a38a0df
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/intro-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/logo.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/logo.gif b/products/cloud-controller/modules/distribution/lib/home/images/logo.gif
new file mode 100644
index 0000000..ee9beef
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/powered-logo.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/powered-logo.gif b/products/cloud-controller/modules/distribution/lib/home/images/powered-logo.gif
new file mode 100644
index 0000000..fb478bf
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/powered-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/register.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/register.gif b/products/cloud-controller/modules/distribution/lib/home/images/register.gif
new file mode 100644
index 0000000..98c5362
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/register.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/sign-in.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/sign-in.gif b/products/cloud-controller/modules/distribution/lib/home/images/sign-in.gif
new file mode 100644
index 0000000..9e992cc
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/sign-in.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/title-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/title-bg.gif b/products/cloud-controller/modules/distribution/lib/home/images/title-bg.gif
new file mode 100644
index 0000000..2d539a7
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/title-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/images/top.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/images/top.gif b/products/cloud-controller/modules/distribution/lib/home/images/top.gif
new file mode 100644
index 0000000..9ed482c
Binary files /dev/null and b/products/cloud-controller/modules/distribution/lib/home/images/top.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/index.html
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/index.html b/products/cloud-controller/modules/distribution/lib/home/index.html
new file mode 100644
index 0000000..cc82a56
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/lib/home/index.html
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+	<head>  <script type="text/javascript" src="../../carbon/googleanalytics/js/jquery.min.js"></script>
+                <script type="text/javascript" src="../../carbon/googleanalytics/js/googleAnalyticsProcessor.js"></script>
+		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
+		<title>StratosLive</title>
+		<link href="style.css" rel="stylesheet" type="text/css" media="all" />
+		<link rel="icon" href="images/favicon.ico" type="image/x-icon"/>
+		<meta name="description" content="WSO2 is the lean enterprise middleware company, delivering the only complete open source enterprise SOA middleware stack available internally and in the cloud." />
+		<meta name="keywords" content="cloud, platform-as-a-service, PaaS" />
+	</head>
+
+	<body>
+		<div id="main-content">
+			<div id="header">
+				<div class="logo"><img src="images/logo.gif"/></div>
+			</div>
+			<div id="content">
+				<div class="intro">
+					<div class="register">
+						<a href="https://stratoslive.wso2.com/carbon/tenant-register/select_domain.jsp"><img src="images/register.gif"/></a>
+						<a href="../carbon/sso-acs/redirect_ajaxprocessor.jsp"><img src="images/sign-in.gif"/></a>
+					</div>
+					<p>WSO2 MB brings Event Driven Architecture capabilities to WSO2 Carbon platform. It provides WS-Eventing, JMS and SQS interfaces to client. It uses Apache Qpid as the underling broker which supports AMQP.</p>
+				</div>
+				<div class="clear"></div>
+				<div class="features">
+					<h2>Features</h2>
+					<div class="feature feature-left">
+						<img src="images/feature-01-icon.gif"/>
+						<h2>Bring CEP to SOA</h2>
+						<p>
+							Bring CEP to SOA by processing XML events and produce results as XML events.
+						</p>
+					</div>
+					<div class="feature">
+						<img src="images/feature-02-icon.gif"/>
+						<h2>Registry Storage</h2>
+						<p>
+							Ability to define different event streams, queries and out put streams and store them in the registry as a bucket.
+						</p>
+					</div>
+					<div class="feature">
+					 	<img src="images/feature-03-icon.gif"/>
+						<h2>Esper and Fusion</h2>
+						<p>
+							Support Esper and fusion back end runtimes.
+						</p>
+					</div>
+					<div class="clear"></div>				
+				</div>
+				<div class="clear"></div>
+			</div>
+			<div id="footer">
+				<div class="footer-links">
+					<a href="http://www.wso2.com/cloud/services/terms-of-use" target="_blank">Terms of Service</a> | <a href="http://www.wso2.com/cloud/services/privacy-policy" target="_blank">Privacy Policy</a> | <a href="http://www.wso2.com/cloud/services/support" target="_blank">Support</a>
+				</div>
+				<div class="powered">
+						<span>Powered by</span><img src="images/powered-logo.gif" alt="ESB"/>
+					</div>
+					<span class="copyright">&copy;stratoslive.wso2.com copyright 2010-2011 WSO2, Inc. </span>
+				</div>
+			</div>
+		</div>
+	</body>
+
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/lib/home/style.css
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/lib/home/style.css b/products/cloud-controller/modules/distribution/lib/home/style.css
new file mode 100644
index 0000000..f91a662
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/lib/home/style.css
@@ -0,0 +1,46 @@
+body { font-family: "Calibri","Lucida Grande","Lucida Sans","Microsoft Sans Serif","Lucida Sans Unicode","Verdana","Sans-serif","trebuchet ms"; font-size: .85em; line-height: 135%; color: #434343; margin: 0px; padding: 0px; background-color: #94C8EC;}
+
+p { }
+
+td { }
+
+a:link { text-decoration: none; }
+
+a:visited { text-decoration: none; }
+
+a:hover { text-decoration: none; }
+
+a:active { text-decoration: none; }
+
+a img { border: 0px; }
+div
+.clear { clear: both; }
+
+div#main-content { width: 960px; margin: auto; background-image: url(images/top.gif); background-repeat: no-repeat; background-position: left top; }
+
+div#header { height: 125px; }
+div.logo { float: left; margin-top: 35px; }
+div.sign-in { float: right;  margin-top: 35px; }
+
+div#content { background-color: #ffffff; background-image: url(images/content-bg.gif); background-repeat: repeat-y; background-position: left top; }
+
+div.intro { padding: 35px; padding-top: 10px; padding-bottom: 20px; font-size: 125%; line-height: 130%; float: left; background-image: url(images/intro-bg.gif); background-position: left bottom; background-repeat: no-repeat; }
+div.intro p { margin-top: 0px; margin-bottom: 0px; }
+
+div.register { float: right; margin-left: 40px; margin-top: 0px; margin-right: 0px; width: 400px; text-align: center;}
+div.register a img { margin-bottom: 7px; }
+div.register a:hover img { opacity:0.7;filter:alpha(opacity=70) }
+
+div.features { margin-top: 20px; }
+div.features h2 { margin-top: 0px; margin-bottom: 0px; font-size: 24px; color: #003A63; margin-left: 35px; margin-right: 35px; border-bottom: solid 0px #79BDE8; padding-bottom: 10px; background-image: url(images/title-bg.gif); background-repeat: no-repeat; background-position: left bottom; }
+div.feature { float: left; width: 230px; margin-left: 30px; margin-top: 7px; padding: 20px; text-align: left; }
+div.feature img { float: left; margin-right: 10px; width: 64px; }
+div.feature h2 { margin-top: 0px; margin-bottom: 7px; color: #0499CC; font-size: 140%; line-height: 110%; font-weight: normal; border-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-bottom: 0px; background-image: none; }
+div.feature p { margin-top: 0px; padding-top: 0px; }
+div.feature-left { margin-left: 41px; }
+
+div#footer { height: 80px; background-image: url(images/bottom.gif); background-position: left top; background-repeat: no-repeat; padding-top: 25px; }
+div#footer div.powered { color: #333333; float: right; font-size: 85%; margin-right: 10px; }
+div#footer div.powered span { float: left; line-height: 23px; margin-right: 5px; }
+div.footer-links { padding-bottom: 5px; padding-left: 10px; border-bottom: solid 1px #4E84C4; margin-bottom: 10px; color: #4E84C4; }
+div#footer span.copyright { font-size: 90%; padding-left: 10px; }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/pom.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/pom.xml b/products/cloud-controller/modules/distribution/pom.xml
new file mode 100644
index 0000000..fc1c515
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/pom.xml
@@ -0,0 +1,273 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.stratos.cc</groupId>
+        <artifactId>cc-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>apache-stratos-cc</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Cloud Controller - Distribution</name>
+    <url>http://apache.org</url>
+    <description>Apache Stratos - Cloud Controller - Distribution</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.rampart</groupId>
+            <artifactId>rampart</artifactId>
+            <version>${rampart.mar.version}</version>
+            <type>mar</type>
+        </dependency>
+        <dependency>
+            <groupId>slf4j.wso2</groupId>
+            <artifactId>slf4j</artifactId>
+            <version>${slf4j.wso2.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.17</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.andes.wso2</groupId>
+            <artifactId>andes-client</artifactId>
+	    <version>0.13.wso2v6</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs.wso2</groupId>
+            <artifactId>geronimo-jms_1.1_spec</artifactId>
+	    <version>1.1.0.wso2v1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.event.client</artifactId>
+	    <version>4.1.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.event.client.stub</artifactId>
+	     <version>4.1.0</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <version>2.0-alpha-4</version>
+                <inherited>false</inherited>
+                <executions>
+                    <execution>
+                        <id>unpack-wso2carbon</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>unpack</goal>
+                        </goals>
+                        <configuration>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.wso2.carbon</groupId>
+                                    <artifactId>wso2carbon-core</artifactId>
+                                    <version>${carbon.kernel.version}</version>
+                                    <type>zip</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target</outputDirectory>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.1</version>
+                <executions>
+                    <execution>
+                        <id>extract-docs-from-components</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <property name="tempdir" value="target/docs-temp"/>
+                                <mkdir dir="${tempdir}"/>
+                                <unzip dest="${tempdir}">
+                                    <fileset dir="target">
+                                        <include name="apache-stratos-cc-${project.version}.zip"/>
+                                    </fileset>
+                                </unzip>
+                                <copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/"
+                                      overwrite="false">
+                                    <fileset
+                                            dir="${tempdir}/apache-stratos-cc-${project.version}/repository/components/">
+                                    </fileset>
+                                </copy>
+                                <unzip dest="${tempdir}">
+                                    <fileset
+                                            dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/">
+                                        <include name="*.ui*.jar"/>
+                                    </fileset>
+                                </unzip>
+                                <move todir="${tempdir}/web/" includeemptydirs="false">
+                                    <fileset dir="${tempdir}/web/">
+                                        <exclude name="**/yui/**"/>
+                                        <!--<exclude name="**/tenant-login/**"/>-->
+                                        <exclude name="**/codepress/**"/>
+                                        <exclude name="**/editarea/**"/>
+                                        <exclude name="**/ajax/**"/>
+                                        <exclude name="**/WEB-INF/**"/>
+                                        <include name="**/*.html"/>
+                                    </fileset>
+                                    <mapper type="glob" from="*.html" to="*.xml"/>
+                                </move>
+                                <mkdir dir="src/site/xdoc"/>
+                                <copy todir="src/site/xdoc" overwrite="false"
+                                      includeemptydirs="false">
+                                    <fileset dir="${tempdir}/web">
+                                        <exclude name="**/yui/**"/>
+                                        <exclude name="**/codepress/**"/>
+                                        <exclude name="**/editarea/**"/>
+                                        <exclude name="**/ajax/**"/>
+                                        <exclude name="**/WEB-INF/**"/>
+                                        <exclude name="**/*.html"/>
+                                        <exclude name="**/*.js"/>
+                                        <exclude name="**/*.jsp"/>
+                                        <exclude name="**/*.xsl"/>
+                                        <exclude name="*.*"/>
+                                    </fileset>
+                                </copy>
+                                <copy todir="src/site" overwrite="false" includeemptydirs="false">
+                                    <fileset dir="../../docs">
+                                    </fileset>
+                                </copy>
+                                <copy todir="target/site/" overwrite="false"
+                                      includeemptydirs="false">
+                                    <fileset dir="src/site/xdoc/">
+                                        <include name="**/images/*.*"/>
+                                    </fileset>
+                                </copy>
+                                <!--<delete dir="${tempdir}"/>-->
+                            </tasks>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>clean_target</id>
+                        <phase>install</phase>
+                        <configuration>
+                            <tasks>
+                                <delete dir="target/archive-tmp"/>
+                                <delete dir="target/dependency-maven-plugin-markers"/>
+                                <delete dir="target/maven-archiver"/>
+                                <delete dir="target/wso2carbon-core-${carbon.kernel.version}"/>
+                                <delete dir="target/sources"/>
+                                <delete dir="target/site"/>
+				<delete dir="src/site"/>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-site-plugin</artifactId>
+                <version>3.0</version>
+                <configuration>
+                    <reportPlugins>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-project-info-reports-plugin</artifactId>
+                            <version>2.4</version>
+                            <reportSets>
+                                <reportSet>
+                                    <reports>
+                                        <report>index</report>
+                                    </reports>
+                                </reportSet>
+                            </reportSets>
+                        </plugin>
+                    </reportPlugins>
+                </configuration>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>site</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>pre_dist</id>
+                        <phase>test</phase>
+                        <goals>
+                            <goal>attached</goal>
+                        </goals>
+                        <configuration>
+                            <filters>
+                                <filter>${basedir}/src/main/assembly/filter.properties</filter>
+                            </filters>
+                            <descriptors>
+                                <descriptor>src/main/assembly/dist.xml</descriptor>
+                            </descriptors>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>dist</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>attached</goal>
+                        </goals>
+                        <configuration>
+                            <filters>
+                                <filter>${basedir}/src/main/assembly/filter.properties</filter>
+                            </filters>
+                            <descriptors>
+                                <descriptor>src/main/assembly/bin.xml</descriptor>
+                                <!--descriptor>src/main/assembly/src.xml</descriptor>
+                                <descriptor>src/main/assembly/docs.xml</descriptor-->
+                            </descriptors>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>


[11/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/CloudManagerService.wsdl
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/CloudManagerService.wsdl b/products/stratos_controller/modules/dashboard/src/main/resources/CloudManagerService.wsdl
deleted file mode 100644
index 6be162a..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/CloudManagerService.wsdl
+++ /dev/null
@@ -1,312 +0,0 @@
-<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd"
-                  xmlns:ns="http://services.mgt.services.manager.stratos.wso2.org"
-                  xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
-                  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
-                  xmlns:ax2298="http://beans.mgt.services.manager.stratos.wso2.org/xsd"
-                  xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
-                  xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
-                  xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
-                  targetNamespace="http://services.mgt.services.manager.stratos.wso2.org">
-    <wsdl:documentation>CloudManagerService</wsdl:documentation>
-    <wsdl:types>
-        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified"
-                   targetNamespace="http://beans.mgt.services.manager.stratos.wso2.org/xsd">
-            <xs:complexType name="CloudService">
-                <xs:sequence>
-                    <xs:element minOccurs="0" name="active" type="xs:boolean"/>
-                    <xs:element minOccurs="0" name="description" nillable="true" type="xs:string"/>
-                    <xs:element minOccurs="0" name="icon" nillable="true" type="xs:string"/>
-
-                    <xs:element minOccurs="0" name="label" nillable="true" type="xs:string"/>
-                    <xs:element minOccurs="0" name="link" nillable="true" type="xs:string"/>
-                    <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
-                    <xs:element minOccurs="0" name="productPageURL" nillable="true" type="xs:string"/>
-                </xs:sequence>
-            </xs:complexType>
-        </xs:schema>
-        <xs:schema xmlns:ax2299="http://beans.mgt.services.manager.stratos.wso2.org/xsd"
-                   attributeFormDefault="qualified" elementFormDefault="qualified"
-                   targetNamespace="http://services.mgt.services.manager.stratos.wso2.org">
-            <xs:import namespace="http://beans.mgt.services.manager.stratos.wso2.org/xsd"/>
-
-            <xs:element name="CloudManagerServiceException">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="CloudManagerServiceException" nillable="true"
-                                    type="ns:Exception"/>
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:complexType name="Exception">
-                <xs:sequence>
-
-                    <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string"/>
-                </xs:sequence>
-            </xs:complexType>
-            <xs:element name="saveCloudServicesActivity">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element maxOccurs="unbounded" minOccurs="0" name="activeServiceNames" nillable="true"
-                                    type="xs:string"/>
-                    </xs:sequence>
-                </xs:complexType>
-
-            </xs:element>
-            <xs:element name="retrieveCloudServiceInfo">
-                <xs:complexType>
-                    <xs:sequence/>
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="retrieveCloudServiceInfoResponse">
-                <xs:complexType>
-                    <xs:sequence>
-
-                        <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true"
-                                    type="ax2299:CloudService"/>
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="deactivate">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="cloudServiceName" nillable="true" type="xs:string"/>
-                    </xs:sequence>
-
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="activate">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="cloudServiceName" nillable="true" type="xs:string"/>
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-
-        </xs:schema>
-    </wsdl:types>
-    <wsdl:message name="saveCloudServicesActivityRequest">
-        <wsdl:part name="parameters" element="ns:saveCloudServicesActivity"/>
-    </wsdl:message>
-    <wsdl:message name="saveCloudServicesActivityResponse"/>
-    <wsdl:message name="CloudManagerServiceException">
-        <wsdl:part name="parameters" element="ns:CloudManagerServiceException"/>
-    </wsdl:message>
-
-    <wsdl:message name="activateRequest">
-        <wsdl:part name="parameters" element="ns:activate"/>
-    </wsdl:message>
-    <wsdl:message name="activateResponse"/>
-    <wsdl:message name="retrieveCloudServiceInfoRequest">
-        <wsdl:part name="parameters" element="ns:retrieveCloudServiceInfo"/>
-    </wsdl:message>
-    <wsdl:message name="retrieveCloudServiceInfoResponse">
-        <wsdl:part name="parameters" element="ns:retrieveCloudServiceInfoResponse"/>
-
-    </wsdl:message>
-    <wsdl:message name="deactivateRequest">
-        <wsdl:part name="parameters" element="ns:deactivate"/>
-    </wsdl:message>
-    <wsdl:message name="deactivateResponse"/>
-    <wsdl:portType name="CloudManagerServicePortType">
-        <wsdl:operation name="saveCloudServicesActivity">
-            <wsdl:input message="ns:saveCloudServicesActivityRequest" wsaw:Action="urn:saveCloudServicesActivity"/>
-            <wsdl:output message="ns:saveCloudServicesActivityResponse"
-                         wsaw:Action="urn:saveCloudServicesActivityResponse"/>
-
-            <wsdl:fault message="ns:CloudManagerServiceException" name="CloudManagerServiceException"
-                        wsaw:Action="urn:saveCloudServicesActivityCloudManagerServiceException"/>
-        </wsdl:operation>
-        <wsdl:operation name="activate">
-            <wsdl:input message="ns:activateRequest" wsaw:Action="urn:activate"/>
-            <wsdl:output message="ns:activateResponse" wsaw:Action="urn:activateResponse"/>
-            <wsdl:fault message="ns:CloudManagerServiceException" name="CloudManagerServiceException"
-                        wsaw:Action="urn:activateCloudManagerServiceException"/>
-        </wsdl:operation>
-        <wsdl:operation name="retrieveCloudServiceInfo">
-            <wsdl:input message="ns:retrieveCloudServiceInfoRequest" wsaw:Action="urn:retrieveCloudServiceInfo"/>
-
-            <wsdl:output message="ns:retrieveCloudServiceInfoResponse"
-                         wsaw:Action="urn:retrieveCloudServiceInfoResponse"/>
-            <wsdl:fault message="ns:CloudManagerServiceException" name="CloudManagerServiceException"
-                        wsaw:Action="urn:retrieveCloudServiceInfoCloudManagerServiceException"/>
-        </wsdl:operation>
-        <wsdl:operation name="deactivate">
-            <wsdl:input message="ns:deactivateRequest" wsaw:Action="urn:deactivate"/>
-            <wsdl:output message="ns:deactivateResponse" wsaw:Action="urn:deactivateResponse"/>
-            <wsdl:fault message="ns:CloudManagerServiceException" name="CloudManagerServiceException"
-                        wsaw:Action="urn:deactivateCloudManagerServiceException"/>
-        </wsdl:operation>
-    </wsdl:portType>
-
-    <wsdl:binding name="CloudManagerServiceSoap11Binding" type="ns:CloudManagerServicePortType">
-        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
-        <wsdl:operation name="saveCloudServicesActivity">
-            <soap:operation soapAction="urn:saveCloudServicesActivity" style="document"/>
-            <wsdl:input>
-                <soap:body use="literal"/>
-            </wsdl:input>
-            <wsdl:output>
-                <soap:body use="literal"/>
-
-            </wsdl:output>
-            <wsdl:fault name="CloudManagerServiceException">
-                <soap:fault use="literal" name="CloudManagerServiceException"/>
-            </wsdl:fault>
-        </wsdl:operation>
-        <wsdl:operation name="activate">
-            <soap:operation soapAction="urn:activate" style="document"/>
-            <wsdl:input>
-                <soap:body use="literal"/>
-
-            </wsdl:input>
-            <wsdl:output>
-                <soap:body use="literal"/>
-            </wsdl:output>
-            <wsdl:fault name="CloudManagerServiceException">
-                <soap:fault use="literal" name="CloudManagerServiceException"/>
-            </wsdl:fault>
-        </wsdl:operation>
-        <wsdl:operation name="retrieveCloudServiceInfo">
-
-            <soap:operation soapAction="urn:retrieveCloudServiceInfo" style="document"/>
-            <wsdl:input>
-                <soap:body use="literal"/>
-            </wsdl:input>
-            <wsdl:output>
-                <soap:body use="literal"/>
-            </wsdl:output>
-            <wsdl:fault name="CloudManagerServiceException">
-                <soap:fault use="literal" name="CloudManagerServiceException"/>
-
-            </wsdl:fault>
-        </wsdl:operation>
-        <wsdl:operation name="deactivate">
-            <soap:operation soapAction="urn:deactivate" style="document"/>
-            <wsdl:input>
-                <soap:body use="literal"/>
-            </wsdl:input>
-            <wsdl:output>
-                <soap:body use="literal"/>
-
-            </wsdl:output>
-            <wsdl:fault name="CloudManagerServiceException">
-                <soap:fault use="literal" name="CloudManagerServiceException"/>
-            </wsdl:fault>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:binding name="CloudManagerServiceSoap12Binding" type="ns:CloudManagerServicePortType">
-        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
-        <wsdl:operation name="saveCloudServicesActivity">
-
-            <soap12:operation soapAction="urn:saveCloudServicesActivity" style="document"/>
-            <wsdl:input>
-                <soap12:body use="literal"/>
-            </wsdl:input>
-            <wsdl:output>
-                <soap12:body use="literal"/>
-            </wsdl:output>
-            <wsdl:fault name="CloudManagerServiceException">
-                <soap12:fault use="literal" name="CloudManagerServiceException"/>
-
-            </wsdl:fault>
-        </wsdl:operation>
-        <wsdl:operation name="activate">
-            <soap12:operation soapAction="urn:activate" style="document"/>
-            <wsdl:input>
-                <soap12:body use="literal"/>
-            </wsdl:input>
-            <wsdl:output>
-                <soap12:body use="literal"/>
-
-            </wsdl:output>
-            <wsdl:fault name="CloudManagerServiceException">
-                <soap12:fault use="literal" name="CloudManagerServiceException"/>
-            </wsdl:fault>
-        </wsdl:operation>
-        <wsdl:operation name="retrieveCloudServiceInfo">
-            <soap12:operation soapAction="urn:retrieveCloudServiceInfo" style="document"/>
-            <wsdl:input>
-                <soap12:body use="literal"/>
-
-            </wsdl:input>
-            <wsdl:output>
-                <soap12:body use="literal"/>
-            </wsdl:output>
-            <wsdl:fault name="CloudManagerServiceException">
-                <soap12:fault use="literal" name="CloudManagerServiceException"/>
-            </wsdl:fault>
-        </wsdl:operation>
-        <wsdl:operation name="deactivate">
-
-            <soap12:operation soapAction="urn:deactivate" style="document"/>
-            <wsdl:input>
-                <soap12:body use="literal"/>
-            </wsdl:input>
-            <wsdl:output>
-                <soap12:body use="literal"/>
-            </wsdl:output>
-            <wsdl:fault name="CloudManagerServiceException">
-                <soap12:fault use="literal" name="CloudManagerServiceException"/>
-
-            </wsdl:fault>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:binding name="CloudManagerServiceHttpBinding" type="ns:CloudManagerServicePortType">
-        <http:binding verb="POST"/>
-        <wsdl:operation name="saveCloudServicesActivity">
-            <http:operation location="saveCloudServicesActivity"/>
-            <wsdl:input>
-                <mime:content type="text/xml" part="parameters"/>
-
-            </wsdl:input>
-            <wsdl:output>
-                <mime:content type="text/xml" part="parameters"/>
-            </wsdl:output>
-        </wsdl:operation>
-        <wsdl:operation name="activate">
-            <http:operation location="activate"/>
-            <wsdl:input>
-                <mime:content type="text/xml" part="parameters"/>
-
-            </wsdl:input>
-            <wsdl:output>
-                <mime:content type="text/xml" part="parameters"/>
-            </wsdl:output>
-        </wsdl:operation>
-        <wsdl:operation name="retrieveCloudServiceInfo">
-            <http:operation location="retrieveCloudServiceInfo"/>
-            <wsdl:input>
-                <mime:content type="text/xml" part="parameters"/>
-
-            </wsdl:input>
-            <wsdl:output>
-                <mime:content type="text/xml" part="parameters"/>
-            </wsdl:output>
-        </wsdl:operation>
-        <wsdl:operation name="deactivate">
-            <http:operation location="deactivate"/>
-            <wsdl:input>
-                <mime:content type="text/xml" part="parameters"/>
-
-            </wsdl:input>
-            <wsdl:output>
-                <mime:content type="text/xml" part="parameters"/>
-            </wsdl:output>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:service name="CloudManagerService">
-        <wsdl:port name="CloudManagerServiceHttpsSoap11Endpoint" binding="ns:CloudManagerServiceSoap11Binding">
-            <soap:address
-                    location="https://10.100.0.26:9443/services/CloudManagerService.CloudManagerServiceHttpsSoap11Endpoint/"/>
-
-        </wsdl:port>
-        <wsdl:port name="CloudManagerServiceHttpsSoap12Endpoint" binding="ns:CloudManagerServiceSoap12Binding">
-            <soap12:address
-                    location="https://10.100.0.26:9443/services/CloudManagerService.CloudManagerServiceHttpsSoap12Endpoint/"/>
-        </wsdl:port>
-        <wsdl:port name="CloudManagerServiceHttpsEndpoint" binding="ns:CloudManagerServiceHttpBinding">
-            <http:address
-                    location="https://10.100.0.26:9443/services/CloudManagerService.CloudManagerServiceHttpsEndpoint/"/>
-        </wsdl:port>
-    </wsdl:service>
-</wsdl:definitions>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/META-INF/component.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/META-INF/component.xml b/products/stratos_controller/modules/dashboard/src/main/resources/META-INF/component.xml
deleted file mode 100644
index e127fda..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/META-INF/component.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<!--
-  #  Licensed to the Apache Software Foundation (ASF) under one
-  #  or more contributor license agreements.  See the NOTICE file
-  #  distributed with this work for additional information
-  #  regarding copyright ownership.  The ASF licenses this file
-  #  to you under the Apache License, Version 2.0 (the
-  #  "License"); you may not use this file except in compliance
-  #  with the License.  You may obtain a copy of the License at
-  #
-  #  http://www.apache.org/licenses/LICENSE-2.0
-  #
-  #  Unless required by applicable law or agreed to in writing,
-  #  software distributed under the License is distributed on an
-  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  #  KIND, either express or implied.  See the License for the
-  #  specific language governing permissions and limitations
-  #  under the License.
-  -->
-<component xmlns="http://products.wso2.org/carbon">
-    <!-- sample menu configuration -->
-    <menus>
-        <menu>
-            <id>mt_cloud_services_configurations</id>
-            <i18n-key>cloud.services.configurations</i18n-key>
-            <i18n-bundle>org.apache.stratos.manager.dashboard.ui.i18n.Resources</i18n-bundle>
-            <parent-menu>configure_menu</parent-menu>
-            <link>../tenant-dashboard/cloud_services_configuration.jsp</link>
-            <region>region1</region>
-            <icon>../tenant-dashboard/images/service-configuration.gif</icon>
-            <order>40</order>
-            <style-class>home</style-class>
-            <require-permission>/permission/admin/configure/cloud-services</require-permission>
-            <require-not-super-tenant>true</require-not-super-tenant>
-        </menu>
-    </menus>
-</component>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/JSResources.properties
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/JSResources.properties b/products/stratos_controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/JSResources.properties
deleted file mode 100644
index 49efc22..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/JSResources.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-password.mismatched=Passwords do not match.
-current.password.should.provided=You should provide the current password inorder to change the password.
-session.timed.out=Session timed out.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/Resources.properties
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/Resources.properties b/products/stratos_controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/Resources.properties
deleted file mode 100644
index 3d49083..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/org/apache/stratos/manager/dashboard/ui/i18n/Resources.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-cloud.services.configurations=Services
-activate.your.cloud.services=Activate your Cloud Services
-cloud.services=Cloud Services

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_configuration.jsp
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_configuration.jsp b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_configuration.jsp
deleted file mode 100644
index cb970ec..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_configuration.jsp
+++ /dev/null
@@ -1,204 +0,0 @@
-<%-- 
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~ 
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~ 
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
---%>
-<%@ page import="org.wso2.stratos.manager.dashboard.ui.clients.CloudManagerServiceClient" %>
-<%@ page import="org.apache.stratos.manager.dashboard.stub.xsd.CloudService" %>
-<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
-<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
-<%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %>
-<%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %>
-<%@ page import="org.apache.stratos.account.mgt.ui.clients.AccountMgtClient" %>
-<%@ page import="org.apache.stratos.common.constants.StratosConstants" %>
-<%@ page import="java.util.List" %>
-<%@ page import="java.util.ArrayList" %>
-<%@ page import="org.wso2.stratos.manager.dashboard.ui.utils.Util" %>
-<%@ page import="org.wso2.carbon.utils.multitenancy.MultitenantConstants" %>
-
-
-<jsp:include page="../registry_common/registry_common-i18n-ajaxprocessor.jsp"/>
-<script type="text/javascript" src="../registry_common/js/registry_validation.js"></script>
-<script type="text/javascript" src="../registry_common/js/registry_common.js"></script>
-<script type="text/javascript" src="../ajax/js/prototype.js"></script>
-<script type="text/javascript" src="../tenant-dashboard/js/dashboard.js"></script>
-<link href="../tenant-dashboard/css/dashboard.css" rel="stylesheet" type="text/css" media="all"/>
-
-
-<%
-
-    CloudManagerServiceClient cloudManagerClient;
-    CloudService[] cloudServices = null;
-    String error = "Error in getting the available and active service details.";
-    try {
-        cloudManagerClient = new CloudManagerServiceClient(request, config, session);
-        cloudServices = cloudManagerClient.retrieveCloudServiceInfo();
-    } catch (Exception e) {
-        request.setAttribute(CarbonUIMessage.ID, new CarbonUIMessage(error,error,null)); 
-%>
-        <jsp:include page="../admin/error.jsp?<%=error%>"/>
-<%
-        return;
-    }
-%>
-<fmt:bundle basename="org.apache.stratos.manager.dashboard.ui.i18n.Resources">
-<carbon:jsi18n
-        resourceBundle="org.apache.stratos.manager.dashboard.ui.i18n.JSResources"
-        request="<%=request%>" namespace="org.wso2.stratos.manager.dashboard.ui"/>
-
-<div id="middle">
-<h2><fmt:message key="activate.your.cloud.services"/></h2>
-<div id="workArea">
-<%
-// if the account management permission there, we are showing the message to validate email address
-if (CarbonUIUtil.isUserAuthorized(request, "/permission/admin/configure/account")) {
-
-    AccountMgtClient client = new AccountMgtClient(config, session);
-    boolean isEmailValidated = client.isEmailValidated();
-
-    if (!isEmailValidated) {
-%>
-
-<div class="green-note">Your organization has not validated the contact email address yet. Please validate it following
-the instructions in the <a href="../account-mgt/account_mgt.jsp">Account Management</a> page (Accessible from Configure-&gt;Account menu). </div>
-<%
-    }
-}
-String tenantDomain = null;
-if (session.getAttribute(MultitenantConstants.TENANT_DOMAIN) != null) {
-    tenantDomain = (String)session.getAttribute(MultitenantConstants.TENANT_DOMAIN);
-} else {
-    // user is not logged in or just logged out, but still they are inside url own to the domain
-    tenantDomain = (String)request.getAttribute(MultitenantConstants.TENANT_DOMAIN);
-}
-String linkSuffix = "";
-    if (tenantDomain != null) {
-        linkSuffix = "/" + MultitenantConstants.TENANT_AWARE_URL_PREFIX + "/" + tenantDomain;
-    }
-
-boolean isUserAuthorized = CarbonUIUtil.isUserAuthorized(request, "/permission/admin/configure/cloud-services");    
-%>
-<form id="cloudService" action="cloud_services_save_ajaxprocessor.jsp" method="post">
-<div>
-    <table cellspacing="0" class="tips">
-<%
-    List<String> activeServices = new ArrayList<String>();
-    int index = 1;
-
-    for (CloudService cloudService: cloudServices) {
-        index++;
-        String name = cloudService.getName();       
-        String imagePath = "images/" + name.replace(" ", "-") + "-logo.gif";
-        String projectPageUrl = cloudService.getProductPageURL();
-        String link = cloudService.getLink() + linkSuffix;
-        String icon = cloudService.getIcon();
-        String iconPath = icon.substring(0, icon.lastIndexOf('/'));
-        String iconName = icon.substring(icon.lastIndexOf('/') + 1);
-        String inactiveIcon = iconPath + "/" + "inactive-" + iconName;
-        String description = cloudService.getDescription();
-        String label = cloudService.getLabel();
-        boolean active = name.equals(StratosConstants.CLOUD_IDENTITY_SERVICE) ||
-                name.equals(StratosConstants.CLOUD_GOVERNANCE_SERVICE) ||
-                cloudService.getActive();
-        String disabledStr = (name.equals(StratosConstants.CLOUD_IDENTITY_SERVICE) ||
-                name.equals(StratosConstants.CLOUD_GOVERNANCE_SERVICE))?" disabled ": "";
-        boolean disabledBtn = (name.equals(StratosConstants.CLOUD_IDENTITY_SERVICE) ||
-                name.equals(StratosConstants.CLOUD_GOVERNANCE_SERVICE));
-        if (!isUserAuthorized) {
-            disabledStr = " disabled ";
-        }
-        /*if (name.equals(StratosConstants.CLOUD_ESB_SERVICE)) {
-            active = false;
-            disabledStr = " disabled "; // we show an inactive and disabled link
-        }*/
-        if (active) {
-            activeServices.add(label);
-        }
-%>
-            <tr class="tips-row">
-
-            <td class="tip-checkbox">
-                <input type="checkbox" <%=disabledStr%> <%=active ? " checked=\"true\"" : ""%>
-                       name="cloudServices" id="cloudServices<%=index%>"  value="<%=name%>" style="display:none;"/>
-            </td>
-
-            <td>
-            	<img src="<%=icon%>" class="iconImage">
-                <% if (active) { %>
-            	<a target="_blank" href="<%=link%>" class="linkToService"><%=label%></a>
-                 <% } else { %>
-                <a class="linkToService"><%=label%></a>
-                <% } %>
-
-            </td>
-	<td class="access">
-        <% if (!disabledBtn) { %>          
-                <% if (active) { %>
-                <a target="_blank" input type="button" onclick="document.getElementById('cloudServices<%=index%>').checked=false;onChangeServiceSubscription()" class="deactivate-button"> Deactivate
-                </a>
-                <% } else { %>
-                <a target="_blank" input type="button" onclick="document.getElementById('cloudServices<%=index%>').checked=true;onChangeServiceSubscription()" class="activate-button"> Activate
-                <% } %>
-        <% } %>
-    </td>
-                
-	<td class="powered">Powered by<br/><a href="<%=projectPageUrl%>" target="_blank"><img src="<%=imagePath%>"/></a></td>
-                 </tr>
-               <% index++;
-            } %>
-
-                <td>&nbsp;</td>
-                </tr>
-    </table>
-    </div>
-</form>
-<%
-    List<String> oldActiveServices = (List<String>)session.getAttribute("active-statos-services");
-    if (oldActiveServices != null) {
-        List<String> newlyActivatedServices = Util.getNewlyActivatedServices(oldActiveServices, activeServices);
-        List<String> newlyDeactivatedServices = Util.getNewlyDeactivatedServices(oldActiveServices, activeServices);
-        String msg = null;
-        if (newlyActivatedServices.size() > 0) {
-            msg = "<li>";
-            for (String service: newlyActivatedServices) {
-                msg += "<ul>" + service + " <strong>activated</strong></ul>";
-            }
-            msg += "</li>";
-        }
-        if (newlyDeactivatedServices.size() > 0) {
-            if (msg == null) {
-                msg = "<li>";
-            }
-            for (String service: newlyDeactivatedServices) {
-                msg += "<ul>" + service + " <strong>deactivated</strong></ul>";
-            }
-            msg += "</li>";
-        }
-        if (msg != null) {
-%>
-    <script type="text/javascript">
-        jQuery(document).ready(function() {
-            CARBON.showInfoDialog('<%=msg%>');
-        });
-    </script>
-<%
-        }
-    }
-    session.setAttribute("active-statos-services", activeServices);
-%>
-</div>
-</div>
-</fmt:bundle>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_save_ajaxprocessor.jsp
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_save_ajaxprocessor.jsp b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_save_ajaxprocessor.jsp
deleted file mode 100644
index 4de7357..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/cloud_services_save_ajaxprocessor.jsp
+++ /dev/null
@@ -1,35 +0,0 @@
-<%-- 
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~ 
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~ 
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  --%>
-<%@ page import="org.wso2.stratos.manager.dashboard.ui.clients.CloudManagerServiceClient" %>
-<%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %><%
-    String[] activeCloudServiceNames = request.getParameterValues("cloudServices");
-
-    String error = "Error in saving the results of the activities";
-    try {
-        CloudManagerServiceClient cloudServiceClient = new CloudManagerServiceClient(request, config, session);
-        cloudServiceClient.saveCloudServicesActivity(activeCloudServiceNames);
-    } catch (Exception e) {
-        request.setAttribute(CarbonUIMessage.ID, new CarbonUIMessage(error,error,null));
-%>
-        <jsp:include page="../admin/error.jsp?<%=error%>"/>
-<%
-        return;
-    }
-    response.sendRedirect("../tenant-dashboard/cloud_services_configuration.jsp");
-%>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/css/dashboard.css
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/css/dashboard.css b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/css/dashboard.css
deleted file mode 100644
index de0a70f..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/css/dashboard.css
+++ /dev/null
@@ -1,231 +0,0 @@
-div.dashboard-clear {
-    clear:both;
-    margin-top:5px;
-}
-
-div.dashboard-comp {
-    width: 300px;
-    margin: 5px;
-    float: left;
-    border:1px solid #6997b2;
-    background: #ffffff;
-    height: 300px;
-}
-.dashboard-comp-head{
-background-image:url( ../../admin/images/table-header.gif);
-background-position:left bottom;
-background-repeat:repeat-x;
-font-weight:normal;
-height:22px;
-line-height:22px;
-text-indent:5px;
-font-weight:bold;
-}
-.dashboard-comp-bottom{
-padding-left:5px;
-padding-top:5px;
-}
-.dashboard-comp-msg{
-color:#505050;
-padding:5px;
-}
-
-div.dashboard-comp-body {
-    overflow: auto;
-    max-height: 230px;
-}
-
-div.activity-comp-body {
-    overflow: auto;
-    max-height: 278px;
-}
-table.tips {
-	border-collapse: separate;
-	padding-bottom: 10px;
-	width: 90%;
-}
-table.tips tbody tr.tips-row {
-}
-tr.tips-row td {
-	border-bottom: solid 1px #ccc;
-}
-tr.tips-row td.tip-checkbox {
-	padding-left: 40px;
-	padding-top: 4px;
-	padding-bottom: 4px;
-    border-left: 0px;
-    border-right: 0px;
-    border-top: 0px;
-    vertical-align: top;
-    padding-right:12px !important;
-}
-tr.tips-row td.tip-img {
-	padding-left: 15px;
-	padding-top: 4px;
-	padding-bottom: 4px;
-    border-left: 0px;
-    border-right: 0px;
-    border-top: 0px;
-    vertical-align: top;
-    padding-right:12px !important;
-}
-tr.tips-row td.tip-img a img {
-	border: 0px;
-}
-tr.tips-row td.tip {
-	background-image: url(../images/aas-top.gif);
-	background-repeat: no-repeat;
-	background-position: left 7px;
-    margin: 0px;
-    padding-left: 0px;
-    padding-right: 15px;
-    padding-top: 20px;
-    padding-bottom: 0px;
-    /*border-bottom: 1px solid #aaa;*/
-    border-left: 0px;
-    border-right: 0px;
-    border-top: 0px;
-    vertical-align: top;
-}
-tr.tips-row td.tip img {
-	float: left;
-	margin-top: -20px;
-	margin-left: 17px;
-	margin-right: 12px;
-	margin-bottom: 20px;
-}
-tr.tips-row td.tip h2 {
-    background-color: transparent !important;
-	font-size: 125%;
-	line-height: 125%;
-	margin-top: 0px;
-	margin-bottom: 3px;
-    border:medium none !important;
-    margin-top:3px !important;
-    margin-left: 0px !important;
-    padding-left: 0px !important;
-}
-tr.tips-row td.tip h2 a {
-	font-size:14px;
-    text-decoration:underline;
-}
-tr.tips-row td.tip p {
-	padding-bottom: 15px;
-}
-tr.tips-row td.access {
-	padding-left: 30px;
-	padding-right: 30px;
-	vertical-align: middle;
-}
-tr.tips-row td.access a.go-button {
-	width: 63px;
-	height: 42px;
-	display: block;
-	background-color: #ccc;
-	font-size: 20px;
-	line-height: 40px;
-	font-weight: bold;
-	color: #000000;
-	text-decoration: none;
-	padding-left: 19px;
-	background-image: url(../images/go-button.gif);
-	background-repeat: no-repeat;
-	background-position: left top;
-}
-tr.tips-row td.access span.inactive {
-	width: 63px;
-	height: 42px;
-	display: block;
-	background-color: #ccc;
-	font-size: 20px;
-	line-height: 40px;
-	font-weight: bold;
-	color: #999999;
-	text-decoration: none;
-	padding-left: 19px;
-	background-image: url(../images/inactive-go-button.gif);
-	background-repeat: no-repeat;
-	background-position: left top;
-}
-tr.tips-row td.access a.go-button:hover {
-	color: #0084A9;
-}
-tr.tips-row td.powered {
-	padding-left: 10px;
-	padding-right: 20px;
-	text-align: right;
-	font-size: 12px;
-	line-height: 20px;
-	color: #666666;
-	vertical-align: middle;
-}
-.green-note {
-    color: #f00;
-}
-div#menu ul.main li a.menu-home {
-display:block !important;
-}
-/* service config buttons */
-td.access a.activate-button {
-	width: 98px;
-	height: 42px;
-	cursor: pointer;
-	display: block;
-	background-color: #ccc;
-	font-size: 15px;
-	line-height: 40px;
-	font-weight: normal;
-	color: #000000;
-	text-decoration: none;
-	padding-left: 47px;
-	background-image: url(../images/activate-button.gif);
-	background-repeat: no-repeat;
-	background-position: left top;
-}
-td.access a.activate-button:hover {
-	color: #00853F;
-}
-td.access a.deactivate-button {
-	width: 103px;
-	height: 42px;
-	cursor: pointer;
-	display: block;
-	background-color: #ccc;
-	font-size: 15px;
-	line-height: 40px;
-	font-weight: normal;
-	color: #000000;
-	text-decoration: none;
-	padding-left: 42px;
-	background-image: url(../images/deactivate-button.gif);
-	background-repeat: no-repeat;
-	background-position: left top;
-}
-td.access a.deactivate-button:hover {
-	color: #B5121B;
-}
-.home_tips{
-width:100%;
-}
-.home_tips td{
-border-bottom:solid 1px #ccc;
-padding-bottom:5px !important;
-padding-top:5px !important;
-}
-.home_tips td img{
-vertical-align:middle;
-
-}
-.home_tips td img.iconImage{
-margin-right:10px;
-
-}
-.linkToService{
-color:#0D4D79 !important;
-padding-left:10px !important;
-font-size:18px;
-text-decoration:underline !important;
-}
-.home_tips td.powered{
-text-align:right;
-}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/images/dashboard.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/images/dashboard.png b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/images/dashboard.png
deleted file mode 100644
index 1386a9e..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/images/dashboard.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide-old.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide-old.html b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide-old.html
deleted file mode 100644
index e57a9b5..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide-old.html
+++ /dev/null
@@ -1,101 +0,0 @@
-<!-- 
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~ 
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~ 
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<html>
-<head>
-    <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
-  <title>Cloud Services - User Guide</title>
-  <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
-</head>
-
-<body>
-<p>[<a href="../../issue/viewAccounts.jsp">Issue Tracking</a>]
-            | [<a href="http://wso2.com/cloud/services/privacy-policy">Privacy Policy</a>] | [<a href="http://wso2.com/cloud/services/terms-of-use/">Terms of Use</a>]
-        </p>
-
-<h2><a href="http://wso2.com/cloud/stratos/">Cloud Services Home</a> </h1>
-
-<p>
-Cloud Services Home page provides an interface to access the services of the SOA platform of your organization. Stratos provides a web-based console for provisioning new tenants on the platform, allowing self-service provisioning of any WSO2 Carbon product, and running elastically on your choice of underlying virtualization infrastructure to provide all the PaaS benefits inherent to a cloud-native platform. A list of the services available under WSO2 Stratos for the tenant can be found in the cloud services home.
-</p>
-
-<img src="../../tenant-dashboard/docs/images/dashboard.png"/>
-<p>Figure1: Cloud Services Home Page</p>
-</body>
-
-<h3><a href="http://wso2.com/products/application-server/">Application Server</a></h3>
-<p>
-The WSO2 Application Server is an open source, enterprise-ready, Web services engine based on Apache Axis2. Bringing together a number of Apache Web services projects, WSO2 Application Server provides a secure, transactional and reliable runtime to create, consume, deploy and manage Web services for your SOA. 
-</p>
-
-<h3><a href="http://wso2.com/products/data-services-server/">Data Services Server</a></h3>
-<p>
-The WSO2 Data Services Server, data service tier assures ready access to enterprise data scattered across heterogeneous data sources in a unified manner. Due to the single data layer, benefits of optimizations and availability of more processing power will be visible to every service consumer. Access to real time data provides more accurate, up-to-date information for applications. Further this single interface to enterprise data can greatly help in preserving integrity of frequently modified data. 
-</p>
-
-<h3><a href="http://wso2.com/products/mashup-server/">Mashup Server</a></h3>
-<p>
-The WSO2 Mashup Server provides a platform for rapidly deploying Web service Mashups. Combining simple yet rich mashups with reusability, security, reliability and governance, the WSO2 Mashup Server offers enterprise-class service composition.  
-</p>
-
-<h3><a href="http://wso2.com/products/identity-server/">Identity Server</a></h3>
-<p>
-The WSO2 Identity Server is an open source identity and entitlement management server. It supports Information Cards and OpenID for authentication as well as XACML for fine grained authorization. Providing a complete enterprise ready identity solution, it integrates easily into existing user stores such as LDAP or Active Directory and supports multi-factor authentication and much more. The WSO2 Identity Server helps you build secured SOA in a few very easy steps.
-</p>
-
-<h3><a href="http://wso2.com/products/governance-registry/">Governance Registry</a></h3>
-<p>
-The WSO2 Governance Registry addresses both design-time and runtime governance scenarios, to ensure compliance with corporate standards. It allows enterprise architects and developers to always keep track of the services being created and used within an SOA. 
-</p>
-
-<h3><a href="http://wso2.com/products/gadget-server/">Gadget Server</a></h3>
-<p>
-With the WSO2 Gadget Server, you can offer your execs, employees, partners, or customers a way to get all the information in one place that they need. Each user's dashboard is individualized, allowing him/her to add, customize, and rearrange gadgets, as well as group them into tab sets. The open "Web" model means users can select gadgets not only from your enterprise, but also from Google and many others.
-</p>
-
-<h3><a href="http://wso2.com/products/business-activity-monitor/">Business Activity Monitor</a></h3>
-<p>
-The WSO2 Business Activity Monitor (WSO2 BAM) serves the needs of both business and IT domain experts to monitor and understand business activities within an SOA deployment. While specifically designed to monitor SOA deployments, it can be extended to cater to other general monitoring requirements as well. 
-</p>
-
-<h3><a href="http://wso2.com/products/business-process-server/">Business Process Server</a></h3>
-<p>
-The WSO2 Business Process Server is an easy-to-use open source business process server that executes business processes written using the WS-BPEL standard. Powered by Apache ODE, it provides a complete Web-based graphical console to deploy, manage and view processes in addition to managing and viewing process instances
-</p>
-
-<h3><a href="http://wso2.com/products/business-rules-server/">Business Rules Server</a></h3>
-<p>
-The WSO2 Business Rules Server brings the agility of business rules to your Service Oriented Architecture toolkit. Based on a solid platform for hosting business rules, our BRS excels at extending the capabilities of your SOA. 
-</p>
-
-<h3><a href="http://wso2.com/products/enterprise-service-bus/">Enterprise Service Bus</a></h3>
-<p>
-The WSO2 Enterprise Service Bus offers a lean approach to create a Service Oriented Architecture by adding monitoring, management, and virtualization to your existing service interactions. Its innovative design leads it to be one of the highest performance, lowest footprint, and widest interoperability integration systems available.
-</p>
-
-<h3><a href="http://wso2.com/products/message-broker/">Message Broker</a></h3>
-<p>
-The WSO2 Message Broker brings messaging and eventing capabilities into your Service Oriented Architecture. Extending the WSO2 Carbon platform to support event driven architectures, WSO2 Message Broker is powered by Apache Qpid, one of the leading Advanced Message Queuing Protocol (AMQP) messaging engines available today. 
-</p>
-
-<h3><a href="http://wso2.com/products/complex-event-processing-server/">Complex Event Processing Server</a></h3>
-<p>
-The WSO2 Complex Event Processing Server enables you to intelligently single out events with predefined properties and even manage and combine them in a manner that allows for real time analysis and a rapid response to whatever threat or opportunity that enterprises face.
-</p>
-
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide.html b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide.html
deleted file mode 100644
index f4f4ff1..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/docs/userguide.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!-- 
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~ 
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~ 
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<html>
-<head>
-    <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
-  <title>Cloud Services - User Guide</title>
-  <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
-</head>
-
-<body>
-
-	<h1>Cloud Services</h1>
-
-
-	<p>
-		Please refer <a href="http://docs.wso2.org/wiki/display/Stratos200/WSO2+Stratos+Documentation">
-			WSO2 Stratos 2.0 Documentation</a> for more information.
-	</p>
-</body>
-
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Cloud-Gateway-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Cloud-Gateway-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Cloud-Gateway-logo.gif
deleted file mode 100644
index 2154397..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Cloud-Gateway-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Storage-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Storage-Server-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Storage-Server-logo.gif
deleted file mode 100644
index 3ee3303..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Storage-Server-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Application-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Application-Server-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Application-Server-logo.gif
deleted file mode 100644
index 55e4751..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Application-Server-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Activity-Monitor-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Activity-Monitor-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Activity-Monitor-logo.gif
deleted file mode 100644
index f8b6a74..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Activity-Monitor-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Process-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Process-Server-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Process-Server-logo.gif
deleted file mode 100644
index 5dd2171..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Process-Server-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Rules-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Rules-Server-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Rules-Server-logo.gif
deleted file mode 100644
index ccba887..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Business-Rules-Server-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Cloud-Services-Gateway-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Cloud-Services-Gateway-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Cloud-Services-Gateway-logo.gif
deleted file mode 100644
index e69aaa6..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Cloud-Services-Gateway-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Complex-Event-Processing-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Complex-Event-Processing-Server-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Complex-Event-Processing-Server-logo.gif
deleted file mode 100644
index b80554a..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Complex-Event-Processing-Server-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Data-Services-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Data-Services-Server-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Data-Services-Server-logo.gif
deleted file mode 100644
index f70a205..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Data-Services-Server-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Enterprise-Service-Bus-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Enterprise-Service-Bus-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Enterprise-Service-Bus-logo.gif
deleted file mode 100644
index 95cb5b3..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Enterprise-Service-Bus-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Gadget-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Gadget-Server-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Gadget-Server-logo.gif
deleted file mode 100644
index 8e89ef5..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Gadget-Server-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Governance-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Governance-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Governance-logo.gif
deleted file mode 100644
index af1ac45..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Governance-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Identity-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Identity-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Identity-logo.gif
deleted file mode 100644
index a2447bc..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Identity-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Mashup-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Mashup-Server-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Mashup-Server-logo.gif
deleted file mode 100644
index f8ed9be..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Mashup-Server-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Message-Broker-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Message-Broker-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Message-Broker-logo.gif
deleted file mode 100644
index aa5c5ba..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Message-Broker-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Tasks-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Tasks-Server-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Tasks-Server-logo.gif
deleted file mode 100644
index 5fa3679..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Tasks-Server-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/aas-top.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/aas-top.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/aas-top.gif
deleted file mode 100644
index a15dd8f..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/aas-top.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/activate-button.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/activate-button.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/activate-button.gif
deleted file mode 100644
index 91e4c94..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/activate-button.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/appserver-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/appserver-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/appserver-logo.gif
deleted file mode 100644
index 55e4751..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/appserver-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bam-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bam-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bam-logo.gif
deleted file mode 100644
index f8b6a74..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bam-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bps-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bps-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bps-logo.gif
deleted file mode 100644
index 5dd2171..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bps-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/brs-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/brs-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/brs-logo.gif
deleted file mode 100644
index ccba887..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/brs-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/cep_logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/cep_logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/cep_logo.gif
deleted file mode 100644
index b80554a..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/cep_logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/csg-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/csg-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/csg-logo.gif
deleted file mode 100644
index e69aaa6..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/csg-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/deactivate-button.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/deactivate-button.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/deactivate-button.gif
deleted file mode 100644
index c8d1b4a..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/deactivate-button.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/ds-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/ds-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/ds-logo.gif
deleted file mode 100644
index f70a205..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/ds-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/esb-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/esb-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/esb-logo.gif
deleted file mode 100644
index 95cb5b3..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/esb-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/gadget-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/gadget-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/gadget-logo.gif
deleted file mode 100644
index 8e89ef5..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/gadget-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/go-button.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/go-button.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/go-button.gif
deleted file mode 100644
index ae73e92..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/go-button.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/governance-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/governance-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/governance-logo.gif
deleted file mode 100644
index af1ac45..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/governance-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/identity-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/identity-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/identity-logo.gif
deleted file mode 100644
index a2447bc..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/identity-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/inactive-go-button.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/inactive-go-button.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/inactive-go-button.gif
deleted file mode 100644
index 513301e..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/inactive-go-button.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mashup-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mashup-logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mashup-logo.gif
deleted file mode 100644
index f8ed9be..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mashup-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mb_logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mb_logo.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mb_logo.gif
deleted file mode 100644
index aa5c5ba..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mb_logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/service-configuration.gif
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/service-configuration.gif b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/service-configuration.gif
deleted file mode 100644
index 499b6a2..0000000
Binary files a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/service-configuration.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/index.jsp
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/index.jsp b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/index.jsp
deleted file mode 100644
index 580156f..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/index.jsp
+++ /dev/null
@@ -1,244 +0,0 @@
-<%-- 
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~ 
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~ 
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  --%>
-<%@ page import="org.wso2.stratos.manager.dashboard.ui.clients.CloudManagerServiceClient" %>
-<%@ page import="org.apache.stratos.manager.dashboard.stub.xsd.CloudService" %>
-<%@ page import="org.wso2.carbon.registry.core.exceptions.RegistryException" %>
-<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
-<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
-<%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %>
-<%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %>
-<%@ page import="org.wso2.carbon.account.mgt.ui.clients.AccountMgtClient" %>
-<%@ page import="org.wso2.carbon.utils.multitenancy.MultitenantConstants" %>
-<%@ page import="org.wso2.stratos.manager.dashboard.ui.utils.Util" %>
-
-<jsp:include page="../registry_common/registry_common-i18n-ajaxprocessor.jsp"/>
-<script type="text/javascript" src="../registry_common/js/registry_validation.js"></script>
-<script type="text/javascript" src="../registry_common/js/registry_common.js"></script>
-<script type="text/javascript" src="../tenant-dashboard/js/dashboard.js"></script>
-<link href="../tenant-dashboard/css/dashboard.css" rel="stylesheet" type="text/css" media="all"/>
-<script type="text/javascript" src="../tenant-dashboard/js/configurations.js"></script>
-
-
-
-<%
-
-    CloudManagerServiceClient cloudManagerClient;
-    CloudService[] cloudServices = null;
-    String error = "Error in getting the available and active service details.";
-    try {
-        cloudManagerClient = new CloudManagerServiceClient(request, config, session);
-        cloudServices = cloudManagerClient.retrieveCloudServiceInfo();
-    } catch (Exception e) {
-        request.setAttribute(CarbonUIMessage.ID, new CarbonUIMessage(error, CarbonUIMessage.ERROR, e));
-%>
-<jsp:include page="../admin/error.jsp"/>
-<%
-        return;
-    }
-%>
-<fmt:bundle basename="org.apache.stratos.manager.dashboard.ui.i18n.Resources">
-    <carbon:jsi18n
-            resourceBundle="org.apache.stratos.manager.dashboard.ui.i18n.JSResources"
-            request="<%=request%>" namespace="org.wso2.stratos.manager.dashboard.ui"/>
-
-    <div id="middle">
-        <h2><fmt:message key="cloud.services"/></h2>
-        <%
-            try {
-                // if the account management permission there, we are showing the message to validate email address
-                if (CarbonUIUtil.isUserAuthorized(request, "/permission/admin/configure/account")) {
-                    try {
-                        AccountMgtClient client = new AccountMgtClient(config, session);
-                        boolean isEmailValidated = client.isEmailValidated();
-
-                        if (!isEmailValidated) {
-        %>
-
-        <div class="green-note">Your organization has not validated the contact email address
-            yet. Please validate it following
-            the instructions in the <a href="../account-mgt/account_mgt.jsp">Account
-                Management</a> page (Accessible from Configure-&gt;Account menu).
-        </div>
-        <%
-            }else{
-			%>
-			<div class="green-note"></div>
-			<%
-			}
-        } catch (Exception e) {
-            request.setAttribute(CarbonUIMessage.ID, new CarbonUIMessage(error, error, null));
-        %>
-        <jsp:include page="../admin/error.jsp?<%=error%>"/>
-        <%
-                    return;
-                }
-            }
-            String tenantDomain;
-            if (session.getAttribute(MultitenantConstants.TENANT_DOMAIN) != null) {
-                tenantDomain = (String) session.getAttribute(MultitenantConstants.TENANT_DOMAIN);
-            } else {
-                // user is not logged in or just logged out, but still they are inside url own to the domain
-                tenantDomain = (String) request.getAttribute(MultitenantConstants.TENANT_DOMAIN);
-            }
-            String linkSuffix = "";
-            if (tenantDomain != null) {
-                linkSuffix = "/" + MultitenantConstants.TENANT_AWARE_URL_PREFIX + "/" + tenantDomain;
-            }
-            %> <script type="text/javascript">
-            linkSuffix = '<%=linkSuffix%>';
-           </script> <%
-	  
-            for (CloudService cloudService : cloudServices) {
-                String name = cloudService.getName();
-                String projectPageUrl = cloudService.getProductPageURL();
-                String link = cloudService.getLink() + linkSuffix;
-                if (name.equals("WSO2 Stratos Application Server")) {
-        %>
-        <script type="text/javascript">
-            asUrl = '<%=link%>';
-        </script>
-        <%
-        } else if (name.equals("WSO2 Stratos Enterprise Service Bus")) {
-
-        %>
-        <script type="text/javascript">
-            esbUrl = '<%=link%>';
-        </script>
-        <%
-
-        } else if (name.equals("WSO2 Stratos Data Services Server")) {
-        %>
-        <script type="text/javascript">
-            dssUrl = '<%=link%>';
-
-        </script>
-        <%
-
-        } else if (name.equals("WSO2 Stratos Governance")) {
-
-        %>
-        <script type="text/javascript">
-            gregUrl = '<%=link%>';
-
-        </script>
-        <%
-        } else if (name.equals("WSO2 Stratos Identity")) {
-        %>
-        <script type="text/javascript">
-            isUrl = '<%=link%>';
-
-        </script>
-        <%
-        } else if (name.equals("WSO2 Stratos Business Process Server")) {
-        %>
-        <script type="text/javascript">
-            bpsUrl = '<%=link%>';
-
-        </script>
-        <%
-        } else if (name.equals("WSO2 Stratos Business Rules Server")) {
-        %>
-        <script type="text/javascript">
-            brsUrl = '<%=link%>';
-
-        </script>
-        <%
-        } else if (name.equals("WSO2 Stratos Mashup Server")) {
-        %>
-        <script type="text/javascript">
-            msUrl = '<%=link%>';
-
-        </script>
-        <%
-        } else if (name.equals("WSO2 Stratos Gadget Server")) {
-        %>
-        <script type="text/javascript">
-            gsUrl = '<%=link%>';
-
-        </script>
-        <%
-        } else if (name.equals("WSO2 Stratos Complex Event Processing Server")) {
-        %>
-        <script type="text/javascript">
-            cepUrl = '<%=link%>';
-
-        </script>
-        <%
-        } else if (name.equals("WSO2 Stratos Message Broker")) {
-        %>
-        <script type="text/javascript">
-            mbUrl = '<%=link%>';
-
-        </script>
-        <%
-        } else if (name.equals("WSO2 Stratos Business Activity Monitor")) {
-        %>
-        <script type="text/javascript">
-            bamUrl = '<%=link%>';
-
-        </script>
-        <%
-        } else if (name.equals("WSO2 Stratos Cloud Gateway")) {
-        %>
-        <script type="text/javascript">
-            csgUrl = '<%=link%>';
-
-        </script>
-        <%
-        } else {
-        %>
-        <script type="text/javascript">
-            managerUrl = '<%=link%>';
-        </script>
-        <%
-                }
-            }
-        } catch (Exception e) {
-            request.setAttribute(CarbonUIMessage.ID, new CarbonUIMessage(error, error, null));
-        %>
-        <jsp:include page="../admin/error.jsp?<%=error%>"/>
-        <%
-                return;
-            }
-
-        %>
-
-        <div id="workArea">
-
-
-            <div id="dashboard">
-
-            </div>
-
-            <script type="text/javascript">
-
-                jQuery(document).ready(function() {
-                    jQuery('#dashboard').load('../../../../features-dashboard/tenant-dashboard/index.jsp');
-                });
-
-                var menuPanel = document.getElementById('menu-panel');
-                var menuSlider0 = document.getElementById('menu-panel-button0');
-                jQuery(menuPanel).hide();
-                jQuery(menuSlider0).removeClass('showToHidden');
-                jQuery(menuSlider0).addClass('hiddenToShow');
-                document.cookie = "menuPanel=none;path=/;expires=" + cookie_date.toGMTString();
-            </script>
-        </div>
-    </div>
-</fmt:bundle>


[50/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/LICENSE.txt
----------------------------------------------------------------------
diff --git a/products/cloud-controller/LICENSE.txt b/products/cloud-controller/LICENSE.txt
new file mode 100644
index 0000000..58a72cd
--- /dev/null
+++ b/products/cloud-controller/LICENSE.txt
@@ -0,0 +1,512 @@
+
+This product is licensed by Apache under Apache License 2.0. The license
+can be downloaded from the following locations:
+	http://www.apache.org/licenses/LICENSE-2.0.html
+	http://www.apache.org/licenses/LICENSE-2.0.txt
+
+This product also contains software under different licenses. This table below
+all the contained libraries (jar files) and the license under which they are 
+provided to you.
+
+At the bottom of this file is a table that shows what each license indicated
+below is and where the actual text of the license can be found.
+
+Name                                                                            Type           License   
+---------------------------------------------------------------------------------------------------------
+abdera_1.0.0.wso2v3.jar                                                         bundle         apache2   
+addressing-1.6.1-wso2v9.mar                                                     bundle         apache2   
+ajaxtags_1.3.0.beta-rc7-wso2v1.jar                                              bundle         apache2   
+andes-client-0.13.wso2v6.jar                                                    bundle         apache2   
+andes_0.13.0.wso2v6.jar                                                         bundle         apache2   
+annogen_0.1.0.wso2v1.jar                                                        bundle         apache2   
+antlr-runtime_3.2.0.wso2v1.jar                                                  bundle         bsd       
+antlr_3.2.0.wso2v1.jar                                                          bundle         bsd       
+ant_1.7.0.wso2v1.jar                                                            bundle         apache2   
+apache-cassandra_1.1.3.wso2v2.jar                                               bundle         apache2   
+apache-zookeeper_3.3.6.wso2v1.jar                                               bundle         apache2   
+apache-zookeeper_3.4.4.wso2v1.jar                                               bundle         apache2   
+authenticator_0.7.0.wso2v1.jar                                                  bundle         apache2   
+avro_1.4.0.fixeswso2v1.jar                                                      bundle         apache2   
+aws-common_1.5.0.beta_5.jar                                                     bundle         apache2   
+aws-ec2_1.5.0.beta5wso2v1.jar                                                   bundle         apache2   
+axiom_1.2.11.wso2v4.jar                                                         bundle         apache2   
+axis2-json_1.6.1.wso2v9.jar                                                     bundle         apache2   
+axis2-transport-jms_1.1.0.wso2v7.jar                                            bundle         apache2   
+axis2_1.6.1.wso2v9.jar                                                          bundle         apache2   
+backport-util-concurrent_3.1.0.wso2v1.jar                                       bundle         public    
+bcprov-jdk15-132.jar                                                            jarinbundle    bouncy    
+bcprov-jdk16_1.45.0.wso2v1.jar                                                  bundle         apache2   
+bsf-all_3.0.0.wso2v2.jar                                                        bundle         apache2   
+caja-r3950.jar                                                                  jarinbundle    unknown   
+com.google.gson_2.1.0.jar                                                       bundle         apache2   
+com.google.gson_2.2.0.jar                                                       bundle         apache2   
+com.googlecode.concurrentlinkedhashmap.lru_1.3.0.jar                            bundle         apache2   
+com.ning.compress-lzf_0.8.4.jar                                                 bundle         apache2   
+com.sun.jersey.jersey-core_1.12.0.jar                                           bundle         apache2   
+commons-beanutils-1.7.0.jar                                                     jarinbundle    apache2   
+commons-beanutils-1.8.0.jar                                                     jarinbundle    apache2   
+commons-beanutils_1.8.0.wso2v1.jar                                              bundle         apache2   
+commons-betwixt-0.8.jar                                                         jarinbundle    unknown   
+commons-cli_1.2.0.wso2v1.jar                                                    bundle         apache2   
+commons-codec_1.4.0.wso2v1.jar                                                  bundle         apache2   
+commons-collections-3.2.0.wso2v1.jar                                            bundle         apache2   
+commons-collections_3.2.0.wso2v1.jar                                            bundle         apache2   
+commons-configuration_1.6.0.wso2v1.jar                                          bundle         apache2   
+commons-dbcp_1.4.0.wso2v1.jar                                                   bundle         apache2   
+commons-digester-1.8.1.jar                                                      jarinbundle    apache2   
+commons-digester-1.8.jar                                                        jarinbundle    apache2   
+commons-digester_1.8.1.wso2v1.jar                                               bundle         apache2   
+commons-discovery-0.2.jar                                                       jarinbundle    apache2   
+commons-fileupload_1.2.2.wso2v1.jar                                             bundle         apache2   
+commons-httpclient_3.1.0.wso2v2.jar                                             bundle         apache2   
+commons-io_2.0.0.wso2v1.jar                                                     bundle         apache2   
+commons-io_2.0.0.wso2v2.jar                                                     bundle         apache2   
+commons-lang-2.6.0.wso2v1.jar                                                   bundle         apache2   
+commons-lang_2.6.0.wso2v1.jar                                                   bundle         apache2   
+commons-pool_1.5.6.wso2v1.jar                                                   bundle         apache2   
+compass_2.0.1.wso2v2.jar                                                        bundle         apache2   
+derby-10.4.2.0.jar                                                              jarinbundle    apache2   
+dnsjava_2.1.1.wso2v1.jar                                                        bundle         apache2   
+ec2_1.5.0.beta5.jar                                                             bundle         apache2   
+ec2_1.5.0.beta5wso2v1.jar                                                       bundle         apache2   
+ehcache_1.5.0.wso2v3.jar                                                        bundle         apache2   
+el-impl_2.2.0.wso2v1.jar                                                        bundle         cddl1     
+ezmorph-1.0.4.jar                                                               jarinbundle    unknown   
+geronimo-jms_1.1_spec-1.1.0.wso2v1.jar                                          bundle         apache2   
+geronimo-saaj_1.3_spec_1.0.0.wso2v3.jar                                         bundle         apache2   
+geronimo-stax-api_1.0_spec-1.0.1.wso2v2.jar                                     bundle         apache2   
+google-collect_1.0.0.wso2v2.jar                                                 bundle         apache2   
+guava_12.0.0.wso2v1.jar                                                         bundle         apache2   
+guice-assistedinject_3.0.0.wso2v1.jar                                           bundle         apache2   
+guice_3.0.0.wso2v1.jar                                                          bundle         apache2   
+h2-1.2.140-wso2v3.jar                                                           bundle         epl1      
+h2-database-engine_1.2.140.wso2v3.jar                                           bundle         epl1      
+hadoop-core_0.20.203.wso2v2.jar                                                 bundle         apache2   
+hector-core_1.1.0.wso2v1.jar                                                    bundle         mit       
+high-scale-lib_1.1.2.wso2v1.jar                                                 bundle         public    
+htmlunit-2.5.jar                                                                jarinbundle    unknown   
+httpclient-4.0.1.jar                                                            jarinbundle    unknown   
+httpclient_4.1.1.wso2v1.jar                                                     bundle         apache2   
+httpcore-nio_4.2.3.wso2v1.jar                                                   bundle         apache2   
+httpcore_4.1.0.wso2v1.jar                                                       bundle         apache2   
+httpcore_4.2.3.wso2v1.jar                                                       bundle         apache2   
+icu4j-3.8.jar                                                                   jarinbundle    ICU       
+infinispan-core_5.1.2.wso2v1.jar                                                bundle         lgpl2     
+jackson-core-asl_1.9.2.jar                                                      bundle         apache2   
+jackson-mapper-asl_1.9.2.jar                                                    bundle         apache2   
+jamm_0.2.5.wso2v2.jar                                                           bundle         apache2   
+java-xmlbuilder_0.4.0.wso2v1.jar                                                bundle         apache2   
+javasysmon_0.3.3.wso2v1.jar                                                     bundle         jsmon     
+javax.el_2.2.0.v201108011116.jar                                                bundle         cddl1     
+javax.servlet.jsp_2.2.0.v201112011158.jar                                       bundle         cddl1     
+javax.servlet_3.0.0.v201112011016.jar                                           bundle         cddl1     
+jaxb-api-2.2.6.jar                                                              jar            cddl+gpl  
+jaxb_2.2.5.wso2v1.jar                                                           bundle         cddl1     
+jboss-logging_3.1.0.wso2v1.jar                                                  bundle         lgpl2     
+jboss-transaction-api_1.1_spec-1.0.0.Final.jar                                  jar            lgpl2     
+jclouds-bouncycastle_1.5.0.beta_5.jar                                           bundle         apache2   
+jclouds-compute_1.5.0.beta_5.jar                                                bundle         apache2   
+jclouds-core_1.5.0.beta_5.jar                                                   bundle         apache2   
+jclouds-enterprise_1.5.0.beta_5.jar                                             bundle         apache2   
+jclouds-joda_1.5.0.beta_5.jar                                                   bundle         apache2   
+jclouds-log4j_1.5.0.beta_5.jar                                                  bundle         apache2   
+jclouds-netty_1.5.0.beta_5.jar                                                  bundle         apache2   
+jclouds-scriptbuilder_1.5.0.beta_5.jar                                          bundle         apache2   
+jclouds-slf4j_1.5.0.beta_5.jar                                                  bundle         apache2   
+jclouds-sshj_1.5.0.beta_5.jar                                                   bundle         apache2   
+jdbc-pool_7.0.34.wso2v1.jar                                                     bundle         apache2   
+jdom_1.0.0.wso2v1.jar                                                           bundle         jdom      
+jericho-html-2.4.jar                                                            jarinbundle    epl1      
+jettison_1.1.0.wso2v1.jar                                                       bundle         apache2   
+jetty-6.1.15.jar                                                                jarinbundle    unknown   
+jgroups_3.0.6.wso2v1.jar                                                        bundle         lgpl2     
+js-1.6R7.jar                                                                    jarinbundle    mpl11     
+jsecurity-0.9.0.jar                                                             jarinbundle    unknown   
+json-simple-1.1.jar                                                             jarinbundle    unknown   
+json-simple_1.1.0.wso2v1.jar                                                    bundle         apache2   
+json_1.0.0.wso2v1.jar                                                           bundle         json      
+json_2.0.0.wso2v1.jar                                                           bundle         json      
+jsr107cache_1.1.0.wso2v3.jar                                                    bundle         apache2   
+jstl-1.2.jar                                                                    jarinbundle    unknown   
+jstl_1.2.1.wso2v1.jar                                                           bundle         cddl1     
+juel-api-2.1.2.jar                                                              jarinbundle    unknown   
+juel-impl-2.1.2.jar                                                             jarinbundle    unknown   
+jug_2.0.0.wso2v1.jar                                                            bundle         apache2   
+jzlib_1.0.7.wso2v1.jar                                                          bundle         apache2   
+kaptcha_2.3.0.wso2v1.jar                                                        bundle         apache2   
+libthrift_0.7.0.wso2v2.jar                                                      bundle         apache2   
+log4j-1.2.17.jar                                                                bundle         apache2   
+marshalling_1.3.6.wso2v1.jar                                                    bundle         lgpl2     
+metrics-core_2.0.3.wso2v1.jar                                                   bundle         apache2   
+mina-core-1.1.7.jar                                                             jarinbundle    apache2   
+neethi_2.0.4.wso2v4.jar                                                         bundle         apache2   
+nekohtml-1.9.13.jar                                                             jarinbundle    unknown   
+net.schmizz.sshj_0.8.0.jar                                                      bundle         apache2   
+oauth-20090531.jar                                                              jarinbundle    unknown   
+oauth-provider-20090531.jar                                                     jarinbundle    unknown   
+opencsv-1.8.jar                                                                 jarinbundle    apache2   
+opencsv_1.8.0.wso2v1.jar                                                        bundle         apache2   
+opensaml-1.1.406.jar                                                            jarinbundle    apache2   
+opensaml-2.4.1.jar                                                              jarinbundle    apache2   
+opensaml2_2.4.1.wso2v1.jar                                                      bundle         apache2   
+openstack-common_1.5.0.beta_5.jar                                               bundle         apache2   
+openstack-keystone_1.5.0.beta5wso2v1.jar                                        bundle         apache2   
+openstack-nova_1.5.0.beta5wso2v1.jar                                            bundle         apache2   
+openws-1.4.1.jar                                                                jarinbundle    apache2   
+org.apache.felix.gogo.command_0.8.0.v201108120515.jar                           bundle         apache2   
+org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar                           bundle         apache2   
+org.apache.felix.gogo.shell_0.8.0.v201110170705.jar                             bundle         apache2   
+org.apache.jasper.glassfish_2.2.2.v201205150955.jar                             bundle         apache2   
+org.eclipse.core.contenttype_3.4.200.v20120523-2004.jar                         bundle         epl1      
+org.eclipse.core.expressions_3.4.401.v20120627-124442.jar                       bundle         epl1      
+org.eclipse.core.jobs_3.5.300.v20120622-204750.jar                              bundle         epl1      
+org.eclipse.core.runtime_3.8.0.v20120521-2346.jar                               bundle         epl1      
+org.eclipse.ecf.filetransfer_5.0.0.v20110531-2218.jar                           bundle         epl1      
+org.eclipse.ecf.identity_3.1.100.v20110531-2218.jar                             bundle         epl1      
+org.eclipse.ecf.provider.filetransfer.httpclient_4.0.200.v20120319-0616.jar     bundle         epl1      
+org.eclipse.ecf.provider.filetransfer_3.2.0.v20110531-2218.jar                  bundle         epl1      
+org.eclipse.ecf_3.1.300.v20110531-2218.jar                                      bundle         epl1      
+org.eclipse.equinox.app_1.3.100.v20120522-1841.jar                              bundle         epl1      
+org.eclipse.equinox.common_3.6.100.v20120522-1841.jar                           bundle         epl1      
+org.eclipse.equinox.concurrent_1.0.300.v20120522-2049.jar                       bundle         epl1      
+org.eclipse.equinox.console_1.0.0.v20120522-1841.jar                            bundle         epl1      
+org.eclipse.equinox.ds_1.4.0.v20120522-1841.jar                                 bundle         epl1      
+org.eclipse.equinox.frameworkadmin.equinox_1.0.400.v20120428-0117.jar           bundle         epl1      
+org.eclipse.equinox.frameworkadmin_2.0.100.v20120606-175127.jar                 bundle         epl1      
+org.eclipse.equinox.http.helper_1.1.0.wso2v1.jar                                bundle         epl1      
+org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar                     bundle         epl1      
+org.eclipse.equinox.jsp.jasper_1.0.400.v20120522-2049.jar                       bundle         epl1      
+org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar                           bundle         epl1      
+org.eclipse.equinox.p2.artifact.repository_1.1.100.v20110519.jar                bundle         epl1      
+org.eclipse.equinox.p2.console_1.0.300.v20110502-1955.jar                       bundle         epl1      
+org.eclipse.equinox.p2.core_2.1.0.v20110502-1955.jar                            bundle         epl1      
+org.eclipse.equinox.p2.director.app_1.0.300.v20110505.jar                       bundle         epl1      
+org.eclipse.equinox.p2.directorywatcher_1.0.300.v20110502-1955.jar              bundle         epl1      
+org.eclipse.equinox.p2.director_2.1.0.v20110504-1715.jar                        bundle         epl1      
+org.eclipse.equinox.p2.engine_2.1.0.v20110511.jar                               bundle         epl1      
+org.eclipse.equinox.p2.extensionlocation_1.2.100.v20110510.jar                  bundle         epl1      
+org.eclipse.equinox.p2.garbagecollector_1.0.200.v20110510.jar                   bundle         epl1      
+org.eclipse.equinox.p2.jarprocessor_1.0.200.v20110502-1955.jar                  bundle         epl1      
+org.eclipse.equinox.p2.metadata.repository_1.2.0.v20110511-1359.jar             bundle         epl1      
+org.eclipse.equinox.p2.metadata_2.1.0.v20110510.jar                             bundle         epl1      
+org.eclipse.equinox.p2.publisher_1.2.0.v20110511.jar                            bundle         epl1      
+org.eclipse.equinox.p2.repository.tools_2.0.100.v20110512-1320.jar              bundle         epl1      
+org.eclipse.equinox.p2.repository_2.1.0.v20110601.jar                           bundle         epl1      
+org.eclipse.equinox.p2.touchpoint.eclipse_2.1.0.v20110511-wso2v1.jar            bundle         epl1      
+org.eclipse.equinox.p2.touchpoint.natives_1.0.300.v20110502-1955.jar            bundle         epl1      
+org.eclipse.equinox.p2.transport.ecf_1.0.100.v20110902-0807.jar                 bundle         epl1      
+org.eclipse.equinox.p2.updatechecker_1.1.200.v20110502-1955.jar                 bundle         epl1      
+org.eclipse.equinox.p2.updatesite_1.0.300.v20110510.jar                         bundle         epl1      
+org.eclipse.equinox.preferences_3.5.0.v20120522-1841.jar                        bundle         epl1      
+org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar                         bundle         epl1      
+org.eclipse.equinox.security_1.1.100.v20120522-1841.jar                         bundle         epl1      
+org.eclipse.equinox.simpleconfigurator.manipulator_2.0.0.v20110808-1657.jar     bundle         epl1      
+org.eclipse.equinox.simpleconfigurator_1.0.301.v20120828-033635.jar             bundle         epl1      
+org.eclipse.equinox.util_1.0.400.v20120522-2049.jar                             bundle         epl1      
+org.eclipse.osgi.services_3.3.100.v20120522-1822.jar                            bundle         epl1      
+org.eclipse.osgi_3.8.1.v20120830-144521.jar                                     bundle         epl1      
+org.jboss.netty_3.3.0.Final.jar                                                 bundle         apache2   
+org.sat4j.core_2.3.0.v20110329.jar                                              bundle         epl1      
+org.sat4j.pb_2.3.0.v20110329.jar                                                bundle         epl1      
+org.wso2.carbon.activation_2.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.addressing_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.andes.admin_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.andes.authentication_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.andes.authorization_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.andes.cluster.mgt.ui_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.andes.cluster.mgt_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.andes.commons_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.andes.core_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.andes.stub_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.andes.ui_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.andes_4.1.0.jar                                                 bundle         apache2   
+org.wso2.carbon.apache.jasper.fragment_4.1.0.jar                                bundle         apache2   
+org.wso2.carbon.application.deployer_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.application.upload_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.authenticator.proxy_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.authenticator.stub_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.base_4.1.0.jar                                                  bundle         apache2   
+org.wso2.carbon.bootstrap-4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.bridge-4.1.0.jar                                                bundle         apache2   
+org.wso2.carbon.caching.core_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.caching_4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.captcha.mgt_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.cartridge.messages_2.1.1.jar                                    bundle         apache2   
+org.wso2.carbon.cassandra.server_4.1.1.jar                                      bundle         apache2   
+org.wso2.carbon.cassandra.sharedkey_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.cluster.mgt.core_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.coordination.common_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.coordination.core_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.coordination.server_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.core.bootup.validator_4.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.core.commons.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.core.common_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.core.services_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.core_4.1.0.jar                                                  bundle         apache2   
+org.wso2.carbon.databridge.agent.thrift_4.1.0.jar                               bundle         apache2   
+org.wso2.carbon.databridge.commons.thrift_4.1.0.jar                             bundle         apache2   
+org.wso2.carbon.databridge.commons_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.datasource_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.ec2-client_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.endpoint_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.event.admin_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.event.client-4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.event.client.stub-4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.event.client.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.event.client_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.event.common_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.event.core_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.event.ws_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.feature.mgt.core_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.feature.mgt.services_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.feature.mgt.stub_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.feature.mgt.ui_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.framework.exporter_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.google.analytics.ui_2.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.http.bridge-4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.i18n_4.1.0.jar                                                  bundle         apache2   
+org.wso2.carbon.identity.authentication_4.1.0.jar                               bundle         apache2   
+org.wso2.carbon.identity.authenticator.saml2.sso.common_4.1.0.jar               bundle         apache2   
+org.wso2.carbon.identity.authenticator.saml2.sso.stub_4.1.0.jar                 bundle         apache2   
+org.wso2.carbon.identity.authenticator.saml2.sso.ui_4.1.0.jar                   bundle         apache2   
+org.wso2.carbon.identity.authenticator.saml2.sso_4.1.0.jar                      bundle         apache2   
+org.wso2.carbon.identity.sso.saml.stub_4.1.0.jar                                bundle         apache2   
+org.wso2.carbon.jasper.patch_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.java2wsdl.ui_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.java2wsdl_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.keystore.mgt_2.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.lb.common_4.1.3.jar                                             bundle         apache2   
+org.wso2.carbon.load.balance.agent_2.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.logging-4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.logging.admin.stub_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.logging.admin.ui_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.logging.service_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.logging.view.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.logging.view.ui_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.logging_4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.mediation.dependency.mgt_4.1.0.jar                              bundle         apache2   
+org.wso2.carbon.mediation.initializer.ui_4.1.0.jar                              bundle         apache2   
+org.wso2.carbon.mediation.initializer_4.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.mediation.registry_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.mediator.clazz.services_4.1.0.jar                               bundle         apache2   
+org.wso2.carbon.mediator.command.services_4.1.0.jar                             bundle         apache2   
+org.wso2.carbon.mediator.event_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.mediator.fastXSLT_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.mediator.router.impl_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.mex_4.1.0.jar                                                   bundle         apache2   
+org.wso2.carbon.module.mgt_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.ndatasource.common_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.ndatasource.core_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.ndatasource.rdbms_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.ntask.common_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.ntask.core_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.ntask.solutions_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.operation.mgt_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.osgi.security_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.qpid.stub_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.queuing_4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.redirector.servlet.stub_4.1.0.jar                               bundle         apache2   
+org.wso2.carbon.redirector.servlet.ui_2.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.redirector.servlet_2.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.registry.admin.api_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.registry.api_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.registry.common.ui_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.registry.common_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.registry.core_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.registry.properties.stub_4.1.0.jar                              bundle         apache2   
+org.wso2.carbon.registry.properties.ui_4.1.0.jar                                bundle         apache2   
+org.wso2.carbon.registry.properties_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.registry.resource.stub_4.1.0.jar                                bundle         apache2   
+org.wso2.carbon.registry.resource.ui_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.registry.resource_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.registry.search.stub_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.registry.search.ui_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.registry.search_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.registry.server_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.registry.servlet_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.relay.mediators.builder_4.1.0.jar                               bundle         apache2   
+org.wso2.carbon.relay.module_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.relay_4.1.0.jar                                                 bundle         apache2   
+org.wso2.carbon.remote-tasks.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.rm_4.1.0.jar                                                    bundle         apache2   
+org.wso2.carbon.roles.mgt.stub_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.roles.mgt.ui_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.roles.mgt_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.sample.installer_2.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.securevault_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.security.mgt_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.sequences.common_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.sequences_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.server-4.1.0.jar                                                bundle         apache2   
+org.wso2.carbon.server.admin.common_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.server.admin.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.server.admin.ui_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.server.admin_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.service.mgt_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.servletbridge-4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.sso.redirector.ui_2.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.startup_4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.statistics.stub_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.statistics.transport.stub_4.1.0.jar                             bundle         apache2   
+org.wso2.carbon.statistics.transport.ui_4.1.0.jar                               bundle         apache2   
+org.wso2.carbon.statistics.transport_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.statistics.ui_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.statistics_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.stratos.cloud.controller_2.1.3.jar                              bundle         apache2   
+org.wso2.carbon.stratos.common.stub_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.stratos.common_2.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.stratos.deployment_2.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.stratos.landing.page.deployer_2.1.0.jar                         bundle         apache2   
+org.wso2.carbon.task.services_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.task_4.1.0.jar                                                  bundle         apache2   
+org.wso2.carbon.tenant.dispatcher_2.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.tenant.mgt.core_2.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.tenant.mgt.stub_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.tenant.mgt.ui_2.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.tenant.mgt_2.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.theme.mgt_2.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.throttle_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.throttling.agent.stub_4.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.throttling.agent_2.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.tomcat.ext_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.tomcat.fragment.dummy_4.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.tomcat.patch_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.tomcat_4.1.0.jar                                                bundle         apache2   
+org.wso2.carbon.tools.wsdlvalidator.ui_4.1.0.jar                                bundle         apache2   
+org.wso2.carbon.tools.wsdlvalidator_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.tracer.stub_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.tracer.ui_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.tracer_4.1.0.jar                                                bundle         apache2   
+org.wso2.carbon.transport.https_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.transport.http_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.transport.local_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.transport.mgt_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.transport.nhttp_4.1.1.jar                                       bundle         apache2   
+org.wso2.carbon.transports.passthru_1.0.2.jar                                   bundle         apache2   
+org.wso2.carbon.tryit.ui_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.tryit_4.1.0.jar                                                 bundle         apache2   
+org.wso2.carbon.ui.menu.general_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.ui.menu.registry_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.ui.menu.tools_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.ui_4.1.0.jar                                                    bundle         apache2   
+org.wso2.carbon.um.ws.service_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.usage.agent_2.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.user.api_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.user.core_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.user.mgt.common_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.user.mgt.stub_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.user.mgt.ui_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.user.mgt_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.utils_4.1.0.jar                                                 bundle         apache2   
+org.wso2.carbon.viewflows.stub_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.viewflows.ui_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.viewflows_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.wsdl2code.stub_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.wsdl2code.ui_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.wsdl2code_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.wsdl2form-4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.xfer_4.1.0.jar                                                  bundle         apache2   
+org.wso2.ciphertool-1.0.0-wso2v2.jar                                            bundle         apache2   
+org.wso2.securevault_1.0.0.wso2v2.jar                                           bundle         apache2   
+pdepublishing-ant.jar                                                           jar            epl1      
+pdepublishing.jar                                                               jar            epl1      
+perf4j_0.9.12.wso2v1.jar                                                        bundle         apache2   
+poi-ooxml_3.5.0.wso2v1.jar                                                      bundle         apache2   
+poi-scratchpad_3.5.0.wso2v1.jar                                                 bundle         apache2   
+poi_3.5.0.wso2v1.jar                                                            bundle         apache2   
+quartz_2.1.1.wso2v1.jar                                                         bundle         apache2   
+rampart-1.6.1-wso2v4.mar                                                        bundle         apache2   
+rampart-core_1.6.1.wso2v8.jar                                                   bundle         apache2   
+rampart-policy_1.6.1.wso2v8.jar                                                 bundle         apache2   
+rampart-trust_1.6.1.wso2v8.jar                                                  bundle         apache2   
+rocoto_6.1.0.wso2v1.jar                                                         bundle         apache2   
+rome-1.0.jar                                                                    jarinbundle    unknown   
+sanselan-0.97-incubator.jar                                                     jarinbundle    unknown   
+saxon_8.9.0.wso2v1.jar                                                          bundle         mpl10     
+shindig-common-r910768-wso2v5.jar                                               jarinbundle    apache2   
+shindig-features-r910768-wso2v5.jar                                             jarinbundle    apache2   
+shindig-gadgets-r910768-wso2v5.jar                                              jarinbundle    apache2   
+shindig-social-api-r910768-wso2v5.jar                                           jarinbundle    apache2   
+shindig_1.1.0.wso2v6.jar                                                        bundle         apache2   
+slf4j-1.5.10.wso2v1.jar                                                         bundle         apache2   
+slf4j.api_1.6.4.jar                                                             bundle         mit       
+slf4j.log4j12_1.6.4.jar                                                         bundle         mit       
+snakeyaml_1.6.0.wso2v1.jar                                                      bundle         apache2   
+snappy-java_1.0.4.1_wso2v1.jar                                                  bundle         apache2   
+snaptree_0.1.0.wso2v1.jar                                                       bundle         snaptree  
+spring.framework_3.1.0.wso2v1.jar                                               bundle         apache2   
+synapse-commons_2.1.1.wso2v4.jar                                                bundle         apache2   
+synapse-core_2.1.1.wso2v4.jar                                                   bundle         apache2   
+synapse-extensions_2.1.1.wso2v4.jar                                             bundle         apache2   
+synapse-nhttp-transport_2.1.1.wso2v4.jar                                        bundle         apache2   
+synapse-samples_2.1.1.wso2v4.jar                                                bundle         apache2   
+synapse-tasks_2.1.1.wso2v4.jar                                                  bundle         apache2   
+tcpmon-1.0.jar                                                                  jar            apache2   
+tiles-jsp_2.0.5.wso2v1.jar                                                      bundle         apache2   
+tomcat-ha_7.0.34.wso2v1.jar                                                     bundle         apache2   
+tomcat-juli-7.0.34.jar                                                          jar            apache2   
+tomcat_7.0.34.wso2v1.jar                                                        bundle         apache2   
+tribes_7.0.28.wso2v1.jar                                                        bundle         apache2   
+uddi4j-1.0.1.jar                                                                jarinbundle    ibmpl     
+vcloud_1.6.0.wso2v1.jar                                                         bundle         apache2   
+woden_1.0.0.M8-wso2v1.jar                                                       bundle         apache2   
+wsdl-validator_1.2.0.wso2v1.jar                                                 bundle         apache2   
+wsdl4j_1.6.2.wso2v4.jar                                                         bundle         cpl1      
+wss4j_1.5.11.wso2v5.jar                                                         bundle         apache2   
+wstx-1.0.7.jar                                                                  jarinbundle    unknown   
+xalan-2.7.1.wso2v1.jar                                                          bundle         apache2   
+xercesImpl-2.8.1.wso2v2.jar                                                     bundle         apache2   
+xercesImpl-2.9.1.jar                                                            jarinbundle    unknown   
+xkms_2.4.0.wso2v1.jar                                                           bundle         apache2   
+xml-apis-1.3.04.jar                                                             jarinbundle    unknown   
+xml-apis-1.3.04.wso2v2.jar                                                      bundle         apache2   
+xmlbeans-2.3.0.jar                                                              jarinbundle    apache2   
+xmlbeans_2.3.0.wso2v1.jar                                                       bundle         apache2   
+xmlParserAPIs-2.6.2.jar                                                         jarinbundle    unknown   
+XmlSchema_1.4.7.wso2v2.jar                                                      bundle         apache2   
+xmltooling-1.3.1.jar                                                            jarinbundle    apache2   
+xpp3_min-1.1.4c.jar                                                             jarinbundle    unknown   
+xstream-1.3.1.jar                                                               jarinbundle    unknown   
+
+
+
+The license types used by the above libraries and their information is given below:
+
+epl1           Eclipse Public License
+               http://www.eclipse.org/legal/epl-v10.html
+ibmpl          IBM Public License 1.0
+               http://www.ibm.com/developerworks/library/os-ipl.html
+lgpl2          Lesser GPL v2.1
+               http://www.opensource.org/licenses/lgpl-2.1.php
+mpl11          Mozilla Public License 1.1
+               http://www.mozilla.org/MPL/MPL-1.1.html
+mpl10          Mozilla Public License 1.0
+               http://www.mozilla.org/MPL/
+mit            MIT License
+               http://www.opensource.org/licenses/mit-license.php
+unknown        
+               unknown
+cddl1          Common Development and Distribution License
+               http://www.opensource.org/licenses/cddl1.php
+cddl+gpl       CDDL + GPLv2
+               https://glassfish.dev.java.net/public/CDDL+GPL.html
+cpl1           Common Public License 1.0
+               http://www.eclipse.org/legal/cpl-v10.html
+json           JSON.org License
+               null
+jsmon          ThoughtWorks Javasysmon License
+               https://github.com/jezhumble/javasysmon/blob/master/LICENSE
+jdom           JDOM License - Apache Styled
+               null
+apache2        Apache License Version 2.0
+               http://www.apache.org/licenses/LICENSE-2.0.html
+icu            ICU License
+               http://source.icu-project.org/repos/icu/icu/trunk/license.html
+bsd            Berkeley License
+               http://www.opensource.org/licenses/bsd-license.php
+bouncy         Bouncy Castle License
+               http://www.bouncycastle.org/licence.html
+public         Public Domain
+               http://creativecommons.org/licenses/publicdomain/
+snaptree       Snaptree License
+               https://raw.github.com/nbronson/snaptree/b198f84b0c927f6b5cdef080552fc26aa004d3ee/doc/LICENSE

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/README.txt
----------------------------------------------------------------------
diff --git a/products/cloud-controller/README.txt b/products/cloud-controller/README.txt
new file mode 100644
index 0000000..ae70465
--- /dev/null
+++ b/products/cloud-controller/README.txt
@@ -0,0 +1,220 @@
+================================================================================
+                        Apache Stratos Cloud Controller 3.0.0-SNAPSHOT
+================================================================================
+
+Welcome to the Apache Stratos CC 3.0.0-SNAPSHOT release.
+
+Apache Stratos Cloud Controller plays a vital role in Stratos 2.0 and is open source and freely
+distributed. Apache Stratos CC is available under the Apache Software License v2.0.
+
+This is based on the revolutionary WSO2 Carbon [Middleware a' la carte]
+framework. All the major features have been developed as pluggable Carbon
+components.
+
+Apache Stratos CC leverages the jclouds (http://jclouds.incubator.apache.org/) APIs and provides
+a generic layer to communicate with different IaaSes. 
+
+Key Features of Apache Stratos CC
+========================
+
+ * It acts as a bridge between application level and Infrastructure as a Service (IaaS) level via jclouds API.
+
+ * It enables your system to scale across multiple IaaS providers.
+
+ * It is the central location where the service topology resides.
+
+ * It is responsible for periodically sharing up-to-date service topology among other Stratos 2.0 core services.
+
+ * It supports hot updates and deployment of its configuration files.
+
+ * It has inbuilt support for ,
+
+        AWS EC2 IaaS provider
+
+        Openstack Nova IaaS provider
+
+        VMWare vCloud provider.
+
+ * It enables you to cloud burst your system across multiple IaaS providers.
+
+ * It allows you to easily plug an implementation of any IaaS provider support by jclouds.
+
+ * It enables you to spawn new service instances, while associating a public IP automatically, to reduce the instance boot-up time.
+
+ * It enables you to terminate an already started instance of a particular service cluster.
+
+ * It can be configured to cover many scenarios, using it's well-thought-out configuration files.
+
+
+
+System Requirements
+=======================
+1. Minimum memory - 1.5GB
+2. Processor      - Pentium 800MHz or equivalent at minimum
+3. Java SE Development Kit 1.6.24 or higher
+4. The Management Console requires you to enable Javascript of the Web browser,
+   with MS IE 7. In addition to JavaScript, ActiveX should also be enabled
+   with IE. This can be achieved by setting your security level to
+   medium or lower.
+5. To compile and run the sample clients, an Ant version is required. Ant 1.7.0
+   version is recommended
+6. To build Apache Stratos CC from the Source distribution, it is necessary that you have
+   JDK 1.6.24 version and Maven 3.0.4 or later
+
+
+For more details see
+    http://docs.wso2.org/wiki/display/Carbon401/Installation+Prerequisites
+
+Installation & Running
+==================================
+
+1. Extract the apache-stratos-cc-3.0.0-SNAPSHOT.zip and go to the extracted directory
+2. Run the stratos.sh or stratos.bat as appropriate
+3. Point your favourite browser to
+
+    https://localhost:9443/carbon
+
+4. Use the following username and password to login
+
+    username : admin
+    password : admin
+
+   
+
+Apache Stratos CC 3.0.0-SNAPSHOT distribution directory structure
+=============================================
+
+	CARBON_HOME
+		|-- bin <folder>
+		|-- dbscripts <folder>
+		|-- client-lib <folder>
+		|-- lib <folder>
+		|-- repository <folder>
+		|   |-- components <folder>
+		|   |-- conf <folder>
+		|       |-- Advanced <folder>
+		|   |-- database <folder>
+		|   |-- deployment <folder>
+			|-- server <folder>
+			    |-- cartridges <folder>
+			    |-- services <folder>		
+		|   |-- logs <folder>
+		|   |-- resources <folder>
+		|       |-- security <folder>
+		|-- tmp <folder>
+		|-- LICENSE.txt <file>
+		|-- INSTALL.txt <file>
+		|-- README.txt <file>
+		`-- release-notes.html <file>
+
+    - bin
+	  Contains various scripts .sh & .bat scripts
+
+    - dbscripts
+      Contains the SQL scripts for setting up the database on a variety of
+      Database Management Systems, including H2, Derby, MSSQL, MySQL abd
+      Oracle.
+
+    - client-lib
+      Contains required libraries for JMS,Event Clients
+
+    - lib
+      Contains the basic set of libraries required to start-up  Apache Stratos CC
+      in standalone mode
+
+    - repository
+      The repository where cartridges and services are deployed in Apache Stratos CC.
+
+        - components
+          Contains OSGi bundles and configurations
+      
+        - conf
+          Contains configuration files
+
+          -Advanced
+              Contains advanced configurations.
+         
+        - database
+          Contains the database
+
+        - deployment
+          Contains Axis2 deployment details
+          
+        - logs
+          Contains all log files created during execution
+
+        - tenants
+          Contains tenant details
+
+    - resources
+      Contains additional resources that may be required
+
+        - security
+          Contains security resources
+          
+    - tmp
+      Used for storing temporary files, and is pointed to by the
+      java.io.tmpdir System property
+
+    - LICENSE.txt
+      Apache License 2.0 under which Apache Stratos CC is distributed.
+
+    - README.txt
+      This document.
+
+    - INSTALL.txt
+      This document will contain information on installing Apache Stratos CC
+
+
+Support
+==================================
+
+Any problem with this release can be reported to Apache Stratos mailing list
+or in the JIRA issue tracker. If you are sending an email to the mailing
+list make sure to add the [Apache Stratos] prefix to the subject.
+
+Mailing list subscription:
+    dev-subscribe@stratos.incubator.apache.org
+
+
+Issue Tracker
+==================================
+
+Jira:
+    https://issues.apache.org/jira/browse/stratos
+
+
+Crypto Notice
+==================================
+
+   This distribution includes cryptographic software.  The country in
+   which you currently reside may have restrictions on the import,
+   possession, use, and/or re-export to another country, of
+   encryption software.  BEFORE using any encryption software, please
+   check your country's laws, regulations and policies concerning the
+   import, possession, or use, and re-export of encryption software, to
+   see if this is permitted.  See <http://www.wassenaar.org/> for more
+   information.
+
+   The U.S. Government Department of Commerce, Bureau of Industry and
+   Security (BIS), has classified this software as Export Commodity
+   Control Number (ECCN) 5D002.C.1, which includes information security
+   software using or performing cryptographic functions with asymmetric
+   algorithms.  The form and manner of this Apache Software Foundation
+   distribution makes it eligible for export under the License Exception
+   ENC Technology Software Unrestricted (TSU) exception (see the BIS
+   Export Administration Regulations, Section 740.13) for both object
+   code and source code.
+
+   The following provides more details on the included cryptographic
+   software:
+
+   Apache Rampart   : http://ws.apache.org/rampart/
+   Apache WSS4J     : http://ws.apache.org/wss4j/
+   Apache Santuario : http://santuario.apache.org/
+   Bouncycastle     : http://www.bouncycastle.org/
+
+
+Thank you for using Apache Stratos!
+The Stratos Team.
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/css/mb-docs.css
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/css/mb-docs.css b/products/cloud-controller/docs/resources/css/mb-docs.css
new file mode 100644
index 0000000..ef45164
--- /dev/null
+++ b/products/cloud-controller/docs/resources/css/mb-docs.css
@@ -0,0 +1,173 @@
+body {
+    color: #000;
+    font-size: 11px;
+    font-family: Verdana, Arial, Helvetica, sans-serif;
+    background-image: url( ../images/mb-docs-bg.gif );
+    background-repeat: repeat-x;
+    background-attachment: scroll;
+    background-position: left top;
+    text-decoration: none;
+    text-align: left;
+    padding: 0px;
+    list-style-type: square;
+    list-style-position: outside;
+}
+
+div#banner {
+	background-image: url(../images/mb-docs-header.gif);
+	background-repeat: no-repeat;
+	background-position: left top;
+	height: 38px;
+	padding-top: 30px;
+	padding-left: 265px;
+	border-bottom: 0px;
+}
+
+div#banner	span#bannerLeft {
+	font-size: 180%;
+	color: #A80063;
+}
+
+div#breadcrumbs {
+	background-color: transparent;
+	border-top: solid 0px;
+	border-bottom: solid 0px;
+	height: 23px;
+	padding-top: 5px;
+	padding-left: 20px;
+	padding-right: 20px;
+}
+
+div#leftColumn {
+	margin-left: 0px;
+	margin-top: 0px;
+	border-top: 0px;
+	background-color: #F7F7F7;
+	border-left: solid 0px;
+	border-right: solid 1px #A80063;
+	border-bottom: solid 1px #A80063;
+}
+
+div#leftColumn div#navcolumn {
+	padding-left: 20px;
+	padding-right: 20px;
+	padding-top: 15px;
+	background-color: #F7F7F7;
+}
+
+
+div#contentBox {
+	margin-top: 10px;
+	margin-bottom: 15px;
+	font-size: 12px;
+}
+
+div#navcolumn h5 {
+	margin-bottom: 2px;
+	padding-bottom: 2px;
+	border-bottom: solid 1px #A80063;
+	font-size: 110%;
+}
+
+#navcolumn li {
+	padding-top: 2px;
+	padding-bottom: 2px;
+}
+
+p {
+}
+
+td {
+    background-color: #f8f8f8;
+    padding: 3px 5px;
+    outline-color: gray;
+    outline-width: 0;
+}
+
+a:link {
+    color: #36c;
+}
+
+a:visited {
+}
+
+a:hover {
+    color: #7f7f7f;
+}
+
+a:active {
+}
+
+body, td, select, input, li  {
+	line-height: 18px;
+}
+
+h1 {
+    color: #333;
+    font-size: 18px;
+    font-weight: bold;
+    font-style: normal;
+    line-height: normal;
+    background-image: none;
+    background-repeat: no-repeat;
+    background-attachment: scroll;
+    background-position: left top;
+    text-decoration: none;
+    height: 30px;
+    padding-bottom: 2px;
+    border-bottom: 1px solid #A80063;
+}
+
+h2 {
+    color: black;
+    font-size: 15px;
+    font-weight: bold;
+    line-height: 24px;
+    border-bottom: 0px;
+    border-left: solid 1px #ccc;
+    border-right: solid 1px #ccc;
+    border-top: 0px;
+    background-color: #B5B5B5;
+    padding-left: 5px;
+    padding-top: 0px;
+    padding-bottom: 0px; 
+    color: #fff;
+}
+
+h3 {
+    color: #3a3a3a;
+    font-size: 12px;
+    font-weight: bold;
+    padding-top: 10px;
+    padding-bottom: 4px;
+    padding-left: 10px;
+    border-left: 0px;
+    border-right: 0px;
+    border-top: 0px;
+    border-bottom: 1px solid #ccc;
+    background-image: url(../images/table-header.gif);
+    background-position: left bottom;
+    background-repeat: repeat-x;
+    background-color: transparent;
+}
+
+table {
+    background-color: #cbcbcb;
+    margin: 0;
+    padding: 1px;
+    border-style: solid;
+    border-width: 0;
+}
+
+th {
+    padding-left: 5px;
+}
+
+img {
+    background-color: gray;
+    padding: 1px;
+}
+div#footer {
+	background-color: #ccc;
+	padding-right: 20px;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/Deployment_Diagram.jpg
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/Deployment_Diagram.jpg b/products/cloud-controller/docs/resources/images/Deployment_Diagram.jpg
new file mode 100644
index 0000000..147d881
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/Deployment_Diagram.jpg differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/Login.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/Login.png b/products/cloud-controller/docs/resources/images/Login.png
new file mode 100644
index 0000000..4cc00c2
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/Login.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/MessageFlowDiagram.jpg
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/MessageFlowDiagram.jpg b/products/cloud-controller/docs/resources/images/MessageFlowDiagram.jpg
new file mode 100644
index 0000000..13c1aba
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/MessageFlowDiagram.jpg differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/MessageQueue.jpg
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/MessageQueue.jpg b/products/cloud-controller/docs/resources/images/MessageQueue.jpg
new file mode 100644
index 0000000..e790a89
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/MessageQueue.jpg differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/addMessage.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/addMessage.png b/products/cloud-controller/docs/resources/images/addMessage.png
new file mode 100644
index 0000000..1697d67
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/addMessage.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/addPermission.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/addPermission.png b/products/cloud-controller/docs/resources/images/addPermission.png
new file mode 100644
index 0000000..3c9ec93
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/addPermission.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/cluster_scenario_01.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/cluster_scenario_01.png b/products/cloud-controller/docs/resources/images/cluster_scenario_01.png
new file mode 100644
index 0000000..7c29a1e
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/cluster_scenario_01.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/cluster_scenario_02.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/cluster_scenario_02.png b/products/cloud-controller/docs/resources/images/cluster_scenario_02.png
new file mode 100644
index 0000000..6c8c003
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/cluster_scenario_02.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/cluster_scenario_03.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/cluster_scenario_03.png b/products/cloud-controller/docs/resources/images/cluster_scenario_03.png
new file mode 100644
index 0000000..0db2694
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/cluster_scenario_03.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/cluster_scenario_04.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/cluster_scenario_04.png b/products/cloud-controller/docs/resources/images/cluster_scenario_04.png
new file mode 100644
index 0000000..1919328
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/cluster_scenario_04.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/cluster_scenario_05.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/cluster_scenario_05.png b/products/cloud-controller/docs/resources/images/cluster_scenario_05.png
new file mode 100644
index 0000000..cdd84ca
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/cluster_scenario_05.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/createMB.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/createMB.png b/products/cloud-controller/docs/resources/images/createMB.png
new file mode 100644
index 0000000..abbf81b
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/createMB.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/listMessageBoxes.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/listMessageBoxes.png b/products/cloud-controller/docs/resources/images/listMessageBoxes.png
new file mode 100644
index 0000000..ce9332e
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/listMessageBoxes.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/logs.PNG
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/logs.PNG b/products/cloud-controller/docs/resources/images/logs.PNG
new file mode 100644
index 0000000..9204327
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/logs.PNG differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/mb-docs-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/mb-docs-bg.gif b/products/cloud-controller/docs/resources/images/mb-docs-bg.gif
new file mode 100644
index 0000000..9dee07b
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/mb-docs-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/mb-docs-header.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/mb-docs-header.gif b/products/cloud-controller/docs/resources/images/mb-docs-header.gif
new file mode 100644
index 0000000..aabe107
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/mb-docs-header.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/retrieveMessage.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/retrieveMessage.png b/products/cloud-controller/docs/resources/images/retrieveMessage.png
new file mode 100644
index 0000000..e6de6b2
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/retrieveMessage.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/set-java-home.jpg
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/set-java-home.jpg b/products/cloud-controller/docs/resources/images/set-java-home.jpg
new file mode 100755
index 0000000..d23d544
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/set-java-home.jpg differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/state1_esper.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/state1_esper.png b/products/cloud-controller/docs/resources/images/state1_esper.png
new file mode 100644
index 0000000..a2b7984
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/state1_esper.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/storeConfig.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/storeConfig.png b/products/cloud-controller/docs/resources/images/storeConfig.png
new file mode 100644
index 0000000..ebd4ab1
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/storeConfig.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/table-header.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/table-header.gif b/products/cloud-controller/docs/resources/images/table-header.gif
new file mode 100644
index 0000000..92283f0
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/table-header.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/topicBrowser.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/topicBrowser.png b/products/cloud-controller/docs/resources/images/topicBrowser.png
new file mode 100644
index 0000000..e7512d1
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/topicBrowser.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/topic_AddTopicFromDetails.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/topic_AddTopicFromDetails.png b/products/cloud-controller/docs/resources/images/topic_AddTopicFromDetails.png
new file mode 100644
index 0000000..6104538
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/topic_AddTopicFromDetails.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/topic_add.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/topic_add.png b/products/cloud-controller/docs/resources/images/topic_add.png
new file mode 100644
index 0000000..94a22e2
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/topic_add.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/topic_addSubscription.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/topic_addSubscription.png b/products/cloud-controller/docs/resources/images/topic_addSubscription.png
new file mode 100644
index 0000000..276710c
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/topic_addSubscription.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/topic_browser.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/topic_browser.png b/products/cloud-controller/docs/resources/images/topic_browser.png
new file mode 100644
index 0000000..2d113f5
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/topic_browser.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/topic_browser_clicked.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/topic_browser_clicked.png b/products/cloud-controller/docs/resources/images/topic_browser_clicked.png
new file mode 100644
index 0000000..7388a28
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/topic_browser_clicked.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/topic_details.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/topic_details.png b/products/cloud-controller/docs/resources/images/topic_details.png
new file mode 100644
index 0000000..1933f29
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/topic_details.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/topic_subscriptionDetails.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/topic_subscriptionDetails.png b/products/cloud-controller/docs/resources/images/topic_subscriptionDetails.png
new file mode 100644
index 0000000..c3c5f82
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/topic_subscriptionDetails.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/topic_updatePermissions.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/topic_updatePermissions.png b/products/cloud-controller/docs/resources/images/topic_updatePermissions.png
new file mode 100644
index 0000000..aaa6aaf
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/topic_updatePermissions.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/user-mgt.PNG
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/user-mgt.PNG b/products/cloud-controller/docs/resources/images/user-mgt.PNG
new file mode 100644
index 0000000..63a5dc8
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/user-mgt.PNG differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/userguide_state_1.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/userguide_state_1.png b/products/cloud-controller/docs/resources/images/userguide_state_1.png
new file mode 100644
index 0000000..3f81b02
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/userguide_state_1.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/resources/images/zookeeperConfig.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/resources/images/zookeeperConfig.png b/products/cloud-controller/docs/resources/images/zookeeperConfig.png
new file mode 100644
index 0000000..42f707c
Binary files /dev/null and b/products/cloud-controller/docs/resources/images/zookeeperConfig.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/docs/site.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/docs/site.xml b/products/cloud-controller/docs/site.xml
new file mode 100644
index 0000000..789268b
--- /dev/null
+++ b/products/cloud-controller/docs/site.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<project name="WSO2 Message Broker">
+
+    <skin>
+        <groupId>org.apache.maven.skins</groupId>
+        <artifactId>maven-default-skin</artifactId>
+        <version>1.0</version>
+    </skin>
+
+    <body>
+        <links>
+            <item name="WSO2.org" href="http://www.wso2.org/"/>
+        </links>
+
+        <menu name="Overview">
+            <item name="Home" href="index.html"/>
+            <item name="Release Note" href="release-notes.html"/>
+            <item name="License"
+                  href="http://www.apache.org/licenses/LICENSE-2.0.html"/>
+            <item name="Contents" href="docs_index.html"/>
+        </menu>
+        <menu name="Downloads">
+            <item name="Releases"
+                  href="http://www.wso2.org/downloads/message-broker/"/>
+        </menu>
+        <menu name="Documentation">
+            <item name="Installation Guide" href="installation_guide.html"/>
+            <item name="Deployment Guide" href="deployment_guide.html"/>
+            <item name="User Guide" href="user_guide.html"/>
+            <item name="Administrator Guide" href="admin_guide.html"/>
+        </menu>
+        <menu name="Samples">
+            <item name="Samples Index" href="samples_index.html"/>
+        </menu>
+
+        <menu name="Resources">
+            <item name="FAQ's" href="faq.html"/>
+            <item name="Library" href="http://www.wso2.org/library/mb"/>
+            <item name="Features" href="http://www.wso2.org/projects/mb/java/features"/>
+            <item name="Source Code" href="http://www.wso2.org/svn"/>
+            <item name="Wiki" href="http://www.wso2.org/wiki/display/mb/java"/>
+        </menu>
+        <menu name="Community">
+            <item name="Forum" href="http://www.wso2.org/forum/1225"/>
+            <item name="Mailing Lists" href="http://www.wso2.org/mail"/>
+        </menu>
+        <menu name="Project Info">
+            <item name="Issue Tracking" href="https://www.wso2.org/jira/browse/mb"/>
+        </menu>
+
+    </body>
+</project>


[46/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/assembly/bin.xml b/products/cloud-controller/modules/distribution/src/main/assembly/bin.xml
new file mode 100644
index 0000000..df5f831
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/assembly/bin.xml
@@ -0,0 +1,340 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<assembly>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <includeBaseDirectory>false</includeBaseDirectory>
+    <fileSets>
+        <fileSet>
+            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
+            <excludes>
+                <exclude>**/*.sh</exclude>
+                <exclude>**/*.bat</exclude>
+                <exclude>**/log4j.properties</exclude>
+                <exclude>**/conf/axis2/axis2.xml</exclude>
+                <exclude>**/services/sample01.aar</exclude>
+                <exclude>**/repository/services/version/**</exclude>
+                <exclude>**/version.txt</exclude>
+                <exclude>**/LICENSE.txt</exclude>
+                <exclude>**/stratos.bat</exclude>
+		<exclude>**/launch.ini</exclude>
+                <exclude>**/README.txt</exclude>
+                <exclude>**/INSTALL.txt</exclude>
+                <exclude>**/release-notes.html</exclude>
+                <exclude>**/carbon.xml</exclude>
+            </excludes>
+        </fileSet>
+        <fileSet>
+            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
+            <excludes>
+                <exclude>**/wso2server.sh</exclude>
+                <exclude>**/wso2server.bat</exclude>
+            </excludes>
+	    <includes>
+                <include>**/*.sh</include>
+                <include>**/native/*</include>
+            </includes>
+            <fileMode>755</fileMode>
+        </fileSet>
+		<!--samples set of product-->
+        <fileSet>
+            <directory>../../modules/samples/product/jmsclient</directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}/samples/jmsclient</outputDirectory>
+        </fileSet>
+        <fileSet>
+            <directory>../../modules/samples/product/jmstransport</directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}/samples/jmstransport</outputDirectory>
+        </fileSet>
+        <fileSet>
+            <directory>../../modules/samples/product/wsclient</directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}/samples/wsclient</outputDirectory>
+        </fileSet>
+        <fileSet>
+            <directory>../../modules/samples/product/services</directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}/samples/services</outputDirectory>
+        </fileSet>
+        <fileSet>
+            <directory>
+                ../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/advanced/
+            </directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/advanced
+            </outputDirectory>
+            <includes>
+                <include>**/qpid-config.xml</include>
+                <include>**/qpid-jmxremote.access</include>
+                <include>**/qpid-virtualhosts.xml</include>
+            </includes>
+        </fileSet>
+	<fileSet>
+            <directory>src/main/conf/synapse-configs</directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/deployment/server/synapse-configs
+            </outputDirectory>
+        </fileSet>
+	 <fileSet>
+            <directory>src/main/cartridges</directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/deployment/server/cartridges</outputDirectory>
+        </fileSet>
+        <fileSet>
+            <directory>src/main/services</directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/deployment/server/services</outputDirectory>
+        </fileSet>
+	 <!--Multitenancy related file -->
+        <fileSet>
+            <directory>
+                ../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/multitenancy/
+            </directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/multitenancy</outputDirectory>
+            <includes>
+                <include>**/stratos.xml</include>
+                <include>**/multitenancy-packages.xml</include>
+                <include>**/usage-throttling-agent-config.xml</include>
+                <include>**/cloud-services-desc.xml</include>
+            </includes>
+        </fileSet>
+
+        <fileSet>
+           <directory>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/</directory>
+           <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/etc</outputDirectory>
+           <includes>
+               <include>**/cassandra.yaml</include>
+           </includes>
+        </fileSet>
+      
+	<!-- copy the landing page webapp -->
+        <fileSet>
+		<directory>lib/home</directory>
+		<outputDirectory>apache-stratos-cc-${pom.version}/repository/deployment/server/webapps/STRATOS_ROOT</outputDirectory>
+        </fileSet>
+        <fileSet>
+            <directory>
+                ../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/identity/
+            </directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}/dbscripts/identity</outputDirectory>
+            <includes>
+                <include>**/h2.sql</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>../styles/service/src/main/resources/web/styles/css</directory>
+           <outputDirectory>${pom.artifactId}-${pom.version}/resources/allthemes/Default/admin</outputDirectory>
+            <includes>
+                <include>**/**.css</include>
+           </includes>
+        </fileSet>
+        <fileSet>
+           <directory>../styles/service/src/main/resources/web/styles/images</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/resources/allthemes/Default/images</outputDirectory>
+            <includes>
+                <include>**/**.gif</include>
+                <include>**/**.png</include>
+            </includes>
+        </fileSet>
+
+	<!-- get axis2_1.6.1.wso2v9.jar from carbon kernel patch 0002 -->
+        <fileSet>
+           <directory>../p2-profile/target/WSO2-CARBON-PATCH-4.1.0-0002/</directory>
+           <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/patches</outputDirectory>
+           <includes>
+              <include>**/patch0002/axis2_1.6.1.wso2v9.jar</include>
+           </includes>
+        </fileSet>
+    </fileSets>
+
+    <dependencySets>
+        <dependencySet>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/deployment/client/modules
+            </outputDirectory>
+            <includes>
+                <include>org.apache.rampart:rampart:mar</include>
+            </includes>
+        </dependencySet>
+	<dependencySet>
+            <outputDirectory>apache-stratos-cc-${pom.version}/client-lib</outputDirectory>
+            <includes>
+                <include>org.wso2.andes.wso2:andes-client:jar</include>
+                <include>org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar</include>
+                <include>org.wso2.carbon:org.wso2.carbon.event.client.stub:jar</include>
+                <include>org.wso2.carbon:org.wso2.carbon.event.client:jar</include>
+		        <include>slf4j.wso2:slf4j:jar</include>
+                <include>log4j:log4j:jar</include>
+            </includes>
+        </dependencySet>
+    </dependencySets>
+
+    <files>
+        <file>
+            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/conf/axis2/axis2.xml</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/axis2</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>src/main/conf/event-broker.xml</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
+        </file>
+	<!--file>
+            <source>src/main/conf/user-mgt.xml</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
+            <destName>user-mgt.xml</destName>
+        </file-->
+	  <!-- Setting jamm javaagent in bam -->
+        <file>
+            <source>src/main/resources/launch.ini</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>src/main/conf/embedded-ldap.xml</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
+            <destName>embedded-ldap.xml</destName>
+        </file>
+         <file>
+            <source>src/main/conf/zoo.cfg</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/etc</outputDirectory>
+        </file>
+         <file>
+            <source>src/main/conf/jaas.conf</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/security</outputDirectory>
+        </file>
+         <file>
+            <source>src/main/resources/stratos.sh</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>755</fileMode>
+        </file>
+        <file>
+            <source>src/main/resources/log4j.properties</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>755</fileMode>
+        </file>
+	 <file>
+            <source>src/main/conf/synapse.properties</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
+            <destName>synapse.properties</destName>
+            <filtered>true</filtered>
+        </file>
+        <file>
+            <source>src/main/conf/cipher-text.properties</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/lib</outputDirectory>
+            <destName>cipher-text.properties</destName>
+            <filtered>true</filtered>
+        </file>
+         <file>
+            <source>src/main/resources/stratos.bat</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>755</fileMode>
+        </file>
+	<file>
+            <source>src/main/conf/datasources.properties</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf</outputDirectory>
+            <destName>datasources.properties</destName>
+            <filtered>true</filtered>
+        </file>
+        <file>
+            <source>../../LICENSE.txt</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>../../README.txt</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>../../INSTALL.txt</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <!--file>
+            <source>../../docs/xdoc/release-notes.xml</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}</outputDirectory>
+            <destName>release-notes.html</destName>
+            <fileMode>644</fileMode>
+        </file-->
+<!--
+        <file>
+            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/README.txt</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>-->
+        <file>
+            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/version.txt</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/bin/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>644</fileMode>
+        </file>
+        <file>
+            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/conf/carbon.xml</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/</outputDirectory>
+            <filtered>true</filtered>
+        </file>
+	<!--file>
+            <source>
+                ../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/security/authenticators.xml
+            </source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/security/</outputDirectory>
+            <filtered>true</filtered>
+        </file-->
+
+	<!-- Including logging-config.xml file -->
+ 	<file>
+            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/logging-config.xml</source>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/etc/</outputDirectory>
+        </file>
+        <file>
+             <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity.xml</source>
+	     <outputDirectory>apache-stratos-cc-${pom.version}/repository/conf/</outputDirectory>
+        </file>
+	<file>
+            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cloud-controller.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+        </file>
+	<file>
+            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/cartridge.xsd</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
+        </file>
+	<file>
+            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/services.xsd</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
+        </file>
+	<file>
+            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/service.xsd</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
+        </file>
+	<file>
+            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/cartridges.xsd</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
+        </file>
+	<file>
+            <source>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/coordination-client-config.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
+        </file>
+    </files>
+</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/assembly/dist.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/assembly/dist.xml b/products/cloud-controller/modules/distribution/src/main/assembly/dist.xml
new file mode 100644
index 0000000..262851d
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/assembly/dist.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<assembly>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <includeBaseDirectory>false</includeBaseDirectory>
+    <fileSets>
+        <!-- Copying p2 profile and osgi bundles-->
+        <fileSet>
+            <directory>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/components</directory>
+            <outputDirectory>apache-stratos-cc-${pom.version}/repository/components</outputDirectory>
+            <excludes>
+                <exclude>**/eclipse.ini</exclude>
+                <exclude>**/*.lock</exclude>
+                <exclude>**/.data</exclude>
+                <exclude>**/.settings</exclude>
+            </excludes>
+        </fileSet>
+    </fileSets>
+</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/assembly/filter.properties
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/assembly/filter.properties b/products/cloud-controller/modules/distribution/src/main/assembly/filter.properties
new file mode 100644
index 0000000..1d2a3aa
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/assembly/filter.properties
@@ -0,0 +1,4 @@
+product.name=Apache Stratos Cloud Controller
+product.key=CC
+product.version=1.0.0
+carbon.version=4.1.1

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/axis2.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/axis2.xml b/products/cloud-controller/modules/distribution/src/main/conf/axis2.xml
new file mode 100755
index 0000000..77dcf02
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/axis2.xml
@@ -0,0 +1,524 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<axisconfig name="AxisJava2.0">
+    
+    <!-- ================================================= -->
+    <!--                  Parameters                       -->
+    <!-- ================================================= -->
+
+    <!-- This will give out the timout of the configuration contexts, in milliseconds -->
+    <parameter name="ConfigContextTimeoutInterval" locked="false">30000</parameter>
+
+    <!-- Synapse Configuration file location relative to CARBON_HOME -->
+    <parameter name="SynapseConfig.ConfigurationFile" locked="false">repository/deployment/server/synapse-configs</parameter>
+    <!-- Synapse Home parameter -->
+    <parameter name="SynapseConfig.HomeDirectory" locked="false">.</parameter>
+    <!-- Resolve root used to resolve synapse references like schemas inside a WSDL -->
+    <parameter name="SynapseConfig.ResolveRoot" locked="false">.</parameter>
+    <!-- Synapse Server name parameter -->
+    <parameter name="SynapseConfig.ServerName" locked="false">localhost</parameter>
+   
+
+    <!-- ================================================= -->
+    <!--                Message Formatters                 -->
+    <!-- ================================================= -->
+
+    <!-- Following content type to message formatter mapping can be used to implement support -->
+    <!-- for different message format serializations in Axis2. These message formats are -->
+    <!-- expected to be resolved based on the content type. -->
+    <messageFormatters>
+        <!--messageFormatter contentType="application/xml"
+                          class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>-->
+        <!--messageFormatter contentType="text/xml"
+                         class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>-->
+        <!--messageFormatter contentType="application/soap+xml"
+                         class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>-->
+        <!--messageFormatter contentType="application/x-www-form-urlencoded"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/-->
+        <messageFormatter contentType="multipart/related"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/txt"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/html"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/soap+xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <!--messageFormatter contentType="x-application/hessian"
+                         class="org.apache.synapse.format.hessian.HessianMessageFormatter"/-->
+        <!--messageFormatter contentType=""
+                         class="org.apache.synapse.format.hessian.HessianMessageFormatter"/-->
+
+        <messageFormatter contentType="text/css"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/javascript"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+        <messageFormatter contentType="image/gif"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="img/gif"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/jpeg"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/png"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/ico"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/x-icon"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+	    <messageFormatter contentType="application/x-javascript"
+                             class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/x-shockwave-flash"
+                             class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/atom+xml"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/x-www-form-urlencoded"
+                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/xhtml+xml"
+                              class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/octet-stream"
+                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/javascript"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+        <messageFormatter contentType="multipart/form-data"
+                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/soap+xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+        <!--JSON Message Formatters-->
+        <messageFormatter contentType="application/json"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/json/badgerfish"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/javascript"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+
+        <messageFormatter contentType=".*"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+    </messageFormatters>
+
+    <!-- ================================================= -->
+    <!--                Message Builders                   -->
+    <!-- ================================================= -->
+
+    <!-- Following content type to builder mapping can be used to implement support for -->
+    <!-- different message formats in Axis2. These message formats are expected to be -->
+    <!-- resolved based on the content type. -->
+    <messageBuilders>
+        <messageBuilder contentType="application/xml"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/txt"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <!--messageBuilder contentType="application/xml"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
+        <!--messageBuilder contentType="application/x-www-form-urlencoded"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
+        <!--messageBuilder contentType="multipart/form-data"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
+        <messageBuilder contentType="multipart/related"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/soap+xml"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/plain"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/xml"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <!--messageBuilder contentType="x-application/hessian"
+                        class="org.apache.synapse.format.hessian.HessianMessageBuilder"/-->
+        <!--messageBuilder contentType=""
+                         class="org.apache.synapse.format.hessian.HessianMessageBuilder"/-->
+
+        <!--JSON Message Builders-->
+        <messageBuilder contentType="application/json"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/json/badgerfish"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/javascript"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+
+        <messageBuilder contentType="text/html"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/css"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/javascript"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+        <messageBuilder contentType="image/gif"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="img/gif"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/jpeg"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/png"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/ico"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/x-icon"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+
+	    <messageBuilder contentType="application/x-javascript"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/x-shockwave-flash"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/atom+xml"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/x-www-form-urlencoded"
+                            class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/xhtml+xml"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/octet-stream"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/javascript"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+        <messageBuilder contentType="multipart/form-data"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/soap+xml"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+
+        <messageBuilder contentType=".*"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+    </messageBuilders>
+
+    <!-- ================================================= -->
+    <!--             Transport Ins (Listeners)             -->
+    <!-- ================================================= -->
+    <!--Default trasnport will be passthrough if you need to change please add it here -->
+   <transportReceiver name="http" class="org.wso2.carbon.transport.passthru.PassThroughHttpListener">
+      <parameter name="port">8280</parameter>
+      <parameter name="non-blocking"> true</parameter>
+   </transportReceiver>
+   <transportReceiver name="https" class="org.wso2.carbon.transport.passthru.PassThroughHttpSSLListener">
+        <parameter name="port" locked="false">8243</parameter>
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
+        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
+        <parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter>
+        <!--<parameter name="SSLVerifyClient">require</parameter>
+            supports optional|require or defaults to none -->
+    </transportReceiver>
+
+    <!-- uncomment for non blocking http transport based on HttpCore + NIO extensions -->
+    <!--transportReceiver name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOListener">
+        <parameter name="port" locked="false">8280</parameter>
+        <parameter name="non-blocking" locked="false">true</parameter-->
+        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
+        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
+        <!--parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter-->
+    <!--/transportReceiver-->
+
+    <!-- the non blocking https transport based on HttpCore + SSL-NIO extensions -->
+    <!--transportReceiver name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener">
+        <parameter name="port" locked="false">8243</parameter>
+        <parameter name="non-blocking" locked="false">true</parameter-->
+        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
+        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
+        <!--parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter-->
+        <!--parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter-->
+        <!--<parameter name="SSLVerifyClient">require</parameter>
+            supports optional|require or defaults to none -->
+    <!--/transportReceiver-->
+
+    <!-- ================================================= -->
+    <!--             Transport Outs (Senders)              -->
+    <!-- ================================================= -->
+    <!--Default trasnport will be passthrough if you need to change please add it here -->
+    <transportSender name="http"  class="org.wso2.carbon.transport.passthru.PassThroughHttpSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="warnOnHTTP500" locked="false">*</parameter>
+        <!--parameter name="http.proxyHost" locked="false">localhost</parameter>
+        <parameter name="http.proxyPort" locked="false">3128</parameter>
+        <parameter name="http.nonProxyHosts" locked="false">localhost|moon|sun</parameter-->
+    </transportSender>
+    <transportSender name="https" class="org.wso2.carbon.transport.passthru.PassThroughHttpSSLSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter>
+        <parameter name="HostnameVerifier">AllowAll</parameter>
+            <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
+     </transportSender>
+    <!-- Uncomment for non-blocking http transport based on HttpCore + NIO extensions -->
+    <!--transportSender name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+    </transportSender>
+    <transportSender name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter>
+        <parameter name="HostnameVerifier">AllowAll</parameter-->
+            <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
+    <!--/transportSender-->
+
+    <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
+
+    <!-- ================================================= -->
+    <!--                Clustering                         -->
+    <!-- ================================================= -->
+    <!--
+     To enable clustering for this node, set the value of "enable" attribute of the "clustering"
+     element to "true". The initialization of a node in the cluster is handled by the class
+     corresponding to the "class" attribute of the "clustering" element. It is also responsible for
+     getting this node to join the cluster.
+     -->
+    <clustering class="org.apache.axis2.clustering.tribes.TribesClusteringAgent" enable="true">
+
+        <!--
+           This parameter indicates whether the cluster has to be automatically initalized
+           when the AxisConfiguration is built. If set to "true" the initialization will not be
+           done at that stage, and some other party will have to explictly initialize the cluster.
+        -->
+        <parameter name="AvoidInitiation">true</parameter>
+
+        <!--
+           The membership scheme used in this setup. The only values supported at the moment are
+           "multicast" and "wka"
+
+           1. multicast - membership is automatically discovered using multicasting
+           2. wka - Well-Known Address based multicasting. Membership is discovered with the help
+                    of one or more nodes running at a Well-Known Address. New members joining a
+                    cluster will first connect to a well-known node, register with the well-known node
+                    and get the membership list from it. When new members join, one of the well-known
+                    nodes will notify the others in the group. When a member leaves the cluster or
+                    is deemed to have left the cluster, it will be detected by the Group Membership
+                    Service (GMS) using a TCP ping mechanism.
+        -->
+        <parameter name="membershipScheme">wka</parameter>
+
+        <!--
+         The clustering domain/group. Nodes in the same group will belong to the same multicast
+         domain. There will not be interference between nodes in different groups.
+        -->
+        <parameter name="domain">wso2.carbon.lb.domain</parameter>
+
+        <!--
+           When a Web service request is received, and processed, before the response is sent to the
+           client, should we update the states of all members in the cluster? If the value of
+           this parameter is set to "true", the response to the client will be sent only after
+           all the members have been updated. Obviously, this can be time consuming. In some cases,
+           such this overhead may not be acceptable, in which case the value of this parameter
+           should be set to "false"
+        -->
+        <parameter name="synchronizeAll">false</parameter>
+
+        <!--
+          The maximum number of times we need to retry to send a message to a particular node
+          before giving up and considering that node to be faulty
+        -->
+        <parameter name="maxRetries">10</parameter>
+
+        <!-- The multicast address to be used -->
+        <parameter name="mcastAddress">228.0.0.4</parameter>
+
+        <!-- The multicast port to be used -->
+        <parameter name="mcastPort">45564</parameter>
+
+        <!-- The frequency of sending membership multicast messages (in ms) -->
+        <parameter name="mcastFrequency">500</parameter>
+
+        <!-- The time interval within which if a member does not respond, the member will be
+         deemed to have left the group (in ms)
+         -->
+        <parameter name="memberDropTime">3000</parameter>
+
+        <!--
+           The IP address of the network interface to which the multicasting has to be bound to.
+           Multicasting would be done using this interface.
+        -->
+        <parameter name="mcastBindAddress">127.0.0.1</parameter>
+
+        <!-- The host name or IP address of this member -->
+        
+        <!--parameter name="localMemberHost">127.0.0.1</parameter-->
+        
+
+        <!--
+        The TCP port used by this member. This is the port through which other nodes will
+        contact this member
+         -->
+        <parameter name="localMemberPort">4000</parameter>
+
+        <!--
+        Preserve message ordering. This will be done according to sender order.
+        -->
+        <parameter name="preserveMessageOrder">false</parameter>
+
+        <!--
+        Maintain atmost-once message processing semantics
+        -->
+        <parameter name="atmostOnceMessageSemantics">false</parameter>
+         
+        <!--
+           This interface is responsible for handling state replication. The property changes in
+           the Axis2 context hierarchy in this node, are propagated to all other nodes in the cluster.
+
+           The "excludes" patterns can be used to specify the prefixes (e.g. local_*) or
+           suffixes (e.g. *_local) of the properties to be excluded from replication. The pattern
+           "*" indicates that all properties in a particular context should not be replicated.
+
+            The "enable" attribute indicates whether context replication has been enabled
+        -->
+        <stateManager class="org.apache.axis2.clustering.state.DefaultStateManager"
+                      enable="false">
+            <replication>
+                <defaults>
+                    <exclude name="local_*"/>
+                    <exclude name="LOCAL_*"/>
+                </defaults>
+                <context class="org.apache.axis2.context.ConfigurationContext">
+                    <exclude name="local_*"/>
+                    <exclude name="UseAsyncOperations"/>
+                    <exclude name="SequencePropertyBeanMap"/>
+                </context>
+                <context class="org.apache.axis2.context.ServiceGroupContext">
+                    <exclude name="local_*"/>
+                    <exclude name="my.sandesha.*"/>
+                </context>
+                <context class="org.apache.axis2.context.ServiceContext">
+                    <exclude name="local_*"/>
+                    <exclude name="my.sandesha.*"/>
+                </context>
+            </replication>
+        </stateManager>
+    </clustering>
+
+    <!-- ================================================= -->
+    <!--                    Phases                         -->
+    <!-- ================================================= -->
+
+    <phaseOrder type="InFlow">
+        <!--  System pre defined phases       -->
+        <phase name="Transport"/>
+        <phase name="Addressing"/>
+        <phase name="Security"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/>
+        <!--  System pre defined phases       -->
+        <phase name="RMPhase"/>
+        <phase name="OpPhase"/>
+    </phaseOrder>
+
+    <phaseOrder type="OutFlow">
+        <!-- Handlers related to unified-endpoint component are added to the UEPPhase -->
+        <phase name="UEPPhase" />
+        <!--      user can add his own phases to this area  -->
+        <phase name="RMPhase"/>
+        <phase name="MUPhase"/>
+        <phase name="OpPhase"/>
+        <phase name="OperationOutPhase"/>
+        <!--system predefined phase-->
+        <!--these phase will run irrespective of the service-->
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+        <phase name="Security"/>
+    </phaseOrder>
+
+    <phaseOrder type="InFaultFlow">
+        <phase name="Transport"/>
+        <phase name="Addressing"/>
+        <phase name="Security"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/>
+        <!--      user can add his own phases to this area  -->
+        <phase name="RMPhase"/>
+        <phase name="OpPhase"/>
+        <phase name="MUPhase"/>
+        <phase name="OperationInFaultPhase"/>
+    </phaseOrder>
+
+    <phaseOrder type="OutFaultFlow">
+        <!-- Handlers related to unified-endpoint component are added to the UEPPhase -->
+        <phase name="UEPPhase" />
+        <!--      user can add his own phases to this area  -->
+        <phase name="RMPhase"/>
+        <!-- Must Understand Header processing phase -->
+        <phase name="MUPhase"/>
+        <phase name="OperationOutFaultPhase"/>
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+        <phase name="Security"/>
+    </phaseOrder>
+
+</axisconfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/cipher-text.properties
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/cipher-text.properties b/products/cloud-controller/modules/distribution/src/main/conf/cipher-text.properties
new file mode 100644
index 0000000..4a1c469
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/cipher-text.properties
@@ -0,0 +1,26 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#aliases=esb
+#
+## configuration  per each plaintext
+#esb.secret=M6U74dMVvRm4XFMczki2qZ6CsTvnUuRTjSditlACR5vTISSMI7F/mCTVJGOGdKJjij+VWVhBtmAOkElyvR9TwlUECnZ1o5DNsTK6l8je+9amc/ziTQLP3Q1tzm/Ex1pzHsG6jPGGrv3O0B9pZTfYFqRvlcNhM7Ve3WvA3ibs4Yk=
+#esb.secret.alias=wso2carbon
+#esb.secret.keystore=identity
+#

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/datasources.properties
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/datasources.properties b/products/cloud-controller/modules/distribution/src/main/conf/datasources.properties
new file mode 100644
index 0000000..0cf8cdb
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/datasources.properties
@@ -0,0 +1,58 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+################################################################################
+## DataSources Configuration
+################################################################################
+#synapse.datasources=lookupds,reportds
+#synapse.datasources.icFactory=com.sun.jndi.rmi.registry.RegistryContextFactory
+#synapse.datasources.providerPort=2199
+## If following property is present , then assumes that there is an external JNDI provider and will not start a RMI registry
+##synapse.datasources.providerUrl=rmi://localhost:2199
+#
+#synapse.datasources.lookupds.registry=Memory
+#synapse.datasources.lookupds.type=BasicDataSource
+#synapse.datasources.lookupds.driverClassName=org.apache.derby.jdbc.ClientDriver
+#synapse.datasources.lookupds.url=jdbc:derby://localhost:1527/lookupdb;create=false
+## Optionally you can specifiy a specific password provider implementation which overrides any globally configured provider
+#synapse.datasources.lookupds.secretProvider=org.apache.synapse.commons.security.secret.handler.SharedSecretCallbackHandler
+#synapse.datasources.lookupds.username=esb
+## Depending on the password provider used, you may have to use an encrypted password here!
+#synapse.datasources.lookupds.password=esb
+#synapse.datasources.lookupds.dsName=lookupdb
+#synapse.datasources.lookupds.maxActive=100
+#synapse.datasources.lookupds.maxIdle=20
+#synapse.datasources.lookupds.maxWait=10000
+#
+#synapse.datasources.reportds.registry=JNDI
+#synapse.datasources.reportds.type=PerUserPoolDataSource
+#synapse.datasources.reportds.cpdsadapter.factory=org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
+#synapse.datasources.reportds.cpdsadapter.className=org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS
+#synapse.datasources.reportds.cpdsadapter.name=cpds
+#synapse.datasources.reportds.dsName=reportdb
+#synapse.datasources.reportds.driverClassName=org.apache.derby.jdbc.ClientDriver
+#synapse.datasources.reportds.url=jdbc:derby://localhost:1527/reportdb;create=false
+## Optionally you can specifiy a specific password provider implementation which overrides any globally configured provider
+#synapse.datasources.reportds.secretProvider=org.apache.synapse.commons.security.secret.handler.SharedSecretCallbackHandler
+#synapse.datasources.reportds.username=esb
+## Depending on the password provider used, you may have to use an encrypted password here!
+#synapse.datasources.reportds.password=esb
+#synapse.datasources.reportds.maxActive=100
+#synapse.datasources.reportds.maxIdle=20
+#synapse.datasources.reportds.maxWait=10000
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/embedded-ldap.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/embedded-ldap.xml b/products/cloud-controller/modules/distribution/src/main/conf/embedded-ldap.xml
new file mode 100644
index 0000000..144628e
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/embedded-ldap.xml
@@ -0,0 +1,165 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!--
+	All carbon based products comes with a LDAP user store.
+	For this we use an embedded LDAP in carbon based products.
+	This file contains necessary configurations to control the behavior of embedded LDAP.
+	You may use this file to enable, disable LDAP server, configure connection admin password, etc ...
+	In addition to embedded-ldap server configurations this file also has Kerberos KDC (Key Distribution Center)
+	specific configurations.
+-->
+
+<EmbeddedLDAPConfig>
+
+  <!--
+	LDAP server configurations
+	==========================
+	This section contains LDAP server specific configurations.
+
+	Property                Usage
+	=======                 ====
+	enable                  If true the embedded LDAP server will start when server starts up.
+				            Else embedded LDAP server will not start. Thus user has to use a different
+				            user store.
+	instanceid              An id given to the LDAP server instance.
+	connectionPassword      The password of the admin. (uid=admin,ou=system)
+	workingDirectory        Location where LDAP will store its schema files.
+	AdminEntryObjectClass   Object class which encapsulate attributes needed by claims.
+	allowAnonymousAccess    Should allow users to access LDAP server without credentials. Default false.
+	accessControlEnabled    Should access control be enabled among partitions. Default true.
+	saslHostName            Default host name to be used in SASL (Simple Authentication and Security Layer).
+				            This property comes from apacheds implementation itself.
+	saslPrincipalName       Default SASL principal name. Again this property also comes from apacheds implementation
+				            itself.
+  -->
+  <EmbeddedLDAP>
+    <Property name="enable">false</Property>
+    <Property name="port">${Ports.EmbeddedLDAP.LDAPServerPort}</Property>
+    <Property name="instanceId">default</Property>
+    <Property name="connectionPassword">admin</Property>
+    <Property name="workingDirectory">.</Property>
+    <Property name="AdminEntryObjectClass">wso2Person</Property>
+    <Property name="allowAnonymousAccess">false</Property>
+    <Property name="accessControlEnabled">true</Property>
+    <Property name="denormalizeOpAttrsEnabled">false</Property>
+    <Property name="maxPDUSize">2000000</Property>
+    <Property name="saslHostName">localhost</Property>
+    <Property name="saslPrincipalName">ldap/localhost@EXAMPLE.COM</Property>
+  </EmbeddedLDAP>
+
+  <!--
+	Default partition configurations
+	================================
+	When embedded LDAP server starts for the first time it will create a default partition.
+	Following properties configure values for the default partition.
+
+	Property                        Usage
+	=======                         =====
+	id                              Each partition is given an id. The id given to the default paritition.
+	realm                           Realm is the place where we store user principals and service principals.
+                                        The name of the realm for default partition.
+	kdcPassword                     This parameter is used when KDC (Key Distribution Center) is enabled. In apacheds
+                                        KDC also has a server principal. This defines a password for KDC server principal.
+	ldapServerPrinciplePassword     If LDAP server is also defined as a server principal, this will be the password.
+
+  -->
+  <DefaultPartition>
+    <Property name="id">root</Property>
+    <Property name="realm">wso2.org</Property>
+    <Property name="kdcPassword">secret</Property>
+    <Property name="ldapServerPrinciplePassword">randall</Property>
+  </DefaultPartition>
+
+  <!--
+	Default partition admin configurations
+	======================================
+	In a multi-tenant scenario each tenant will have a separate partition. Thus tenant admin will be the partition admin.
+	Following configurations define admin attributes for above created default partition.
+
+	Property            Usage
+	========            =====
+	uid                 UID attribute for partition admin.
+	commonName          The cn attribute for admin
+	lastName            The sn attribute for admin
+	email               The email attribute for admin
+	passwordType        The password hashing mechanism. Following hashing mechanisms are available, "SHA", "MD5".
+                        "Plaintext" is also a valid value. If KDC is enabled password type will be enforced to be
+                        plain text.
+  -->
+  <PartitionAdmin>
+    <Property name="uid">admin</Property>
+    <Property name="firstName">admin</Property>
+    <Property name="lastName">admin</Property>
+    <Property name="email">admin@wso2.com</Property>
+    <Property name="password">admin</Property>
+    <Property name="passwordType">SHA</Property>
+  </PartitionAdmin>
+
+  <!--
+	Default partition admin's group configuration
+	=============================================
+	Embedded LDAP is capable of keeping group information also.
+	If LDAP groups are enabled in user store (usr-mgt.xml) group information will be
+	recorded in a separate sub-context. Following configuration defines the group
+	properties.
+
+	Property                Usage
+	=======                 =====
+	adminRoleName		    The name of the role/group that admin should be included.
+	groupNameAttribute	    The attribute which group name will be recorded.
+	memberNameAttribute	    The attribute which memebers are recorded.
+  -->
+  <PartitionAdminGroup>
+    <Property name="adminRoleName">admin</Property>
+    <Property name="groupNameAttribute">cn</Property>
+    <Property name="memberNameAttribute">member</Property>
+  </PartitionAdminGroup>
+
+    <!--
+      KDC configurations
+      =================
+      Following configurations are applicable to KDC server. Generally, the KDC is only enabled in
+      Identity Server. You may enable KDC server if you wish to do so. But if you dont have any Kerberos specific
+      programs, it is recommended to disable KDC server.
+
+      Property                          Usage
+      =======                           =====
+      name                              Name given to default KDC server.
+      enabled                           If true a KDC server will start when starting LDAP server.
+                                          Else a KDC server will not start with a LDAP server.
+      protocol                          Default protocol to be used in KDC communication. Default is UDP.
+      maximumTicketLifeTime             The maximum life time of a ticket issued by the KDC.
+      maximumRenewableLifeTime          Life time which a ticket can be used by renewing it several times.
+      preAuthenticationTimeStampEnabled Pre-authentication is a feature in latest Kerberos protocol.
+                                          This property says whether to enable it or disable it.
+    -->
+  <KDCServer>
+    <Property name="name">defaultKDC</Property>
+    <Property name="enabled">false</Property>
+    <Property name="protocol">UDP</Property>
+    <Property name="host">localhost</Property>
+    <Property name="port">${Ports.EmbeddedLDAP.KDCServerPort}</Property>
+    <Property name="maximumTicketLifeTime">8640000</Property>
+    <Property name="maximumRenewableLifeTime">604800000</Property>
+    <Property name="preAuthenticationTimeStampEnabled">true</Property>
+  </KDCServer>
+
+</EmbeddedLDAPConfig>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/event-broker.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/event-broker.xml b/products/cloud-controller/modules/distribution/src/main/conf/event-broker.xml
new file mode 100644
index 0000000..0c242a0
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/event-broker.xml
@@ -0,0 +1,44 @@
+<!--
+this is the configuration file for the carbon event broker component. this configuration file configures the various subsystems of the event
+broker compoent and parameters.
+-->
+<eventBrokerConfig xmlns="http://wso2.org/carbon/event/broker">
+    <eventBroker name="carbonEventBroker" class = "org.wso2.carbon.event.core.internal.CarbonEventBrokerFactory">
+         <!-- topic manager implemenation class.-->
+        <topicManager name="TopicManager" class="org.wso2.carbon.event.core.internal.topic.registry.RegisistryTopicManagerFactory">
+            <!-- root node of the topic tree -->
+            <topicStoragePath>event/topics</topicStoragePath>
+        </topicManager>
+        <!-- subscriptionmnager implementaion. subscription manager persits the
+        subscriptions at the registry.  users can configure the topics root node and the topicIndex path -->
+        <subscriptionManager name="subscriptionManager"
+                             class="org.wso2.carbon.event.core.internal.subscription.registry.RegistrySubscriptionManagerFactory">
+            <topicStoragePath>event/topics</topicStoragePath>
+            <indexStoragePath>event/topicIndex</indexStoragePath>
+        </subscriptionManager>
+
+        <!-- delivary manager inmplementation. delivary manager does actual delivary part of the event broker -->
+        <deliveryManager name="deliveryManager"
+                         class="org.wso2.carbon.event.core.internal.delivery.jms.QpidJMSDeliveryManagerFactory"
+                         type="local">
+           <!--  <remoteMessageBroker>
+                <hostName>localhost</hostName>
+                <servicePort>9443</servicePort>
+                <webContext>/</webContext>
+                <userName>admin</userName>
+                <password>admin</password>
+                <qpidPort>5672</qpidPort>
+                <clientID>clientID</clientID>
+                <virtualHostName>carbon</virtualHostName>
+            </remoteMessageBroker> -->
+        </deliveryManager>
+
+         <!-- when publising an event event broker uses a seperate thread pool with an executor. following parameters configure different parameters of that -->
+        <eventPublisher>
+            <minSpareThreads>5</minSpareThreads>
+            <maxThreads>50</maxThreads>
+            <maxQueuedRequests>1000</maxQueuedRequests>
+            <keepAliveTime>1000</keepAliveTime>
+        </eventPublisher>
+    </eventBroker>
+</eventBrokerConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/jaas.conf
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/jaas.conf b/products/cloud-controller/modules/distribution/src/main/conf/jaas.conf
new file mode 100644
index 0000000..7a2a295
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/jaas.conf
@@ -0,0 +1,10 @@
+Server {
+       org.apache.zookeeper.server.auth.DigestLoginModule required
+       user_super="admin"
+       user_admin="admin";
+};
+Client {
+       org.apache.zookeeper.server.auth.DigestLoginModule required
+       username="admin"
+       password="admin";
+};

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/log4j.properties
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/log4j.properties b/products/cloud-controller/modules/distribution/src/main/conf/log4j.properties
new file mode 100644
index 0000000..ec224d4
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/log4j.properties
@@ -0,0 +1,128 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+##
+# This is the log4j configuration file used by WSO2 ESB
+# =====================================================
+#
+# IMPORTANT : Please do not remove or change the names of any of the Appenders defined here.
+# The layout pattern & log file can be changed using the WSO2 ESB Management Console, and those
+# settings will override the settings in this file.
+##
+
+##
+# WSO2 ESB is now able to create per-service trace logs at runtime. Thus while a message
+# is being processed through a Proxy service or the Synapse service (i.e. message mediation through
+# the 'main' sequence), tracing may be turned 'on' at any Proxy, Sequence or Mediator level. This
+# trace state 'flows' with the message - i.e from a trace enabled sequence to another sequence etc.
+# and applies to all mediators within a trace enabled sequence etc. unless another sequence or
+# mediator does not override and specify a different trace setting.
+##
+
+# the root category is ERROR (applies for all 3rd party JARs etc) and will be logged to the
+# LOG_APPENDER and the CONSOLE_APPENDER
+
+log4j.rootLogger=ERROR, CARBON_CONSOLE, CARBON_LOGFILE, ERROR_LOGFILE
+
+log4j.category.org.apache.synapse=INFO
+log4j.category.org.apache.synapse.transport=INFO
+log4j.category.org.apache.axis2=INFO
+log4j.category.org.apache.axis2.transport=INFO
+log4j.logger.com.atomikos=INFO,ATOMIKOS
+log4j.logger.org.quartz=WARN
+log4j.logger.org.wso2=INFO
+log4j.logger.org.wso2.carbon=INFO
+
+log4j.logger.org.apache.catalina=WARN
+log4j.logger.org.apache.synapse.endpoints.EndpointContext=ERROR
+log4j.logger.org.apache.coyote=WARN
+log4j.logger.org.apache.axis2.enterprise=FATAL
+log4j.logger.de.hunsicker.jalopy.io=FATAL
+
+# uncomment the following logs to see HTTP headers and messages
+#log4j.logger.org.apache.synapse.transport.nhttp.headers=DEBUG
+#log4j.logger.org.apache.synapse.transport.nhttp.wire=DEBUG
+
+#nhttp accesslogs
+log4j.logger.org.apache.synapse.transport.nhttp.access=INFO
+
+# qpid related logs for the message broker
+log4j.logger.qpid=FATAL
+log4j.logger.org.apache.qpid=FATAL
+
+# The console appender is used to display general information at console
+log4j.appender.CARBON_CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CARBON_CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CARBON_CONSOLE.layout.ConversionPattern=[%d{ISO8601}] %5p - %c{1} %m%n
+
+# Configure the service logger at INFO level. Writes only run-time/mediation-time audit messages
+log4j.category.SERVICE_LOGGER=INFO, SERVICE_APPENDER
+log4j.additivity.SERVICE_LOGGER=false
+log4j.appender.SERVICE_APPENDER=org.apache.log4j.RollingFileAppender
+log4j.appender.SERVICE_APPENDER.File=repository/logs/${instance.log}/wso2-cc${instance.log}.log
+log4j.appender.SERVICE_APPENDER.MaxFileSize=1000KB
+log4j.appender.SERVICE_APPENDER.MaxBackupIndex=10
+log4j.appender.SERVICE_APPENDER.layout=org.apache.log4j.PatternLayout
+log4j.appender.SERVICE_APPENDER.layout.ConversionPattern=%d{ISO8601} [%X{ip}-%X{host}] [%t] %5p %c{1} %m%n
+
+# The trace logger dumps enough information @INFO level, but maybe pushed upto TRACE.
+# Writes only run-time/mediation time tracing/debug messages for messages passing through trace
+# enabled sequences, mediators and services. Enabling tracing on these has a performance impact
+log4j.category.TRACE_LOGGER=INFO, TRACE_APPENDER
+log4j.additivity.TRACE_LOGGER=false
+log4j.appender.TRACE_APPENDER=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.TRACE_APPENDER.File=repository/logs/${instance.log}/wso2-cc-trace${instance.log}.log
+log4j.appender.TRACE_APPENDER.Append=true
+log4j.appender.TRACE_APPENDER.layout=org.apache.log4j.PatternLayout
+log4j.appender.TRACE_APPENDER.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%X{ip}-%X{host}] [%t] %5p %c{1} %m%n
+
+# CARBON_LOGFILE is set to be a DailyRollingFileAppender using a PatternLayout.
+log4j.appender.CARBON_LOGFILE=org.apache.log4j.DailyRollingFileAppender
+# Log file will be overridden by the configuration setting in the DB
+# This path should be relative to WSO2 Carbon Home
+log4j.appender.CARBON_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon${instance.log}.log
+log4j.appender.CARBON_LOGFILE.Append=true
+log4j.appender.CARBON_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
+# ConversionPattern will be overridden by the configuration setting in the DB
+log4j.appender.CARBON_LOGFILE.layout.ConversionPattern=TID: [%T] [%S] [%d] %P%5p {%c} - %x %m {%c}%n
+log4j.appender.CARBON_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
+log4j.appender.CARBON_LOGFILE.threshold=DEBUG
+
+# The standard error log where all the warnings, errors and fatal errors will be logged
+log4j.appender.ERROR_LOGFILE=org.apache.log4j.FileAppender
+log4j.appender.ERROR_LOGFILE.File=repository/logs/${instance.log}/wso2-cc-errors.log
+log4j.appender.ERROR_LOGFILE.layout=org.apache.log4j.PatternLayout
+log4j.appender.ERROR_LOGFILE.layout.ConversionPattern=%d{ISO8601} [%X{ip}-%X{host}] [%t] %5p %c{1} %m%n
+log4j.appender.ERROR_LOGFILE.threshold=WARN
+
+log4j.logger.org.apache.directory.shared.ldap=WARN, CARBON_CONSOLE
+log4j.logger.org.apache.directory.server.ldap.handlers=WARN, CARBON_CONSOLE
+log4j.logger.org.apache.directory.shared.ldap.entry.DefaultServerAttribute=FATAL, CARBON_CONSOLE
+log4j.logger.org.apache.directory.shared.ldap.ldif.LdifReader=ERROR, CARBON_CONSOLE
+log4j.logger.org.apache.directory.server.ldap.LdapProtocolHandler=ERROR, CARBON_CONSOLE
+
+# Appender config to send Atomikos transaction logs to new log file tm.out.
+log4j.appender.ATOMIKOS = org.apache.log4j.RollingFileAppender
+log4j.appender.ATOMIKOS.File = repository/logs/tm.out
+log4j.appender.ATOMIKOS.Append = true
+log4j.appender.ATOMIKOS.layout = org.apache.log4j.PatternLayout
+log4j.appender.ATOMIKOS.layout.ConversionPattern=%p %t %c - %m%n
+log4j.additivity.com.atomikos=false
+
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/rule-component.conf
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/rule-component.conf b/products/cloud-controller/modules/distribution/src/main/conf/rule-component.conf
new file mode 100644
index 0000000..1bd6c09
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/rule-component.conf
@@ -0,0 +1,3 @@
+<RuleServer>
+    <RuleEngineProvider class="org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory"/>
+</RuleServer>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/registry.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/registry.xml b/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/registry.xml
new file mode 100644
index 0000000..f259c7a
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/registry.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- Registry declaration of the WSO2 ESB -->
+<registry xmlns="http://ws.apache.org/ns/synapse" provider="org.wso2.carbon.mediation.registry.WSO2Registry">
+    <!--all resources loaded from the URL registry would be
+    cached for this number of milliseconds -->
+    <parameter name="cachableDuration">15000</parameter>
+</registry>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/errorHandler.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/errorHandler.xml b/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/errorHandler.xml
new file mode 100644
index 0000000..8621bee
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/errorHandler.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+    <sequence name="errorHandler" xmlns="http://ws.apache.org/ns/synapse">
+	<log level="full">
+        	<property name="MESSAGE" value="Executing default 'fault' sequence"/>
+        	<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
+        	<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
+    	</log>
+        <makefault response="true">
+            <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
+            <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/>
+        </makefault>
+        <send/>
+    </sequence>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml b/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml
new file mode 100644
index 0000000..9d2d8f7
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/fault.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- Default fault sequence shipped with the Apache Synapse -->
+<sequence xmlns="http://ws.apache.org/ns/synapse" name="fault">
+
+    <!-- Log the message at the full log level with the ERROR_MESSAGE and the ERROR_CODE-->
+    <!-- log level="full">
+        <property name="MESSAGE" value="Executing default 'fault' sequence"/>
+        <property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
+        <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
+    </log -->
+
+    <!-- Drops the messages by default if there is a fault -->
+    <script language="js"><![CDATA[
+        mc.setPayloadXML(
+           <{mc.getProperty("SERVICENAME")}Response xmlns="org.wso2.gateway">
+            <Timestamp>{new Date()}</Timestamp>
+            <Ack>Failure</Ack>
+            <Errors>
+             <ShortMessage>Gateway Error</ShortMessage>
+             <LongMessage>{mc.getProperty("ERROR_MESSAGE")}</LongMessage>
+             <ErrorCode>500</ErrorCode>
+             <SeverityCode>Error</SeverityCode>
+             <ErrorClassification>RequestError</ErrorClassification>
+            </Errors>
+            <ServiceName>{mc.getProperty("SERVICENAME")}</ServiceName>
+            <ResponseCode>{mc.getProperty("HTTP_SC")}</ResponseCode>
+            <ContentType>{mc.getProperty("Content-Type")}</ContentType>
+            <Version>1.5.1</Version>
+           </{mc.getProperty("SERVICENAME")}Response>
+        );
+      ]]></script>
+    <switch source="get-property('ERROR_CODE')">
+        <case regex="101504">   <!-- TIMEOUT ERROR -->
+            <property name="HTTP_SC" value="504" scope="axis2"/>
+            <sequence key="seq_timeout"/>
+        </case>
+        <case regex="303001">
+            <property name="HTTP_SC" value="503" scope="axis2"/>
+            <sequence key="seq_endpoint_down"/>
+        </case>
+        <case regex="111503">
+            <property name="HTTP_SC" value="503" scope="axis2"/>
+            <sequence key="seq_endpoint_down"/>
+        </case>
+        <default>
+            <property name="HTTP_SC" value="500" scope="axis2"/>
+        </default>
+    </switch>
+    <property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
+    <header name="To" action="remove"/>
+    <property name="RESPONSE" value="true"/>
+    <property name="messageType" value="text/xml" scope="axis2"/>
+    <property name="ContentType" value="text/xml" scope="axis2"/>
+
+    <send/>
+
+</sequence>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/main.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/main.xml b/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/main.xml
new file mode 100644
index 0000000..c4dbf5b
--- /dev/null
+++ b/products/cloud-controller/modules/distribution/src/main/conf/synapse-configs/default/sequences/main.xml
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- Default main sequence shipped with the WSO2 ESB -->
+<sequence xmlns="http://ws.apache.org/ns/synapse" name="main" onError="fault">
+    <description>The main sequence for the message mediation</description>
+
+    <in>
+        <property name="REQUEST_HOST_HEADER" expression="$trp:host" scope="axis2"/>
+        <property name="SERVICE_PREFIX" expression="$axis2:SERVICE_PREFIX"/>
+        <send>
+            <!--endpoint name="sdlbEndpoint">
+                <session type="http">-->
+                    <!-- Session timout is 15mins-->
+                    <!--sessionTimeout>900000</sessionTimeout>
+                </session>
+                <serviceDynamicLoadbalance failover="true"
+                                           algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"
+                                           configuration="$system:loadbalancer.xml"/>
+            </endpoint>
+            -->
+	          <!--endpoint name="tenantAwareLBEndpoint">
+                <class name ="org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint">
+                     <parameter name="algorithm"> org.apache.synapse.endpoints.algorithms.RoundRobin</parameter>
+                     <parameter name="configuration">$system:loadbalancer.conf</parameter>
+                     <parameter name="failover">true</parameter>          
+                     <parameter name="sessionTimeout">900000</parameter>
+  	            </class>
+ 	          </endpoint-->
+        </send>
+        <drop/>
+    </in>
+
+    <out>
+        <!-- Handling status codes: 301, 302 Redirection -->
+        <filter source="$trp:Location" regex=".+">
+            <property name="LB_SP_Host" expression="$ctx:SERVICE_PREFIX"
+                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="2"/>
+
+            <property name="LB_Location_Protocol" expression="$trp:Location"
+                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="1"/>
+            <property name="LB_Location_Host" expression="$trp:Location"
+                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="2"/>
+            <property name="LB_Location_Path" expression="$trp:Location"
+                      pattern="(^http.?://\b)(.*):(\d*)(.*)" group="4"/>
+
+            <!--<log level="custom">
+               <property name="ameera-ocation" expression="$trp:Location"/>
+               <property name="ameera-sprefix" expression="$ctx:SERVICE_PREFIX"/>
+           </log>-->
+
+            <filter xpath="fn:lower-case($ctx:LB_SP_Host)=fn:lower-case($ctx:LB_Location_Host)">
+                <then>
+                    <switch source="fn:lower-case($ctx:LB_Location_Protocol)">
+                        <case regex="https://">
+                            <property name="Location"
+                                      expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
+                                      scope="transport"/>
+                        </case>
+                        <case regex="http://">
+                            <property name="Location"
+                                      expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
+                                      scope="transport"/>
+                        </case>
+                    </switch>
+                </then>
+
+                <else>
+                    <filter xpath="$ctx:LB_REQUEST_HOST=fn:lower-case($ctx:LB_Location_Host)">
+                        <switch source="fn:lower-case($ctx:LB_Location_Protocol)">
+                            <case regex="https://">
+                                <property name="Location"
+                                          expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
+                                          scope="transport"/>
+                            </case>
+                            <case regex="http://">
+                                <property name="Location"
+                                          expression="fn:concat($ctx:LB_Location_Protocol,$ctx:LB_REQUEST_HOST,$ctx:LB_Location_Path)"
+                                          scope="transport"/>
+                            </case>
+                        </switch>
+                    </filter>
+                </else>
+            </filter>
+        </filter>
+
+        <!-- Send the messages where they have been sent (i.e. implicit To EPR) -->
+        <property name="messageType" value="text/html" scope="axis2"/>
+        <send/>
+        <drop/>
+    </out>
+
+</sequence>


[10/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/configurations.js
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/configurations.js b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/configurations.js
deleted file mode 100644
index 6a9d212..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/configurations.js
+++ /dev/null
@@ -1,381 +0,0 @@
-//service urls
-var managerUrl;
-var asUrl;
-var dssUrl;
-var esbUrl;
-var gregUrl;
-var msUrl;
-var gsUrl;
-var mbUrl;
-var cepUrl;
-var isUrl;
-var bpsUrl;
-var brsUrl;
-var bamUrl;
-var csgUrl;
-var linkSuffix;
-
-// array definitions to store service feature urls
-var managerFeaturesURL=new Array;
-var asFeaturesUrl = new Array;
-var dssFeaturesUrl = new Array;
-var esbFeaturesUrl = new Array;
-var gregFeaturesUrl = new Array;
-var msFeaturesUrl = new Array;
-var gsFeaturesUrl = new Array;
-var mbFeaturesUrl = new Array;
-var cepFeaturesUrl = new Array;
-var isFeaturesUrl = new Array;
-var bpsFeaturesUrl = new Array;
-var brsFeaturesUrl = new Array;
-var bamFeaturesUrl = new Array;
-var csgFeaturesUrl = new Array;
-
-
-// urls of features
-
-// Manager
-managerFeaturesURL[0]="/carbon/tenant-billing/past_invoice.jsp"; // link to billing component
-managerFeaturesURL[1]="/carbon/tenant-billing/docs/userguide.html"; // billing component docs
-managerFeaturesURL[2]="/carbon/tenant-usage/tenant_usage.jsp" ; // link to metering component
-managerFeaturesURL[3]="/carbon/tenant-usage/docs/userguide.html"
-managerFeaturesURL[4]="/carbon/account-mgt/account_mgt.jsp"
-managerFeaturesURL[5]="/carbon/account-mgt/docs/userguide.html"
-managerFeaturesURL[6]="/carbon/userstore/index.jsp"
-managerFeaturesURL[7]="/carbon/userstore/docs/userguide.html"
-//app server
-asFeaturesUrl[0]="/carbon/service-mgt/index.jsp";  // link to web service hosting
-asFeaturesUrl[1]="/carbon/service-mgt/docs/userguide.html"; //web service hosting docs
-asFeaturesUrl[2]="/carbon/webapp-mgt/upload.jsp";//web -app hosting
-asFeaturesUrl[3]="/carbon/webapp-mgt/docs/userguide.html";//web -app hosting docs
-asFeaturesUrl[4]="/carbon/tracer/index.jsp";//message tracing
-asFeaturesUrl[5]="/carbon/tracer/docs/userguide.html";//message tracing docs
-asFeaturesUrl[6]="/carbon/wsdl2code/index.jsp";//WSDL2Java Tool
-asFeaturesUrl[7]="/carbon/wsdl2code/docs/userguide.html";//WSDL2Java Tool docs
-asFeaturesUrl[8]="/carbon/java2wsdl/index.jsp";//Java2WSDL Tool
-asFeaturesUrl[9]="/carbon/java2wsdl/docs/userguide.html";//Java2WSDL Tool docs
-asFeaturesUrl[10]="/carbon/wsdl_validator/index.jsp";//WSDL Validator
-asFeaturesUrl[11]="/carbon/wsdl_validator/docs/userguide.html";//WSDL Validator docs
-asFeaturesUrl[12]="/carbon/modulemgt/index.jsp";//axis2 modules mgmnt
-asFeaturesUrl[13]="/carbon/modulemgt/docs/userguide.html";//axis2 modules mgmnt docs
-asFeaturesUrl[14]="/carbon/tryit/index.jsp";//Service testing
-asFeaturesUrl[15]="/carbon/tryit/docs/userguide.html";//service testing docs
-
-//bam server
-bamFeaturesUrl[0]="/carbon/bam-server-data/mediation_data.jsp";  // link to Real Time Mediation Monitoring
-bamFeaturesUrl[1]="/carbon/bam-server-data/docs/userguide.html";  // link to Real Time Mediation Monitoring docs
-bamFeaturesUrl[2]="/carbon/bam-server-data/mediation_analytics.jsp"; //link to Mediation Analysis
-bamFeaturesUrl[3]="/carbon/bam-server-data/docs/userguide.html"; //link to Mediation Analysis docs
-bamFeaturesUrl[4]="/carbon/bam-server-data/service_data.jsp";//link to Real time Service Monitoring
-bamFeaturesUrl[5]="/carbon/bam-server-data/docs/userguide.html";//link to Real time Service Monitoring docs
-bamFeaturesUrl[6]="";//link to Summary Generation
-bamFeaturesUrl[7]="";//link to Summary Generation
-bamFeaturesUrl[8]="/carbon/bam-server-data/service_stats.jsp";//link to Service Invocation Analysis
-bamFeaturesUrl[9]="/carbon/bam-server-data/docs/userguide.html";//link to Service Invocation Analysis docs
-bamFeaturesUrl[10]="/carbon/dashboard/index.jsp";//link to Dashboard
-bamFeaturesUrl[11]="/carbon/dashboard/docs/userguide.html";//link to Dashboard docs
-bamFeaturesUrl[12]="";//link to Activity Correlation and Monitoring
-bamFeaturesUrl[13]="";//link to Activity Correlation and Monitoring docs
-bamFeaturesUrl[14]="";//link to Message Collection and Archival
-bamFeaturesUrl[15]="";//link to Message Collection and Archival docs
-
-//bps server
-bpsFeaturesUrl[0]="";  // link to WS-BPEL 2.0 and BPELWS 1.1
-bpsFeaturesUrl[1]="/carbon/admin/docs/userguide.html";  // link to WS-BPEL 2.0 and BPELWS 1.1 docs
-bpsFeaturesUrl[2]="";  // link Secure Business Processes
-bpsFeaturesUrl[3]="/carbon/admin/docs/userguide.html";  // link Secure Business Processes docs
-bamFeaturesUrl[4]="";//link to Process Monitoring
-bamFeaturesUrl[5]="/carbon/admin/docs/userguide.html";//link to Process Monitoring docs
-bpsFeaturesUrl[6]=""; //link to Instance Data Cleanup
-bpsFeaturesUrl[7]="/carbon/admin/docs/userguide.html"; //link to Instance Data Cleanup docs
-bpsFeaturesUrl[8]=""; //link to BPEL Extensions
-bpsFeaturesUrl[9]="/carbon/admin/docs/userguide.html"; //link to BPEL Extensions docs
-bamFeaturesUrl[10]="";//link to Process Versioning
-bamFeaturesUrl[11]="/carbon/admin/docs/userguide.html";//link to Process Versioning docs
-
-//brs server
-brsFeaturesUrl[0]="/carbon/service-mgt/index.jsp";  // link to web service hosting support
-brsFeaturesUrl[1]="/carbon/service-mgt/docs/userguide.html"; //web service hosting docs
-brsFeaturesUrl[2]="/carbon/ruleservices/rule_service_wizard_step1.jsp";//Rule service creation support
-brsFeaturesUrl[3]="/carbon/ruleservices/docs/userguide.html";//Rule service creation support docs
-brsFeaturesUrl[4]="/carbon/resources/resource.jsp";//Registry as a Rule Repository
-brsFeaturesUrl[5]="/carbon/resources/docs/userguide.html";//Registry as a Rule Repository docs
-brsFeaturesUrl[6]="/carbon/tryit/index.jsp";//Service testing
-brsFeaturesUrl[7]="/carbon/tryit/docs/userguide.html";//service testing docs
-/*brsFeaturesUrl[8]="/carbon/tracer/index.jsp";//message tracing
-brsFeaturesUrl[9]="/carbon/tracer/docs/userguide.html";//message tracing docs
-brsFeaturesUrl[10]="/carbon/wsdl2code/index.jsp";//WSDL2Java Tool
-brsFeaturesUrl[11]="/carbon/wsdl2code/docs/userguide.html";//WSDL2Java Tool docs
-brsFeaturesUrl[12]="/carbon/java2wsdl/index.jsp";//Java2WSDL Tool
-brsFeaturesUrl[13]="/carbon/java2wsdl/docs/userguide.html";//Java2WSDL Tool docs
-brsFeaturesUrl[14]="/carbon/wsdl_validator/index.jsp";//WSDL Validator
-brsFeaturesUrl[15]="/carbon/wsdl_validator/docs/userguide.html";//WSDL Validator docs */
-
-//cep server
-cepFeaturesUrl[0]="/carbon/CEP/cep_queries.jsp"; // link to CEP buckets list
-cepFeaturesUrl[1]="/carbon/CEP/docs/userguide.html"; // link to CEP buckets doc
-cepFeaturesUrl[2]= "/carbon/resources/resource.jsp?region=region3&item=resource_browser_menu&viewType=std&path=/_system/governance/message" ; // path to registry stored message boxes
-cepFeaturesUrl[3]="/carbon/messagebox/docs/userguide.html"; // message box docs
-
-//dss server
-dssFeaturesUrl[0]="/carbon/service-mgt/index.jsp";  // link to Data Service Hosting
-dssFeaturesUrl[1]="/carbon/service-mgt/docs/userguide.html"; //Data Service Hosting docs
-dssFeaturesUrl[2]="/carbon/ds/scriptAddSource.jsp";//Data as a Service
-dssFeaturesUrl[3]="/carbon/ds/docs/userguide.html";//Data as a Service docs
-dssFeaturesUrl[4]="/carbon/tryit/index.jsp";//Service testing
-dssFeaturesUrl[5]="/carbon/tryit/docs/userguide.html";//service testing docs
-dssFeaturesUrl[6]="/carbon/tracer/index.jsp";//message tracing
-dssFeaturesUrl[7]="/carbon/tracer/docs/userguide.html";//message tracing docs
-dssFeaturesUrl[8]="/carbon/adminconsole/databases.jsp";//DB Explorer
-dssFeaturesUrl[9]="/carbon/adminconsole/docs/userguide.html";//DB Explorer docs
-/*dssFeaturesUrl[6]="/carbon/wsdl2code/index.jsp";//WSDL2Java Tool
-dssFeaturesUrl[7]="/carbon/wsdl2code/docs/userguide.html";//WSDL2Java Tool docs
-dssFeaturesUrl[8]="/carbon/java2wsdl/index.jsp";//Java2WSDL Tool
-dssFeaturesUrl[9]="/carbon/java2wsdl/docs/userguide.html";//Java2WSDL Tool docs
-dssFeaturesUrl[10]="/carbon/wsdl_validator/index.jsp";//WSDL Validator
-dssFeaturesUrl[11]="/carbon/wsdl_validator/docs/userguide.html";//WSDL Validator docs */
-
-//esb server
-esbFeaturesUrl[0]="/carbon/proxyservices/templates.jsp";  // Proxy Service
-esbFeaturesUrl[1]="/carbon/proxyservices/docs/userguide.html"; //Proxy Service docs
-esbFeaturesUrl[2]="/carbon/sequences/list_sequences.jsp";//Sequence
-esbFeaturesUrl[3]="/carbon/sequences/docs/userguide.html";//Sequence docs
-esbFeaturesUrl[4]="/carbon/endpoints/index.jsp";//Endpoint
-esbFeaturesUrl[5]="/carbon/endpoints/docs/userguide.html";//Endpoint docs
-esbFeaturesUrl[6]="/carbon/task/index.jsp";//Scheduled Tasks
-esbFeaturesUrl[7]="/carbon/task/docs/userguide.html";//Scheduled Tasks docs
-esbFeaturesUrl[8]="/carbon/message_processor/index.jsp";//Store and Forward
-esbFeaturesUrl[9]="/carbon/message_processor/docs/userguide.html";//Store and Forward docs
-esbFeaturesUrl[10]="/carbon/executors/list_executors.jsp";//Priority Execution
-esbFeaturesUrl[11]="/carbon/executors/docs/userguide.html";//Priority Execution docs
-esbFeaturesUrl[12]="/carbon/tryit/index.jsp";//Service testing
-esbFeaturesUrl[13]="/carbon/tryit/docs/userguide.html";//service testing docs
-esbFeaturesUrl[14]="/carbon/tracer/index.jsp";//message tracing
-esbFeaturesUrl[15]="/carbon/tracer/docs/userguide.html";//message tracing docs
-
-//greg server
-gregFeaturesUrl[0]="//carbon/services/services.jsp";  // Service
-gregFeaturesUrl[1]="/carbon/services/docs/userguide.html"; //Service docs
-gregFeaturesUrl[2]="/carbon/wsdl/wsdl.jsp";//WSDL
-gregFeaturesUrl[3]="/carbon/wsdl/docs/userguide.html";//WSDL docs
-gregFeaturesUrl[4]="/carbon/schema/schema.jsp";//Schema
-gregFeaturesUrl[5]="/carbon/schema/docs/userguide.html";//Schema docs
-gregFeaturesUrl[6]="/carbon/policy/policy.jsp";//Policy
-gregFeaturesUrl[7]="/carbon/policy/docs/userguide.html";//Policy docs
-gregFeaturesUrl[8]="/carbon/search/advancedSearch.jsp";//Search
-gregFeaturesUrl[9]="/carbon/search/docs/userguide.html";//Search docs
-gregFeaturesUrl[10]="/carbon/activities/activity.jsp";//Activities
-gregFeaturesUrl[11]="/carbon/activities/docs/userguide.html";//Activities docs
-gregFeaturesUrl[12]="/carbon/notifications/notifications.jsp";//Notifications
-gregFeaturesUrl[13]="/carbon/notifications/docs/userguide.html";//Notifications docs
-gregFeaturesUrl[14]="/carbon/extensions/add_extensions.jsp";//Extensions
-gregFeaturesUrl[15]="/carbon/extensions/docs/userguide.html";//Extensions docs
-
-//gs server
-gsFeaturesUrl[0]="";  // Enterprise Information Portal
-gsFeaturesUrl[1]=""; //Enterprise Information Portal docs
-gsFeaturesUrl[2]="";//Easy User Options
-gsFeaturesUrl[3]="";//Easy User Options docs
-gsFeaturesUrl[4]="";//Author Gadgets
-gsFeaturesUrl[5]="";//Author Gadgets docs
-gsFeaturesUrl[6]="";//Client-side Gadgets
-gsFeaturesUrl[7]="";//Client-side Gadgets docs
-gsFeaturesUrl[8]="";//Enterprise Gadget Repository
-gsFeaturesUrl[9]="";//Enterprise Gadget Repository docs
-gsFeaturesUrl[10]="";//Anonymous Mode
-gsFeaturesUrl[11]="";//Anonymous Mode docs
-gsFeaturesUrl[12]="";//Secure Sign-in Options
-gsFeaturesUrl[13]="";//Secure Sign-in Options docs
-gsFeaturesUrl[14]="";//Extensions Management Console
-gsFeaturesUrl[15]="";//Extensions Management Console docs
-
-//is server
-isFeaturesUrl[0]="/carbon/userprofile/index.jsp";  //User Profile
-isFeaturesUrl[1]="/carbon/userprofile/docs/userguide.html"; //User Profile docs
-isFeaturesUrl[2]="/carbon/identity-provider/index.jsp";//OpenID
-isFeaturesUrl[3]="/carbon/identity-provider/docs/userguide.html";//OpenID docs
-isFeaturesUrl[4]="/carbon/identity-provider/index.jsp";//Information Card
-isFeaturesUrl[5]="/carbon/identity-provider/docs/userguide.html";//Information Card docs
-isFeaturesUrl[6]="/carbon/sso-saml/manage_service_providers.jsp";//SAML 2.0 Single Sign-On
-isFeaturesUrl[7]="/carbon/sso-saml/docs/userguide.html";//SAML 2.0 Single Sign-On docs
-isFeaturesUrl[8]="/carbon/multi-factor/xmpp-config.jsp";//Multifactor Authentication
-isFeaturesUrl[9]="/carbon/multi-factor/docs/userguide.html";//Multifactor Authentication docs
-isFeaturesUrl[10]="/carbon/userstore/index.jsp";//Users and Roles
-isFeaturesUrl[11]="/carbon/userstore/docs/userguide.html";//Users and Roles docs
-isFeaturesUrl[12]="/carbon/identity-trusted-relying-parties/add-trusted-rp.jsp";//Relying Partie
-isFeaturesUrl[13]="/carbon/identity-trusted-relying-parties/docs/userguide.html";//Relying Partie docs
-isFeaturesUrl[14]="/carbon/keystoremgt/keystore-mgt.jsp";//Key Stores
-isFeaturesUrl[15]="/carbon/keystoremgt/docs/userguide.html";//Key Stores docs
-
-//mb server
-mbFeaturesUrl[0]="";  //Publish/Subscribe to Topics
-mbFeaturesUrl[1]=""; //Publish/Subscribe to Topics docs
-mbFeaturesUrl[2]="";//AMQP
-mbFeaturesUrl[3]="";//AMQP docs
-mbFeaturesUrl[4]="";//Topic Authorization
-mbFeaturesUrl[5]="";//Topic Authorization docs
-mbFeaturesUrl[6]="";//Manage topics and queues permissions
-mbFeaturesUrl[7]="";//Manage topics and queues permissions docs
-mbFeaturesUrl[8]="";//SQS support
-mbFeaturesUrl[9]="";//SQS support docs
-mbFeaturesUrl[10]="";//User based authorization for queues
-mbFeaturesUrl[11]="";//User based authorization for queues docs
-mbFeaturesUrl[12]="";//Manage message boxes
-mbFeaturesUrl[13]="";//Manage message boxes docs
-mbFeaturesUrl[14]="";//Message box as event sink
-mbFeaturesUrl[15]="";//Message box as event sink docs
-
-//ms server
-msFeaturesUrl[0]="/carbon/js_scraper/index.jsp";  //Scrape the Web
-msFeaturesUrl[1]="/carbon/js_scraper/docs/userguide.html"; //Scrape the Web docs
-msFeaturesUrl[2]="/carbon/js_service/newMashup.jsp";//Compose and Expose
-msFeaturesUrl[3]="/carbon/js_service/docs/userguide.html";//Compose and Expose docs
-msFeaturesUrl[4]="/carbon/task/index.jsp";//Schedule Tasks
-msFeaturesUrl[5]="/carbon/task/docs/userguide.html";//Schedule Tasks docs
-msFeaturesUrl[6]="";//Javascript Stubs
-msFeaturesUrl[7]="";//Javascript Stubs docs
-msFeaturesUrl[8]="/carbon/modulemgt/index.jsp";//Modules
-msFeaturesUrl[9]="/carbon/modulemgt/docs/userguide.html";//Modules docs
-msFeaturesUrl[10]="/carbon/tracer/index.jsp";//Message Tracing
-msFeaturesUrl[11]="/carbon/tracer/docs/userguide.html";//Message Tracing docs
-/*msFeaturesUrl[12]="";//Caching & Throttling
-msFeaturesUrl[13]="";//Caching & Throttling docs
-msFeaturesUrl[14]="";//service testing
-msFeaturesUrl[15]="";//service testing docs */
-
-
-//csg server
-csgFeaturesUrl[0]="/carbon/service-mgt/index.jsp";  
-csgFeaturesUrl[1]="/carbon/service-mgt/docs/userguide.html"; 
-
-// functions to generate urls of features upon onclick
-
- function generateManagerFeatureUrl(which){
-	var featureUrl=managerFeaturesURL[which];
-	return window.open(featureUrl,'_self',false);
- }
-
-
-function generateAsFeatureUrl(which){
-	var featureUrl=window.asUrl + asFeaturesUrl[which];
-	window.open(featureUrl);
- }
-
-function generateBamFeatureUrl(which){
-	var featureUrl=window.bamUrl + bamFeaturesUrl[which];
-	window.open(featureUrl);
- }
-
-function generateBpsFeatureUrl(which){
-	var featureUrl=window.bpsUrl + bpsFeaturesUrl[which];
-	window.open(featureUrl);
- }
-
-function generateBrsFeatureUrl(which){
-	var featureUrl=window.brsUrl + brsFeaturesUrl[which];
-	window.open(featureUrl);
- }
-function generateCepFeatureUrl(which){
-	var featureUrl=window.cepUrl + cepFeaturesUrl[which];
-	window.open(featureUrl);
- }
-function generateDssFeatureUrl(which){
-	var featureUrl=window.dssUrl + dssFeaturesUrl[which];
-	window.open(featureUrl);
- }
-function generateEsbFeatureUrl(which){
-	var featureUrl=window.esbUrl + esbFeaturesUrl[which];
-	window.open(featureUrl);
- }
-function generateGregFeatureUrl(which){
-	var featureUrl=window.gregUrl + gregFeaturesUrl[which];
-	window.open(featureUrl);
- }
-function generateGsFeatureUrl(which){
-	var featureUrl=window.gsUrl + gsFeaturesUrl[which];
-	window.open(featureUrl);
- }
-function generateIsFeatureUrl(which){
-	var featureUrl=window.isUrl + isFeaturesUrl[which];
-	window.open(featureUrl);
- }
-
-function generateMbFeatureUrl(which){
-	var featureUrl=window.mbUrl + mbFeaturesUrl[which];
-	window.open(featureUrl);
- }
-function generateMsFeatureUrl(which){
-	var featureUrl=window.msUrl + msFeaturesUrl[which];
-	window.open(featureUrl);
- }
-function generateCsgFeatureUrl(which){
-	var featureUrl=window.csgUrl + csgFeaturesUrl[which];
-	window.open(featureUrl);
- }
-
-
-// functions to set the urls of services
-
-
-function gotoAppServer(){
-  window.open(asUrl,'_newtab')  ;
-}
-
-function gotoDss(){
-  window.open(dssUrl,'_newtab')  ;
-}
-
-function gotoEsb(){
-  window.open(esbUrl,'_newtab')  ;
-}
-
-
-function gotoMs(){
-  window.open(msUrl,'_newtab')  ;
-}
-
-function gotoIs(){
-  window.open(isUrl,'_newtab')  ;
-}
-
-function gotoGreg(){
-  window.open(gregUrl,'_newtab')  ;
-}
-
-function gotoGs(){
-  window.open(gsUrl,'_newtab')  ;
-}
-
-function gotoBam(){
-  window.open(bamUrl,'_newtab')  ;
-}
-
-
-function gotoBps(){
-  window.open(bpsUrl,'_newtab')  ;
-}
-
-
-function gotoBrs(){
-  window.open(brsUrl,'_newtab')  ;
-}
-
-function gotoCep(){
-  window.open(cepUrl,'_newtab')  ;
-}
-
-function gotoMb(){
-  window.open(mbUrl,'_newtab')  ;
-}
-
-function gotoCsg(){
-  window.open(csgUrl,'_newtab')  ;
-}
-
-
-
-
-
-
-
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/dashboard.js
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/dashboard.js b/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/dashboard.js
deleted file mode 100644
index e294f8c..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/dashboard.js
+++ /dev/null
@@ -1,12 +0,0 @@
-function execOnPageLoad() {
-    // currently not used
-}
-
-function onChangeServiceSubscription() {
-    sessionAwareFunction(function() {
-        
-        var cloudServiceForm = document.getElementById("cloudService");
-        cloudServiceForm.submit();
-        
-    }, org_wso2_stratos_manager_dashboard_ui_jsi18n["session.timed.out"]);
-}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/INSTALL.txt
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/INSTALL.txt b/products/stratos_controller/modules/distribution/INSTALL.txt
deleted file mode 100755
index 31ea2f5..0000000
--- a/products/stratos_controller/modules/distribution/INSTALL.txt
+++ /dev/null
@@ -1,61 +0,0 @@
-Installing  Apache Stratos Controller (SC) 1.0.1
-===============================================
-
-Standalone Mode
-===============
-1. The directory containing this INSTALL file will be the root and it will be
-   treated as Carbon home directory and let it be CARBON_HOME.
-
-2. All the shell scripts and .bat files are available in CARBON_HOME/bin directory.
-
-3. To start SC one can use either stratos.sh or daemon.sh in all *nix
-   system & stratos.bat file on Windows operating systems.
-
-4. Either of the following commands can be used to start Stratos-Manager
-     i)  ./stratos.sh {console|start|stop|restart|status|dump|version}
-    ii)  stratos.bat {start|stop|version}
-
-            Usage: stratos.sh [command] [system-properties]
-
-            command:
-                --debug <port> 	Start the server in remote debugging mode.
-                        port: The remote debugging port.
-                --start		Start Carbon as a Unix daemon in the background
-                --stop		Stop the Carbon Unix daemon
-                --restart	Restart the Carbon Unix daemon
-                --cleanRegistry	Clean registry space. [CAUTION] All Registry data will be lost.
-                --version	What version of the product are you running?
-
-            system-properties:
-                -DhttpPort=<httpPort>		Overrides the HTTP port defined in the catalina-server.xml file
-                -DhttpsPort=<httpsPort>		Overrides the HTTPS port defined in the catalina-server.xml file
-                -DosgiConsole=[port]		Start Carbon with Equinox OSGi console.
-                                            If the optional 'port' parameter is provided, a telnet port will be opened
-                -DosgiDebugOptions=[options-file]
-                                            Start Carbon with OSGi debugging enabled.
-                                            If the optional 'options-file is provided, the OSGi debug options will be loaded from it.
-                -Dsetup				        Clean the Registry & other configuration, recreate DB, re-populate the configuration, and start Carbon
-                -DserverRoles=<roles>		A comma separated list of roles. Used in deploying cApps
-                -Dcarbon.use.registry.repo	Use registry based repository.
-                -DdisableHttpLog		    Disable HTTP access logging
-                -DapplyPatches			    Use this system property when there are patches to be applied/reverted to/from the system.
-                                            Drop the patches to $CARBON_HOME/repository/componenets/patches directory and restart the system with this property.
-                                            When you want to revert a patch, delete it from the patches directory and restart the system with this property
-                -DworkerNode=true			This is required in clustered setups with master and worker nodes, not applicable for Stratos Controller.
-
-
-
-System Requirements
-===================
-1. Minimum memory - 1 GB
-2. Processor      - Pentium 800MHz or equivalent at minimum
-3. JDK - 1.6.x (1.6.0_24 onwards recommended for production)
-4. The Management Console requires you to enable Javascript of the Web browser,
-   with MS IE 6 and 7. In addition to JavaScript, ActiveX should also be enabled
-   with IE. This can be achieved by setting your security level to
-   medium or lower.
-   NOTE:
-     On Windows Server 2003, it is not allowed to go below the medium security
-     level in Internet Explorer 6.x and the default medium security setting with
-     IE does not allow sufficient level of JS or ActiveX enablement for the
-     management console to run.

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/LICENSE.txt
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/LICENSE.txt b/products/stratos_controller/modules/distribution/LICENSE.txt
deleted file mode 100755
index bb5a3f4..0000000
--- a/products/stratos_controller/modules/distribution/LICENSE.txt
+++ /dev/null
@@ -1,488 +0,0 @@
-
-This product is licensed by WSO2 Inc. under Apache License 2.0. The license
-can be downloaded from the following locations:
-	http://www.apache.org/licenses/LICENSE-2.0.html
-	http://www.apache.org/licenses/LICENSE-2.0.txt
-
-This product also contains software under different licenses. This table below
-all the contained libraries (jar files) and the license under which they are 
-provided to you.
-
-At the bottom of this file is a table that shows what each license indicated
-below is and where the actual text of the license can be found.
-
-Name                                                                            Type           License   
----------------------------------------------------------------------------------------------------------
-abdera_1.0.0.wso2v3.jar                                                         bundle         apache2   
-addressing-1.6.1-wso2v9.mar                                                     bundle         apache2   
-ajaxtags_1.3.0.beta-rc7-wso2v1.jar                                              bundle         apache2   
-andes-client_0.13.0.wso2v6.jar                                                  bundle         apache2   
-annogen_0.1.0.wso2v1.jar                                                        bundle         apache2   
-antlr-runtime_3.2.0.wso2v1.jar                                                  bundle         bsd       
-antlr_2.7.7.wso2v1.jar                                                          bundle         bsd       
-antlr_3.2.0.wso2v1.jar                                                          bundle         bsd       
-ant_1.7.0.wso2v1.jar                                                            bundle         apache2   
-apache-cassandra_1.1.3.wso2v2.jar                                               bundle         apache2   
-apache-zookeeper_3.3.6.wso2v1.jar                                               bundle         apache2   
-atomikos_3.8.0.wso2v1.jar                                                       bundle         apache2   
-authenticator_0.7.0.wso2v1.jar                                                  bundle         apache2   
-axiom_1.2.11.wso2v4.jar                                                         bundle         apache2   
-axis2-json_1.6.1.wso2v9.jar                                                     bundle         apache2   
-axis2-transport-jms_1.1.0.wso2v7.jar                                            bundle         apache2   
-axis2_1.6.1.wso2v9.jar                                                          bundle         apache2   
-axis_1.4.0.wso2v1.jar                                                           bundle         apache2   
-backport-util-concurrent_3.1.0.wso2v1.jar                                       bundle         public    
-batik-anim-1.7.jar                                                              jarinbundle    apache2   
-batik-awt-util-1.7.jar                                                          jarinbundle    apache2   
-batik-bridge-1.7.jar                                                            jarinbundle    apache2   
-batik-codec-1.7.jar                                                             jarinbundle    apache2   
-batik-css-1.7.jar                                                               jarinbundle    apache2   
-batik-dom-1.7.jar                                                               jarinbundle    apache2   
-batik-ext-1.7.jar                                                               jarinbundle    apache2   
-batik-extension-1.7.jar                                                         jarinbundle    apache2   
-batik-gui-util-1.7.jar                                                          jarinbundle    apache2   
-batik-gvt-1.7.jar                                                               jarinbundle    apache2   
-batik-js-1.7.jar                                                                jarinbundle    apache2   
-batik-parser-1.7.jar                                                            jarinbundle    apache2   
-batik-script-1.7.jar                                                            jarinbundle    apache2   
-batik-slideshow-1.7.jar                                                         jarinbundle    apache2   
-batik-svg-dom-1.7.jar                                                           jarinbundle    apache2   
-batik-svggen-1.7.jar                                                            jarinbundle    apache2   
-batik-swing-1.7.jar                                                             jarinbundle    apache2   
-batik-transcoder-1.7.jar                                                        jarinbundle    apache2   
-batik-util-1.7.jar                                                              jarinbundle    apache2   
-batik-xml-1.7.jar                                                               jarinbundle    apache2   
-batik_1.7.0.wso2v1.jar                                                          bundle         apache2   
-bcprov-jdk15-132.jar                                                            jarinbundle    bouncy    
-bcprov-jdk15-132.jar                                                            jar            bouncy    
-bcprov-jdk15.jar                                                                jar            mit       
-com.google.gson_2.1.0.jar                                                       bundle         apache2   
-commons-beanutils-1.7.0.jar                                                     jarinbundle    apache2   
-commons-beanutils-1.8.0.jar                                                     jarinbundle    apache2   
-commons-beanutils_1.8.0.wso2v1.jar                                              bundle         apache2   
-commons-codec_1.4.0.wso2v1.jar                                                  bundle         apache2   
-commons-collections-3.2.0.wso2v1.jar                                            bundle         apache2   
-commons-collections_3.2.0.wso2v1.jar                                            bundle         apache2   
-commons-configuration_1.6.0.wso2v1.jar                                          bundle         apache2   
-commons-dbcp_1.4.0.wso2v1.jar                                                   bundle         apache2   
-commons-digester-1.8.1.jar                                                      jarinbundle    apache2   
-commons-digester-1.8.jar                                                        jarinbundle    apache2   
-commons-digester_1.8.1.wso2v1.jar                                               bundle         apache2   
-commons-discovery-0.2.jar                                                       jarinbundle    apache2   
-commons-fileupload_1.2.2.wso2v1.jar                                             bundle         apache2   
-commons-httpclient_3.1.0.wso2v2.jar                                             bundle         apache2   
-commons-io_2.0.0.wso2v2.jar                                                     bundle         apache2   
-commons-lang-2.6.0.wso2v1.jar                                                   bundle         apache2   
-commons-lang_2.6.0.wso2v1.jar                                                   bundle         apache2   
-commons-pool_1.5.6.wso2v1.jar                                                   bundle         apache2   
-compass_2.0.1.wso2v2.jar                                                        bundle         apache2   
-drools_5.2.1.wso2v1.jar                                                         bundle         apache2   
-ehcache_1.5.0.wso2v3.jar                                                        bundle         apache2   
-el-impl_2.2.0.wso2v1.jar                                                        bundle         cddl1     
-fop-0.94.jar                                                                    jarinbundle    apache2   
-geronimo-jms_1.1_spec-1.1.0.wso2v1.jar                                          bundle         apache2   
-geronimo-saaj_1.3_spec_1.0.0.wso2v3.jar                                         bundle         apache2   
-geronimo-stax-api_1.0_spec-1.0.1.wso2v2.jar                                     bundle         apache2   
-gitblit_1.2.0.wso2v1.jar                                                        bundle         apache2   
-guava_12.0.0.wso2v1.jar                                                         bundle         apache2   
-guice_3.0.0.wso2v1.jar                                                          bundle         apache2   
-h2-1.2.140-wso2v3.jar                                                           bundle         epl1      
-h2-database-engine_1.2.140.wso2v3.jar                                           bundle         epl1      
-hadoop-core_0.20.203.wso2v2.jar                                                 bundle         apache2   
-hector-core_1.1.0.wso2v1.jar                                                    bundle         mit       
-high-scale-lib_1.1.2.wso2v1.jar                                                 bundle         public    
-httpclient-4.1.1-wso2v1.jar                                                     bundle         apache2   
-httpclient_4.1.1.wso2v1.jar                                                     bundle         apache2   
-httpcore_4.1.0.wso2v1.jar                                                       bundle         apache2   
-httpcore_4.2.3.wso2v1.jar                                                       bundle         apache2   
-infinispan-core_5.1.2.wso2v1.jar                                                bundle         lgpl2     
-itext-2.1.7.jar                                                                 jarinbundle    mpl10     
-itext_2.1.7.wso2v1.jar                                                          bundle         mpl11     
-janino_2.5.15.wso2v1.jar                                                        bundle         bsd       
-jasper-jdt_6.0.18.wso2v1.jar                                                    bundle         apache2   
-jasperreports_4.5.0.wso2v1.jar                                                  bundle         lgpl3     
-javasysmon_0.3.3.wso2v1.jar                                                     bundle         jsmon     
-javax.el_2.2.0.v201108011116.jar                                                bundle         cddl1     
-javax.servlet.jsp_2.2.0.v201112011158.jar                                       bundle         cddl1     
-javax.servlet_3.0.0.v201112011016.jar                                           bundle         cddl1     
-jaxb-api-2.2.6.jar                                                              jar            cddl+gpl  
-jaxb_2.2.5.wso2v1.jar                                                           bundle         cddl1     
-jboss-logging_3.1.0.wso2v1.jar                                                  bundle         lgpl2     
-jboss-transaction-api_1.1_spec-1.0.0.Final.jar                                  jar            lgpl2     
-jcommon-1.0.15.jar                                                              jarinbundle    lgpl2     
-jcommon_1.0.15.wso2v1.jar                                                       bundle         lgpl2     
-jdbc-pool_7.0.34.wso2v1.jar                                                     bundle         apache2   
-jdom_1.0.0.wso2v1.jar                                                           bundle         jdom      
-jericho-html-2.4.jar                                                            jarinbundle    epl1      
-jettison_1.1.0.wso2v1.jar                                                       bundle         apache2   
-jfreechart-1.0.13.jar                                                           jarinbundle    lgpl2     
-jfreechart_1.0.13.wso2v1.jar                                                    bundle         lgpl2     
-jgroups_3.0.6.wso2v1.jar                                                        bundle         lgpl2     
-joda-time_1.6.0.wso2v1.jar                                                      bundle         apache2   
-jsch_0.1.49.wso2v1.jar                                                          bundle         apache2   
-json_2.0.0.wso2v1.jar                                                           bundle         json      
-jsr107cache_1.1.0.wso2v3.jar                                                    bundle         apache2   
-jsr94_1.1.0.wso2v1.jar                                                          bundle         beajsr94  
-jstl_1.2.1.wso2v1.jar                                                           bundle         cddl1     
-jxl_2.6.8.wso2v1.jar                                                            bundle         lgpl2     
-kaptcha_2.3.0.wso2v1.jar                                                        bundle         apache2   
-libthrift_0.7.0.wso2v2.jar                                                      bundle         apache2   
-log4j-1.2.13.jar                                                                jar            apache2   
-marshalling_1.3.6.wso2v1.jar                                                    bundle         lgpl2     
-mvel2_2.1.0.wso2v1.jar                                                          bundle         apache2   
-neethi_2.0.4.wso2v4.jar                                                         bundle         apache2   
-nekohtml-1.9.7.jar                                                              jarinbundle    apache2   
-opencsv-1.8.jar                                                                 jarinbundle    apache2   
-opencsv_1.8.0.wso2v1.jar                                                        bundle         apache2   
-openid4java-nodeps_0.9.6.wso2v2.jar                                             bundle         apache2   
-opensaml-1.1.406.jar                                                            jarinbundle    apache2   
-opensaml-2.4.1.jar                                                              jarinbundle    apache2   
-opensaml2_2.4.1.wso2v1.jar                                                      bundle         apache2   
-openws-1.4.1.jar                                                                jarinbundle    apache2   
-openxri-client-1.2.0.jar                                                        jarinbundle    apache2   
-openxri-syntax-1.2.0.jar                                                        jarinbundle    apache2   
-org.apache.felix.gogo.command_0.8.0.v201108120515.jar                           bundle         apache2   
-org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar                           bundle         apache2   
-org.apache.felix.gogo.shell_0.8.0.v201110170705.jar                             bundle         apache2   
-org.apache.jasper.glassfish_2.2.2.v201205150955.jar                             bundle         apache2   
-org.eclipse.core.contenttype_3.4.200.v20120523-2004.jar                         bundle         epl1      
-org.eclipse.core.expressions_3.4.401.v20120627-124442.jar                       bundle         epl1      
-org.eclipse.core.jobs_3.5.300.v20120622-204750.jar                              bundle         epl1      
-org.eclipse.core.runtime_3.8.0.v20120521-2346.jar                               bundle         epl1      
-org.eclipse.ecf.filetransfer_5.0.0.v20110531-2218.jar                           bundle         epl1      
-org.eclipse.ecf.identity_3.1.100.v20110531-2218.jar                             bundle         epl1      
-org.eclipse.ecf.provider.filetransfer.httpclient_4.0.200.v20120319-0616.jar     bundle         epl1      
-org.eclipse.ecf.provider.filetransfer_3.2.0.v20110531-2218.jar                  bundle         epl1      
-org.eclipse.ecf_3.1.300.v20110531-2218.jar                                      bundle         epl1      
-org.eclipse.equinox.app_1.3.100.v20120522-1841.jar                              bundle         epl1      
-org.eclipse.equinox.common_3.6.100.v20120522-1841.jar                           bundle         epl1      
-org.eclipse.equinox.concurrent_1.0.300.v20120522-2049.jar                       bundle         epl1      
-org.eclipse.equinox.console_1.0.0.v20120522-1841.jar                            bundle         epl1      
-org.eclipse.equinox.ds_1.4.0.v20120522-1841.jar                                 bundle         epl1      
-org.eclipse.equinox.frameworkadmin.equinox_1.0.400.v20120428-0117.jar           bundle         epl1      
-org.eclipse.equinox.frameworkadmin_2.0.100.v20120606-175127.jar                 bundle         epl1      
-org.eclipse.equinox.http.helper_1.1.0.wso2v1.jar                                bundle         epl1      
-org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar                     bundle         epl1      
-org.eclipse.equinox.jsp.jasper_1.0.400.v20120522-2049.jar                       bundle         epl1      
-org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar                           bundle         epl1      
-org.eclipse.equinox.p2.artifact.repository_1.1.100.v20110519.jar                bundle         epl1      
-org.eclipse.equinox.p2.console_1.0.300.v20110502-1955.jar                       bundle         epl1      
-org.eclipse.equinox.p2.core_2.1.0.v20110502-1955.jar                            bundle         epl1      
-org.eclipse.equinox.p2.director.app_1.0.300.v20110505.jar                       bundle         epl1      
-org.eclipse.equinox.p2.directorywatcher_1.0.300.v20110502-1955.jar              bundle         epl1      
-org.eclipse.equinox.p2.director_2.1.0.v20110504-1715.jar                        bundle         epl1      
-org.eclipse.equinox.p2.engine_2.1.0.v20110511.jar                               bundle         epl1      
-org.eclipse.equinox.p2.extensionlocation_1.2.100.v20110510.jar                  bundle         epl1      
-org.eclipse.equinox.p2.garbagecollector_1.0.200.v20110510.jar                   bundle         epl1      
-org.eclipse.equinox.p2.jarprocessor_1.0.200.v20110502-1955.jar                  bundle         epl1      
-org.eclipse.equinox.p2.metadata.repository_1.2.0.v20110511-1359.jar             bundle         epl1      
-org.eclipse.equinox.p2.metadata_2.1.0.v20110510.jar                             bundle         epl1      
-org.eclipse.equinox.p2.publisher_1.2.0.v20110511.jar                            bundle         epl1      
-org.eclipse.equinox.p2.repository.tools_2.0.100.v20110512-1320.jar              bundle         epl1      
-org.eclipse.equinox.p2.repository_2.1.0.v20110601.jar                           bundle         epl1      
-org.eclipse.equinox.p2.touchpoint.eclipse_2.1.0.v20110511-wso2v1.jar            bundle         epl1      
-org.eclipse.equinox.p2.touchpoint.natives_1.0.300.v20110502-1955.jar            bundle         epl1      
-org.eclipse.equinox.p2.transport.ecf_1.0.100.v20110902-0807.jar                 bundle         epl1      
-org.eclipse.equinox.p2.updatechecker_1.1.200.v20110502-1955.jar                 bundle         epl1      
-org.eclipse.equinox.p2.updatesite_1.0.300.v20110510.jar                         bundle         epl1      
-org.eclipse.equinox.preferences_3.5.0.v20120522-1841.jar                        bundle         epl1      
-org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar                         bundle         epl1      
-org.eclipse.equinox.security_1.1.100.v20120522-1841.jar                         bundle         epl1      
-org.eclipse.equinox.simpleconfigurator.manipulator_2.0.0.v20110808-1657.jar     bundle         epl1      
-org.eclipse.equinox.simpleconfigurator_1.0.301.v20120828-033635.jar             bundle         epl1      
-org.eclipse.equinox.util_1.0.400.v20120522-2049.jar                             bundle         epl1      
-org.eclipse.jgit_2.1.0.wso2v1.jar                                               bundle         apache2   
-org.eclipse.osgi.services_3.3.100.v20120522-1822.jar                            bundle         epl1      
-org.eclipse.osgi_3.8.1.v20120830-144521.jar                                     bundle         epl1      
-org.sat4j.core_2.3.0.v20110329.jar                                              bundle         epl1      
-org.sat4j.pb_2.3.0.v20110329.jar                                                bundle         epl1      
-org.wso2.carbon.account.mgt.stub_4.1.3.jar                                      bundle         apache2   
-org.wso2.carbon.account.mgt.ui_2.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.account.mgt_2.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.activation_2.1.2.jar                                            bundle         apache2   
-org.wso2.carbon.adc.mgt.stub_4.1.3.jar                                          bundle         apache2   
-org.wso2.carbon.adc.mgt_2.1.3.jar                                               bundle         apache2   
-org.wso2.carbon.adc.reponotification.service.stub_4.1.1.jar                     bundle         apache2   
-org.wso2.carbon.adc.topology.mgt_2.1.3.jar                                      bundle         apache2   
-org.wso2.carbon.addressing_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.admin.mgt.stub_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.admin.mgt.ui_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.admin.mgt_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.apache.jasper.fragment_4.1.0.jar                                bundle         apache2   
-org.wso2.carbon.application.deployer_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.application.upload_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.authenticator.proxy_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.authenticator.stub_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.base_4.1.0.jar                                                  bundle         apache2   
-org.wso2.carbon.billing.core_2.1.3.jar                                          bundle         apache2   
-org.apache.stratos.billing.mgt.stub_4.1.0.jar                                      bundle         apache2
-org.wso2.carbon.billing.mgt.ui_2.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.billing.mgt_2.1.3.jar                                           bundle         apache2   
-org.wso2.carbon.bootstrap-4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.bridge-4.1.0.jar                                                bundle         apache2   
-org.wso2.carbon.business.messaging.paypal.integration.core_4.1.0.jar            bundle         apache2   
-org.wso2.carbon.caching.core_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.captcha.mgt_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.cartridge.mgt.ui_2.1.3.jar                                      bundle         apache2   
-org.wso2.carbon.cluster.mgt.core_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.coordination.common_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.coordination.core_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.core.bootup.validator_4.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.core.commons.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.core.common_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.core.services_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.core_4.1.0.jar                                                  bundle         apache2   
-org.wso2.carbon.databridge.agent.thrift_4.1.0.jar                               bundle         apache2   
-org.wso2.carbon.databridge.commons.thrift_4.1.0.jar                             bundle         apache2   
-org.wso2.carbon.databridge.commons_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.email.sender_2.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.email.verification.stub_4.1.0.jar                               bundle         apache2   
-org.wso2.carbon.email.verification.ui_4.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.email.verification_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.event.admin_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.event.client.stub-4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.event.client.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.event.client_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.event.common_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.event.core_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.event.ws_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.feature.mgt.core_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.feature.mgt.services_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.feature.mgt.stub_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.feature.mgt.ui_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.framework.exporter_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.google.analytics.ui_2.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.http.bridge-4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.i18n_4.1.0.jar                                                  bundle         apache2   
-org.wso2.carbon.identity.authenticator.saml2.sso.common_4.1.0.jar               bundle         apache2   
-org.wso2.carbon.identity.authenticator.saml2.sso.stub_4.1.0.jar                 bundle         apache2   
-org.wso2.carbon.identity.authenticator.saml2.sso.ui_4.1.0.jar                   bundle         apache2   
-org.wso2.carbon.identity.authenticator.saml2.sso_4.1.0.jar                      bundle         apache2   
-org.wso2.carbon.identity.base_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.identity.core_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.identity.menu.ui_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.identity.provider.openid.stub_4.1.0.jar                         bundle         apache2   
-org.wso2.carbon.identity.provider.openid.ui_4.1.0.jar                           bundle         apache2   
-org.wso2.carbon.identity.provider.openid_4.1.0.jar                              bundle         apache2   
-org.wso2.carbon.identity.provider_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.identity.relyingparty.stub_4.1.0.jar                            bundle         apache2   
-org.wso2.carbon.identity.relyingparty.ui_4.1.0.jar                              bundle         apache2   
-org.wso2.carbon.identity.relyingparty_4.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.identity.sso.saml.stub_4.1.0.jar                                bundle         apache2   
-org.wso2.carbon.identity.sso.saml.ui_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.identity.sso.saml_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.jasper.patch_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.keystore.mgt_2.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.lb.common_4.1.3.jar                                             bundle         apache2   
-org.wso2.carbon.load.balance.agent_2.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.load.balance.cartridge.autoscaler.service.stub_4.1.3.jar        bundle         apache2   
-org.wso2.carbon.logging-4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.logging.admin.stub_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.logging.admin.ui_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.logging.service_4.1.1.jar                                       bundle         apache2   
-org.wso2.carbon.logging.view.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.logging.view.ui_4.1.1.jar                                       bundle         apache2   
-org.wso2.carbon.logging_4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.mediator.bridge-4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.ndatasource.common_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.ndatasource.core_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.ndatasource.rdbms_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.ntask.common_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.ntask.core_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.ntask.solutions_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.osgi.security_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.payment.paypal_2.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.payment.stub_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.payment.ui_2.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.qpid.stub_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.queuing_4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.redirector.servlet.stub_4.1.0.jar                               bundle         apache2   
-org.wso2.carbon.redirector.servlet.ui_2.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.redirector.servlet_2.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.register.ui_2.1.1.jar                                           bundle         apache2   
-org.wso2.carbon.registry.admin.api_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.registry.api_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.registry.common.ui_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.registry.common_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.registry.core_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.registry.properties.stub_4.1.0.jar                              bundle         apache2   
-org.wso2.carbon.registry.properties.ui_4.1.0.jar                                bundle         apache2   
-org.wso2.carbon.registry.properties_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.registry.resource.stub_4.1.0.jar                                bundle         apache2   
-org.wso2.carbon.registry.resource.ui_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.registry.resource_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.registry.search.stub_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.registry.search.ui_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.registry.search_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.registry.server_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.registry.servlet_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.remote-tasks.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.reporting.api_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.reporting.core_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.reporting.util_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.roles.mgt.stub_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.roles.mgt.ui_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.roles.mgt_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.rule.backend_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.rule.common_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.rule.kernel_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.rule.ws.admin_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.rule.ws_4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.securevault_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.security.mgt.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.security.mgt.ui_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.security.mgt_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.server-4.1.0.jar                                                bundle         apache2   
-org.wso2.carbon.server.admin.common_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.server.admin.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.server.admin.ui_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.server.admin_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.service.mgt_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.servletbridge-4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.sso.redirector.ui_2.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.stratos.common.stub_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.stratos.common_2.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.stratos.landing.page.deployer_2.1.0.jar                         bundle         apache2   
-org.apache.stratos.manager.dashboard.stub_4.1.0.jar                        bundle         apache2
-org.wso2.carbon.task.services_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.task_4.1.0.jar                                                  bundle         apache2   
-org.wso2.carbon.tenant.activity_2.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.tenant.dispatcher_2.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.tenant.mgt.core_2.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.tenant.mgt.email.sender_2.1.0.jar                               bundle         apache2   
-org.wso2.carbon.tenant.mgt.stub_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.tenant.mgt.ui_2.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.tenant.mgt_2.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.tenant.register.stub_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.theme.mgt.stub_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.theme.mgt.ui_2.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.theme.mgt_2.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.throttling.agent.stub_4.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.throttling.agent_2.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.throttling.manager_2.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.throttling.stub_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.throttling.ui_2.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.tomcat.ext_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.tomcat.fragment.dummy_4.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.tomcat.patch_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.tomcat_4.1.0.jar                                                bundle         apache2   
-org.wso2.carbon.transaction.manager_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.transport.https_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.transport.http_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.transport.local_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.transport.mgt_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.ui.menu.general_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.ui.menu.registry_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.ui.menu.tools_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.ui_4.1.0.jar                                                    bundle         apache2   
-org.wso2.carbon.usage.agent_2.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.usage.stub_4.1.3.jar                                            bundle         apache2   
-org.wso2.carbon.usage.ui_2.1.3.jar                                              bundle         apache2   
-org.wso2.carbon.usage_2.1.3.jar                                                 bundle         apache2   
-org.wso2.carbon.user.api_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.user.core_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.user.mgt.common_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.user.mgt.stub_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.user.mgt.ui_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.user.mgt_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.utils_4.1.0.jar                                                 bundle         apache2   
-org.wso2.carbon.validate.domain.stub_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.validate.domain.ui_2.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.validate.domain_2.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.webapp.deployer_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.webapp.mgt_4.1.0.jar                                            bundle         apache2   
-org.wso2.ciphertool-1.0.0-wso2v2.jar                                            bundle         apache2   
-org.wso2.securevault_1.0.0.wso2v2.jar                                           bundle         apache2   
-org.wso2.stratos.identity.saml2.sso.mgt.ui_2.1.0.jar                            bundle         apache2   
-org.wso2.stratos.identity.saml2.sso.mgt_2.1.0.jar                               bundle         apache2   
-org.wso2.stratos.manager.dashboard.ui_1.0.1.jar                                 bundle         apache2   
-org.wso2.stratos.manager.login.ui_1.0.1.jar                                     bundle         apache2   
-org.wso2.stratos.manager.services.mgt_1.0.1.jar                                 bundle         apache2   
-org.wso2.stratos.manager.styles_1.0.1.jar                                       bundle         apache2   
-paypal-1.1.0.wso2v1.jar                                                         bundle         apache2   
-paypal_1.1.0.wso2v1.jar                                                         bundle         apache2   
-pdepublishing-ant.jar                                                           jar            epl1      
-pdepublishing.jar                                                               jar            epl1      
-perf4j_0.9.12.wso2v1.jar                                                        bundle         apache2   
-poi-ooxml_3.5.0.wso2v1.jar                                                      bundle         apache2   
-poi-scratchpad_3.5.0.wso2v1.jar                                                 bundle         apache2   
-poi_3.5.0.wso2v1.jar                                                            bundle         apache2   
-quartz_2.1.1.wso2v1.jar                                                         bundle         apache2   
-rampart-1.6.1-wso2v1.mar                                                        bundle         apache2   
-rampart-core_1.6.1.wso2v8.jar                                                   bundle         apache2   
-rampart-policy_1.6.1.wso2v8.jar                                                 bundle         apache2   
-rampart-trust_1.6.1.wso2v8.jar                                                  bundle         apache2   
-saxon_8.9.0.wso2v1.jar                                                          bundle         mpl10     
-slf4j-1.5.10.wso2v1.jar                                                         bundle         apache2   
-smack_3.0.4.wso2v1.jar                                                          bundle         apache2   
-spring.framework_3.1.0.wso2v1.jar                                               bundle         apache2   
-step2-common-1.0.0-wso2v1.jar                                                   bundle         apache2   
-step2-consumer-1.0.0-wso2v1.jar                                                 bundle         apache2   
-step2_1.0.0.wso2v1.jar                                                          bundle         apache2   
-synapse-commons_2.1.1.wso2v4.jar                                                bundle         apache2   
-synapse-core_2.1.1.wso2v4.jar                                                   bundle         apache2   
-synapse-extensions_2.1.1.wso2v4.jar                                             bundle         apache2   
-synapse-samples_2.1.1.wso2v4.jar                                                bundle         apache2   
-synapse-tasks_2.1.1.wso2v4.jar                                                  bundle         apache2   
-synapse-tasks_2.1.1.wso2v5.jar                                                  bundle         apache2   
-tcpmon-1.0.jar                                                                  jar            apache2   
-tiles-jsp_2.0.5.wso2v1.jar                                                      bundle         apache2   
-tomcat-ha_7.0.34.wso2v1.jar                                                     bundle         apache2   
-tomcat-juli-7.0.34.jar                                                          jar            apache2   
-tomcat_7.0.34.wso2v1.jar                                                        bundle         apache2   
-tribes_7.0.28.wso2v1.jar                                                        bundle         apache2   
-woden_1.0.0.M8-wso2v1.jar                                                       bundle         apache2   
-wsdl4j_1.6.2.wso2v4.jar                                                         bundle         cpl1      
-wss4j_1.5.11.wso2v5.jar                                                         bundle         apache2   
-xalan-2.7.1.wso2v1.jar                                                          bundle         apache2   
-xercesImpl-2.8.1.wso2v2.jar                                                     bundle         apache2   
-xkms_2.4.0.wso2v1.jar                                                           bundle         apache2   
-xml-apis-1.3.04.jar                                                             jarinbundle    unknown   
-xml-apis-1.3.04.wso2v2.jar                                                      bundle         apache2   
-xml-apis-ext-1.3.04.jar                                                         jarinbundle    unknown   
-xmlbeans-2.3.0.jar                                                              jarinbundle    apache2   
-xmlbeans_2.3.0.wso2v1.jar                                                       bundle         apache2   
-xmlgraphics-commons-1.3.1.jar                                                   jarinbundle    apache2   
-XmlSchema_1.4.7.wso2v2.jar                                                      bundle         apache2   
-xmltooling-1.3.1.jar                                                            jarinbundle    apache2   
-
-
-
-The license types used by the above libraries and their information is given below:
-
-lgpl3          GNU LESSER GENERAL PUBLIC LICENSE  Version 3
-               http://www.gnu.org/licenses/lgpl-3.0.txt
-epl1           Eclipse Public License
-               http://www.eclipse.org/legal/epl-v10.html
-lgpl2          Lesser GPL v2.1
-               http://www.opensource.org/licenses/lgpl-2.1.php
-mpl11          Mozilla Public License 1.1
-               http://www.mozilla.org/MPL/MPL-1.1.html
-mpl10          Mozilla Public License 1.0
-               http://www.mozilla.org/MPL/
-mit            MIT License
-               http://www.opensource.org/licenses/mit-license.php
-unknown        
-               unknown
-cddl1          Common Development and Distribution License
-               http://www.opensource.org/licenses/cddl1.php
-cddl+gpl       CDDL + GPLv2
-               https://glassfish.dev.java.net/public/CDDL+GPL.html
-cpl1           Common Public License 1.0
-               http://www.eclipse.org/legal/cpl-v10.html
-json           JSON.org License
-               null
-jsmon          ThoughtWorks Javasysmon License
-               https://github.com/jezhumble/javasysmon/blob/master/LICENSE
-jdom           JDOM License - Apache Styled
-               null
-apache2        Apache License Version 2.0
-               http://www.apache.org/licenses/LICENSE-2.0.html
-bsd            Berkeley License
-               http://www.opensource.org/licenses/bsd-license.php
-bouncy         Bouncy Castle License
-               http://www.bouncycastle.org/licence.html
-beajsr94       BEA License for JSR94 API
-               http://download.oracle.com/otndocs/jcp/jreng-1_0a-fr-spec-api-oth-JSpec/jreng-1_0a-fr-spec-api-oth-JSpec-license.html
-public         Public Domain
-               http://creativecommons.org/licenses/publicdomain/

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/README.txt
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/README.txt b/products/stratos_controller/modules/distribution/README.txt
deleted file mode 100755
index 02db83a..0000000
--- a/products/stratos_controller/modules/distribution/README.txt
+++ /dev/null
@@ -1,42 +0,0 @@
-Apache Stratos Controller
------------------------
-
-Welcome to the Apache Stratos Controller
-
-The Stratos Controller (SC) mainly consists of the graphical user interface (GUI) and The Artifact Distribution 
-Coordinator that is responsible for the distribution of artifacts has been embedded into the Stratos Controller. 
-
-The Stratos Controller also defines the autoscaling policies that are defined for the Cartridges. 
-
-For more information about Stratos Controller, please refer WSO2 Stratos Wiki Docs:
-http://docs.wso2.org/wiki/display/Stratos200/WSO2+Stratos+Documentation
-
-Crypto Notice
-=============
-
-   This distribution includes cryptographic software.  The country in
-   which you currently reside may have restrictions on the import,
-   possession, use, and/or re-export to another country, of
-   encryption software.  BEFORE using any encryption software, please
-   check your country's laws, regulations and policies concerning the
-   import, possession, or use, and re-export of encryption software, to
-   see if this is permitted.  See <http://www.wassenaar.org/> for more
-   information.
-
-   The U.S. Government Department of Commerce, Bureau of Industry and
-   Security (BIS), has classified this software as Export Commodity
-   Control Number (ECCN) 5D002.C.1, which includes information security
-   software using or performing cryptographic functions with asymmetric
-   algorithms.  The form and manner of this Apache Software Foundation
-   distribution makes it eligible for export under the License Exception
-   ENC Technology Software Unrestricted (TSU) exception (see the BIS
-   Export Administration Regulations, Section 740.13) for both object
-   code and source code.
-
-   The following provides more details on the included cryptographic
-   software:
-
-   Apacge Rampart   : http://ws.apache.org/rampart/
-   Apache WSS4J     : http://ws.apache.org/wss4j/
-   Apache Santuario : http://santuario.apache.org/
-   Bouncycastle     : http://www.bouncycastle.org/


[21/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery-ui-1.8.14.custom.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery-ui-1.8.14.custom.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery-ui-1.8.14.custom.css
new file mode 100755
index 0000000..fe31070
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery-ui-1.8.14.custom.css
@@ -0,0 +1,568 @@
+/*
+ * jQuery UI CSS Framework 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ */
+
+/* Layout helpers
+----------------------------------*/
+.ui-helper-hidden { display: none; }
+.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
+.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
+.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+.ui-helper-clearfix { display: inline-block; }
+/* required comment for clearfix to work in Opera \*/
+* html .ui-helper-clearfix { height:1%; }
+.ui-helper-clearfix { display:block; }
+/* end clearfix */
+.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
+
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-disabled { cursor: default !important; }
+
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Overlays */
+.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
+
+
+/*
+ * jQuery UI CSS Framework 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ *
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHig
 hlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
+ */
+
+
+/* Component containers
+----------------------------------*/
+.ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; }
+.ui-widget .ui-widget { font-size: 1em; }
+.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; }
+.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; }
+.ui-widget-content a { color: #333333; }
+.ui-widget-header { border: 1px solid #e78f08; background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
+.ui-widget-header a { color: #ffffff; }
+
+/* Interaction states
+----------------------------------*/
+.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1c94c4; }
+.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; }
+.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #c77405; }
+.ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; }
+.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #eb8f00; }
+.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; }
+.ui-widget :active { outline: none; }
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight  {border: 1px solid #fed22f; background: #ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x; color: #363636; }
+.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
+.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; }
+.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
+.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
+.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
+.ui-priority-secondary, .ui-widget-content .ui-priority-secondary,  .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
+.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
+.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
+.ui-widget-header .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
+.ui-state-default .ui-icon { background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-active .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_228ef1_256x240.png); }
+.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffd27a_256x240.png); }
+
+/* positioning */
+.ui-icon-carat-1-n { background-position: 0 0; }
+.ui-icon-carat-1-ne { background-position: -16px 0; }
+.ui-icon-carat-1-e { background-position: -32px 0; }
+.ui-icon-carat-1-se { background-position: -48px 0; }
+.ui-icon-carat-1-s { background-position: -64px 0; }
+.ui-icon-carat-1-sw { background-position: -80px 0; }
+.ui-icon-carat-1-w { background-position: -96px 0; }
+.ui-icon-carat-1-nw { background-position: -112px 0; }
+.ui-icon-carat-2-n-s { background-position: -128px 0; }
+.ui-icon-carat-2-e-w { background-position: -144px 0; }
+.ui-icon-triangle-1-n { background-position: 0 -16px; }
+.ui-icon-triangle-1-ne { background-position: -16px -16px; }
+.ui-icon-triangle-1-e { background-position: -32px -16px; }
+.ui-icon-triangle-1-se { background-position: -48px -16px; }
+.ui-icon-triangle-1-s { background-position: -64px -16px; }
+.ui-icon-triangle-1-sw { background-position: -80px -16px; }
+.ui-icon-triangle-1-w { background-position: -96px -16px; }
+.ui-icon-triangle-1-nw { background-position: -112px -16px; }
+.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
+.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
+.ui-icon-arrow-1-n { background-position: 0 -32px; }
+.ui-icon-arrow-1-ne { background-position: -16px -32px; }
+.ui-icon-arrow-1-e { background-position: -32px -32px; }
+.ui-icon-arrow-1-se { background-position: -48px -32px; }
+.ui-icon-arrow-1-s { background-position: -64px -32px; }
+.ui-icon-arrow-1-sw { background-position: -80px -32px; }
+.ui-icon-arrow-1-w { background-position: -96px -32px; }
+.ui-icon-arrow-1-nw { background-position: -112px -32px; }
+.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
+.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
+.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
+.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
+.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
+.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
+.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
+.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
+.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
+.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
+.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
+.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
+.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
+.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
+.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
+.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
+.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
+.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
+.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
+.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
+.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
+.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
+.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
+.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
+.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
+.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
+.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
+.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
+.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
+.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
+.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
+.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
+.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
+.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
+.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
+.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
+.ui-icon-arrow-4 { background-position: 0 -80px; }
+.ui-icon-arrow-4-diag { background-position: -16px -80px; }
+.ui-icon-extlink { background-position: -32px -80px; }
+.ui-icon-newwin { background-position: -48px -80px; }
+.ui-icon-refresh { background-position: -64px -80px; }
+.ui-icon-shuffle { background-position: -80px -80px; }
+.ui-icon-transfer-e-w { background-position: -96px -80px; }
+.ui-icon-transferthick-e-w { background-position: -112px -80px; }
+.ui-icon-folder-collapsed { background-position: 0 -96px; }
+.ui-icon-folder-open { background-position: -16px -96px; }
+.ui-icon-document { background-position: -32px -96px; }
+.ui-icon-document-b { background-position: -48px -96px; }
+.ui-icon-note { background-position: -64px -96px; }
+.ui-icon-mail-closed { background-position: -80px -96px; }
+.ui-icon-mail-open { background-position: -96px -96px; }
+.ui-icon-suitcase { background-position: -112px -96px; }
+.ui-icon-comment { background-position: -128px -96px; }
+.ui-icon-person { background-position: -144px -96px; }
+.ui-icon-print { background-position: -160px -96px; }
+.ui-icon-trash { background-position: -176px -96px; }
+.ui-icon-locked { background-position: -192px -96px; }
+.ui-icon-unlocked { background-position: -208px -96px; }
+.ui-icon-bookmark { background-position: -224px -96px; }
+.ui-icon-tag { background-position: -240px -96px; }
+.ui-icon-home { background-position: 0 -112px; }
+.ui-icon-flag { background-position: -16px -112px; }
+.ui-icon-calendar { background-position: -32px -112px; }
+.ui-icon-cart { background-position: -48px -112px; }
+.ui-icon-pencil { background-position: -64px -112px; }
+.ui-icon-clock { background-position: -80px -112px; }
+.ui-icon-disk { background-position: -96px -112px; }
+.ui-icon-calculator { background-position: -112px -112px; }
+.ui-icon-zoomin { background-position: -128px -112px; }
+.ui-icon-zoomout { background-position: -144px -112px; }
+.ui-icon-search { background-position: -160px -112px; }
+.ui-icon-wrench { background-position: -176px -112px; }
+.ui-icon-gear { background-position: -192px -112px; }
+.ui-icon-heart { background-position: -208px -112px; }
+.ui-icon-star { background-position: -224px -112px; }
+.ui-icon-link { background-position: -240px -112px; }
+.ui-icon-cancel { background-position: 0 -128px; }
+.ui-icon-plus { background-position: -16px -128px; }
+.ui-icon-plusthick { background-position: -32px -128px; }
+.ui-icon-minus { background-position: -48px -128px; }
+.ui-icon-minusthick { background-position: -64px -128px; }
+.ui-icon-close { background-position: -80px -128px; }
+.ui-icon-closethick { background-position: -96px -128px; }
+.ui-icon-key { background-position: -112px -128px; }
+.ui-icon-lightbulb { background-position: -128px -128px; }
+.ui-icon-scissors { background-position: -144px -128px; }
+.ui-icon-clipboard { background-position: -160px -128px; }
+.ui-icon-copy { background-position: -176px -128px; }
+.ui-icon-contact { background-position: -192px -128px; }
+.ui-icon-image { background-position: -208px -128px; }
+.ui-icon-video { background-position: -224px -128px; }
+.ui-icon-script { background-position: -240px -128px; }
+.ui-icon-alert { background-position: 0 -144px; }
+.ui-icon-info { background-position: -16px -144px; }
+.ui-icon-notice { background-position: -32px -144px; }
+.ui-icon-help { background-position: -48px -144px; }
+.ui-icon-check { background-position: -64px -144px; }
+.ui-icon-bullet { background-position: -80px -144px; }
+.ui-icon-radio-off { background-position: -96px -144px; }
+.ui-icon-radio-on { background-position: -112px -144px; }
+.ui-icon-pin-w { background-position: -128px -144px; }
+.ui-icon-pin-s { background-position: -144px -144px; }
+.ui-icon-play { background-position: 0 -160px; }
+.ui-icon-pause { background-position: -16px -160px; }
+.ui-icon-seek-next { background-position: -32px -160px; }
+.ui-icon-seek-prev { background-position: -48px -160px; }
+.ui-icon-seek-end { background-position: -64px -160px; }
+.ui-icon-seek-start { background-position: -80px -160px; }
+/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
+.ui-icon-seek-first { background-position: -80px -160px; }
+.ui-icon-stop { background-position: -96px -160px; }
+.ui-icon-eject { background-position: -112px -160px; }
+.ui-icon-volume-off { background-position: -128px -160px; }
+.ui-icon-volume-on { background-position: -144px -160px; }
+.ui-icon-power { background-position: 0 -176px; }
+.ui-icon-signal-diag { background-position: -16px -176px; }
+.ui-icon-signal { background-position: -32px -176px; }
+.ui-icon-battery-0 { background-position: -48px -176px; }
+.ui-icon-battery-1 { background-position: -64px -176px; }
+.ui-icon-battery-2 { background-position: -80px -176px; }
+.ui-icon-battery-3 { background-position: -96px -176px; }
+.ui-icon-circle-plus { background-position: 0 -192px; }
+.ui-icon-circle-minus { background-position: -16px -192px; }
+.ui-icon-circle-close { background-position: -32px -192px; }
+.ui-icon-circle-triangle-e { background-position: -48px -192px; }
+.ui-icon-circle-triangle-s { background-position: -64px -192px; }
+.ui-icon-circle-triangle-w { background-position: -80px -192px; }
+.ui-icon-circle-triangle-n { background-position: -96px -192px; }
+.ui-icon-circle-arrow-e { background-position: -112px -192px; }
+.ui-icon-circle-arrow-s { background-position: -128px -192px; }
+.ui-icon-circle-arrow-w { background-position: -144px -192px; }
+.ui-icon-circle-arrow-n { background-position: -160px -192px; }
+.ui-icon-circle-zoomin { background-position: -176px -192px; }
+.ui-icon-circle-zoomout { background-position: -192px -192px; }
+.ui-icon-circle-check { background-position: -208px -192px; }
+.ui-icon-circlesmall-plus { background-position: 0 -208px; }
+.ui-icon-circlesmall-minus { background-position: -16px -208px; }
+.ui-icon-circlesmall-close { background-position: -32px -208px; }
+.ui-icon-squaresmall-plus { background-position: -48px -208px; }
+.ui-icon-squaresmall-minus { background-position: -64px -208px; }
+.ui-icon-squaresmall-close { background-position: -80px -208px; }
+.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
+.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
+.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
+.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
+.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
+.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Corner radius */
+.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; }
+.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; }
+.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
+.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
+
+/* Overlays */
+.ui-widget-overlay { background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
+.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/*
+ * jQuery UI Resizable 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Resizable#theming
+ */
+.ui-resizable { position: relative;}
+.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; }
+.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
+.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
+.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
+.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
+.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
+.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
+.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
+.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
+.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
+ * jQuery UI Selectable 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Selectable#theming
+ */
+.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
+/*
+ * jQuery UI Accordion 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Accordion#theming
+ */
+/* IE/Win - Fix animation bug - #4615 */
+.ui-accordion { width: 100%; }
+.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
+.ui-accordion .ui-accordion-li-fix { display: inline; }
+.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
+.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
+.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
+.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
+.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
+.ui-accordion .ui-accordion-content-active { display: block; }
+/*
+ * jQuery UI Autocomplete 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Autocomplete#theming
+ */
+.ui-autocomplete { position: absolute; cursor: default; }	
+
+/* workarounds */
+* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
+
+/*
+ * jQuery UI Menu 1.8.14
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Menu#theming
+ */
+.ui-menu {
+	list-style:none;
+	padding: 2px;
+	margin: 0;
+	display:block;
+	float: left;
+}
+.ui-menu .ui-menu {
+	margin-top: -3px;
+}
+.ui-menu .ui-menu-item {
+	margin:0;
+	padding: 0;
+	zoom: 1;
+	float: left;
+	clear: left;
+	width: 100%;
+}
+.ui-menu .ui-menu-item a {
+	text-decoration:none;
+	display:block;
+	padding:.2em .4em;
+	line-height:1.5;
+	zoom:1;
+}
+.ui-menu .ui-menu-item a.ui-state-hover,
+.ui-menu .ui-menu-item a.ui-state-active {
+	font-weight: normal;
+	margin: -1px;
+}
+/*
+ * jQuery UI Button 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Button#theming
+ */
+.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
+.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
+button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
+.ui-button-icons-only { width: 3.4em; } 
+button.ui-button-icons-only { width: 3.7em; } 
+
+/*button text element */
+.ui-button .ui-button-text { display: block; line-height: 1.4;  }
+.ui-button-text-only .ui-button-text { padding: .4em 1em; }
+.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
+.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
+.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
+.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
+/* no icon support for input elements, provide padding by default */
+input.ui-button { padding: .4em 1em; }
+
+/*button icon element(s) */
+.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
+.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
+.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
+.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+
+/*button sets*/
+.ui-buttonset { margin-right: 7px; }
+.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
+
+/* workarounds */
+button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
+/*
+ * jQuery UI Dialog 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Dialog#theming
+ */
+.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
+.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative;  }
+.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } 
+.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
+.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
+.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
+.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
+.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
+.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
+.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
+.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
+.ui-draggable .ui-dialog-titlebar { cursor: move; }
+/*
+ * jQuery UI Slider 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Slider#theming
+ */
+.ui-slider { position: relative; text-align: left; }
+.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
+.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
+
+.ui-slider-horizontal { height: .8em; }
+.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
+.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
+.ui-slider-horizontal .ui-slider-range-min { left: 0; }
+.ui-slider-horizontal .ui-slider-range-max { right: 0; }
+
+.ui-slider-vertical { width: .8em; height: 100px; }
+.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
+.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
+.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
+.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
+ * jQuery UI Tabs 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Tabs#theming
+ */
+.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
+.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
+.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
+.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
+.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
+.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
+.ui-tabs .ui-tabs-hide { display: none !important; }
+/*
+ * jQuery UI Datepicker 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Datepicker#theming
+ */
+.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
+.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
+.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
+.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
+.ui-datepicker .ui-datepicker-prev { left:2px; }
+.ui-datepicker .ui-datepicker-next { right:2px; }
+.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
+.ui-datepicker .ui-datepicker-next-hover { right:1px; }
+.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px;  }
+.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
+.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
+.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
+.ui-datepicker select.ui-datepicker-month, 
+.ui-datepicker select.ui-datepicker-year { width: 49%;}
+.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
+.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0;  }
+.ui-datepicker td { border: 0; padding: 1px; }
+.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
+.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
+.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
+.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
+
+/* with multiple calendars */
+.ui-datepicker.ui-datepicker-multi { width:auto; }
+.ui-datepicker-multi .ui-datepicker-group { float:left; }
+.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
+.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
+.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
+.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
+.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
+.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
+
+/* RTL support */
+.ui-datepicker-rtl { direction: rtl; }
+.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+
+/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
+.ui-datepicker-cover {
+    display: none; /*sorry for IE5*/
+    display/**/: block; /*sorry for IE5*/
+    position: absolute; /*must have*/
+    z-index: -1; /*must have*/
+    filter: mask(); /*must have*/
+    top: -4px; /*must have*/
+    left: -4px; /*must have*/
+    width: 200px; /*must have*/
+    height: 200px; /*must have*/
+}/*
+ * jQuery UI Progressbar 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Progressbar#theming
+ */
+.ui-progressbar { height:2em; text-align: left; }
+.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.accordion.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.accordion.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.accordion.css
new file mode 100755
index 0000000..aec1eb8
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.accordion.css
@@ -0,0 +1,19 @@
+/*
+ * jQuery UI Accordion 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Accordion#theming
+ */
+/* IE/Win - Fix animation bug - #4615 */
+.ui-accordion { width: 100%; }
+.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
+.ui-accordion .ui-accordion-li-fix { display: inline; }
+.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
+.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
+.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
+.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
+.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
+.ui-accordion .ui-accordion-content-active { display: block; }

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.all.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.all.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.all.css
new file mode 100755
index 0000000..3b49352
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.all.css
@@ -0,0 +1,11 @@
+/*
+ * jQuery UI CSS Framework 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming
+ */
+@import "jquery.ui.base.css";
+@import "jquery.ui.theme.css";

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.autocomplete.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.autocomplete.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.autocomplete.css
new file mode 100755
index 0000000..640cd86
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.autocomplete.css
@@ -0,0 +1,53 @@
+/*
+ * jQuery UI Autocomplete 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Autocomplete#theming
+ */
+.ui-autocomplete { position: absolute; cursor: default; }	
+
+/* workarounds */
+* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
+
+/*
+ * jQuery UI Menu 1.8.14
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Menu#theming
+ */
+.ui-menu {
+	list-style:none;
+	padding: 2px;
+	margin: 0;
+	display:block;
+	float: left;
+}
+.ui-menu .ui-menu {
+	margin-top: -3px;
+}
+.ui-menu .ui-menu-item {
+	margin:0;
+	padding: 0;
+	zoom: 1;
+	float: left;
+	clear: left;
+	width: 100%;
+}
+.ui-menu .ui-menu-item a {
+	text-decoration:none;
+	display:block;
+	padding:.2em .4em;
+	line-height:1.5;
+	zoom:1;
+}
+.ui-menu .ui-menu-item a.ui-state-hover,
+.ui-menu .ui-menu-item a.ui-state-active {
+	font-weight: normal;
+	margin: -1px;
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.base.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.base.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.base.css
new file mode 100755
index 0000000..f52ee39
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.base.css
@@ -0,0 +1,11 @@
+@import url("jquery.ui.core.css");
+@import url("jquery.ui.resizable.css");
+@import url("jquery.ui.selectable.css");
+@import url("jquery.ui.accordion.css");
+@import url("jquery.ui.autocomplete.css");
+@import url("jquery.ui.button.css");
+@import url("jquery.ui.dialog.css");
+@import url("jquery.ui.slider.css");
+@import url("jquery.ui.tabs.css");
+@import url("jquery.ui.datepicker.css");
+@import url("jquery.ui.progressbar.css");
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.button.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.button.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.button.css
new file mode 100755
index 0000000..55eddec
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.button.css
@@ -0,0 +1,38 @@
+/*
+ * jQuery UI Button 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Button#theming
+ */
+.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
+.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
+button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
+.ui-button-icons-only { width: 3.4em; } 
+button.ui-button-icons-only { width: 3.7em; } 
+
+/*button text element */
+.ui-button .ui-button-text { display: block; line-height: 1.4;  }
+.ui-button-text-only .ui-button-text { padding: .4em 1em; }
+.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
+.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
+.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
+.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
+/* no icon support for input elements, provide padding by default */
+input.ui-button { padding: .4em 1em; }
+
+/*button icon element(s) */
+.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
+.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
+.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
+.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+
+/*button sets*/
+.ui-buttonset { margin-right: 7px; }
+.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
+
+/* workarounds */
+button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.core.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.core.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.core.css
new file mode 100755
index 0000000..b8ed6cd
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.core.css
@@ -0,0 +1,41 @@
+/*
+ * jQuery UI CSS Framework 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ */
+
+/* Layout helpers
+----------------------------------*/
+.ui-helper-hidden { display: none; }
+.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
+.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
+.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+.ui-helper-clearfix { display: inline-block; }
+/* required comment for clearfix to work in Opera \*/
+* html .ui-helper-clearfix { height:1%; }
+.ui-helper-clearfix { display:block; }
+/* end clearfix */
+.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
+
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-disabled { cursor: default !important; }
+
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Overlays */
+.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.datepicker.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.datepicker.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.datepicker.css
new file mode 100755
index 0000000..b52d402
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.datepicker.css
@@ -0,0 +1,68 @@
+/*
+ * jQuery UI Datepicker 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Datepicker#theming
+ */
+.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
+.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
+.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
+.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
+.ui-datepicker .ui-datepicker-prev { left:2px; }
+.ui-datepicker .ui-datepicker-next { right:2px; }
+.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
+.ui-datepicker .ui-datepicker-next-hover { right:1px; }
+.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px;  }
+.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
+.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
+.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
+.ui-datepicker select.ui-datepicker-month, 
+.ui-datepicker select.ui-datepicker-year { width: 49%;}
+.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
+.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0;  }
+.ui-datepicker td { border: 0; padding: 1px; }
+.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
+.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
+.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
+.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
+
+/* with multiple calendars */
+.ui-datepicker.ui-datepicker-multi { width:auto; }
+.ui-datepicker-multi .ui-datepicker-group { float:left; }
+.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
+.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
+.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
+.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
+.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
+.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
+
+/* RTL support */
+.ui-datepicker-rtl { direction: rtl; }
+.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+
+/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
+.ui-datepicker-cover {
+    display: none; /*sorry for IE5*/
+    display/**/: block; /*sorry for IE5*/
+    position: absolute; /*must have*/
+    z-index: -1; /*must have*/
+    filter: mask(); /*must have*/
+    top: -4px; /*must have*/
+    left: -4px; /*must have*/
+    width: 200px; /*must have*/
+    height: 200px; /*must have*/
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.dialog.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.dialog.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.dialog.css
new file mode 100755
index 0000000..531d11f
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.dialog.css
@@ -0,0 +1,21 @@
+/*
+ * jQuery UI Dialog 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Dialog#theming
+ */
+.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
+.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative;  }
+.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } 
+.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
+.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
+.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
+.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
+.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
+.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
+.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
+.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
+.ui-draggable .ui-dialog-titlebar { cursor: move; }

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.progressbar.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.progressbar.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.progressbar.css
new file mode 100755
index 0000000..eb7d477
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.progressbar.css
@@ -0,0 +1,11 @@
+/*
+ * jQuery UI Progressbar 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Progressbar#theming
+ */
+.ui-progressbar { height:2em; text-align: left; }
+.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.resizable.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.resizable.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.resizable.css
new file mode 100755
index 0000000..3234d3f
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.resizable.css
@@ -0,0 +1,20 @@
+/*
+ * jQuery UI Resizable 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Resizable#theming
+ */
+.ui-resizable { position: relative;}
+.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; }
+.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
+.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
+.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
+.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
+.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
+.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
+.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
+.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
+.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.selectable.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.selectable.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.selectable.css
new file mode 100755
index 0000000..39ac84a
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.selectable.css
@@ -0,0 +1,10 @@
+/*
+ * jQuery UI Selectable 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Selectable#theming
+ */
+.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.slider.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.slider.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.slider.css
new file mode 100755
index 0000000..c9d8b8b
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.slider.css
@@ -0,0 +1,24 @@
+/*
+ * jQuery UI Slider 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Slider#theming
+ */
+.ui-slider { position: relative; text-align: left; }
+.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
+.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
+
+.ui-slider-horizontal { height: .8em; }
+.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
+.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
+.ui-slider-horizontal .ui-slider-range-min { left: 0; }
+.ui-slider-horizontal .ui-slider-range-max { right: 0; }
+
+.ui-slider-vertical { width: .8em; height: 100px; }
+.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
+.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
+.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
+.ui-slider-vertical .ui-slider-range-max { top: 0; }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.tabs.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.tabs.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.tabs.css
new file mode 100755
index 0000000..0ef4507
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.tabs.css
@@ -0,0 +1,18 @@
+/*
+ * jQuery UI Tabs 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Tabs#theming
+ */
+.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
+.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
+.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
+.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
+.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
+.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
+.ui-tabs .ui-tabs-hide { display: none !important; }

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.theme.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.theme.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.theme.css
new file mode 100755
index 0000000..6b37962
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/themes/ui-lightness/jquery.ui.theme.css
@@ -0,0 +1,249 @@
+
+
+/*
+ * jQuery UI CSS Framework 1.8.14
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ *
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHig
 hlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
+ */
+
+
+/* Component containers
+----------------------------------*/
+.ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; }
+.ui-widget .ui-widget { font-size: 1em; }
+.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; }
+.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; }
+.ui-widget-content a { color: #333333; }
+.ui-widget-header { border: 1px solid #e78f08; background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
+.ui-widget-header a { color: #ffffff; }
+
+/* Interaction states
+----------------------------------*/
+.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1c94c4; }
+.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; }
+.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #c77405; }
+.ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; }
+.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #eb8f00; }
+.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; }
+.ui-widget :active { outline: none; }
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight  {border: 1px solid #fed22f; background: #ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x; color: #363636; }
+.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
+.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; }
+.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
+.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
+.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
+.ui-priority-secondary, .ui-widget-content .ui-priority-secondary,  .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
+.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
+.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
+.ui-widget-header .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
+.ui-state-default .ui-icon { background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-active .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_228ef1_256x240.png); }
+.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffd27a_256x240.png); }
+
+/* positioning */
+.ui-icon-carat-1-n { background-position: 0 0; }
+.ui-icon-carat-1-ne { background-position: -16px 0; }
+.ui-icon-carat-1-e { background-position: -32px 0; }
+.ui-icon-carat-1-se { background-position: -48px 0; }
+.ui-icon-carat-1-s { background-position: -64px 0; }
+.ui-icon-carat-1-sw { background-position: -80px 0; }
+.ui-icon-carat-1-w { background-position: -96px 0; }
+.ui-icon-carat-1-nw { background-position: -112px 0; }
+.ui-icon-carat-2-n-s { background-position: -128px 0; }
+.ui-icon-carat-2-e-w { background-position: -144px 0; }
+.ui-icon-triangle-1-n { background-position: 0 -16px; }
+.ui-icon-triangle-1-ne { background-position: -16px -16px; }
+.ui-icon-triangle-1-e { background-position: -32px -16px; }
+.ui-icon-triangle-1-se { background-position: -48px -16px; }
+.ui-icon-triangle-1-s { background-position: -64px -16px; }
+.ui-icon-triangle-1-sw { background-position: -80px -16px; }
+.ui-icon-triangle-1-w { background-position: -96px -16px; }
+.ui-icon-triangle-1-nw { background-position: -112px -16px; }
+.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
+.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
+.ui-icon-arrow-1-n { background-position: 0 -32px; }
+.ui-icon-arrow-1-ne { background-position: -16px -32px; }
+.ui-icon-arrow-1-e { background-position: -32px -32px; }
+.ui-icon-arrow-1-se { background-position: -48px -32px; }
+.ui-icon-arrow-1-s { background-position: -64px -32px; }
+.ui-icon-arrow-1-sw { background-position: -80px -32px; }
+.ui-icon-arrow-1-w { background-position: -96px -32px; }
+.ui-icon-arrow-1-nw { background-position: -112px -32px; }
+.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
+.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
+.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
+.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
+.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
+.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
+.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
+.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
+.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
+.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
+.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
+.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
+.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
+.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
+.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
+.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
+.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
+.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
+.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
+.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
+.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
+.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
+.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
+.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
+.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
+.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
+.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
+.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
+.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
+.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
+.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
+.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
+.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
+.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
+.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
+.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
+.ui-icon-arrow-4 { background-position: 0 -80px; }
+.ui-icon-arrow-4-diag { background-position: -16px -80px; }
+.ui-icon-extlink { background-position: -32px -80px; }
+.ui-icon-newwin { background-position: -48px -80px; }
+.ui-icon-refresh { background-position: -64px -80px; }
+.ui-icon-shuffle { background-position: -80px -80px; }
+.ui-icon-transfer-e-w { background-position: -96px -80px; }
+.ui-icon-transferthick-e-w { background-position: -112px -80px; }
+.ui-icon-folder-collapsed { background-position: 0 -96px; }
+.ui-icon-folder-open { background-position: -16px -96px; }
+.ui-icon-document { background-position: -32px -96px; }
+.ui-icon-document-b { background-position: -48px -96px; }
+.ui-icon-note { background-position: -64px -96px; }
+.ui-icon-mail-closed { background-position: -80px -96px; }
+.ui-icon-mail-open { background-position: -96px -96px; }
+.ui-icon-suitcase { background-position: -112px -96px; }
+.ui-icon-comment { background-position: -128px -96px; }
+.ui-icon-person { background-position: -144px -96px; }
+.ui-icon-print { background-position: -160px -96px; }
+.ui-icon-trash { background-position: -176px -96px; }
+.ui-icon-locked { background-position: -192px -96px; }
+.ui-icon-unlocked { background-position: -208px -96px; }
+.ui-icon-bookmark { background-position: -224px -96px; }
+.ui-icon-tag { background-position: -240px -96px; }
+.ui-icon-home { background-position: 0 -112px; }
+.ui-icon-flag { background-position: -16px -112px; }
+.ui-icon-calendar { background-position: -32px -112px; }
+.ui-icon-cart { background-position: -48px -112px; }
+.ui-icon-pencil { background-position: -64px -112px; }
+.ui-icon-clock { background-position: -80px -112px; }
+.ui-icon-disk { background-position: -96px -112px; }
+.ui-icon-calculator { background-position: -112px -112px; }
+.ui-icon-zoomin { background-position: -128px -112px; }
+.ui-icon-zoomout { background-position: -144px -112px; }
+.ui-icon-search { background-position: -160px -112px; }
+.ui-icon-wrench { background-position: -176px -112px; }
+.ui-icon-gear { background-position: -192px -112px; }
+.ui-icon-heart { background-position: -208px -112px; }
+.ui-icon-star { background-position: -224px -112px; }
+.ui-icon-link { background-position: -240px -112px; }
+.ui-icon-cancel { background-position: 0 -128px; }
+.ui-icon-plus { background-position: -16px -128px; }
+.ui-icon-plusthick { background-position: -32px -128px; }
+.ui-icon-minus { background-position: -48px -128px; }
+.ui-icon-minusthick { background-position: -64px -128px; }
+.ui-icon-close { background-position: -80px -128px; }
+.ui-icon-closethick { background-position: -96px -128px; }
+.ui-icon-key { background-position: -112px -128px; }
+.ui-icon-lightbulb { background-position: -128px -128px; }
+.ui-icon-scissors { background-position: -144px -128px; }
+.ui-icon-clipboard { background-position: -160px -128px; }
+.ui-icon-copy { background-position: -176px -128px; }
+.ui-icon-contact { background-position: -192px -128px; }
+.ui-icon-image { background-position: -208px -128px; }
+.ui-icon-video { background-position: -224px -128px; }
+.ui-icon-script { background-position: -240px -128px; }
+.ui-icon-alert { background-position: 0 -144px; }
+.ui-icon-info { background-position: -16px -144px; }
+.ui-icon-notice { background-position: -32px -144px; }
+.ui-icon-help { background-position: -48px -144px; }
+.ui-icon-check { background-position: -64px -144px; }
+.ui-icon-bullet { background-position: -80px -144px; }
+.ui-icon-radio-off { background-position: -96px -144px; }
+.ui-icon-radio-on { background-position: -112px -144px; }
+.ui-icon-pin-w { background-position: -128px -144px; }
+.ui-icon-pin-s { background-position: -144px -144px; }
+.ui-icon-play { background-position: 0 -160px; }
+.ui-icon-pause { background-position: -16px -160px; }
+.ui-icon-seek-next { background-position: -32px -160px; }
+.ui-icon-seek-prev { background-position: -48px -160px; }
+.ui-icon-seek-end { background-position: -64px -160px; }
+.ui-icon-seek-start { background-position: -80px -160px; }
+/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
+.ui-icon-seek-first { background-position: -80px -160px; }
+.ui-icon-stop { background-position: -96px -160px; }
+.ui-icon-eject { background-position: -112px -160px; }
+.ui-icon-volume-off { background-position: -128px -160px; }
+.ui-icon-volume-on { background-position: -144px -160px; }
+.ui-icon-power { background-position: 0 -176px; }
+.ui-icon-signal-diag { background-position: -16px -176px; }
+.ui-icon-signal { background-position: -32px -176px; }
+.ui-icon-battery-0 { background-position: -48px -176px; }
+.ui-icon-battery-1 { background-position: -64px -176px; }
+.ui-icon-battery-2 { background-position: -80px -176px; }
+.ui-icon-battery-3 { background-position: -96px -176px; }
+.ui-icon-circle-plus { background-position: 0 -192px; }
+.ui-icon-circle-minus { background-position: -16px -192px; }
+.ui-icon-circle-close { background-position: -32px -192px; }
+.ui-icon-circle-triangle-e { background-position: -48px -192px; }
+.ui-icon-circle-triangle-s { background-position: -64px -192px; }
+.ui-icon-circle-triangle-w { background-position: -80px -192px; }
+.ui-icon-circle-triangle-n { background-position: -96px -192px; }
+.ui-icon-circle-arrow-e { background-position: -112px -192px; }
+.ui-icon-circle-arrow-s { background-position: -128px -192px; }
+.ui-icon-circle-arrow-w { background-position: -144px -192px; }
+.ui-icon-circle-arrow-n { background-position: -160px -192px; }
+.ui-icon-circle-zoomin { background-position: -176px -192px; }
+.ui-icon-circle-zoomout { background-position: -192px -192px; }
+.ui-icon-circle-check { background-position: -208px -192px; }
+.ui-icon-circlesmall-plus { background-position: 0 -208px; }
+.ui-icon-circlesmall-minus { background-position: -16px -208px; }
+.ui-icon-circlesmall-close { background-position: -32px -208px; }
+.ui-icon-squaresmall-plus { background-position: -48px -208px; }
+.ui-icon-squaresmall-minus { background-position: -64px -208px; }
+.ui-icon-squaresmall-close { background-position: -80px -208px; }
+.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
+.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
+.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
+.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
+.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
+.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Corner radius */
+.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; }
+.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; }
+.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
+.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
+
+/* Overlays */
+.ui-widget-overlay { background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
+.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }
\ No newline at end of file


[12/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/synapse-configs/default/synapse.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/synapse-configs/default/synapse.xml b/products/stratos_controller/conf/synapse-configs/default/synapse.xml
deleted file mode 100755
index d8ad52d..0000000
--- a/products/stratos_controller/conf/synapse-configs/default/synapse.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!-- The default synapse configuration shipped with the WSO2 Elastic  Load Balancer
- -->
-
-<definitions xmlns="http://ws.apache.org/ns/synapse">
-</definitions>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/synapse.properties
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/synapse.properties b/products/stratos_controller/conf/synapse.properties
deleted file mode 100755
index c3cbdb4..0000000
--- a/products/stratos_controller/conf/synapse.properties
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-#synapse.threads.core = 20
-#synapse.threads.max = 100
-#synapse.threads.keepalive = 5
-#synapse.threads.qlen = 10
-#synapse.threads.group = synapse-thread-group
-#synapse.threads.idprefix = SynapseWorker
-
-synapse.sal.endpoints.sesssion.timeout.default=600000
-
-#In memory statistics cleaning state 
-statistics.clean.enable=false
-
-# Dependency tracking Synapse observer
-# Comment out to disable dependency management
-synapse.observers=org.wso2.carbon.mediation.dependency.mgt.DependencyTracker
-
-# User defined wsdlLocator/Schema Resolver Implementations.
-# synapse.wsdl.resolver=org.wso2.carbon.mediation.initializer.RegistryWSDLLocator
-# synapse.schema.resolver=org.wso2.carbon.mediation.initializer.RegistryXmlSchemaURIResolver
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/tenant-reg-agent.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/tenant-reg-agent.xml b/products/stratos_controller/conf/tenant-reg-agent.xml
deleted file mode 100755
index c39e189..0000000
--- a/products/stratos_controller/conf/tenant-reg-agent.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<tenantRegListenerServers>
-    <!--<server>
-        <serverUrl>https://10.100.1.206:9443/services/</serverUrl>
-        <userName>admin</userName>
-        <password>admin</password>
-    </server>-->
-</tenantRegListenerServers>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/throttling-rules.drl
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/throttling-rules.drl b/products/stratos_controller/conf/throttling-rules.drl
deleted file mode 100755
index 2225fa6..0000000
--- a/products/stratos_controller/conf/throttling-rules.drl
+++ /dev/null
@@ -1,251 +0,0 @@
-import org.wso2.carbon.throttling.manager.dataobjects.*;
-import org.wso2.carbon.billing.mgt.dataobjects.*;
-import org.wso2.carbon.stratos.common.constants.*;
-
-// free users restrictions
-
-rule unsetRestrictFreeUsers
-when
- $package: MultitenancyPackage(name == "Demo")
- $dataContext : ThrottlingDataContext()
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_ADD_USER_ACTION, false, null);
-
-end
-
-
-rule restrictFreeDataVolume
-when
- $package: MultitenancyPackage(name == "Demo")
- $dataContext : ThrottlingDataContext()
- eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) > (20 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, true, 
-            "You have exceeded the maximum allowed disk storage of 20Mb. Please upgrade the subscription.");
-end
-
-
-rule unsetRestrictFreeDataVolume
-when
- $package: MultitenancyPackage(name == "Demo")
- $dataContext : ThrottlingDataContext()
- eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) <= (20 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, false, null);
-end
-
-
-rule restrictFreeBandwidth
-when
- $package: MultitenancyPackage(name == "Demo")
- $dataContext : ThrottlingDataContext()
- eval(($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_INCOMING_BANDWIDTH) + 
- 		$dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_OUTGOING_BANDWIDTH)) > (50 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_SERVICE_IN_BANDWIDTH_ACTION, true, 
-            "You have exceeded the maximum allowed bandwidth of 50Mb. Please upgrade the subscription.");
- validation.setTenantBlocked(StratosConstants.THROTTLING_WEBAPP_IN_BANDWIDTH_ACTION, true, 
-            "You have exceeded the maximum allowed bandwidth of 50Mb. Please upgrade the subscription.");
- validation.setTenantBlocked(StratosConstants.THROTTLING_OUT_DATA_ACTION, true, 
-            "You have exceeded the maximum allowed bandwidth of 50Mb. Please upgrade the subscription.");                      
-end
-
-
-rule unsetRestrictFreeBandwidth
-when
- $package: MultitenancyPackage(name == "Demo")
- $dataContext : ThrottlingDataContext()
- eval(($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_INCOMING_BANDWIDTH) + 
- 		$dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_OUTGOING_BANDWIDTH)) < (50 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_SERVICE_IN_BANDWIDTH_ACTION,false,null);
- validation.setTenantBlocked(StratosConstants.THROTTLING_WEBAPP_IN_BANDWIDTH_ACTION,false,null);
- validation.setTenantBlocked(StratosConstants.THROTTLING_OUT_DATA_ACTION,false,null);
-end
-
-
-//---------------------------------------------------------------------------------
-// small users restrictions
-
-
-
-rule restrictSmallDataVolume
-when
- $package: MultitenancyPackage(name == "SMB")
- $dataContext : ThrottlingDataContext()
- eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) > (50 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, true, 
-            "You have exceeded the maximum allowed disk storage of 50Mb. Please upgrade the subscription.");
-end
-
-
-rule unsetRestrictSmallDataVolume
-when
- $package: MultitenancyPackage(name == "SMB")
- $dataContext : ThrottlingDataContext()
- eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) <= (50 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, false, null);
-end
-
-
-rule restrictSmallBandwidth
-when
- $package: MultitenancyPackage(name == "SMB")
- $dataContext : ThrottlingDataContext()
- eval(($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_INCOMING_BANDWIDTH) + 
- 		$dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_OUTGOING_BANDWIDTH)) > (150 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_SERVICE_IN_BANDWIDTH_ACTION, true, 
-            "You have exceeded the maximum allowed bandwidth of 150Mb. Please upgrade the subscription.");
- validation.setTenantBlocked(StratosConstants.THROTTLING_WEBAPP_IN_BANDWIDTH_ACTION, true, 
-            "You have exceeded the maximum allowed bandwidth of 150Mb. Please upgrade the subscription.");
- validation.setTenantBlocked(StratosConstants.THROTTLING_OUT_DATA_ACTION, true, 
-            "You have exceeded the maximum allowed bandwidth of 150Mb. Please upgrade the subscription."); 
-end
-
-
-rule unsetRestrictSmallBandwidth
-when
- $package: MultitenancyPackage(name == "SMB")
- $dataContext : ThrottlingDataContext()
- eval(($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_INCOMING_BANDWIDTH) + 
- 		$dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_OUTGOING_BANDWIDTH)) < (150 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_SERVICE_IN_BANDWIDTH_ACTION,false,null);
- validation.setTenantBlocked(StratosConstants.THROTTLING_WEBAPP_IN_BANDWIDTH_ACTION,false,null);
- validation.setTenantBlocked(StratosConstants.THROTTLING_OUT_DATA_ACTION,false,null);
-end
-
-
-rule unsetRestrictSmallUsers
-when
- $package: MultitenancyPackage(name == "SMB")
- $dataContext : ThrottlingDataContext()
-then
-
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_ADD_USER_ACTION, false, null);
-
-end
-
-
-
-
-//-------------------------------------------------------------------------------
-// medium users restrictions
-
-
-
-rule restrictMediumDataVolume
-when
- $package: MultitenancyPackage(name == "Professional")
- $dataContext : ThrottlingDataContext()
- eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) > (500 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, true, 
-            "You have exceeded the maximum allowed disk storage of 500Mb. Please upgrade the subscription.");
-end
-
-
-rule unsetRestrictMediumDataVolume
-when
- $package: MultitenancyPackage(name == "Professional")
- $dataContext : ThrottlingDataContext()
- eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) <= (500 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, false, null);
-end
-
-
-rule unsetRestrictMediumUsers
-when
- $package: MultitenancyPackage(name == "Professional")
- $dataContext : ThrottlingDataContext()
-then
-
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_ADD_USER_ACTION, false, null);
-
-end
-
-
-
-//-----------------------------------------------------------------------------------------------
-// large users restrictions
-
-
-rule restrictLargeDataVolume
-when
- $package: MultitenancyPackage(name == "Enterprise")
- $dataContext : ThrottlingDataContext()
- eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) > (1500 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, true, 
-            "You have exceeded the maximum allowed disk storage of 1500Mb.");
-end
-
-
-rule unsetRestrictLargeDataVolume
-when
- $package: MultitenancyPackage(name == "Enterprise")
- $dataContext : ThrottlingDataContext()
- eval($dataContext.getDataLong(ThrottlingDataEntryConstants.TENANT_CAPACITY) <= (1500 * 1024 * 1024) && 
-            $dataContext.getDataObject(ThrottlingDataEntryConstants.PACKAGE) == $package)
-
-then
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_IN_DATA_ACTION, false, null);
-end
-
-
-rule unsetRestrictLargeUsers
-when
- $package: MultitenancyPackage(name == "Enterprise")
- $dataContext : ThrottlingDataContext()
-then
-
- ThrottlingAccessValidation validation = $dataContext.getAccessValidation();
- validation.setTenantBlocked(StratosConstants.THROTTLING_ADD_USER_ACTION, false, null);
-
-end
-
-
-
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/user-mgt.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/user-mgt.xml b/products/stratos_controller/conf/user-mgt.xml
deleted file mode 100644
index c6cdb74..0000000
--- a/products/stratos_controller/conf/user-mgt.xml
+++ /dev/null
@@ -1,241 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-        
-<UserManager>
-    <Realm>
-        <Configuration>
-                <AdminRole>admin</AdminRole>
-                <AdminUser>
-                     <UserName>admin</UserName>
-                     <Password>admin</Password>
-                </AdminUser>
-            <EveryOneRoleName>everyone</EveryOneRoleName> <!-- By default users in this role sees the registry root -->
-            <Property name="dataSource">jdbc/WSO2CarbonDB</Property>
-            <Property name="MultiTenantRealmConfigBuilder">org.wso2.carbon.user.core.config.multitenancy.SimpleRealmConfigBuilder</Property>
-        </Configuration>
-	<!-- Following is the default user store manager. This user store manager is based on embedded-apacheds LDAP. It reads/writes users and roles into the 		     default apacheds LDAP user store. Descriptions about each of the following properties can be found in user management documentation of the 	 respective product. In case if user core cache domain is needed to identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>
-	     Note: Do not comment within UserStoreManager tags. Cause, specific tag names are used as tokens when building configurations for products. -->
-	<!--UserStoreManager class="org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager">
-            <Property name="ConnectionURL">ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}</Property>
-            <Property name="ConnectionName">uid=admin,ou=system</Property>
-            <Property name="ConnectionPassword">admin</Property>
-            <Property name="passwordHashMethod">SHA</Property>
-            <Property name="UserNameListFilter">(objectClass=person)</Property>
-	    <Property name="UserEntryObjectClass">wso2Person</Property>
-            <Property name="UserSearchBase">ou=Users,dc=wso2,dc=org</Property>
-            <Property name="UserNameSearchFilter">(&amp;(objectClass=person)(uid=?))</Property>
-            <Property name="UserNameAttribute">uid</Property>
-            <Property name="PasswordJavaScriptRegEx">^[\\S]{5,30}$</Property>
-            <Property name="UsernameJavaScriptRegEx">^[\\S]{3,30}$</Property>
-	    <Property name="UsernameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
-            <Property name="RolenameJavaScriptRegEx">^[\\S]{3,30}$</Property>
-            <Property name="RolenameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
-            <Property name="ReadLDAPGroups">true</Property>
-	    <Property name="WriteLDAPGroups">true</Property>
-	    <Property name="EmptyRolesAllowed">true</Property>
-            <Property name="GroupSearchBase">ou=Groups,dc=wso2,dc=org</Property>
-            <Property name="GroupNameListFilter">(objectClass=groupOfNames)</Property>
-            <Property name="GroupEntryObjectClass">groupOfNames</Property>
-            <Property name="GroupNameSearchFilter">(&amp;(objectClass=groupOfNames)(cn=?))</Property>
-            <Property name="GroupNameAttribute">cn</Property>
-            <Property name="MembershipAttribute">member</Property>
-	    <Property name="UserRolesCacheEnabled">true</Property>
-	    <Property name="UserDNPattern">uid={0},ou=Users,dc=wso2,dc=org</Property>
-        </UserStoreManager-->
-
-	<!-- Following is the configuration for internal JDBC user store. This user store manager is based on JDBC. In case if application needs to manage 		     passwords externally set property <Property name="PasswordsExternallyManaged">true</Property>. In case if user core cache domain is needed to 			identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>. Furthermore properties, IsEmailUserName and 	     			DomainCalculation are readonly properties. 
-	     Note: Do not comment within UserStoreManager tags. Cause, specific tag names are used as tokens when building configurations for products. -->	
-        <UserStoreManager class="org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager">
-	    <Property name="ReadOnly">false</Property>
-            <Property name="MaxUserNameListLength">100</Property>
-            <Property name="IsEmailUserName">false</Property>
-            <Property name="DomainCalculation">default</Property>
-            <Property name="PasswordDigest">SHA-256</Property>
-            <Property name="StoreSaltedPassword">true</Property>
-            <Property name="UserNameUniqueAcrossTenants">false</Property>
-            <Property name="PasswordJavaRegEx">^[\S]{5,30}$</Property>
-            <Property name="PasswordJavaScriptRegEx">^[\\S]{5,30}$</Property>
-	    <Property name="UsernameJavaRegEx">^[^~!#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
-	    <Property name="UsernameJavaScriptRegEx">^[\\S]{3,30}$</Property>
-	    <Property name="RolenameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
-	    <Property name="RolenameJavaScriptRegEx">^[\\S]{3,30}$</Property>
-            <Property name="UserRolesCacheEnabled">true</Property>
-        </UserStoreManager>
-	
-	<!-- If product is using an external LDAP as the user store in READ ONLY mode, use following user manager.
-		In case if user core cache domain is needed to identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>
- 	-->
-        <!--UserStoreManager class="org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager">
-            <Property name="ReadOnly">true</Property>
-	    <Property name="MaxUserNameListLength">100</Property>
-            <Property name="ConnectionURL">ldap://localhost:10389</Property>
-            <Property name="ConnectionName">uid=admin,ou=system</Property>
-            <Property name="ConnectionPassword">admin</Property>
-            <Property name="UserSearchBase">ou=system</Property>
-            <Property name="UserNameListFilter">(objectClass=person)</Property>
-            <Property name="UserNameAttribute">uid</Property>
-            <Property name="ReadLDAPGroups">false</Property>
-            <Property name="GroupSearchBase">ou=system</Property>
-            <Property name="GroupNameListFilter">(objectClass=groupOfNames)</Property>
-            <Property name="GroupNameAttribute">cn</Property>
-            <Property name="MembershipAttribute">member</Property>
-            <Property name="UserRolesCacheEnabled">true</Property>
-	    <Property name="ReplaceEscapeCharactersAtUserLogin">true</Property>
-        </UserStoreManager-->
-	
-	<!-- Active directory configuration is as follows.
-	    In case if user core cache domain is needed to identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>
-	    There are few special properties for "Active Directory". 
-	    They are : 
-	    1.Referral - (comment out this property if this feature is not reuired) This enables LDAP referral support.
-	    2.BackLinksEnabled - (Do not comment, set to true or false) In some cases LDAP works with BackLinksEnabled. In which role is stored
-	     at user level. Depending on this value we need to change the Search Base within code.
-	    3.isADLDSRole - (Do not comment) Set to true if connecting to an AD LDS instance else set to false.  
-	-->
-	<!--UserStoreManager class="org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager">
-            <Property name="defaultRealmName">WSO2.ORG</Property>
-            <Property name="kdcEnabled">false</Property>
-            <Property name="ConnectionURL">ldaps://10.100.1.100:636</Property> 
-            <Property name="ConnectionName">CN=admin,CN=Users,DC=WSO2,DC=Com</Property>
-            <Property name="ConnectionPassword">A1b2c3d4</Property>
-	    <Property name="passwordHashMethod">SHA</Property>
-            <Property name="UserSearchBase">CN=Users,DC=WSO2,DC=Com</Property>
-            <Property name="UserEntryObjectClass">user</Property>
-            <Property name="UserNameAttribute">cn</Property>
-            <Property name="isADLDSRole">false</Property>
-	    <Property name="userAccountControl">512</Property>
-            <Property name="UserNameListFilter">(objectClass=user)</Property>
-	    <Property name="UserNameSearchFilter">(&amp;(objectClass=user)(cn=?))</Property>
-            <Property name="UsernameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;]{3,30}$</Property>
-            <Property name="UsernameJavaScriptRegEx">^[\\S]{3,30}$</Property>
-            <Property name="PasswordJavaScriptRegEx">^[\\S]{5,30}$</Property>
-	    <Property name="RolenameJavaScriptRegEx">^[\\S]{3,30}$</Property>
-            <Property name="RolenameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;]{3,30}$</Property>
-	    <Property name="ReadLDAPGroups">true</Property>
-	    <Property name="WriteLDAPGroups">true</Property>
-	    <Property name="EmptyRolesAllowed">true</Property>
-            <Property name="GroupSearchBase">CN=Users,DC=WSO2,DC=Com</Property>
-	    <Property name="GroupEntryObjectClass">group</Property>
-            <Property name="GroupNameAttribute">cn</Property>
-            <Property name="MembershipAttribute">member</Property>
-            <Property name="GroupNameListFilter">(objectcategory=group)</Property>
-	    <Property name="GroupNameSearchFilter">(&amp;(objectClass=group)(cn=?))</Property>
-            <Property name="UserRolesCacheEnabled">true</Property>
-            <Property name="Referral">follow</Property>
-	    <Property name="BackLinksEnabled">true</Property>
-        </UserStoreManager-->
-	
-	<!-- If product is using an external LDAP as the user store in read/write mode, use following user manager 
-		In case if user core cache domain is needed to identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>
-	-->
-	<!--UserStoreManager class="org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager">
-            <Property name="ConnectionURL">ldap://localhost:10389</Property>
-            <Property name="ConnectionName">uid=admin,ou=system</Property>
-            <Property name="ConnectionPassword">secret</Property>
-            <Property name="passwordHashMethod">SHA</Property>
-            <Property name="UserNameListFilter">(objectClass=person)</Property>
-	    <Property name="UserEntryObjectClass">inetOrgPerson</Property>
-            <Property name="UserSearchBase">ou=system</Property>
-            <Property name="UserNameSearchFilter">(&amp;(objectClass=person)(uid=?))</Property>
-            <Property name="UserNameAttribute">uid</Property>
-	    <Property name="UsernameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;]{3,30}$</Property>
-            <Property name="UsernameJavaScriptRegEx">^[\\S]{3,30}$</Property>
-	    <Property name="RolenameJavaScriptRegEx">^[\\S]{3,30}$</Property>
-            <Property name="RolenameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;]{3,30}$</Property>
-            <Property name="PasswordJavaScriptRegEx">^[\\S]{5,30}$</Property>
-	    <Property name="ReadLDAPGroups">true</Property>
-	    <Property name="WriteLDAPGroups">true</Property>
-	    <Property name="EmptyRolesAllowed">false</Property>
-            <Property name="GroupSearchBase">ou=system</Property>
-            <Property name="GroupNameListFilter">(objectClass=groupOfNames)</Property>
-            <Property name="GroupEntryObjectClass">groupOfNames</Property>
-            <Property name="GroupNameSearchFilter">(&amp;(objectClass=groupOfNames)(cn=?))</Property>
-            <Property name="GroupNameAttribute">cn</Property>
-            <Property name="MembershipAttribute">member</Property>
-            <Property name="UserRolesCacheEnabled">true</Property>
-	    <Property name="ReplaceEscapeCharactersAtUserLogin">true</Property>
-        </UserStoreManager-->
-
-	<!-- Following user manager is used by Identity Server (IS) as its default user manager. 
-	     IS will do token replacement when building the product. Therefore do not change the syntax. 
-	     If "kdcEnabled" parameter is true, IS will allow service principle management. Thus "ServicePasswordJavaRegEx", "ServiceNameJavaRegEx"
-	     properties control the service name format and service password formats.
-	     In case if user core cache domain is needed to identify uniquely set property <Property name="UserCoreCacheIdentifier">domain</Property>
-	-->
-	<!--ISUserStoreManager class="org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager">
-            <Property name="defaultRealmName">WSO2.ORG</Property>
-            <Property name="kdcEnabled">false</Property>
-            <Property name="ConnectionURL">ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}</Property>
-            <Property name="ConnectionName">uid=admin,ou=system</Property>
-            <Property name="ConnectionPassword">admin</Property>
-            <Property name="passwordHashMethod">SHA</Property>
-            <Property name="UserNameListFilter">(objectClass=person)</Property>
-            <Property name="UserEntryObjectClass">scimPerson</Property>
-            <Property name="UserSearchBase">ou=Users,dc=wso2,dc=org</Property>
-            <Property name="UserNameSearchFilter">(&amp;(objectClass=person)(uid=?))</Property>
-            <Property name="UserNameAttribute">uid</Property>
-            <Property name="PasswordJavaScriptRegEx">^[\\S]{5,30}$</Property>
-	    <Property name="ServicePasswordJavaRegEx">^[\\S]{5,30}$</Property>
-	    <Property name="ServiceNameJavaRegEx">^[\\S]{2,30}/[\\S]{2,30}$</Property>
-            <Property name="UsernameJavaScriptRegEx">^[\\S]{3,30}$</Property>
-            <Property name="UsernameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
-            <Property name="RolenameJavaScriptRegEx">^[\\S]{3,30}$</Property>
-            <Property name="RolenameJavaRegEx">^[^~!@#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>
-	    <Property name="ReadLDAPGroups">true</Property>
-	    <Property name="WriteLDAPGroups">true</Property>
-	    <Property name="EmptyRolesAllowed">true</Property>
-            <Property name="GroupSearchBase">ou=Groups,dc=wso2,dc=org</Property>
-            <Property name="GroupNameListFilter">(objectClass=groupOfNames)</Property>
-	    <Property name="GroupEntryObjectClass">groupOfNames</Property>
-            <Property name="GroupNameSearchFilter">(&amp;(objectClass=groupOfNames)(cn=?))</Property>
-            <Property name="GroupNameAttribute">cn</Property>
-            <Property name="MembershipAttribute">member</Property>
-            <Property name="UserRolesCacheEnabled">true</Property>
-	    <Property name="UserDNPattern">uid={0},ou=Users,dc=wso2,dc=org</Property>
-	    <Property name="SCIMEnabled">true</Property>
-        </ISUserStoreManager-->
-
-        <AuthorizationManager
-            class="org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager">
-            <Property name="AdminRoleManagementPermissions">/permission</Property>
-	    <Property name="AuthorizationCacheEnabled">true</Property>
-        </AuthorizationManager>
-    </Realm>
-</UserManager>
-
-<!--*******Description of some of the configuration properties used in user-mgt.xml*********************************
-UserRolesCacheEnabled - This is to indicate whether to cache role list of a user. By default it is set to true.
-                        You may need to disable it if user-roles are changed by external means and need to reflect
-                        those changes in the carbon product immediately.
-
-ReplaceEscapeCharactersAtUserLogin - This is to configure whether escape characters in user name needs to be replaced at user login.
-				     Currently the identified escape characters that needs to be replaced are '\' & '\\'
-
-UserDNPattern - This property will be used when authenticating users. During authentication we do a bind. But if the user is login with
-                email address or some other property we need to first lookup LDAP and retreive DN for the user. This involves an additional step. 
-                If UserDNPattern is specified the DN will be contructed using the pattern specified in this property. Performance of this is much better than looking
-                up DN and binding user.
-
-passwordHashMethod - This says how the password should be stored. Allowed values are as follows,
-                     SHA - Uses SHA digest method
-                     MD5 - Uses MD 5 digest method
-                     PLAIN_TEXT - Plain text passwords
-                     In addition to above this supports all digest methods supported by http://docs.oracle.com/javase/6/docs/api/java/security/MessageDigest.html.
-
--->

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/conf/zoo.cfg
----------------------------------------------------------------------
diff --git a/products/stratos_controller/conf/zoo.cfg b/products/stratos_controller/conf/zoo.cfg
deleted file mode 100644
index ca3cc26..0000000
--- a/products/stratos_controller/conf/zoo.cfg
+++ /dev/null
@@ -1,4 +0,0 @@
-tickTime=2000
-dataDir=repository/data/zookeeper
-clientPort=2181
-start_zk_server=false

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/cloud-service-mgt/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/cloud-service-mgt/pom.xml b/products/stratos_controller/modules/cloud-service-mgt/pom.xml
deleted file mode 100644
index 895a37b..0000000
--- a/products/stratos_controller/modules/cloud-service-mgt/pom.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-    <parent>
-	<groupId>org.apache.stratos</groupId>
-	<artifactId>stratos-controller-parent</artifactId>
-	<version>3.0.0-SNAPSHOT</version>
-        <relativePath>../../pom.xml</relativePath>
-    </parent>
-
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>org.apache.stratos.manager.services.mgt</artifactId>
-    <packaging>bundle</packaging>
-    <name>Apache Stratos - Cloud Manager Cloud Services Management</name>
-
-    <build>
-
-        <plugins>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-scr-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
-                        <Bundle-Name>${project.artifactId}</Bundle-Name>
-                        <Private-Package>
-                            org.apache.stratos.manager.services.mgt.*,
-                        </Private-Package>
-                        <Import-Package>
-                            org.wso2.carbon.registry.core.*;version=1.0.1,
-                            !javax.xml.namespace,
-                            javax.xml.namespace; version=0.0.0,
-                            javax.servlet; version=2.4.0,
-                            javax.servlet.http; version=2.4.0,
-                            org.apache.axiom.*; version="${axiom.osgi.version.range}",
-                            *;resolution:=optional
-                        </Import-Package>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-
-    </build>
- <dependencies>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.registry.core</artifactId>
-            <version>${wso2carbon.version}</version>
-        </dependency>
-        <!--<dependency>-->
-            <!--<groupId>org.wso2.carbon</groupId>-->
-            <!--<artifactId>org.wso2.carbon.registry.extensions</artifactId>-->
-            <!--<version>${registry-component.version}</version>-->
-        <!--</dependency>-->
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.registry.resource</artifactId>
-            <version>${wso2carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.common</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.tenant.mgt</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-    </dependencies>
-   
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/beans/CloudService.java
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/beans/CloudService.java b/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/beans/CloudService.java
deleted file mode 100644
index 7648280..0000000
--- a/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/beans/CloudService.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.manager.services.mgt.beans;
-
-public class CloudService {
-    private String name;
-    private String label;
-    private String link;
-    private String icon;
-    private String description;
-    private boolean active;
-    private String productPageURL;
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    public String getLabel() {
-        return label;
-    }
-
-    public void setLabel(String label) {
-        this.label = label;
-    }
-
-    public String getLink() {
-        return link;
-    }
-
-    public void setLink(String link) {
-        this.link = link;
-    }
-
-    public String getIcon() {
-        return icon;
-    }
-
-    public void setIcon(String icon) {
-        this.icon = icon;
-    }
-
-    public String getDescription() {
-        return description;
-    }
-
-    public void setDescription(String description) {
-        this.description = description;
-    }
-
-    public boolean isActive() {
-        return active;
-    }
-
-    public void setActive(boolean active) {
-        this.active = active;
-    }
-
-    public String getProductPageURL() {
-        return productPageURL;
-    }
-
-    public void setProductPageURL(String productPageURL) {
-        this.productPageURL = productPageURL;
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/internal/CloudServiceMgtServiceComponent.java
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/internal/CloudServiceMgtServiceComponent.java b/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/internal/CloudServiceMgtServiceComponent.java
deleted file mode 100644
index 542e601..0000000
--- a/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/internal/CloudServiceMgtServiceComponent.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.manager.services.mgt.internal;
-
-import org.apache.stratos.manager.services.mgt.util.Util;
-import org.wso2.carbon.registry.core.service.RegistryService;
-import org.wso2.carbon.user.core.service.RealmService;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import org.osgi.service.component.ComponentContext;
-
-/**
- * @scr.component name="org.wso2.stratos.manager.services.mgt"
- * immediate="true"
- * @scr.reference name="registry.service"
- * interface="org.wso2.carbon.registry.core.service.RegistryService" cardinality="1..1"
- * policy="dynamic" bind="setRegistryService" unbind="unsetRegistryService"
- * @scr.reference name="user.realmservice.default"
- * interface="org.wso2.carbon.user.core.service.RealmService"
- * cardinality="1..1" policy="dynamic" bind="setRealmService"
- * unbind="unsetRealmService"
- */
-public class CloudServiceMgtServiceComponent {
-    private static Log log = LogFactory.getLog(CloudServiceMgtServiceComponent.class);
-
-    protected void activate(ComponentContext context) {
-        try {
-            Util.loadCloudServicesConfiguration();
-            Util.loadServiceIcons();
-            log.debug("******* Cloud Manager Service Manager bundle is activated ******* ");
-        } catch (Throwable e) {
-            String msg = "******* Cloud Manager Service Manager bundle activation failed. ******* ";
-            log.error(msg, e);
-        }
-    }
-
-    protected void deactivate(ComponentContext context) {
-        log.debug("******* Cloud Manager Service Manager bundle is deactivated ******* ");
-    }
-    protected void setRegistryService(RegistryService registryService) {
-        Util.setRegistryService(registryService);
-    }
-
-    protected void unsetRegistryService(RegistryService registryService) {
-        Util.setRegistryService(null);
-    }
-
-    protected void setRealmService(RealmService realmService) {
-        Util.setRealmService(realmService);
-    }
-
-    protected void unsetRealmService(RealmService realmService) {
-        Util.setRealmService(null);
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/services/CloudManagerService.java
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/services/CloudManagerService.java b/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/services/CloudManagerService.java
deleted file mode 100644
index f12a4bb..0000000
--- a/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/services/CloudManagerService.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.manager.services.mgt.services;
-
-import org.wso2.carbon.core.AbstractAdmin;
-import org.wso2.carbon.registry.core.session.UserRegistry;
-import org.apache.stratos.common.config.CloudServiceConfig;
-import org.apache.stratos.common.config.CloudServicesDescConfig;
-import org.apache.stratos.common.constants.StratosConstants;
-import org.apache.stratos.manager.services.mgt.beans.CloudService;
-import org.apache.stratos.manager.services.mgt.util.Util;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-public class CloudManagerService extends AbstractAdmin {
-    
-    public CloudService[] retrieveCloudServiceInfo() throws Exception {
-        UserRegistry registry = (UserRegistry)getConfigUserRegistry();
-        int tenantId = registry.getTenantId();
-
-        CloudServicesDescConfig cloudServicesDesc = Util.getCloudServicesDescConfig();
-        Map<String, CloudServiceConfig> cloudServiceConfigs =
-                cloudServicesDesc.getCloudServiceConfigs();
-        List<CloudService> cloudServices = new ArrayList<CloudService>();
-        if (cloudServiceConfigs != null) {
-            Set<String> configKeys = cloudServiceConfigs.keySet();
-            for (String configKey : configKeys) {
-                CloudServiceConfig cloudServiceConfig = cloudServiceConfigs.get(configKey);
-                String label = cloudServiceConfig.getLabel();
-                if (label == null) {
-                    // we are only returning display-able services
-                    continue;
-                }
-                CloudService cloudService = new CloudService();
-                String name = cloudServiceConfig.getName();
-                cloudService.setName(name);
-                cloudService.setLabel(label);
-                cloudService.setLink(cloudServiceConfig.getLink());
-                cloudService.setIcon(cloudServiceConfig.getIcon());
-                cloudService.setDescription(cloudServiceConfig.getDescription());
-                cloudService.setProductPageURL(cloudServiceConfig.getProductPageURL());
-                boolean active = Util.isCloudServiceActive(name, tenantId);
-                cloudService.setActive(tenantId == 0 || active);
-
-                cloudServices.add(cloudService);
-            }
-        }
-        return cloudServices.toArray(new CloudService[cloudServices.size()]);
-    }
-
-    public void saveCloudServicesActivity(String[] activeServiceNames) throws Exception {
-        UserRegistry registry = (UserRegistry)getConfigUserRegistry();
-        int tenantId = registry.getTenantId();
-
-        CloudServicesDescConfig cloudServicesDesc = Util.getCloudServicesDescConfig();
-        Map<String, CloudServiceConfig> cloudServiceConfigMap =
-                cloudServicesDesc.getCloudServiceConfigs();
-
-        List<String> activeServiceNamesList = Arrays.asList(activeServiceNames);
-        if (cloudServiceConfigMap != null) {
-            for (String cloudServiceName : cloudServiceConfigMap.keySet()) {
-                if (activeServiceNamesList.contains(cloudServiceName)) {
-                    // this should be made active
-                    if (!Util.isCloudServiceActive(cloudServiceName, tenantId)) {
-                        Util.setCloudServiceActive(true, cloudServiceName, tenantId);
-                    }
-                } else {
-                    // this should be made inactive
-                    if (Util.isCloudServiceActive(cloudServiceName, tenantId)) {
-                        Util.setCloudServiceActive(false, cloudServiceName, tenantId);
-                    }
-
-                }
-            }
-        }
-        Util.setCloudServiceActive(true, StratosConstants.CLOUD_IDENTITY_SERVICE, tenantId);
-        Util.setCloudServiceActive(true, StratosConstants.CLOUD_GOVERNANCE_SERVICE, tenantId);
-    }
-
-    public void activate(String cloudServiceName) throws Exception {
-        UserRegistry registry = (UserRegistry) getConfigUserRegistry();
-        int tenantId = registry.getTenantId();
-        if (!Util.isCloudServiceActive(cloudServiceName, tenantId)) {
-            Util.setCloudServiceActive(true, cloudServiceName, tenantId);
-        }
-    }
-
-    public void deactivate(String cloudServiceName) throws Exception {
-        if (StratosConstants.CLOUD_IDENTITY_SERVICE.equals(cloudServiceName) ||
-            StratosConstants.CLOUD_GOVERNANCE_SERVICE.equals(cloudServiceName)) {
-            // cloud identity and governance services cannot be deactivated..
-            return;
-        }
-        UserRegistry registry = (UserRegistry) getConfigUserRegistry();
-        int tenantId = registry.getTenantId();
-        if (Util.isCloudServiceActive(cloudServiceName, tenantId)) {
-            Util.setCloudServiceActive(false, cloudServiceName, tenantId);
-        }
-    }
-}
-
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Constants.java
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Constants.java b/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Constants.java
deleted file mode 100644
index 3b615b2..0000000
--- a/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Constants.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.manager.services.mgt.util;
-
-public class Constants {
-    public static final String CLOUD_SERVICE_INFO_STORE_PATH =
-            "/repository/components/org.wso2.stratos/cloud-manager/cloud-services";
-    public static final String CLOUD_SERVICE_ICONS_STORE_PATH =
-            "/repository/components/org.wso2.stratos/cloud-manager/" +
-                    "cloud-services-icons";
-
-    public static final String CLOUD_SERVICE_IS_ACTIVE_PROP_KEY = "active";
-}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Util.java
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Util.java b/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Util.java
deleted file mode 100644
index 904537f..0000000
--- a/products/stratos_controller/modules/cloud-service-mgt/src/main/java/org/apache/stratos/manager/services/mgt/util/Util.java
+++ /dev/null
@@ -1,264 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.manager.services.mgt.util;
-
-import org.wso2.carbon.registry.core.Collection;
-import org.wso2.carbon.registry.core.RegistryConstants;
-import org.wso2.carbon.registry.core.Resource;
-import org.wso2.carbon.registry.core.exceptions.RegistryException;
-import org.wso2.carbon.registry.core.service.RegistryService;
-import org.wso2.carbon.registry.core.session.UserRegistry;
-import org.apache.stratos.common.config.CloudServiceConfig;
-import org.apache.stratos.common.config.CloudServicesDescConfig;
-import org.apache.stratos.common.config.PermissionConfig;
-import org.apache.stratos.common.constants.StratosConstants;
-import org.apache.stratos.common.util.CommonUtil;
-import org.wso2.carbon.user.api.RealmConfiguration;
-import org.wso2.carbon.user.core.service.RealmService;
-import org.wso2.carbon.user.core.tenant.TenantManager;
-import org.wso2.carbon.user.mgt.UserMgtConstants;
-import org.wso2.carbon.utils.CarbonUtils;
-
-import org.apache.axiom.om.OMElement;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.activation.MimetypesFileTypeMap;
-
-public class Util {
-
-    private static final Log log = LogFactory.getLog(Util.class);
-
-    private static final String CONFIG_FILENAME = "cloud-services-desc.xml";
-
-    private static RegistryService registryService;
-    private static RealmService realmService;
-    private static CloudServicesDescConfig cloudServicesDescConfig = null;
-
-    public static synchronized void setRegistryService(RegistryService service) {
-        if ((registryService == null) || (service == null)) {
-            registryService = service;
-        }
-    }
-
-    public static RegistryService getRegistryService() {
-        return registryService;
-    }
-
-    public static synchronized void setRealmService(RealmService service) {
-        if ((realmService == null) || (service == null)) {
-            realmService = service;
-        }
-    }
-
-    public static RealmService getRealmService() {
-        return realmService;
-    }
-
-    public static TenantManager getTenantManager() {
-        return realmService.getTenantManager();
-    }
-
-    public static RealmConfiguration getBootstrapRealmConfiguration() {
-        return realmService.getBootstrapRealmConfiguration();
-    }
-
-    public static UserRegistry getTenantZeroSystemGovernanceRegistry() throws RegistryException {
-        return registryService.getGovernanceSystemRegistry();
-    }
-
-    public static UserRegistry getSystemGovernanceRegistry(int tenantId) throws RegistryException {
-        return registryService.getGovernanceSystemRegistry(tenantId);
-    }
-
-    public static UserRegistry getSystemConfigRegistry(int tenantId) throws RegistryException {
-        return registryService.getConfigSystemRegistry(tenantId);
-    }
-
-    public static void loadCloudServicesConfiguration() throws Exception {
-        // now load the cloud services configuration
-        String configFileName =
-                CarbonUtils.getCarbonConfigDirPath() + File.separator + StratosConstants.MULTITENANCY_CONFIG_FOLDER +
-                        File.separator+ CONFIG_FILENAME;
-        OMElement configElement;
-        try {
-            configElement = CommonUtil.buildOMElement(new FileInputStream(configFileName));
-        } catch (Exception e) {
-            String msg = "Error in building the cloud service configuration. config filename: " +
-                            configFileName + ".";
-            log.error(msg, e);
-            throw new Exception(msg, e);
-        }
-        cloudServicesDescConfig = new CloudServicesDescConfig(configElement);
-    }
-
-    public static CloudServicesDescConfig getCloudServicesDescConfig() {
-        return cloudServicesDescConfig;
-    }
-
-    public static CloudServiceConfig getCloudServiceConfig(String cloudServiceName) {
-        Map<String, CloudServiceConfig> cloudServiceConfigs =
-                cloudServicesDescConfig.getCloudServiceConfigs();
-        return cloudServiceConfigs.get(cloudServiceName);
-    }
-
-    public static void setCloudServiceActive(boolean active, String cloudServiceName, 
-                                             int tenantId)throws Exception {
-        CloudServiceConfig cloudServiceConfig = getCloudServiceConfig(cloudServiceName);
-        if (cloudServiceConfig.getLabel() == null) {
-            // for the non-labeled services, we are not setting/unsetting the service active
-            return;
-        }
-
-        UserRegistry tenantZeroSystemGovernanceRegistry;
-        UserRegistry systemConfigRegistry;
-        try {
-            tenantZeroSystemGovernanceRegistry = Util.getTenantZeroSystemGovernanceRegistry();
-            systemConfigRegistry = Util.getSystemConfigRegistry(tenantId);
-        } catch (RegistryException e) {
-            String msg = "Error in getting the tenant 0 system config registry";
-            log.error(msg, e);
-            throw new Exception(msg, e);
-        }
-
-        String cloudServiceInfoPath =
-                Constants.CLOUD_SERVICE_INFO_STORE_PATH + RegistryConstants.PATH_SEPARATOR +
-                        tenantId + RegistryConstants.PATH_SEPARATOR + cloudServiceName;
-        Resource cloudServiceInfoResource;
-        if (tenantZeroSystemGovernanceRegistry.resourceExists(cloudServiceInfoPath)) {
-            cloudServiceInfoResource = tenantZeroSystemGovernanceRegistry.get(cloudServiceInfoPath);
-        } else {
-            cloudServiceInfoResource = tenantZeroSystemGovernanceRegistry.newCollection();
-        }
-        cloudServiceInfoResource.setProperty(Constants.CLOUD_SERVICE_IS_ACTIVE_PROP_KEY,
-                active ? "true" : "false");
-        tenantZeroSystemGovernanceRegistry.put(cloudServiceInfoPath, cloudServiceInfoResource);
-
-        // then we will copy the permissions
-        List<PermissionConfig> permissionConfigs = cloudServiceConfig.getPermissionConfigs();
-        for (PermissionConfig permissionConfig : permissionConfigs) {
-            String path = permissionConfig.getPath();
-            String name = permissionConfig.getName();
-            if (active) {
-                if (!systemConfigRegistry.resourceExists(path)) {
-                    Collection collection = systemConfigRegistry.newCollection();
-                    collection.setProperty(UserMgtConstants.DISPLAY_NAME, name);
-                    systemConfigRegistry.put(path, collection);
-                }
-            } else {
-                if (systemConfigRegistry.resourceExists(path)) {
-                    systemConfigRegistry.delete(path);
-                }
-            }
-        }
-    }
-
-    public static boolean isCloudServiceActive(String cloudServiceName, 
-                                               int tenantId)throws Exception {
-        UserRegistry systemGovernanceRegistry;
-        try {
-            systemGovernanceRegistry = Util.getTenantZeroSystemGovernanceRegistry();
-        } catch (RegistryException e) {
-            String msg = "Error in getting the tenant 0 system config registry";
-            log.error(msg, e);
-            throw new Exception(msg, e);
-        }
-
-        String cloudServiceInfoPath =
-                Constants.CLOUD_SERVICE_INFO_STORE_PATH + RegistryConstants.PATH_SEPARATOR +
-                        tenantId + RegistryConstants.PATH_SEPARATOR + cloudServiceName;
-        
-        if (systemGovernanceRegistry.resourceExists(cloudServiceInfoPath)) {
-            Resource cloudServiceInfoResource = systemGovernanceRegistry.get(cloudServiceInfoPath);
-            String isActiveStr = cloudServiceInfoResource.getProperty(
-                    Constants.CLOUD_SERVICE_IS_ACTIVE_PROP_KEY);
-            return "true".equals(isActiveStr);
-        }
-        
-        return false;
-    }
-
-    /**
-     * Currently this is not used, as the icons are loaded from the webapps
-     * 
-     * @throws Exception
-     */
-    public static void loadServiceIcons() throws Exception {
-        String serviceIconDirLocation =
-                CarbonUtils.getCarbonHome() + "/resources/cloud-service-icons";
-        File serviceIconDirDir = new File(serviceIconDirLocation);
-        UserRegistry registry = getTenantZeroSystemGovernanceRegistry();
-        try {
-            // adding the common media types
-            Map<String, String> extensionToMediaTypeMap = new HashMap<String, String>();
-            extensionToMediaTypeMap.put("gif", "img/gif");
-            extensionToMediaTypeMap.put("jpg", "img/gif");
-            extensionToMediaTypeMap.put("png", "img/png");
-
-            File[] filesAndDirs = serviceIconDirDir.listFiles();
-            if (filesAndDirs == null) {
-                return;
-            }
-            List<File> filesDirs = Arrays.asList(filesAndDirs);
-
-            for (File file : filesDirs) {
-                String filename = file.getName();
-                String fileRegistryPath = Constants.CLOUD_SERVICE_ICONS_STORE_PATH +
-                                RegistryConstants.PATH_SEPARATOR + filename;
-
-                // Add the file to registry
-                Resource newResource = registry.newResource();
-                String mediaType = null;
-                if (filename.contains(".")) {
-                    String fileExt = filename.substring(filename.lastIndexOf(".") + 1);
-                    mediaType = extensionToMediaTypeMap.get(fileExt.toLowerCase());
-                }
-                if (mediaType == null) {
-                    mediaType = new MimetypesFileTypeMap().getContentType(file);
-                }
-                newResource.setMediaType(mediaType);
-                newResource.setContentStream(new FileInputStream(file));
-                registry.put(fileRegistryPath, newResource);
-            }
-        } catch (Exception e) {
-            String msg = "Error loading icons to the system registry for registry path: " +
-                            Constants.CLOUD_SERVICE_ICONS_STORE_PATH;
-            log.error(msg, e);
-            throw new Exception(msg, e);
-        }
-
-        try {
-            CommonUtil.setAnonAuthorization(RegistryConstants.GOVERNANCE_REGISTRY_BASE_PATH + 
-                    Constants.CLOUD_SERVICE_ICONS_STORE_PATH, registry.getUserRealm());
-        } catch (RegistryException e) {
-            String msg = "Setting the annon access enabled for the services icons paths.";
-            log.error(msg, e);
-            throw new Exception(msg, e);
-        }
-
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/cloud-service-mgt/src/main/resources/META-INF/component.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/cloud-service-mgt/src/main/resources/META-INF/component.xml b/products/stratos_controller/modules/cloud-service-mgt/src/main/resources/META-INF/component.xml
deleted file mode 100644
index 29bdc6b..0000000
--- a/products/stratos_controller/modules/cloud-service-mgt/src/main/resources/META-INF/component.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  #  Licensed to the Apache Software Foundation (ASF) under one
-  #  or more contributor license agreements.  See the NOTICE file
-  #  distributed with this work for additional information
-  #  regarding copyright ownership.  The ASF licenses this file
-  #  to you under the Apache License, Version 2.0 (the
-  #  "License"); you may not use this file except in compliance
-  #  with the License.  You may obtain a copy of the License at
-  #
-  #  http://www.apache.org/licenses/LICENSE-2.0
-  #
-  #  Unless required by applicable law or agreed to in writing,
-  #  software distributed under the License is distributed on an
-  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  #  KIND, either express or implied.  See the License for the
-  #  specific language governing permissions and limitations
-  #  under the License.
-  -->
-
-<component xmlns="http://products.wso2.org/carbon">
-    <ManagementPermissions>
-        <ManagementPermission>
-            <DisplayName>Configure</DisplayName>
-            <ResourceId>/permission/admin/configure</ResourceId>
-        </ManagementPermission>
-        <ManagementPermission>
-            <DisplayName>Cloud-Services</DisplayName>
-            <ResourceId>/permission/admin/configure/cloud-services</ResourceId>
-        </ManagementPermission>
-   </ManagementPermissions>
-</component>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/cloud-service-mgt/src/main/resources/META-INF/services.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/cloud-service-mgt/src/main/resources/META-INF/services.xml b/products/stratos_controller/modules/cloud-service-mgt/src/main/resources/META-INF/services.xml
deleted file mode 100644
index efc772e..0000000
--- a/products/stratos_controller/modules/cloud-service-mgt/src/main/resources/META-INF/services.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  #  Licensed to the Apache Software Foundation (ASF) under one
-  #  or more contributor license agreements.  See the NOTICE file
-  #  distributed with this work for additional information
-  #  regarding copyright ownership.  The ASF licenses this file
-  #  to you under the Apache License, Version 2.0 (the
-  #  "License"); you may not use this file except in compliance
-  #  with the License.  You may obtain a copy of the License at
-  #
-  #  http://www.apache.org/licenses/LICENSE-2.0
-  #
-  #  Unless required by applicable law or agreed to in writing,
-  #  software distributed under the License is distributed on an
-  #  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  #  KIND, either express or implied.  See the License for the
-  #  specific language governing permissions and limitations
-  #  under the License.
-  -->
-<serviceGroup>
-    <service name="CloudManagerService" scope="transportsession">
-        <transports>
-            <transport>https</transport>
-        </transports>
-        <parameter name="ServiceClass" locked="false">
-            org.apache.stratos.manager.services.mgt.services.CloudManagerService
-        </parameter>
-        <operation name="retrieveCloudServiceInfo">
-            <parameter name="AuthorizationAction" locked="true">/permission/admin/login</parameter>
-        </operation>
-        <operation name="saveCloudServicesActivity">
-            <parameter name="AuthorizationAction" locked="true">/permission/admin/configure/cloud-services</parameter>
-        </operation>
-        <operation name="activate">
-            <parameter name="AuthorizationAction" locked="true">/permission/admin/configure/cloud-services</parameter>
-        </operation>
-        <operation name="deactivate">
-            <parameter name="AuthorizationAction" locked="true">/permission/admin/configure/cloud-services</parameter>
-        </operation>
-    </service>
-    <parameter name="adminService" locked="true">true</parameter>
-    <parameter name="hiddenService" locked="true">true</parameter>
-</serviceGroup>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/pom.xml b/products/stratos_controller/modules/dashboard/pom.xml
deleted file mode 100644
index 6e2a5da..0000000
--- a/products/stratos_controller/modules/dashboard/pom.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-    <parent>
-	<groupId>org.apache.stratos</groupId>
-	<artifactId>stratos-controller-parent</artifactId>
-	<version>3.0.0-SNAPSHOT</version>
-        <relativePath>../../pom.xml</relativePath>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>org.apache.stratos.manager.dashboard.ui</artifactId>
-    <packaging>bundle</packaging>
-    <name>Apache Stratos - Cloud Manager Dashboard User Interface</name>
-
-    <build>
-
-        <plugins>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>1.5</source>
-                    <target>1.5</target>
-                </configuration>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
-                        <Bundle-Name>${project.artifactId}</Bundle-Name>
-                        <Export-Package>
-                            org.apache.stratos.manager.dashboard.ui.*,
-                        </Export-Package>
-                        <Import-Package>
-                            org.wso2.carbon.ui.servlets.*,
-                            javax.servlet; version=2.4.0,
-                            javax.servlet.http; version=2.4.0,
-                            org.apache.lucene.*,
-                            *;resolution:=optional
-                        </Import-Package>
-                        <Carbon-Component>UIBundle</Carbon-Component>
-                    </instructions>
-                </configuration>
-            </plugin>
-            
-        </plugins>
-    </build>
-
-   
-    <dependencies>
-
-        <dependency>
-            <groupId>log4j</groupId>
-            <artifactId>log4j</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.registry.common.ui</artifactId>
-            <version>${wso2carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.registry.core</artifactId>
-            <version>${wso2carbon.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>commons-logging</groupId>
-            <artifactId>commons-logging</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.axis2.wso2</groupId>
-            <artifactId>axis2</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.ws.commons.axiom.wso2</groupId>
-            <artifactId>axiom</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.ui</artifactId>
-            <version>${wso2carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.core</artifactId>
-            <version>${wso2carbon.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.registry.profiles.ui</artifactId>
-            <version>${registry-component.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.wso2.carbon</groupId>
-            <artifactId>org.wso2.carbon.registry.resource.ui</artifactId>
-            <version>${governance-component.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.account.mgt.ui</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.common</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.stratos</groupId>
-            <artifactId>org.apache.stratos.manager.dashboard.stub</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-    </dependencies>
-
-    <properties>
-        <eclipse.version>3.2.0</eclipse.version>
-        <!-- Component versions == Carbon version, if not, please change the properties below. -->
-        <registry-component.version>4.1.0</registry-component.version>
-       <governance-component.version>4.1.0</governance-component.version>
-    </properties>
-
-
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/clients/CloudManagerServiceClient.java
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/clients/CloudManagerServiceClient.java b/products/stratos_controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/clients/CloudManagerServiceClient.java
deleted file mode 100644
index 5359afa..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/clients/CloudManagerServiceClient.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.manager.dashboard.ui.clients;
-
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.client.Options;
-import org.apache.axis2.client.ServiceClient;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.wso2.carbon.CarbonConstants;
-import org.wso2.carbon.context.CarbonContext;
-import org.wso2.carbon.registry.core.exceptions.RegistryException;
-import org.wso2.carbon.ui.CarbonUIUtil;
-import org.wso2.carbon.utils.ServerConstants;
-import org.apache.stratos.manager.dashboard.stub.CloudManagerServiceStub;
-import org.apache.stratos.manager.dashboard.stub.xsd.CloudService;
-
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletRequest;
-import javax.servlet.http.HttpSession;
-
-public class CloudManagerServiceClient {
-     private static final Log log = LogFactory.getLog(CloudManagerServiceClient.class);
-
-    private CloudManagerServiceStub stub;
-    private String epr;
-    public static final String CLOUD_SERVICE = "cloudService";
-
-    public CloudManagerServiceClient(
-            String cookie, String backendServerURL, ConfigurationContext configContext)
-            throws RegistryException {
-
-        epr = backendServerURL + "CloudManagerService";
-
-        try {
-            stub = new CloudManagerServiceStub(configContext, epr);
-
-            ServiceClient client = stub._getServiceClient();
-            Options option = client.getOptions();
-            option.setManageSession(true);
-            option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
-
-        } catch (AxisFault axisFault) {
-            String msg = "Failed to initiate AddServices service client. " + axisFault.getMessage();
-            log.error(msg, axisFault);
-            throw new RegistryException(msg, axisFault);
-        }
-    }
-
-    public CloudManagerServiceClient(ServletRequest request, ServletConfig config, HttpSession session)
-            throws RegistryException {
-
-        String cookie = (String)session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
-        String backendServerURL = CarbonUIUtil.getServerURL(config.getServletContext(), session);
-        ConfigurationContext configContext = (ConfigurationContext) config.
-                getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);
-        epr = backendServerURL + "CloudManagerService";
-
-        try {
-            stub = new CloudManagerServiceStub(configContext, epr);
-
-            ServiceClient client = stub._getServiceClient();
-            Options option = client.getOptions();
-            option.setManageSession(true);
-            option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
-
-        } catch (AxisFault axisFault) {
-            String msg = "Failed to initiate Add Services service client. " + axisFault.getMessage();
-            log.error(msg, axisFault);
-            throw new RegistryException(msg, axisFault);
-        }
-    }
-
-    public CloudService[] retrieveCloudServiceInfo() throws Exception {
-        try {
-            if (CarbonContext.getCurrentContext().getCache(null).containsKey(CLOUD_SERVICE)) {
-                return (CloudService[]) CarbonContext.getCurrentContext()
-                        .getCache(null).get(CLOUD_SERVICE);
-            }
-        } catch (Exception ignored) {
-            // TODO: this exception needs not be handled, but the situation which leads to this
-            // exception needs to be.
-        }
-        CloudService[] cloudServices = stub.retrieveCloudServiceInfo();
-        CarbonContext.getCurrentContext().getCache(null).put(CLOUD_SERVICE, cloudServices);
-        return cloudServices;
-    }
-
-
-    public void saveCloudServicesActivity(String[] activeServiceNames) throws Exception {
-        CloudService[] cloudServices =
-                (CloudService[]) CarbonContext.getCurrentContext().getCache(null).get(CLOUD_SERVICE);
-
-        for (CloudService cloudService : cloudServices) {
-            for (String activeService : activeServiceNames) {
-                if (cloudService.getName().equals(activeService)) {
-                    cloudService.setActive(true);
-                    break;
-                } else {
-                    cloudService.setActive(false);
-                }
-            }
-        }
-
-        stub.saveCloudServicesActivity(activeServiceNames);
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/utils/Util.java
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/utils/Util.java b/products/stratos_controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/utils/Util.java
deleted file mode 100644
index 9d3e1a1..0000000
--- a/products/stratos_controller/modules/dashboard/src/main/java/org/apache/stratos/manager/dashboard/ui/utils/Util.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.manager.dashboard.ui.utils;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class Util {
-    public static List<String> getNewlyActivatedServices(List<String> oldActivateServices,
-                                                  List<String> newActivateServices) {
-        List<String> newlyActivatedServices = new ArrayList<String>();
-        for (String service: newActivateServices) {
-            if (!oldActivateServices.contains(service)) {
-                newlyActivatedServices.add(service);
-            }
-        }
-        return newlyActivatedServices;
-    }
-    public static List<String> getNewlyDeactivatedServices(List<String> oldActivateServices,
-                                                  List<String> newActivateServices) {
-        List<String> newlyDeactivatedServices = new ArrayList<String>();
-        for (String service: oldActivateServices) {
-            if (!newActivateServices.contains(service)) {
-                newlyDeactivatedServices.add(service);
-            }
-        }
-        return newlyDeactivatedServices;
-    }
-
-   
-}
-


[15/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/assembly/bin.xml b/products/stratos_agent/modules/distribution/src/main/assembly/bin.xml
deleted file mode 100755
index f5811bf..0000000
--- a/products/stratos_agent/modules/distribution/src/main/assembly/bin.xml
+++ /dev/null
@@ -1,184 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<assembly>
-    <formats>
-        <format>zip</format>
-    </formats>
-    <includeBaseDirectory>false</includeBaseDirectory>
-    <fileSets>
-        <fileSet>
-            <directory>target/wso2carbon-core-${carbon.version}</directory>
-            <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
-            <excludes>
-                <exclude>**/*.sh</exclude>
-                <exclude>**/native/*</exclude>
-                <exclude>**/services/sample01.aar</exclude>
-                <exclude>**/repository/services/version/**</exclude>
-                <exclude>**/version.txt</exclude>
-                <exclude>**/wso2server.bat</exclude>
-                <exclude>**/README.txt</exclude>
-                <exclude>**/LICENSE.txt</exclude>
-                <exclude>**/INSTALL.txt</exclude>
-                <exclude>**/release-notes.html</exclude>
-                <exclude>**/carbon.xml</exclude>
-                <exclude>**/wsdl2java.*</exclude>
-                <exclude>**/java2wsdl.*</exclude>
-                <exclude>**/java2wsdl.*</exclude>
-                <exclude>**/tcpmon.*</exclude>
-                <exclude>**/build.xml</exclude>
-                <exclude>**/repository/components/plugins/*.ui*</exclude>
-		<exclude>**/log4j.properties</exclude>
-		<!--exclude>**/samples/*</exclude-->
-            </excludes>
-        </fileSet>
-
-	<!-- get axis2_1.6.1.wso2v9.jar from carbon kernel patch 0002 -->
-        <fileSet>
-           <directory>../p2-profile/target/WSO2-CARBON-PATCH-4.1.0-0002/</directory>
-           <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/patches</outputDirectory>
-           <includes>
-              <include>**/patch0002/axis2_1.6.1.wso2v9.jar</include>
-           </includes>
-        </fileSet>
-    </fileSets>
-
-    <dependencySets>
-        <!-- use the new tool to create a bundles -->
-        <dependencySet>
-            <outputDirectory>stratos-s2-agent-${pom.version}/lib/core/WEB-INF/lib</outputDirectory>
-            <includes>
-                <include>org.wso2.carbon:org.wso2.carbon.mediator.bridge:jar</include>
-            </includes>
-        </dependencySet>
-        <!--dependencySet>
-            <outputDirectory>stratos-s2-agent-${pom.version}/samples/axis2Client/client_repo/modules
-            </outputDirectory>
-            <includes>
-                <include>org.apache.axis2:addressing:mar</include>
-                <include>org.apache.rampart:rampart:mar</include>
-                <include>org.apache.sandesha2:sandesha2:mar</include>
-            </includes>
-            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
-            </outputFileNameMapping>
-        </dependencySet>
-        <dependencySet>
-            <outputDirectory>stratos-s2-agent-${pom.version}/samples/axis2Server/repository/modules
-            </outputDirectory>
-            <includes>
-                <include>org.apache.axis2:addressing:mar</include>
-                <include>org.apache.rampart:rampart:mar</include>
-                <include>org.apache.sandesha2:sandesha2:mar</include>
-            </includes>
-            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
-            </outputFileNameMapping>
-        </dependencySet-->
-        <dependencySet>
-            <outputDirectory>stratos-s2-agent-${pom.version}/repository/axis2/client/lib</outputDirectory>
-            <includes>
-                <include>bouncycastle:bcprov-jdk15:jar</include>
-            </includes>
-            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}
-            </outputFileNameMapping>
-        </dependencySet>
-        <dependencySet>
-            <outputDirectory>stratos-s2-agent-${pom.version}/repository/deployment/client/modules
-            </outputDirectory>
-            <includes>
-                <include>org.apache.rampart:rampart:mar</include>
-            </includes>
-        </dependencySet>
-        <!-- MB Client libs -->
-        <dependencySet>
-            <outputDirectory>stratos-s2-agent-${pom.version}/repository/components/dropins</outputDirectory>
-            <includes>
-                <include>org.wso2.andes.wso2:andes-client:jar</include>
-                <include>org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar</include>
-                <!--include>org.wso2.carbon:org.wso2.carbon.event.client.stub:jar</include>
-                <include>org.wso2.carbon:org.wso2.carbon.event.client:jar</include-->
-            </includes>
-        </dependencySet>
-    </dependencySets>
-
-    <files>
-        <file>
-            <source>src/main/bin/stratos.sh</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}/bin</outputDirectory>
-            <destName>stratos.sh</destName>
-            <fileMode>755</fileMode>
-            <filtered>true</filtered>
-        </file>
-        <file>
-            <source>src/main/bin/stratos.bat</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}/bin</outputDirectory>
-            <destName>stratos.bat</destName>
-            <fileMode>755</fileMode>
-            <filtered>true</filtered>
-        </file>
-        <file>
-            <source>src/conf/log4j.properties</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}/repository/conf</outputDirectory>
-            <destName>log4j.properties</destName>
-            <filtered>true</filtered>
-        </file>
-
-                                                                
-        <file>
-            <source>../../LICENSE.txt</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>../../README.txt</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>../../INSTALL.txt</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>../../docs/xdoc/release-notes.xml</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}</outputDirectory>
-            <destName>release-notes.html</destName>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>target/wso2carbon-core-${carbon.version}/bin/version.txt</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <file>
-            <source>
-                target/wso2carbon-core-${carbon.version}/repository/conf/carbon.xml
-            </source>
-            <outputDirectory>stratos-s2-agent-${pom.version}/repository/conf/</outputDirectory>
-            <filtered>true</filtered>
-        </file>
-	<file>
-            <source>../p2-profile/target/wso2carbon-core-${carbon.version}/repository/conf/agent.properties</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}/repository/conf</outputDirectory>
-        </file>
-    </files>
-</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/assembly/dist.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/assembly/dist.xml b/products/stratos_agent/modules/distribution/src/main/assembly/dist.xml
deleted file mode 100644
index f99841a..0000000
--- a/products/stratos_agent/modules/distribution/src/main/assembly/dist.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<assembly>
-    <formats>
-        <format>zip</format>
-    </formats>
-    <includeBaseDirectory>false</includeBaseDirectory>
-    <fileSets>
-        <!-- Copying p2 profile and osgi bundles-->
-        <fileSet>
-            <directory>../p2-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/components</directory>
-            <outputDirectory>stratos-s2-agent-${pom.version}/repository/components</outputDirectory>
-            <excludes>
-                <exclude>**/eclipse.ini</exclude>
-                <exclude>**/*.lock</exclude>
-                <exclude>**/.data</exclude>
-                <exclude>**/.settings</exclude>
-                <exclude>**/synapse-samples*</exclude>
-            </excludes>
-        </fileSet>
-    </fileSets>
-</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/assembly/docs.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/assembly/docs.xml b/products/stratos_agent/modules/distribution/src/main/assembly/docs.xml
deleted file mode 100644
index bb2d975..0000000
--- a/products/stratos_agent/modules/distribution/src/main/assembly/docs.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<assembly>
-    <id>docs</id>
-    <formats>
-        <format>zip</format>
-    </formats>
-    <includeBaseDirectory>false</includeBaseDirectory>
-    <fileSets>
-        <fileSet>
-            <directory>target/site</directory>
-            <outputDirectory>stratos-s2-agent-${pom.version}-docs</outputDirectory>
-            <fileMode>755</fileMode>
-        </fileSet>
-    </fileSets>
-</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/assembly/filter.properties
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/assembly/filter.properties b/products/stratos_agent/modules/distribution/src/main/assembly/filter.properties
deleted file mode 100644
index f10f62d..0000000
--- a/products/stratos_agent/modules/distribution/src/main/assembly/filter.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-product.name=Apache Stratos Agent
-product.key=Agent
-product.version=1.0.0
-
-carbon.version=4.1.1
-lb.version=1.0.0
-default.server.role=ElasticLoadBalancer
-bundle.creators=org.wso2.carbon.mediator.bridge.MediatorBundleCreator

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/assembly/src.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/assembly/src.xml b/products/stratos_agent/modules/distribution/src/main/assembly/src.xml
deleted file mode 100644
index 028c390..0000000
--- a/products/stratos_agent/modules/distribution/src/main/assembly/src.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<assembly>
-    <id>src</id>
-    <includeBaseDirectory>false</includeBaseDirectory>
-    <formats>
-        <format>zip</format>
-    </formats>
-
-    <fileSets>
-        <fileSet>
-            <directory>target/sources</directory>
-            <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
-            <includes>
-                <include>**/*</include>
-            </includes>
-        </fileSet>
-        <fileSet>
-            <directory>../..</directory>
-            <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
-            <includes>
-                <include>modules/**/*</include>
-                <include>**/pom.xml</include>
-            </includes>
-            <excludes>
-                <exclude>**/target</exclude>
-                <exclude>**/target/**/*</exclude>
-                <exclude>**/build</exclude>
-                <exclude>**/build/**/*</exclude>
-                <exclude>**/.settings</exclude>
-                <exclude>**/.classpath</exclude>
-                <exclude>**/.project</exclude>
-                <exclude>**/.wtpmodules</exclude>
-                <exclude>**/*.iml</exclude>
-                <exclude>**/.settings</exclude>
-                <exclude>**/.settings/**/*</exclude>
-            </excludes>
-        </fileSet>
-    </fileSets>
-    <files>
-        <file>
-            <source>../../LICENSE.txt</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
-            <filtered>true</filtered>
-        </file>
-        <file>
-            <source>../../README.txt</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
-            <filtered>true</filtered>
-        </file>
-        <file>
-            <source>../../INSTALL.txt</source>
-            <outputDirectory>stratos-s2-agent-${pom.version}-src</outputDirectory>
-            <filtered>true</filtered>
-        </file>
-    </files>
-</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/bin/stratos.bat
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/bin/stratos.bat b/products/stratos_agent/modules/distribution/src/main/bin/stratos.bat
deleted file mode 100644
index 989483f..0000000
--- a/products/stratos_agent/modules/distribution/src/main/bin/stratos.bat
+++ /dev/null
@@ -1,169 +0,0 @@
-@echo off
-
-rem ---------------------------------------------------------------------------
-rem  Licensed to the Apache Software Foundation (ASF) under one
-rem  or more contributor license agreements.  See the NOTICE file
-rem  distributed with this work for additional information
-rem  regarding copyright ownership.  The ASF licenses this file
-rem  to you under the Apache License, Version 2.0 (the
-rem  "License"); you may not use this file except in compliance
-rem  with the License.  You may obtain a copy of the License at
-rem
-rem      http://www.apache.org/licenses/LICENSE-2.0
-rem
-rem  Unless required by applicable law or agreed to in writing,
-rem  software distributed under the License is distributed on an
-rem  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-rem  KIND, either express or implied.  See the License for the
-rem  specific language governing permissions and limitations
-rem  under the License.
-rem ---------------------------------------------------------------------------
-rem  Main Script for Apache Stratos
-rem
-rem  Environment Variable Prerequisites
-rem
-rem   JAVA_HOME       Must point at your Java Development Kit installation.
-rem
-rem   JAVA_OPTS       (Optional) Java runtime options used when the commands
-rem                   is executed.
-rem ---------------------------------------------------------------------------
-
-rem ----- if JAVA_HOME is not set we're not happy ------------------------------
-:checkJava
-
-if "%JAVA_HOME%" == "" goto noJavaHome
-if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
-goto checkServer
-
-:noJavaHome
-echo "You must set the JAVA_HOME variable before running CARBON."
-goto end
-
-rem ----- Only set CARBON_HOME if not already set ----------------------------
-:checkServer
-rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed
-if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..
-SET curDrive=%cd:~0,1%
-SET wsasDrive=%CARBON_HOME:~0,1%
-if not "%curDrive%" == "%wsasDrive%" %wsasDrive%:
-
-rem find CARBON_HOME if it does not exist due to either an invalid value passed
-rem by the user or the %0 problem on Windows 9x
-if not exist "%CARBON_HOME%\bin\version.txt" goto noServerHome
-
-set AXIS2_HOME=%CARBON_HOME%
-goto updateClasspath
-
-:noServerHome
-echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME.
-goto end
-
-rem ----- update classpath -----------------------------------------------------
-:updateClasspath
-
-setlocal EnableDelayedExpansion
-cd %CARBON_HOME%
-set CARBON_CLASSPATH=
-FOR %%C in ("%CARBON_HOME%\bin\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\%%~nC%%~xC"
-
-set CARBON_CLASSPATH="%JAVA_HOME%\lib\tools.jar";%CARBON_CLASSPATH%;
-
-FOR %%D in ("%CARBON_HOME%\lib\commons-lang*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\lib\%%~nD%%~xD"
-
-rem ----- Process the input command -------------------------------------------
-
-rem Slurp the command line arguments. This loop allows for an unlimited number
-rem of arguments (up to the command line limit, anyway).
-
-
-:setupArgs
-if ""%1""=="""" goto doneStart
-
-if ""%1""==""-run""     goto commandLifecycle
-if ""%1""==""--run""    goto commandLifecycle
-if ""%1""==""run""      goto commandLifecycle
-
-if ""%1""==""-restart""  goto commandLifecycle
-if ""%1""==""--restart"" goto commandLifecycle
-if ""%1""==""restart""   goto commandLifecycle
-
-if ""%1""==""debug""    goto commandDebug
-if ""%1""==""-debug""   goto commandDebug
-if ""%1""==""--debug""  goto commandDebug
-
-if ""%1""==""version""   goto commandVersion
-if ""%1""==""-version""  goto commandVersion
-if ""%1""==""--version"" goto commandVersion
-
-shift
-goto setupArgs
-
-rem ----- commandVersion -------------------------------------------------------
-:commandVersion
-shift
-type "%CARBON_HOME%\bin\version.txt"
-type "%CARBON_HOME%\bin\wso2carbon-version.txt"
-goto end
-
-rem ----- commandDebug ---------------------------------------------------------
-:commandDebug
-shift
-set DEBUG_PORT=%1
-if "%DEBUG_PORT%"=="" goto noDebugPort
-if not "%JAVA_OPTS%"=="" echo Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option.
-set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%DEBUG_PORT%
-echo Please start the remote debugging client to continue...
-goto findJdk
-
-:noDebugPort
-echo Please specify the debug port after the --debug option
-goto end
-
-
-:doneStart
-if "%OS%"=="Windows_NT" @setlocal
-if "%OS%"=="WINNT" @setlocal
-
-rem ---------- Handle the SSL Issue with proper JDK version --------------------
-rem find the version of the jdk
-:findJdk
-
-set CMD=RUN %*
-
-:checkJdk16
-"%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[6|7]" >NUL
-IF ERRORLEVEL 1 goto unknownJdk
-goto jdk16
-
-:unknownJdk
-echo Starting WSO2 Carbon (in unsupported JDK)
-echo [ERROR] CARBON is supported only on JDK 1.6 and 1.7
-goto jdk16
-
-:jdk16
-goto runServer
-
-rem ----------------- Execute The Requested Command ----------------------------
-
-:runServer
-cd %CARBON_HOME%
-
-rem ---------- Add jars to classpath ----------------
-
-set CARBON_CLASSPATH=.\lib;%CARBON_CLASSPATH%
-
-set JAVA_ENDORSED=".\lib\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed"
-
-set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms1500m -Xmx3000m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:-UseGCOverheadLimit -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%CARBON_HOME%\repository\logs\heap-dump.hprof -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -Dcarbon.registry.root=/ -Dcarbon.home="%CARBON_HOME%" -Dloadbalancer.conf="file:///%CARBON_HOME%/repository/conf/loadbalancer.conf" -Dwso2.server.standalone=true -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcatalina.base="%CARBON_HOME%\lib\tomcat" -Dwso2.carbon.xml=%CARBON_HOME%\repository\conf\carbon.xml -Dwso2.registry.xml="%CARBON_HOME%\repository\conf\registry.xml" -Dwso2.user.mgt.xml="%CARBON_HOME%\repository\conf\user-mgt.xml" -Djava.util.logging.config.file="%CARBON_HOME%\repository\conf\log4j.properties" -
 Dcarbon.config.dir.path="%CARBON_HOME%\repository\conf" -Dconf.location="%CARBON_HOME%\repository\conf" -Dcarbon.logs.path="%CARBON_HOME%\repository\logs" -Dcomponents.repo="%CARBON_HOME%\repository\components" -Dcom.atomikos.icatch.file="%CARBON_HOME%\lib\transactions.properties" -Dcom.atomikos.icatch.hide_init_file_path="true" -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dcom.sun.jndi.ldap.connect.pool.authentication=simple -Dcom.sun.jndi.ldap.connect.pool.timeout=3000 -Dorg.terracotta.quartz.skipUpdateCheck=true -Dcarbon.classpath=%CARBON_CLASSPATH% -Dfile.encoding=UTF8
-
-:runJava
-echo JAVA_HOME environment variable is set to %JAVA_HOME%
-echo CARBON_HOME environment variable is set to %CARBON_HOME%
-"%JAVA_HOME%\bin\java" %CMD_LINE_ARGS% org.wso2.carbon.bootstrap.Bootstrap %CMD%
-if "%ERRORLEVEL%"=="121" goto runJava
-:end
-goto endlocal
-
-:endlocal
-
-:END

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/distribution/src/main/bin/stratos.sh
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/distribution/src/main/bin/stratos.sh b/products/stratos_agent/modules/distribution/src/main/bin/stratos.sh
deleted file mode 100644
index 4c6260c..0000000
--- a/products/stratos_agent/modules/distribution/src/main/bin/stratos.sh
+++ /dev/null
@@ -1,298 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing,
-#  software distributed under the License is distributed on an
-#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-#  specific language governing permissions and limitations
-#  under the License.
-# ----------------------------------------------------------------------------
-#  Main Script for the Apache Stratos
-#
-#  Environment Variable Prerequisites
-#
-#   JAVA_HOME       Must point at your Java Development Kit installation.
-#
-#   JAVA_OPTS       (Optional) Java runtime options used when the commands
-#                   is executed.
-#
-#  NOTE: Borrowed generously from Apache Tomcat startup scripts.
-# -----------------------------------------------------------------------------
-
-# OS specific support.  $var _must_ be set to either true or false.
-
-cygwin=false;
-darwin=false;
-os400=false;
-mingw=false;
-case "`uname`" in
-CYGWIN*) cygwin=true;;
-MINGW*) mingw=true;;
-OS400*) os400=true;;
-Darwin*) darwin=true
-        if [ -z "$JAVA_VERSION" ] ; then
-             JAVA_VERSION="CurrentJDK"
-           else
-             echo "Using Java version: $JAVA_VERSION"
-           fi
-           if [ -z "$JAVA_HOME" ] ; then
-             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
-           fi
-           ;;
-esac
-
-# resolve links - $0 may be a softlink
-PRG="$0"
-
-while [ -h "$PRG" ]; do
-  ls=`ls -ld "$PRG"`
-  link=`expr "$ls" : '.*-> \(.*\)$'`
-  if expr "$link" : '.*/.*' > /dev/null; then
-    PRG="$link"
-  else
-    PRG=`dirname "$PRG"`/"$link"
-  fi
-done
-
-# Get standard environment variables
-PRGDIR=`dirname "$PRG"`
-
-# Only set CARBON_HOME if not already set
-[ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd`
-
-# Set AXIS2_HOME. Needed for One Click JAR Download
-AXIS2_HOME=$CARBON_HOME
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin; then
-  [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-  [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
-  [ -n "$AXIS2_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"`
-fi
-
-# For OS400
-if $os400; then
-  # Set job priority to standard for interactive (interactive - 6) by using
-  # the interactive priority - 6, the helper threads that respond to requests
-  # will be running at the same priority as interactive jobs.
-  COMMAND='chgjob job('$JOBNAME') runpty(6)'
-  system $COMMAND
-
-  # Enable multi threading
-  QIBM_MULTI_THREADED=Y
-  export QIBM_MULTI_THREADED
-fi
-
-# For Migwn, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
-  [ -n "$CARBON_HOME" ] &&
-    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
-  [ -n "$JAVA_HOME" ] &&
-    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
-  [ -n "$AXIS2_HOME" ] &&
-    CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`"
-  # TODO classpath?
-fi
-
-if [ -z "$JAVACMD" ] ; then
-  if [ -n "$JAVA_HOME"  ] ; then
-    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
-      # IBM's JDK on AIX uses strange locations for the executables
-      JAVACMD="$JAVA_HOME/jre/sh/java"
-    else
-      JAVACMD="$JAVA_HOME/bin/java"
-    fi
-  else
-    JAVACMD=java
-  fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
-  echo "Error: JAVA_HOME is not defined correctly."
-  echo " CARBON cannot execute $JAVACMD"
-  exit 1
-fi
-
-# if JAVA_HOME is not set we're not happy
-if [ -z "$JAVA_HOME" ]; then
-  echo "You must set the JAVA_HOME variable before running CARBON."
-  exit 1
-fi
-
-# ----- Process the input command ----------------------------------------------
-for c in $*
-do
-    if [ "$c" = "--debug" ] || [ "$c" = "-debug" ] || [ "$c" = "debug" ]; then
-          CMD="--debug"
-          continue
-    elif [ "$CMD" = "--debug" ]; then
-          if [ -z "$PORT" ]; then
-                PORT=$c
-          fi
-    elif [ "$c" = "--n" ] || [ "$c" = "-n" ] || [ "$c" = "n" ]; then
-          CMD="--n"
-          continue
-    elif [ "$CMD" = "--n" ]; then
-          if [ -z "$INSTANCES" ]; then
-                INSTANCES=$c
-          fi
-    elif [ "$c" = "--stop" ] || [ "$c" = "-stop" ] || [ "$c" = "stop" ]; then
-          CMD="stop"
-    elif [ "$c" = "--start" ] || [ "$c" = "-start" ] || [ "$c" = "start" ]; then
-          CMD="start"
-    elif [ "$c" = "--console" ] || [ "$c" = "-console" ] || [ "$c" = "console" ]; then
-          CMD="console"
-    elif [ "$c" = "--version" ] || [ "$c" = "-version" ] || [ "$c" = "version" ]; then
-          CMD="version"
-    elif [ "$c" = "--restart" ] || [ "$c" = "-restart" ] || [ "$c" = "restart" ]; then
-          CMD="restart"
-    elif [ "$c" = "--dump" ] || [ "$c" = "-dump" ] || [ "$c" = "dump" ]; then
-          CMD="dump"
-    elif [ "$c" = "--test" ] || [ "$c" = "-test" ] || [ "$c" = "test" ]; then
-          CMD="test"
-    elif [ "$c" = "--status" ] || [ "$c" = "-status" ] || [ "$c" = "status" ]; then
-          CMD="status"
-    fi
-done
-
-if [ "$CMD" = "--debug" ]; then
-  if [ "$PORT" = "" ]; then
-    echo " Please specify the debug port after the --debug option"
-    exit 1
-  fi
-  if [ -n "$JAVA_OPTS" ]; then
-    echo "Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option."
-  fi
-  CMD="RUN"
-  JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT"
-  echo "Please start the remote debugging client to continue..."
-elif [ "$CMD" = "--n" ]; then
-  if [ "$INSTANCES" = "" ] || [ ! -z `echo $INSTANCES | sed 's/[0-9]//g'` ]]; then
-    echo " Please specify the number of instances to start after the --n option"
-    exit 1
-  fi
-elif [ "$CMD" = "start" ]; then
-  export CARBON_HOME=$CARBON_HOME
-  nohup $CARBON_HOME/bin/stratos.sh &
-  exit 0
-elif [ "$CMD" = "stop" ]; then
-  export CARBON_HOME=$CARBON_HOME
-  kill -9 `cat $CARBON_HOME/wso2carbon.pid`
-  exit 0
-elif [ "$CMD" = "restart" ]; then
-  export CARBON_HOME=$CARBON_HOME
-  kill -term `cat $CARBON_HOME/wso2carbon.pid`
-  process_status=0
-  pid=`cat $CARBON_HOME/wso2carbon.pid`
-  while [ "$process_status" -eq "0" ]
-  do
-    sleep 1;
-    ps -p$pid 2>&1 > /dev/null
-    process_status=$?
-  done
-
-  # using nohup bash to avoid erros in solaris OS.TODO
-  nohup bash $CARBON_HOME/bin/stratos.sh > /dev/null 2>&1 &
-  exit 0
-elif [ "$CMD" = "test" ]; then
-    JAVACMD="exec "$JAVACMD""
-elif [ "$CMD" = "version" ]; then
-  cat $CARBON_HOME/bin/version.txt
-  cat $CARBON_HOME/bin/wso2carbon-version.txt
-  exit 0
-fi
-
-jdk_16=`$JAVA_HOME/bin/java -version 2>&1 | grep "1.[6|7]"`
-
-if [ "$jdk_16" = "" ]; then
-   echo " [ERROR] CARBON is supported only on JDK 1.6 and 1.7"
-   exit 1
-fi
-
-CARBON_CLASSPATH=""
-if [ -e "$JAVA_HOME/lib/tools.jar" ]; then
-   if [ "$f" != "$JAVA_HOME/lib/tools.jar" ];then
-        CARBON_CLASSPATH="$JAVA_HOME/lib/tools.jar"
-   fi
-fi
-
-CARBON_XBOOTCLASSPATH=""
-for f in "$CARBON_HOME"/lib/xboot/*.jar
-do
-    if [ "$f" != "$CARBON_HOME/lib/xboot/*.jar" ];then
-        CARBON_XBOOTCLASSPATH="$CARBON_XBOOTCLASSPATH":$f
-    fi
-done
-
-JAVA_ENDORSED_DIRS="$CARBON_HOME/lib/endorsed":"$JAVA_HOME/jre/lib/endorsed":"$JAVA_HOME/lib/endorsed"
-
-for f in "$CARBON_HOME"/bin/*.jar
-do
-    if [ "$f" != "$CARBON_HOME/bin/*.jar" ];then
-        CARBON_CLASSPATH="$CARBON_CLASSPATH":$f
-    fi
-done
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
-  JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
-  CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
-  AXIS2_HOME=`cygpath --absolute --windows "$CARBON_HOME"`
-  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
-  JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
-  CARBON_CLASSPATH=`cygpath --path --windows "$CARBON_CLASSPATH"`
-  CARBON_XBOOTCLASSPATH=`cygpath --path --windows "$CARBON_XBOOTCLASSPATH"`
-fi
-
-# ----- Execute The Requested Command -----------------------------------------
-
-echo JAVA_HOME environment variable is set to $JAVA_HOME
-echo CARBON_HOME environment variable is set to $CARBON_HOME
-
-cd "$CARBON_HOME"
-
-exec "$JAVACMD" \
-        -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \
-        -d64 \
-        -server \
-        -Xms1500m -Xmx3000m \
-        -XX:PermSize=256m -XX:MaxPermSize=512m \
-        -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:-UseGCOverheadLimit \
-        -XX:+CMSClassUnloadingEnabled \
-        -XX:+OptimizeStringConcat \
-        -XX:+HeapDumpOnOutOfMemoryError \
-        -XX:OnOutOfMemoryError="kill -9 `echo $$`;nohup ./stratos.sh &" \
-        -XX:HeapDumpPath=repository/logs/heap-dump.hprof \
-        -XX:ErrorFile=repository/logs/hs_err_pid.log \
-        -XX:OnError="nohup ./stratos.sh &" \
-        $JAVA_OPTS \
-        -Dcarbon.pid=$$ \
-        -Dcom.sun.management.jmxremote \
-        -Dwso2.loadbalancer=true \
-        -classpath "$CARBON_CLASSPATH" \
-        -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" \
-        -Djava.io.tmpdir="$CARBON_HOME/tmp" \
-        -Dwso2.server.standalone=true \
-        -Dcarbon.registry.root=/ \
-        -Dcarbon.home="$CARBON_HOME" \
-        -Dloadbalancer.conf=file:repository/conf/loadbalancer.conf \
-        -Djava.util.logging.config.file="$CARBON_HOME/lib/log4j.properties" \
-        -Dcarbon.config.dir.path="$CARBON_HOME/repository/conf" \
-        -Dconf.location="$CARBON_HOME/repository/conf" \
-        -Dcomponents.repo="$CARBON_HOME/repository/components/plugins" \
-        -Dcom.atomikos.icatch.file="$CARBON_HOME/lib/transactions.properties" \
-        -Dcom.atomikos.icatch.hide_init_file_path=true \
-        -Dorg.terracotta.quartz.skipUpdateCheck=true \
-        org.wso2.carbon.bootstrap.Bootstrap $*
-
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/modules/p2-profile/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/modules/p2-profile/pom.xml b/products/stratos_agent/modules/p2-profile/pom.xml
deleted file mode 100755
index ebd4b82..0000000
--- a/products/stratos_agent/modules/p2-profile/pom.xml
+++ /dev/null
@@ -1,178 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-    <parent>
-        <groupId>org.apache.stratos</groupId>
-        <artifactId>stratos-agent-parent</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
-        <relativePath>../../pom.xml</relativePath>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>wso2agent-p2-profile-gen</artifactId>
-    <packaging>pom</packaging>
-    <name>Apache Stratos - Agent - P2 Profile Generation</name>
-    <url>http://www.wso2.org</url>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-dependency-plugin</artifactId>
-                <version>2.0-alpha-4</version>
-                <inherited>false</inherited>
-                <executions>
-                    <execution>
-                        <id>unpack-carbon-core</id>
-                        <phase>test</phase>
-                        <goals>
-                            <goal>unpack</goal>
-                        </goals>
-                        <configuration>
-                            <artifactItems>
-                                <artifactItem>
-                                    <groupId>org.wso2.carbon</groupId>
-                                    <artifactId>wso2carbon-core</artifactId>
-                                    <version>${carbon.kernel.version}</version>
-                                    <type>zip</type>
-                                    <overWrite>true</overWrite>
-                                    <outputDirectory>target</outputDirectory>
-                                </artifactItem>
-                            </artifactItems>
-                        </configuration>
-                    </execution>
-		    <execution>
-                        <id>2-unpack-kernel-patch</id>
-                        <phase>test</phase>
-                        <goals>
-                            <goal>unpack</goal>
-                        </goals>
-                        <configuration>
-                            <artifactItems>
-                                <artifactItem>
-                                    <groupId>org.wso2.carbon</groupId>
-                                    <artifactId>WSO2-CARBON-PATCH-4.1.0</artifactId>
-                                    <version>0002</version>
-                                    <type>zip</type>
-                                    <overWrite>true</overWrite>
-                                    <outputDirectory>target</outputDirectory>
-                                </artifactItem>
-                            </artifactItems>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-                <groupId>org.wso2.maven</groupId>
-                <artifactId>carbon-p2-plugin</artifactId>
-                <version>${carbon.p2.plugin.version}</version>
-                <executions>
-                    <execution>
-                        <id>2-p2-repo-generation</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>p2-repo-gen</goal>
-                        </goals>
-                        <configuration>
-                            <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
-                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
-                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
-                            <publishArtifacts>true</publishArtifacts>
-                            <publishArtifactRepository>true</publishArtifactRepository>
-                            <featureArtifacts>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.cartridge.messages.feature:${stratos2.platform.patch.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.cartridge.agent.server.feature:2.1.3
-                                </featureArtifactDef>
-				<featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.lb.common.feature:4.1.3
-                                </featureArtifactDef>
-				<featureArtifactDef>
-                                    org.wso2.carbon:org.apache.synapse.wso2.feature:2.1.1-wso2v4
-                                </featureArtifactDef>
-			     </featureArtifacts>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>3-p2-profile-generation</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>p2-profile-gen</goal>
-                        </goals>
-                        <configuration>
-                            <profile>WSO2CarbonProfile</profile>
-                            <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
-                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
-                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
-                            <destination>
-                                ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
-                            </destination>
-                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
-                            <features>
-                                 <feature>
-                                    <id>org.wso2.carbon.cartridge.messages.feature.group</id>
-                                    <version>${stratos2.platform.patch.version}</version>
-                                </feature>
-				<feature>
-                                    <id>org.wso2.carbon.cartridge.agent.server.feature.group</id>
-                                    <version>2.1.3</version>
-                                </feature>
-				<feature>
-                                    <id>org.wso2.carbon.lb.common.feature.group</id>
-                                    <version>4.1.3</version>
-                                </feature>
-				<feature>
-                                    <id>org.apache.synapse.wso2.feature.group</id>
-                                    <version>2.1.1-wso2v4</version>
-                                </feature>
-			     </features>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-	    <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <version>1.1</version>
-        <executions>
-            <execution>
-                <phase>package</phase>
-                <configuration>
-                    <tasks>
-                        <replace token="false" value="true"
-                                 dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components">
-                            <include name="**/bundles.info"/>
-                        </replace>
-                    </tasks>
-                </configuration>
-                <goals>
-                    <goal>run</goal>
-                </goals>
-            </execution>
-        </executions>
-    </plugin>
-        </plugins>
-    </build>
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_agent/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_agent/pom.xml b/products/stratos_agent/pom.xml
deleted file mode 100755
index bf40e5c..0000000
--- a/products/stratos_agent/pom.xml
+++ /dev/null
@@ -1,213 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-    <parent>
-        <groupId>org.apache.stratos</groupId>
-        <artifactId>stratos-products-parent</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <groupId>org.apache.stratos</groupId>
-    <artifactId>stratos-agent-parent</artifactId>
-    <packaging>pom</packaging>
-    <version>3.0.0-SNAPSHOT</version>
-    <name>Apache Stratos - Agent - Aggregator Module</name>
-    <url>http://apache.org</url>
-    <description>Apache Stratos Agent (S2agent)</description>
-
-    <licenses>
-        <license>
-            <name>Apache License Version 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
-        </license>
-    </licenses>
-
-    <modules>
-        <module>modules/p2-profile</module>
-        <module>modules/distribution</module>
-        <!--<module>modules/integration</module>-->
-    </modules>
-
-    <scm>
-        <connection>scm:svn:http://wso2.org/repos/wso2/trunk/carbon/products/lb</connection>
-        <developerConnection>scm:svn:https://wso2.org/repos/wso2/trunk/carbon/products/lb</developerConnection>
-        <url>https://wso2.org/repos/wso2/trunk/carbon/products/lb</url>
-    </scm>
-
-    <repositories>
-        <repository>
-            <id>wso2-nexus</id>
-            <name>WSO2 internal Repository</name>
-            <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
-            <releases>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </releases>
-        </repository>
-        <!--moved to nexus
-
-        <repository>
-            <id>wso2-maven2-repository-snapshot</id>
-            <url>http://dist.wso2.org/snapshots/maven2</url>
-        </repository>
-        <repository>
-            <id>wso2-maven2-repository</id>
-            <url>http://dist.wso2.org/maven2</url>
-        </repository>
-
-        -->
-    </repositories>
-
-    <pluginRepositories>
-        <pluginRepository>
-            <id>wso2-maven2-repository</id>
-            <url>http://dist.wso2.org/maven2</url>
-        </pluginRepository>
-    </pluginRepositories>
-
-    <distributionManagement>
-        <repository>
-            <id>wso2-maven2-repository</id>
-            <name>WSO2 Maven2 Repository</name>
-            <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/maven2/</url>
-        </repository>
-        <snapshotRepository>
-            <id>wso2-maven2-snapshot-repository</id>
-            <name>WSO2 Maven2 Snapshot Repository</name>
-            <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/snapshots/maven2/</url>
-        </snapshotRepository>
-    </distributionManagement>
-
-    <profiles>
-        <profile>
-            <id>signed-build</id>
-            <activation>
-                <property>
-                    <name>sign</name>
-                </property>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-gpg-plugin</artifactId>
-                        <version>1.0-alpha-3</version>
-                        <executions>
-                            <execution>
-                                <id>sign-artifacts</id>
-                                <phase>verify</phase>
-                                <goals>
-                                    <goal>sign</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
-
-    <organization>
-        <name>WSO2 Inc</name>
-        <url>http://wso2.com</url>
-    </organization>
-
-    <issueManagement>
-        <system>JIRA</system>
-        <url>http://wso2.org/jira/browse/LB</url>
-    </issueManagement>
-
-    <mailingLists>
-        <mailingList>
-            <name>WSO2 LB Users' list</name>
-            <post>mailto:lb-user@wso2.org</post>
-            <archive>http://wso2.org/mailarchive/lb-user/</archive>
-            <subscribe>mailto:lb-user-request@wso2.org?subject=subscribe</subscribe>
-            <unsubscribe>mailto:lb-user-request@wso2.org?subject=unsubscribe</unsubscribe>
-        </mailingList>
-        <mailingList>
-            <name>WSO2 LB/Carbon Developers' List</name>
-            <post>mailto:dev@wso2.org</post>
-            <archive>http://wso2.org/mailarchive/dev/</archive>
-            <subscribe>mailto:dev-request@wso2.org?subject=subscribe</subscribe>
-            <unsubscribe>mailto:dev-request@wso2.org?subject=unsubscribe</unsubscribe>
-        </mailingList>
-    </mailingLists>
-
-    <dependencyManagement>
-        <dependencies>
-            <!-- Dependencies for dashboard ui -->
-            <dependency>
-                <groupId>org.apache.axis2.wso2</groupId>
-                <artifactId>axis2</artifactId>
-                <version>${axis2.wso2.version}</version>
-            </dependency>
-            <dependency>
-                <groupId>log4j</groupId>
-                <artifactId>log4j</artifactId>
-                <version>${log4j.version}</version>
-            </dependency>
-            <dependency>
-                <groupId>commons-logging</groupId>
-                <artifactId>commons-logging</artifactId>
-                <version>${commons.logging.version}</version>
-            </dependency>
-            <!-- Dependencies for login ui -->
-            <dependency>
-                <groupId>javax.servlet</groupId>
-                <artifactId>servlet-api</artifactId>
-                <version>${servlet-api.version}</version>
-            </dependency>
-            <dependency>
-                <groupId>org.apache.ws.commons.axiom.wso2</groupId>
-                <artifactId>axiom</artifactId>
-                <version>${axiom.wso2.version}</version>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <log4j.version>1.2.17</log4j.version>
-        <commons.logging.version>1.1</commons.logging.version>
-        <opencsv.version>1.8</opencsv.version>
-        <poi.version>3.0-FINAL</poi.version>
-        <carbon.version>4.1.0</carbon.version>
-        <carbon.kernel.version>4.1.0</carbon.kernel.version>
-        <carbon.p2.plugin.version>1.5.2</carbon.p2.plugin.version>
-	<stratos2.platform.patch.version>2.1.1</stratos2.platform.patch.version>
-        <synapse.version>2.1.1-wso2v4</synapse.version>
-        <axis2.transport.version>1.1.0-wso2v6</axis2.transport.version>
-        <elb.version>2.0.3</elb.version>
-        <passthru.transport.version>1.0.2</passthru.transport.version>
-        <axis2.wso2.version>1.6.1.wso2v7</axis2.wso2.version>
-        <axiom.wso2.version>1.2.11.wso2v2</axiom.wso2.version>
-	<servlet-api.version>2.4</servlet-api.version>
-        <log4j.version>1.2.17</log4j.version>
-        <commons.logging.version>1.1</commons.logging.version>
-    </properties>
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/LICENSE.txt
----------------------------------------------------------------------
diff --git a/products/stratos_cli/LICENSE.txt b/products/stratos_cli/LICENSE.txt
deleted file mode 100644
index 4287729..0000000
--- a/products/stratos_cli/LICENSE.txt
+++ /dev/null
@@ -1,46 +0,0 @@
-
-This product is licensed by Apache under Apache License 2.0. The license
-can be downloaded from the following locations:
-	http://www.apache.org/licenses/LICENSE-2.0.html
-	http://www.apache.org/licenses/LICENSE-2.0.txt
-
-This product also contains software under different licenses. 
-
-Following are the dependencies for this product.
-
-Artifact                                                Version           
-----------------------------------------------------------------------
-avalon-framework:avalon-framework                       4.1.3
-com.google.code.gson:gson                               2.1
-commons-beanutils:commons-beanutils                     1.8.0
-commons-cli:commons-cli                                 1.2
-commons-codec:commons-codec                             1.2
-commons-digester:commons-digester                       1.8
-commons-httpclient:commons-httpclient                   3.0.1
-commons-io:commons-io                                   2.0
-commons-logging:commons-logging                         1.1
-commons-validator:commons-validator                     1.4.0
-javax.servlet:servlet-api                               2.3
-jaxen:jaxen                                             1.1.1
-jline:jline                                             2.11
-log4j:log4j                                             1.2.13
-logkit:logkit                                           1.0.1
-org.apache.axis2.wso2:axis2                             1.6.1.wso2v9
-org.apache.commons:commons-lang3                        3.1
-org.apache.geronimo.specs:geronimo-activation_1.1_spec  1.0.2
-org.apache.geronimo.specs:geronimo-javamail_1.4_spec    1.6
-org.apache.geronimo.specs:geronimo-stax-api_1.0_spec    1.0.1
-org.apache.httpcomponents.wso2:httpcore                 4.1.0-wso2v1
-org.apache.neethi.wso2:neethi                           2.0.4.wso2v4
-org.apache.ws.commons.axiom:axiom-api                   1.2.11-wso2v2
-org.apache.ws.commons.axiom:axiom-impl                  1.2.11-wso2v2
-org.apache.ws.commons.axiom.wso2:axiom                  1.2.11.wso2v4
-org.apache.ws.commons.schema:XmlSchema                  1.4.3
-org.apache.ws.commons.schema.wso2:XmlSchema             1.4.7.wso2v2
-org.codehaus.woodstox:wstx-asl                          3.2.9
-org.slf4j:slf4j-api                                     1.7.5
-org.slf4j:slf4j-log4j12                                 1.7.5
-org.apache.stratos:org.apache.stratos.adc.mgt.stub      4.1.3
-org.wso2.securevault:org.wso2.securevault               1.0.0-wso2v2
-wsdl4j:wsdl4j                                           1.6.2
-wsdl4j.wso2:wsdl4j                                      1.6.2.wso2v2

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/README.txt
----------------------------------------------------------------------
diff --git a/products/stratos_cli/README.txt b/products/stratos_cli/README.txt
deleted file mode 100755
index 4750af5..0000000
--- a/products/stratos_cli/README.txt
+++ /dev/null
@@ -1,111 +0,0 @@
-================================================================================
-                        Apache Stratos CLI v1.0.1
-================================================================================
-
-Welcome to the Apache Stratos CLI release
-
-The command line interface (CLI) is a powerful tool that clients can use
-to communicate with Stratos services. 
-
-The tenant can use the CLI tool on two separate modes if needed, which 
-are namely single command line mode and interactive mode. 
-
-If the user executes with a command as an argument, the CLI tool 
-will execute that command and exit with a status code. 
-
-However, if there is no command as an argument, the CLI tool will 
-enter into an interactive mode.
-
-A user will be able to carryout all the following functions via the
-CLI, with the exception of registering tenants and viewing logs.
-
-The CLI tool also supports command history and auto-completing features 
-in the interactive mode.
-
-Help
-==================================
-usage: stratos [-debug] [-h] [-p <password>] [-trace] [-u <username>]
- -debug                     Enable debug logging
- -h,--help                  Display this help
- -p,--password <password>   Password
- -trace                     Enable trace logging
- -u,--username <username>   Username
-
-
-Available Commands: 
-add-domain-mapping        Map domain for the subscribed cartridge
-help                      Help for commands
-subscribe                 Subscribe to a cartridge
-sync                      Synchronize GIT repository for the subscribed cartridge
-remove-domain-mapping     Remove domain mapping for the subscribed cartridge
-list                      List subscribed cartridges with details
-unsubscribe               Unsubscribe from a subscribed cartridge
-policies                  List available policies
-exit                      Exit from Stratos Client Tool
-info                      Get information about a subscribed cartridge
-cartridges                List available cartridges
-
-
-Installation & Running
-==================================
-
-1. Extract the zip and go to the extracted directory
-
-Add execute permission to the script in Linux.
-chmod +x ./stratos.sh
-
-2. Export the host and port of the SC as environment variables
-
-Linux:
-export STRATOS_URL=https://s2demo.apache.com:9445
-
-Windows:
-set STRATOS_URL=https://s2demo.apache.com:9445
-
-3. Run the stratos.sh or stratos.bat as appropriate
-
-4. Export the following environment variables.
-
-Linux: (Add to your bashrc file)
-export JAVA_HOME=/opt/jdk1.6.0_24
-export PATH=$JAVA_HOME/bin:$PATH
-
-Windows: (Set in System Properties)
-set JAVA_HOME=C:\Java\jdk1.6.0_24
-set PATH=%JAVA_HOME%\bin;%PATH%
-
-4. Use the tentant username and password to login
-
-If you wish, you can also export your username and password as environment variables.
-If you export only the username, you will be prompted to enter the password.
-
-Linux:
-export STRATOS_USERNAME=<username>
-export STRATOS_PASSWORD=<password>
-
-Windows:
-set STRATOS_USERNAME=<username>
-set STRATOS_PASSWORD=<password>
-
-
-Support
-==================================
-
-Any problem with this release can be reported to Apache Stratos mailing list
-or in the JIRA issue tracker. If you are sending an email to the mailing
-list make sure to add the [Apache Stratos] prefix to the subject.
-
-Mailing list subscription:
-    dev-subscribe@stratos.incubator.apache.org
-
-
-Issue Tracker
-==================================
-
-Jira:
-    https://issues.apache.org/jira/browse/stratos
-
-
-Thank you for using Apache Stratos!
-The Stratos Team.
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/distribution/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_cli/distribution/pom.xml b/products/stratos_cli/distribution/pom.xml
deleted file mode 100644
index ee37542..0000000
--- a/products/stratos_cli/distribution/pom.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-    <parent>
-        <groupId>org.apache.stratos</groupId>
-        <artifactId>apache-stratos-cli-parent</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>apache-stratos-cli</artifactId>
-    <packaging>pom</packaging>
-    <name>Apache Stratos - CLI</name>
-    <url>http://apache.org/</url>
-    <description>Apache Stratos CLI Distribution</description>
-
-    <profiles>
-        <profile>
-            <id>default</id>
-            <activation>
-                <activeByDefault>true</activeByDefault>
-            </activation>
-
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-assembly-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>1-pre_dist</id>
-                                <phase>test</phase>
-                                <goals>
-                                    <goal>attached</goal>
-                                </goals>
-                                <configuration>
-                                    <descriptors>
-                                        <descriptor>src/main/assembly/bin.xml</descriptor>
-                                    </descriptors>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
-
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/distribution/src/main/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/stratos_cli/distribution/src/main/assembly/bin.xml b/products/stratos_cli/distribution/src/main/assembly/bin.xml
deleted file mode 100644
index a3bf082..0000000
--- a/products/stratos_cli/distribution/src/main/assembly/bin.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<assembly>
-    <formats>
-        <format>zip</format>
-    </formats>
-    <includeBaseDirectory>false</includeBaseDirectory>
-
-    <fileSets>
-        <fileSet>
-            <directory>../../../components/org.apache.stratos.cli/target</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
-            <includes>
-                <include>org.apache.stratos.cli-${pom.version}-Tool.jar</include>
-            </includes>
-        </fileSet>
-        <fileSet>
-            <directory>src/main/bin</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
-            <includes>
-                <include>stratos.sh</include>
-            </includes>
-            <fileMode>0755</fileMode>
-        </fileSet>
-        <fileSet>
-            <directory>src/main/bin</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
-            <includes>
-                <include>stratos.bat</include>
-            </includes>
-        </fileSet>
-	<fileSet>
-            <directory>../</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
-            <includes>
-                <include>README.txt</include>
-		<include>LICENSE.txt</include>
-            </includes>
-        </fileSet>
-    </fileSets>
-</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/distribution/src/main/bin/stratos.bat
----------------------------------------------------------------------
diff --git a/products/stratos_cli/distribution/src/main/bin/stratos.bat b/products/stratos_cli/distribution/src/main/bin/stratos.bat
deleted file mode 100644
index 9bf9523..0000000
--- a/products/stratos_cli/distribution/src/main/bin/stratos.bat
+++ /dev/null
@@ -1,36 +0,0 @@
-@echo off
-rem ---------------------------------------------------------------------------
-rem  Licensed to the Apache Software Foundation (ASF) under one
-rem  or more contributor license agreements.  See the NOTICE file
-rem  distributed with this work for additional information
-rem  regarding copyright ownership.  The ASF licenses this file
-rem  to you under the Apache License, Version 2.0 (the
-rem  "License"); you may not use this file except in compliance
-rem  with the License.  You may obtain a copy of the License at
-rem
-rem      http://www.apache.org/licenses/LICENSE-2.0
-rem
-rem  Unless required by applicable law or agreed to in writing,
-rem  software distributed under the License is distributed on an
-rem  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-rem  KIND, either express or implied.  See the License for the
-rem  specific language governing permissions and limitations
-rem  under the License.
-rem ---------------------------------------------------------------------------
-rem  Main Script for Apache Stratos CLI
-rem
-rem  Environment Variable Prequisites
-rem
-rem   STRATOS_CLI_HOME   Home of Stratos CLI Tool
-rem
-rem   STRATOS_URL        The URL of the Stratos Controller
-rem ---------------------------------------------------------------------------
-
-rem ----- Only set STRATOS_CLI_HOME if not already set ----------------------------
-
-if "%STRATOS_CLI_HOME%"=="" set STRATOS_CLI_HOME=%CD%
-
-cd %STRATOS_CLI_HOME%
-
-java -jar "org.apache.stratos.cli-3.0.0-SNAPSHOT-Tool.jar" %*
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/distribution/src/main/bin/stratos.sh
----------------------------------------------------------------------
diff --git a/products/stratos_cli/distribution/src/main/bin/stratos.sh b/products/stratos_cli/distribution/src/main/bin/stratos.sh
deleted file mode 100755
index 7622f40..0000000
--- a/products/stratos_cli/distribution/src/main/bin/stratos.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing,
-#  software distributed under the License is distributed on an
-#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-#  specific language governing permissions and limitations
-#  under the License.
-# ----------------------------------------------------------------------------
-#  Main Script for the Apache Stratos CLI Tool
-#
-#  Environment Variable Prerequisites
-#
-#   STRATOS_CLI_HOME   Home of Stratos CLI Tool
-#
-#   STRATOS_URL        The URL of the Stratos Controller
-
-if [ -z $STRATOS_CLI_HOME ] ; then
-STRATOS_CLI_HOME="$PWD"
-fi
-
-java -jar $STRATOS_CLI_HOME/org.apache.stratos.cli-3.0.0-SNAPSHOT-Tool.jar $*
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/distribution/src/main/bin/version.txt
----------------------------------------------------------------------
diff --git a/products/stratos_cli/distribution/src/main/bin/version.txt b/products/stratos_cli/distribution/src/main/bin/version.txt
deleted file mode 100644
index e740fa4..0000000
--- a/products/stratos_cli/distribution/src/main/bin/version.txt
+++ /dev/null
@@ -1 +0,0 @@
-Apache Stratos CLI 3.0.0-SNAPSHOT

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_cli/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos_cli/pom.xml b/products/stratos_cli/pom.xml
deleted file mode 100644
index db37994..0000000
--- a/products/stratos_cli/pom.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-     <parent>
-        <groupId>org.apache.stratos</groupId>
-        <artifactId>stratos-products-parent</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-    
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>apache-stratos-cli-parent</artifactId>
-    <packaging>pom</packaging>
-    <name>Apache Stratos - CLI - Distribution</name>
-    <url>http://apache.org</url>
-    <description>Apache Stratos CLI</description>
-
-   
-    <modules>
-	<module>
-	    distribution
-   	</module>
-    </modules>
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/billing-script/billing-h2.sql
----------------------------------------------------------------------
diff --git a/products/stratos_controller/billing-script/billing-h2.sql b/products/stratos_controller/billing-script/billing-h2.sql
deleted file mode 100755
index e70be14..0000000
--- a/products/stratos_controller/billing-script/billing-h2.sql
+++ /dev/null
@@ -1,109 +0,0 @@
-CREATE TABLE IF NOT EXISTS BC_CUSTOMER (
-             BC_ID INTEGER AUTO_INCREMENT,
-             BC_NAME VARCHAR (64),
-             BC_STARTED_DATE TIMESTAMP,
-             BC_EMAIL VARCHAR (64),
-             BC_ADDRESS VARCHAR (256),
-             CONSTRAINT PK_BC_CUSTOMER PRIMARY KEY (BC_ID)
-);
-
-CREATE HASH INDEX BC_CUSTOMER_IND_BY_BC_NAME ON BC_CUSTOMER(BC_NAME);
-CREATE HASH INDEX BC_CUSTOMER_IND_BY_BC_EMAIL ON BC_CUSTOMER(BC_EMAIL);
-
-CREATE TABLE IF NOT EXISTS BC_ITEM (
-             BC_ID INTEGER AUTO_INCREMENT,
-             BC_NAME VARCHAR (64),
-             BC_COST VARCHAR (64),
-             BC_DESCRIPTION VARCHAR(128),
-             BC_PARENT_ITEM_ID INTEGER,
-             CONSTRAINT PK_BC_ITEM PRIMARY KEY (BC_ID)
-);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('Demo',NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('SMB',NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('Professional',NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('Enterprise',NULL,NULL,NULL);
-
-ALTER TABLE BC_ITEM ADD CONSTRAINT IF NOT EXISTS BC_ITEM_FK_BY_PARENT_ITEM_ID FOREIGN KEY (BC_PARENT_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
-
-
-CREATE TABLE IF NOT EXISTS BC_SUBSCRIPTION (
-             BC_ID INTEGER AUTO_INCREMENT,
-             BC_FILTER VARCHAR (32),
-             BC_IS_ACTIVE INTEGER,
-             BC_ACTIVE_SINCE TIMESTAMP,
-             BC_ACTIVE_UNTIL TIMESTAMP,
-             BC_ITEM_ID INTEGER,
-             BC_TENANT_ID INTEGER,
-             CONSTRAINT PK_BC_SUBSCRIPTION PRIMARY KEY (BC_ID)
-);
-
-ALTER TABLE BC_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_SUBSCRIPTION_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE (
-             BC_ID INTEGER AUTO_INCREMENT,
-             BC_TENANT_ID INTEGER,
-             BC_DATE TIMESTAMP,
-             BC_START_DATE TIMESTAMP,
-             BC_END_DATE TIMESTAMP,
-             BC_BOUGHT_FORWARD VARCHAR (64),
-             BC_CARRIED_FORWARD VARCHAR (64),
-             BC_TOTAL_PAYMENTS VARCHAR (64),
-             BC_TOTAL_COST VARCHAR (64),
-             CONSTRAINT PK_BC_INVOICE PRIMARY KEY (BC_ID)
-);
-
-
-CREATE TABLE IF NOT EXISTS BC_PAYMENT (
-             BC_ID INTEGER AUTO_INCREMENT,
-             BC_DATE TIMESTAMP,
-             BC_AMOUNT VARCHAR (64),
-             BC_DESCRIPTION VARCHAR (128),
-             BC_INVOICE_ID INTEGER,
-	     	 BC_TENANT_ID INTEGER,	
-             CONSTRAINT PK_BC_PAYMENT PRIMARY KEY (BC_ID)
-);
-
-ALTER TABLE BC_PAYMENT ADD CONSTRAINT IF NOT EXISTS BC_PAYMENT_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
-
--- this is n-n relationship
-CREATE TABLE IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION (
-             BC_PAYMENT_ID INTEGER,
-             BC_SUBSCRIPTION_ID INTEGER,
-             CONSTRAINT PK_BC_SUBSCRIPTION_ORDER PRIMARY KEY (BC_PAYMENT_ID, BC_SUBSCRIPTION_ID)
-);
-
-ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION_FK_BY_PAYMENT_ID FOREIGN KEY (BC_PAYMENT_ID) REFERENCES BC_PAYMENT (BC_ID);
-ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION (
-             BC_ID INTEGER  AUTO_INCREMENT,
-             BC_INVOICE_ID INTEGER,
-             BC_SUBSCRIPTION_ID INTEGER,
-             CONSTRAINT PK_BC_INVOICE_ITEM PRIMARY KEY (BC_ID)
-);
-
-ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
-ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
-
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM (
-             BC_INVOICE_SUBSCRIPTION_ID INTEGER,
-             BC_ITEM_ID INTEGER,
-             BC_COST VARCHAR (64),
-	     BC_DESCRIPTION VARCHAR (64),	
-             CONSTRAINT PK_BC_INVOICE_SUBSCRIPTION_ITEM PRIMARY KEY (BC_INVOICE_SUBSCRIPTION_ID, BC_ITEM_ID)
-);
-
-ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_INVOICE_SUBSCRIPTION_ID FOREIGN KEY (BC_INVOICE_SUBSCRIPTION_ID) REFERENCES BC_INVOICE_SUBSCRIPTION (BC_ID);
-ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM(BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_DISCOUNT (
-	BC_ID INTEGER AUTO_INCREMENT,
-	BC_TENANT_ID INTEGER,
-	BC_PERCENTAGE FLOAT,
-	BC_AMOUNT FLOAT,
-	BC_START_DATE TIMESTAMP,
-	BC_END_DATE TIMESTAMP,
-	BC_PERCENTAGE_TYPE INTEGER,
-	CONSTRAINT PK_BC_DISCOUNT PRIMARY KEY (BC_ID)
-);

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/billing-script/billing-mysql.sql
----------------------------------------------------------------------
diff --git a/products/stratos_controller/billing-script/billing-mysql.sql b/products/stratos_controller/billing-script/billing-mysql.sql
deleted file mode 100755
index 55cab9a..0000000
--- a/products/stratos_controller/billing-script/billing-mysql.sql
+++ /dev/null
@@ -1,120 +0,0 @@
-CREATE TABLE IF NOT EXISTS BC_CUSTOMER (
-             BC_ID INTEGER AUTO_INCREMENT,
-             BC_NAME VARCHAR (64),
-             BC_STARTED_DATE TIMESTAMP,
-             BC_EMAIL VARCHAR (64),
-             BC_ADDRESS VARCHAR (256),
-             CONSTRAINT PK_BC_CUSTOMER PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
-CREATE INDEX BC_CUSTOMER_IND_BY_BC_NAME USING HASH ON BC_CUSTOMER(BC_NAME);
-CREATE INDEX BC_CUSTOMER_IND_BY_BC_EMAIL USING HASH ON BC_CUSTOMER(BC_EMAIL);
-
-CREATE TABLE IF NOT EXISTS BC_ITEM (
-             BC_ID INTEGER AUTO_INCREMENT,
-             BC_NAME VARCHAR (64),
-             BC_COST VARCHAR (64),
-             BC_DESCRIPTION VARCHAR(128),
-             BC_PARENT_ITEM_ID INTEGER,
-             CONSTRAINT PK_BC_ITEM PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("Demo",NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("SMB",NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("Professional",NULL,NULL,NULL);
-INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("Enterprise",NULL,NULL,NULL);
-
-ALTER TABLE BC_ITEM ADD CONSTRAINT BC_ITEM_FK_BY_PARENT_ITEM_ID FOREIGN KEY (BC_PARENT_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
-
-
-CREATE TABLE IF NOT EXISTS BC_SUBSCRIPTION (
-             BC_ID INTEGER AUTO_INCREMENT,
-             BC_FILTER VARCHAR (32),
-             BC_IS_ACTIVE INTEGER,
-             BC_ACTIVE_SINCE TIMESTAMP,
-             BC_ACTIVE_UNTIL TIMESTAMP,
-             BC_ITEM_ID INTEGER,
-             BC_TENANT_ID INTEGER,
-             CONSTRAINT PK_BC_SUBSCRIPTION PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
-ALTER TABLE BC_SUBSCRIPTION ADD CONSTRAINT BC_SUBSCRIPTION_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE (
-             BC_ID INTEGER AUTO_INCREMENT,
-             BC_TENANT_ID INTEGER,
-             BC_DATE TIMESTAMP,
-             BC_START_DATE TIMESTAMP,
-             BC_END_DATE TIMESTAMP,
-             BC_BOUGHT_FORWARD VARCHAR (64),
-             BC_CARRIED_FORWARD VARCHAR (64),
-             BC_TOTAL_PAYMENTS VARCHAR (64),
-             BC_TOTAL_COST VARCHAR (64),
-             CONSTRAINT PK_BC_INVOICE PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
-
-CREATE TABLE IF NOT EXISTS BC_PAYMENT (
-             BC_ID INTEGER AUTO_INCREMENT,
-             BC_DATE TIMESTAMP,
-             BC_AMOUNT VARCHAR (64),
-             BC_DESCRIPTION VARCHAR (128),
-             BC_INVOICE_ID INTEGER,
-	     BC_TENANT_ID INTEGER,	
-             CONSTRAINT PK_BC_SUBSCRIPTION_ORDER PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
-ALTER TABLE BC_PAYMENT ADD CONSTRAINT BC_PAYMENT_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_REGISTRATION_PAYMENT (
-             BC_ID INTEGER AUTO_INCREMENT,
-             BC_DATE TIMESTAMP,
-             BC_AMOUNT VARCHAR (64),
-             BC_DESCRIPTION VARCHAR (128),
-			 BC_USAGE_PLAN VARCHAR (64),
-	     	 BC_TENANT_ID INTEGER,	
-             CONSTRAINT PK_BC_REGISTRATION_PAYMENT PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
--- this is n-n relationship
-CREATE TABLE IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION (
-             BC_PAYMENT_ID INTEGER,
-             BC_SUBSCRIPTION_ID INTEGER,
-             CONSTRAINT PK_BC_SUBSCRIPTION_ORDER PRIMARY KEY (BC_PAYMENT_ID, BC_SUBSCRIPTION_ID)
-)ENGINE INNODB;
-
-ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT BC_PAYMENT_SUBSCRIPTION_FK_BY_PAYMENT_ID FOREIGN KEY (BC_PAYMENT_ID) REFERENCES BC_PAYMENT (BC_ID);
-ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT BC_PAYMENT_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION (
-             BC_ID INTEGER  AUTO_INCREMENT,
-             BC_INVOICE_ID INTEGER,
-             BC_SUBSCRIPTION_ID INTEGER,
-             CONSTRAINT PK_BC_INVOICE_ITEM PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-
-ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
-ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
-
-
-CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM (
-             BC_INVOICE_SUBSCRIPTION_ID INTEGER,
-             BC_ITEM_ID INTEGER,
-             BC_COST VARCHAR (64),
-	     BC_DESCRIPTION varchar (64),	
-             CONSTRAINT PK_BC_INVOICE_SUBSCRIPTION_ITEM PRIMARY KEY (BC_INVOICE_SUBSCRIPTION_ID, BC_ITEM_ID)
-)ENGINE INNODB;
-
-ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_INVOICE_SUBSCRIPTION_ID FOREIGN KEY (BC_INVOICE_SUBSCRIPTION_ID) REFERENCES BC_INVOICE_SUBSCRIPTION (BC_ID);
-ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM(BC_ID);
-
-CREATE TABLE IF NOT EXISTS BC_DISCOUNT (
-        BC_ID INTEGER AUTO_INCREMENT,
-        BC_TENANT_ID INTEGER,
-        BC_PERCENTAGE FLOAT,
-        BC_AMOUNT FLOAT,
-        BC_START_DATE TIMESTAMP,
-        BC_END_DATE TIMESTAMP,
-        BC_PERCENTAGE_TYPE INTEGER,
-        CONSTRAINT PK_BC_DISCOUNT PRIMARY KEY (BC_ID)
-)ENGINE INNODB;
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/billing-script/metering_h2.sql
----------------------------------------------------------------------
diff --git a/products/stratos_controller/billing-script/metering_h2.sql b/products/stratos_controller/billing-script/metering_h2.sql
deleted file mode 100755
index 0491b8e..0000000
--- a/products/stratos_controller/billing-script/metering_h2.sql
+++ /dev/null
@@ -1,114 +0,0 @@
---
--- TABLES
---
-
-CREATE TABLE IF NOT EXISTS USAGE_HOURLY_ANALYTICS (
-        ID VARCHAR(200) NOT NULL,
-        HOUR_FACT TIMESTAMP,
-        SERVER_NAME VARCHAR(100),
-        TENANT_ID VARCHAR(50),
-        PAYLOAD_TYPE VARCHAR(50),
-        PAYLOAD_VALUE  BIGINT,
-        PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS USAGE_DAILY_ANALYTICS (
-        ID VARCHAR(200) NOT NULL,
-        DAY_FACT TIMESTAMP,
-        SERVER_NAME VARCHAR(100),
-        TENANT_ID VARCHAR(50),
-        PAYLOAD_TYPE VARCHAR(50),
-        PAYLOAD_VALUE  BIGINT,
-        PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS USAGE_MONTHLY_ANALYTICS (
-        ID VARCHAR(200) NOT NULL,
-        MONTH_FACT TIMESTAMP,
-        SERVER_NAME VARCHAR(100),
-        TENANT_ID VARCHAR(50),
-        PAYLOAD_TYPE VARCHAR(50),
-        PAYLOAD_VALUE  BIGINT,
-        PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS USAGE_LAST_HOURLY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (ID)
-);
-	
-CREATE TABLE IF NOT EXISTS USAGE_LAST_DAILY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS USAGE_LAST_MONTHLY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_HOURLY_ANALYTICS (
-	ID VARCHAR(200) NOT NULL,
-	HOUR_FACT TIMESTAMP,
-	SERVER_NAME VARCHAR(100),
-	TENANT_ID VARCHAR(50),
-	REQUEST_COUNT BIGINT,
-	RESPONSE_COUNT BIGINT,
-	FAULT_COUNT BIGINT,
-	PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_DAILY_ANALYTICS (
-	ID VARCHAR(200) NOT NULL,
-	DAY_FACT TIMESTAMP,
-	SERVER_NAME VARCHAR(100),
-	TENANT_ID VARCHAR(50),
-	REQUEST_COUNT BIGINT,
-	RESPONSE_COUNT BIGINT,
-	FAULT_COUNT BIGINT,
-	PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_MONTHLY_ANALYTICS (
-	ID VARCHAR(200) NOT NULL,
-	MONTH_FACT TIMESTAMP,
-	SERVER_NAME VARCHAR(100),
-	TENANT_ID VARCHAR(50),
-	REQUEST_COUNT BIGINT,
-	RESPONSE_COUNT BIGINT,
-	FAULT_COUNT BIGINT,
-	PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_HOURLY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (ID)
-);
-	
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_DAILY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_MONTHLY_TS (
-	ID VARCHAR(200) NOT NULL,
-	TIMESTMP TIMESTAMP,
-	PRIMARY KEY (ID)
-);
-
-CREATE TABLE IF NOT EXISTS REGISTRY_USAGE_HOURLY_ANALYTICS ( 
-	ID VARCHAR(50),
-	TENANT_ID VARCHAR(50),	
-	HISTORY_USAGE BIGINT,
-	CURRENT_USAGE BIGINT,
-	PRIMARY KEY (ID)
-); 
-
-
-COMMIT;
-


[31/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Data-Services-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Data-Services-Server-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Data-Services-Server-logo.gif
new file mode 100644
index 0000000..f70a205
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Data-Services-Server-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Enterprise-Service-Bus-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Enterprise-Service-Bus-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Enterprise-Service-Bus-logo.gif
new file mode 100644
index 0000000..95cb5b3
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Enterprise-Service-Bus-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Gadget-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Gadget-Server-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Gadget-Server-logo.gif
new file mode 100644
index 0000000..8e89ef5
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Gadget-Server-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Governance-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Governance-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Governance-logo.gif
new file mode 100644
index 0000000..af1ac45
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Governance-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Identity-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Identity-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Identity-logo.gif
new file mode 100644
index 0000000..a2447bc
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Identity-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Mashup-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Mashup-Server-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Mashup-Server-logo.gif
new file mode 100644
index 0000000..f8ed9be
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Mashup-Server-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Message-Broker-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Message-Broker-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Message-Broker-logo.gif
new file mode 100644
index 0000000..aa5c5ba
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Stratos-Message-Broker-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Tasks-Server-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Tasks-Server-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Tasks-Server-logo.gif
new file mode 100644
index 0000000..5fa3679
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/WSO2-Tasks-Server-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/aas-top.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/aas-top.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/aas-top.gif
new file mode 100644
index 0000000..a15dd8f
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/aas-top.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/activate-button.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/activate-button.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/activate-button.gif
new file mode 100644
index 0000000..91e4c94
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/activate-button.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/appserver-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/appserver-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/appserver-logo.gif
new file mode 100644
index 0000000..55e4751
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/appserver-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bam-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bam-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bam-logo.gif
new file mode 100644
index 0000000..f8b6a74
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bam-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bps-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bps-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bps-logo.gif
new file mode 100644
index 0000000..5dd2171
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/bps-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/brs-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/brs-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/brs-logo.gif
new file mode 100644
index 0000000..ccba887
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/brs-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/cep_logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/cep_logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/cep_logo.gif
new file mode 100644
index 0000000..b80554a
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/cep_logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/csg-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/csg-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/csg-logo.gif
new file mode 100644
index 0000000..e69aaa6
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/csg-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/deactivate-button.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/deactivate-button.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/deactivate-button.gif
new file mode 100644
index 0000000..c8d1b4a
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/deactivate-button.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/ds-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/ds-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/ds-logo.gif
new file mode 100644
index 0000000..f70a205
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/ds-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/esb-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/esb-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/esb-logo.gif
new file mode 100644
index 0000000..95cb5b3
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/esb-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/gadget-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/gadget-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/gadget-logo.gif
new file mode 100644
index 0000000..8e89ef5
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/gadget-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/go-button.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/go-button.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/go-button.gif
new file mode 100644
index 0000000..ae73e92
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/go-button.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/governance-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/governance-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/governance-logo.gif
new file mode 100644
index 0000000..af1ac45
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/governance-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/identity-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/identity-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/identity-logo.gif
new file mode 100644
index 0000000..a2447bc
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/identity-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/inactive-go-button.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/inactive-go-button.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/inactive-go-button.gif
new file mode 100644
index 0000000..513301e
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/inactive-go-button.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mashup-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mashup-logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mashup-logo.gif
new file mode 100644
index 0000000..f8ed9be
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mashup-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mb_logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mb_logo.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mb_logo.gif
new file mode 100644
index 0000000..aa5c5ba
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/mb_logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/service-configuration.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/service-configuration.gif b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/service-configuration.gif
new file mode 100644
index 0000000..499b6a2
Binary files /dev/null and b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/images/service-configuration.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/index.jsp
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/index.jsp b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/index.jsp
new file mode 100644
index 0000000..580156f
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/index.jsp
@@ -0,0 +1,244 @@
+<%-- 
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~ 
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~ 
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  --%>
+<%@ page import="org.wso2.stratos.manager.dashboard.ui.clients.CloudManagerServiceClient" %>
+<%@ page import="org.apache.stratos.manager.dashboard.stub.xsd.CloudService" %>
+<%@ page import="org.wso2.carbon.registry.core.exceptions.RegistryException" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
+<%@ page import="org.wso2.carbon.ui.CarbonUIMessage" %>
+<%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %>
+<%@ page import="org.wso2.carbon.account.mgt.ui.clients.AccountMgtClient" %>
+<%@ page import="org.wso2.carbon.utils.multitenancy.MultitenantConstants" %>
+<%@ page import="org.wso2.stratos.manager.dashboard.ui.utils.Util" %>
+
+<jsp:include page="../registry_common/registry_common-i18n-ajaxprocessor.jsp"/>
+<script type="text/javascript" src="../registry_common/js/registry_validation.js"></script>
+<script type="text/javascript" src="../registry_common/js/registry_common.js"></script>
+<script type="text/javascript" src="../tenant-dashboard/js/dashboard.js"></script>
+<link href="../tenant-dashboard/css/dashboard.css" rel="stylesheet" type="text/css" media="all"/>
+<script type="text/javascript" src="../tenant-dashboard/js/configurations.js"></script>
+
+
+
+<%
+
+    CloudManagerServiceClient cloudManagerClient;
+    CloudService[] cloudServices = null;
+    String error = "Error in getting the available and active service details.";
+    try {
+        cloudManagerClient = new CloudManagerServiceClient(request, config, session);
+        cloudServices = cloudManagerClient.retrieveCloudServiceInfo();
+    } catch (Exception e) {
+        request.setAttribute(CarbonUIMessage.ID, new CarbonUIMessage(error, CarbonUIMessage.ERROR, e));
+%>
+<jsp:include page="../admin/error.jsp"/>
+<%
+        return;
+    }
+%>
+<fmt:bundle basename="org.apache.stratos.manager.dashboard.ui.i18n.Resources">
+    <carbon:jsi18n
+            resourceBundle="org.apache.stratos.manager.dashboard.ui.i18n.JSResources"
+            request="<%=request%>" namespace="org.wso2.stratos.manager.dashboard.ui"/>
+
+    <div id="middle">
+        <h2><fmt:message key="cloud.services"/></h2>
+        <%
+            try {
+                // if the account management permission there, we are showing the message to validate email address
+                if (CarbonUIUtil.isUserAuthorized(request, "/permission/admin/configure/account")) {
+                    try {
+                        AccountMgtClient client = new AccountMgtClient(config, session);
+                        boolean isEmailValidated = client.isEmailValidated();
+
+                        if (!isEmailValidated) {
+        %>
+
+        <div class="green-note">Your organization has not validated the contact email address
+            yet. Please validate it following
+            the instructions in the <a href="../account-mgt/account_mgt.jsp">Account
+                Management</a> page (Accessible from Configure-&gt;Account menu).
+        </div>
+        <%
+            }else{
+			%>
+			<div class="green-note"></div>
+			<%
+			}
+        } catch (Exception e) {
+            request.setAttribute(CarbonUIMessage.ID, new CarbonUIMessage(error, error, null));
+        %>
+        <jsp:include page="../admin/error.jsp?<%=error%>"/>
+        <%
+                    return;
+                }
+            }
+            String tenantDomain;
+            if (session.getAttribute(MultitenantConstants.TENANT_DOMAIN) != null) {
+                tenantDomain = (String) session.getAttribute(MultitenantConstants.TENANT_DOMAIN);
+            } else {
+                // user is not logged in or just logged out, but still they are inside url own to the domain
+                tenantDomain = (String) request.getAttribute(MultitenantConstants.TENANT_DOMAIN);
+            }
+            String linkSuffix = "";
+            if (tenantDomain != null) {
+                linkSuffix = "/" + MultitenantConstants.TENANT_AWARE_URL_PREFIX + "/" + tenantDomain;
+            }
+            %> <script type="text/javascript">
+            linkSuffix = '<%=linkSuffix%>';
+           </script> <%
+	  
+            for (CloudService cloudService : cloudServices) {
+                String name = cloudService.getName();
+                String projectPageUrl = cloudService.getProductPageURL();
+                String link = cloudService.getLink() + linkSuffix;
+                if (name.equals("WSO2 Stratos Application Server")) {
+        %>
+        <script type="text/javascript">
+            asUrl = '<%=link%>';
+        </script>
+        <%
+        } else if (name.equals("WSO2 Stratos Enterprise Service Bus")) {
+
+        %>
+        <script type="text/javascript">
+            esbUrl = '<%=link%>';
+        </script>
+        <%
+
+        } else if (name.equals("WSO2 Stratos Data Services Server")) {
+        %>
+        <script type="text/javascript">
+            dssUrl = '<%=link%>';
+
+        </script>
+        <%
+
+        } else if (name.equals("WSO2 Stratos Governance")) {
+
+        %>
+        <script type="text/javascript">
+            gregUrl = '<%=link%>';
+
+        </script>
+        <%
+        } else if (name.equals("WSO2 Stratos Identity")) {
+        %>
+        <script type="text/javascript">
+            isUrl = '<%=link%>';
+
+        </script>
+        <%
+        } else if (name.equals("WSO2 Stratos Business Process Server")) {
+        %>
+        <script type="text/javascript">
+            bpsUrl = '<%=link%>';
+
+        </script>
+        <%
+        } else if (name.equals("WSO2 Stratos Business Rules Server")) {
+        %>
+        <script type="text/javascript">
+            brsUrl = '<%=link%>';
+
+        </script>
+        <%
+        } else if (name.equals("WSO2 Stratos Mashup Server")) {
+        %>
+        <script type="text/javascript">
+            msUrl = '<%=link%>';
+
+        </script>
+        <%
+        } else if (name.equals("WSO2 Stratos Gadget Server")) {
+        %>
+        <script type="text/javascript">
+            gsUrl = '<%=link%>';
+
+        </script>
+        <%
+        } else if (name.equals("WSO2 Stratos Complex Event Processing Server")) {
+        %>
+        <script type="text/javascript">
+            cepUrl = '<%=link%>';
+
+        </script>
+        <%
+        } else if (name.equals("WSO2 Stratos Message Broker")) {
+        %>
+        <script type="text/javascript">
+            mbUrl = '<%=link%>';
+
+        </script>
+        <%
+        } else if (name.equals("WSO2 Stratos Business Activity Monitor")) {
+        %>
+        <script type="text/javascript">
+            bamUrl = '<%=link%>';
+
+        </script>
+        <%
+        } else if (name.equals("WSO2 Stratos Cloud Gateway")) {
+        %>
+        <script type="text/javascript">
+            csgUrl = '<%=link%>';
+
+        </script>
+        <%
+        } else {
+        %>
+        <script type="text/javascript">
+            managerUrl = '<%=link%>';
+        </script>
+        <%
+                }
+            }
+        } catch (Exception e) {
+            request.setAttribute(CarbonUIMessage.ID, new CarbonUIMessage(error, error, null));
+        %>
+        <jsp:include page="../admin/error.jsp?<%=error%>"/>
+        <%
+                return;
+            }
+
+        %>
+
+        <div id="workArea">
+
+
+            <div id="dashboard">
+
+            </div>
+
+            <script type="text/javascript">
+
+                jQuery(document).ready(function() {
+                    jQuery('#dashboard').load('../../../../features-dashboard/tenant-dashboard/index.jsp');
+                });
+
+                var menuPanel = document.getElementById('menu-panel');
+                var menuSlider0 = document.getElementById('menu-panel-button0');
+                jQuery(menuPanel).hide();
+                jQuery(menuSlider0).removeClass('showToHidden');
+                jQuery(menuSlider0).addClass('hiddenToShow');
+                document.cookie = "menuPanel=none;path=/;expires=" + cookie_date.toGMTString();
+            </script>
+        </div>
+    </div>
+</fmt:bundle>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/configurations.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/configurations.js b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/configurations.js
new file mode 100644
index 0000000..6a9d212
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/configurations.js
@@ -0,0 +1,381 @@
+//service urls
+var managerUrl;
+var asUrl;
+var dssUrl;
+var esbUrl;
+var gregUrl;
+var msUrl;
+var gsUrl;
+var mbUrl;
+var cepUrl;
+var isUrl;
+var bpsUrl;
+var brsUrl;
+var bamUrl;
+var csgUrl;
+var linkSuffix;
+
+// array definitions to store service feature urls
+var managerFeaturesURL=new Array;
+var asFeaturesUrl = new Array;
+var dssFeaturesUrl = new Array;
+var esbFeaturesUrl = new Array;
+var gregFeaturesUrl = new Array;
+var msFeaturesUrl = new Array;
+var gsFeaturesUrl = new Array;
+var mbFeaturesUrl = new Array;
+var cepFeaturesUrl = new Array;
+var isFeaturesUrl = new Array;
+var bpsFeaturesUrl = new Array;
+var brsFeaturesUrl = new Array;
+var bamFeaturesUrl = new Array;
+var csgFeaturesUrl = new Array;
+
+
+// urls of features
+
+// Manager
+managerFeaturesURL[0]="/carbon/tenant-billing/past_invoice.jsp"; // link to billing component
+managerFeaturesURL[1]="/carbon/tenant-billing/docs/userguide.html"; // billing component docs
+managerFeaturesURL[2]="/carbon/tenant-usage/tenant_usage.jsp" ; // link to metering component
+managerFeaturesURL[3]="/carbon/tenant-usage/docs/userguide.html"
+managerFeaturesURL[4]="/carbon/account-mgt/account_mgt.jsp"
+managerFeaturesURL[5]="/carbon/account-mgt/docs/userguide.html"
+managerFeaturesURL[6]="/carbon/userstore/index.jsp"
+managerFeaturesURL[7]="/carbon/userstore/docs/userguide.html"
+//app server
+asFeaturesUrl[0]="/carbon/service-mgt/index.jsp";  // link to web service hosting
+asFeaturesUrl[1]="/carbon/service-mgt/docs/userguide.html"; //web service hosting docs
+asFeaturesUrl[2]="/carbon/webapp-mgt/upload.jsp";//web -app hosting
+asFeaturesUrl[3]="/carbon/webapp-mgt/docs/userguide.html";//web -app hosting docs
+asFeaturesUrl[4]="/carbon/tracer/index.jsp";//message tracing
+asFeaturesUrl[5]="/carbon/tracer/docs/userguide.html";//message tracing docs
+asFeaturesUrl[6]="/carbon/wsdl2code/index.jsp";//WSDL2Java Tool
+asFeaturesUrl[7]="/carbon/wsdl2code/docs/userguide.html";//WSDL2Java Tool docs
+asFeaturesUrl[8]="/carbon/java2wsdl/index.jsp";//Java2WSDL Tool
+asFeaturesUrl[9]="/carbon/java2wsdl/docs/userguide.html";//Java2WSDL Tool docs
+asFeaturesUrl[10]="/carbon/wsdl_validator/index.jsp";//WSDL Validator
+asFeaturesUrl[11]="/carbon/wsdl_validator/docs/userguide.html";//WSDL Validator docs
+asFeaturesUrl[12]="/carbon/modulemgt/index.jsp";//axis2 modules mgmnt
+asFeaturesUrl[13]="/carbon/modulemgt/docs/userguide.html";//axis2 modules mgmnt docs
+asFeaturesUrl[14]="/carbon/tryit/index.jsp";//Service testing
+asFeaturesUrl[15]="/carbon/tryit/docs/userguide.html";//service testing docs
+
+//bam server
+bamFeaturesUrl[0]="/carbon/bam-server-data/mediation_data.jsp";  // link to Real Time Mediation Monitoring
+bamFeaturesUrl[1]="/carbon/bam-server-data/docs/userguide.html";  // link to Real Time Mediation Monitoring docs
+bamFeaturesUrl[2]="/carbon/bam-server-data/mediation_analytics.jsp"; //link to Mediation Analysis
+bamFeaturesUrl[3]="/carbon/bam-server-data/docs/userguide.html"; //link to Mediation Analysis docs
+bamFeaturesUrl[4]="/carbon/bam-server-data/service_data.jsp";//link to Real time Service Monitoring
+bamFeaturesUrl[5]="/carbon/bam-server-data/docs/userguide.html";//link to Real time Service Monitoring docs
+bamFeaturesUrl[6]="";//link to Summary Generation
+bamFeaturesUrl[7]="";//link to Summary Generation
+bamFeaturesUrl[8]="/carbon/bam-server-data/service_stats.jsp";//link to Service Invocation Analysis
+bamFeaturesUrl[9]="/carbon/bam-server-data/docs/userguide.html";//link to Service Invocation Analysis docs
+bamFeaturesUrl[10]="/carbon/dashboard/index.jsp";//link to Dashboard
+bamFeaturesUrl[11]="/carbon/dashboard/docs/userguide.html";//link to Dashboard docs
+bamFeaturesUrl[12]="";//link to Activity Correlation and Monitoring
+bamFeaturesUrl[13]="";//link to Activity Correlation and Monitoring docs
+bamFeaturesUrl[14]="";//link to Message Collection and Archival
+bamFeaturesUrl[15]="";//link to Message Collection and Archival docs
+
+//bps server
+bpsFeaturesUrl[0]="";  // link to WS-BPEL 2.0 and BPELWS 1.1
+bpsFeaturesUrl[1]="/carbon/admin/docs/userguide.html";  // link to WS-BPEL 2.0 and BPELWS 1.1 docs
+bpsFeaturesUrl[2]="";  // link Secure Business Processes
+bpsFeaturesUrl[3]="/carbon/admin/docs/userguide.html";  // link Secure Business Processes docs
+bamFeaturesUrl[4]="";//link to Process Monitoring
+bamFeaturesUrl[5]="/carbon/admin/docs/userguide.html";//link to Process Monitoring docs
+bpsFeaturesUrl[6]=""; //link to Instance Data Cleanup
+bpsFeaturesUrl[7]="/carbon/admin/docs/userguide.html"; //link to Instance Data Cleanup docs
+bpsFeaturesUrl[8]=""; //link to BPEL Extensions
+bpsFeaturesUrl[9]="/carbon/admin/docs/userguide.html"; //link to BPEL Extensions docs
+bamFeaturesUrl[10]="";//link to Process Versioning
+bamFeaturesUrl[11]="/carbon/admin/docs/userguide.html";//link to Process Versioning docs
+
+//brs server
+brsFeaturesUrl[0]="/carbon/service-mgt/index.jsp";  // link to web service hosting support
+brsFeaturesUrl[1]="/carbon/service-mgt/docs/userguide.html"; //web service hosting docs
+brsFeaturesUrl[2]="/carbon/ruleservices/rule_service_wizard_step1.jsp";//Rule service creation support
+brsFeaturesUrl[3]="/carbon/ruleservices/docs/userguide.html";//Rule service creation support docs
+brsFeaturesUrl[4]="/carbon/resources/resource.jsp";//Registry as a Rule Repository
+brsFeaturesUrl[5]="/carbon/resources/docs/userguide.html";//Registry as a Rule Repository docs
+brsFeaturesUrl[6]="/carbon/tryit/index.jsp";//Service testing
+brsFeaturesUrl[7]="/carbon/tryit/docs/userguide.html";//service testing docs
+/*brsFeaturesUrl[8]="/carbon/tracer/index.jsp";//message tracing
+brsFeaturesUrl[9]="/carbon/tracer/docs/userguide.html";//message tracing docs
+brsFeaturesUrl[10]="/carbon/wsdl2code/index.jsp";//WSDL2Java Tool
+brsFeaturesUrl[11]="/carbon/wsdl2code/docs/userguide.html";//WSDL2Java Tool docs
+brsFeaturesUrl[12]="/carbon/java2wsdl/index.jsp";//Java2WSDL Tool
+brsFeaturesUrl[13]="/carbon/java2wsdl/docs/userguide.html";//Java2WSDL Tool docs
+brsFeaturesUrl[14]="/carbon/wsdl_validator/index.jsp";//WSDL Validator
+brsFeaturesUrl[15]="/carbon/wsdl_validator/docs/userguide.html";//WSDL Validator docs */
+
+//cep server
+cepFeaturesUrl[0]="/carbon/CEP/cep_queries.jsp"; // link to CEP buckets list
+cepFeaturesUrl[1]="/carbon/CEP/docs/userguide.html"; // link to CEP buckets doc
+cepFeaturesUrl[2]= "/carbon/resources/resource.jsp?region=region3&item=resource_browser_menu&viewType=std&path=/_system/governance/message" ; // path to registry stored message boxes
+cepFeaturesUrl[3]="/carbon/messagebox/docs/userguide.html"; // message box docs
+
+//dss server
+dssFeaturesUrl[0]="/carbon/service-mgt/index.jsp";  // link to Data Service Hosting
+dssFeaturesUrl[1]="/carbon/service-mgt/docs/userguide.html"; //Data Service Hosting docs
+dssFeaturesUrl[2]="/carbon/ds/scriptAddSource.jsp";//Data as a Service
+dssFeaturesUrl[3]="/carbon/ds/docs/userguide.html";//Data as a Service docs
+dssFeaturesUrl[4]="/carbon/tryit/index.jsp";//Service testing
+dssFeaturesUrl[5]="/carbon/tryit/docs/userguide.html";//service testing docs
+dssFeaturesUrl[6]="/carbon/tracer/index.jsp";//message tracing
+dssFeaturesUrl[7]="/carbon/tracer/docs/userguide.html";//message tracing docs
+dssFeaturesUrl[8]="/carbon/adminconsole/databases.jsp";//DB Explorer
+dssFeaturesUrl[9]="/carbon/adminconsole/docs/userguide.html";//DB Explorer docs
+/*dssFeaturesUrl[6]="/carbon/wsdl2code/index.jsp";//WSDL2Java Tool
+dssFeaturesUrl[7]="/carbon/wsdl2code/docs/userguide.html";//WSDL2Java Tool docs
+dssFeaturesUrl[8]="/carbon/java2wsdl/index.jsp";//Java2WSDL Tool
+dssFeaturesUrl[9]="/carbon/java2wsdl/docs/userguide.html";//Java2WSDL Tool docs
+dssFeaturesUrl[10]="/carbon/wsdl_validator/index.jsp";//WSDL Validator
+dssFeaturesUrl[11]="/carbon/wsdl_validator/docs/userguide.html";//WSDL Validator docs */
+
+//esb server
+esbFeaturesUrl[0]="/carbon/proxyservices/templates.jsp";  // Proxy Service
+esbFeaturesUrl[1]="/carbon/proxyservices/docs/userguide.html"; //Proxy Service docs
+esbFeaturesUrl[2]="/carbon/sequences/list_sequences.jsp";//Sequence
+esbFeaturesUrl[3]="/carbon/sequences/docs/userguide.html";//Sequence docs
+esbFeaturesUrl[4]="/carbon/endpoints/index.jsp";//Endpoint
+esbFeaturesUrl[5]="/carbon/endpoints/docs/userguide.html";//Endpoint docs
+esbFeaturesUrl[6]="/carbon/task/index.jsp";//Scheduled Tasks
+esbFeaturesUrl[7]="/carbon/task/docs/userguide.html";//Scheduled Tasks docs
+esbFeaturesUrl[8]="/carbon/message_processor/index.jsp";//Store and Forward
+esbFeaturesUrl[9]="/carbon/message_processor/docs/userguide.html";//Store and Forward docs
+esbFeaturesUrl[10]="/carbon/executors/list_executors.jsp";//Priority Execution
+esbFeaturesUrl[11]="/carbon/executors/docs/userguide.html";//Priority Execution docs
+esbFeaturesUrl[12]="/carbon/tryit/index.jsp";//Service testing
+esbFeaturesUrl[13]="/carbon/tryit/docs/userguide.html";//service testing docs
+esbFeaturesUrl[14]="/carbon/tracer/index.jsp";//message tracing
+esbFeaturesUrl[15]="/carbon/tracer/docs/userguide.html";//message tracing docs
+
+//greg server
+gregFeaturesUrl[0]="//carbon/services/services.jsp";  // Service
+gregFeaturesUrl[1]="/carbon/services/docs/userguide.html"; //Service docs
+gregFeaturesUrl[2]="/carbon/wsdl/wsdl.jsp";//WSDL
+gregFeaturesUrl[3]="/carbon/wsdl/docs/userguide.html";//WSDL docs
+gregFeaturesUrl[4]="/carbon/schema/schema.jsp";//Schema
+gregFeaturesUrl[5]="/carbon/schema/docs/userguide.html";//Schema docs
+gregFeaturesUrl[6]="/carbon/policy/policy.jsp";//Policy
+gregFeaturesUrl[7]="/carbon/policy/docs/userguide.html";//Policy docs
+gregFeaturesUrl[8]="/carbon/search/advancedSearch.jsp";//Search
+gregFeaturesUrl[9]="/carbon/search/docs/userguide.html";//Search docs
+gregFeaturesUrl[10]="/carbon/activities/activity.jsp";//Activities
+gregFeaturesUrl[11]="/carbon/activities/docs/userguide.html";//Activities docs
+gregFeaturesUrl[12]="/carbon/notifications/notifications.jsp";//Notifications
+gregFeaturesUrl[13]="/carbon/notifications/docs/userguide.html";//Notifications docs
+gregFeaturesUrl[14]="/carbon/extensions/add_extensions.jsp";//Extensions
+gregFeaturesUrl[15]="/carbon/extensions/docs/userguide.html";//Extensions docs
+
+//gs server
+gsFeaturesUrl[0]="";  // Enterprise Information Portal
+gsFeaturesUrl[1]=""; //Enterprise Information Portal docs
+gsFeaturesUrl[2]="";//Easy User Options
+gsFeaturesUrl[3]="";//Easy User Options docs
+gsFeaturesUrl[4]="";//Author Gadgets
+gsFeaturesUrl[5]="";//Author Gadgets docs
+gsFeaturesUrl[6]="";//Client-side Gadgets
+gsFeaturesUrl[7]="";//Client-side Gadgets docs
+gsFeaturesUrl[8]="";//Enterprise Gadget Repository
+gsFeaturesUrl[9]="";//Enterprise Gadget Repository docs
+gsFeaturesUrl[10]="";//Anonymous Mode
+gsFeaturesUrl[11]="";//Anonymous Mode docs
+gsFeaturesUrl[12]="";//Secure Sign-in Options
+gsFeaturesUrl[13]="";//Secure Sign-in Options docs
+gsFeaturesUrl[14]="";//Extensions Management Console
+gsFeaturesUrl[15]="";//Extensions Management Console docs
+
+//is server
+isFeaturesUrl[0]="/carbon/userprofile/index.jsp";  //User Profile
+isFeaturesUrl[1]="/carbon/userprofile/docs/userguide.html"; //User Profile docs
+isFeaturesUrl[2]="/carbon/identity-provider/index.jsp";//OpenID
+isFeaturesUrl[3]="/carbon/identity-provider/docs/userguide.html";//OpenID docs
+isFeaturesUrl[4]="/carbon/identity-provider/index.jsp";//Information Card
+isFeaturesUrl[5]="/carbon/identity-provider/docs/userguide.html";//Information Card docs
+isFeaturesUrl[6]="/carbon/sso-saml/manage_service_providers.jsp";//SAML 2.0 Single Sign-On
+isFeaturesUrl[7]="/carbon/sso-saml/docs/userguide.html";//SAML 2.0 Single Sign-On docs
+isFeaturesUrl[8]="/carbon/multi-factor/xmpp-config.jsp";//Multifactor Authentication
+isFeaturesUrl[9]="/carbon/multi-factor/docs/userguide.html";//Multifactor Authentication docs
+isFeaturesUrl[10]="/carbon/userstore/index.jsp";//Users and Roles
+isFeaturesUrl[11]="/carbon/userstore/docs/userguide.html";//Users and Roles docs
+isFeaturesUrl[12]="/carbon/identity-trusted-relying-parties/add-trusted-rp.jsp";//Relying Partie
+isFeaturesUrl[13]="/carbon/identity-trusted-relying-parties/docs/userguide.html";//Relying Partie docs
+isFeaturesUrl[14]="/carbon/keystoremgt/keystore-mgt.jsp";//Key Stores
+isFeaturesUrl[15]="/carbon/keystoremgt/docs/userguide.html";//Key Stores docs
+
+//mb server
+mbFeaturesUrl[0]="";  //Publish/Subscribe to Topics
+mbFeaturesUrl[1]=""; //Publish/Subscribe to Topics docs
+mbFeaturesUrl[2]="";//AMQP
+mbFeaturesUrl[3]="";//AMQP docs
+mbFeaturesUrl[4]="";//Topic Authorization
+mbFeaturesUrl[5]="";//Topic Authorization docs
+mbFeaturesUrl[6]="";//Manage topics and queues permissions
+mbFeaturesUrl[7]="";//Manage topics and queues permissions docs
+mbFeaturesUrl[8]="";//SQS support
+mbFeaturesUrl[9]="";//SQS support docs
+mbFeaturesUrl[10]="";//User based authorization for queues
+mbFeaturesUrl[11]="";//User based authorization for queues docs
+mbFeaturesUrl[12]="";//Manage message boxes
+mbFeaturesUrl[13]="";//Manage message boxes docs
+mbFeaturesUrl[14]="";//Message box as event sink
+mbFeaturesUrl[15]="";//Message box as event sink docs
+
+//ms server
+msFeaturesUrl[0]="/carbon/js_scraper/index.jsp";  //Scrape the Web
+msFeaturesUrl[1]="/carbon/js_scraper/docs/userguide.html"; //Scrape the Web docs
+msFeaturesUrl[2]="/carbon/js_service/newMashup.jsp";//Compose and Expose
+msFeaturesUrl[3]="/carbon/js_service/docs/userguide.html";//Compose and Expose docs
+msFeaturesUrl[4]="/carbon/task/index.jsp";//Schedule Tasks
+msFeaturesUrl[5]="/carbon/task/docs/userguide.html";//Schedule Tasks docs
+msFeaturesUrl[6]="";//Javascript Stubs
+msFeaturesUrl[7]="";//Javascript Stubs docs
+msFeaturesUrl[8]="/carbon/modulemgt/index.jsp";//Modules
+msFeaturesUrl[9]="/carbon/modulemgt/docs/userguide.html";//Modules docs
+msFeaturesUrl[10]="/carbon/tracer/index.jsp";//Message Tracing
+msFeaturesUrl[11]="/carbon/tracer/docs/userguide.html";//Message Tracing docs
+/*msFeaturesUrl[12]="";//Caching & Throttling
+msFeaturesUrl[13]="";//Caching & Throttling docs
+msFeaturesUrl[14]="";//service testing
+msFeaturesUrl[15]="";//service testing docs */
+
+
+//csg server
+csgFeaturesUrl[0]="/carbon/service-mgt/index.jsp";  
+csgFeaturesUrl[1]="/carbon/service-mgt/docs/userguide.html"; 
+
+// functions to generate urls of features upon onclick
+
+ function generateManagerFeatureUrl(which){
+	var featureUrl=managerFeaturesURL[which];
+	return window.open(featureUrl,'_self',false);
+ }
+
+
+function generateAsFeatureUrl(which){
+	var featureUrl=window.asUrl + asFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+
+function generateBamFeatureUrl(which){
+	var featureUrl=window.bamUrl + bamFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+
+function generateBpsFeatureUrl(which){
+	var featureUrl=window.bpsUrl + bpsFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+
+function generateBrsFeatureUrl(which){
+	var featureUrl=window.brsUrl + brsFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+function generateCepFeatureUrl(which){
+	var featureUrl=window.cepUrl + cepFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+function generateDssFeatureUrl(which){
+	var featureUrl=window.dssUrl + dssFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+function generateEsbFeatureUrl(which){
+	var featureUrl=window.esbUrl + esbFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+function generateGregFeatureUrl(which){
+	var featureUrl=window.gregUrl + gregFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+function generateGsFeatureUrl(which){
+	var featureUrl=window.gsUrl + gsFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+function generateIsFeatureUrl(which){
+	var featureUrl=window.isUrl + isFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+
+function generateMbFeatureUrl(which){
+	var featureUrl=window.mbUrl + mbFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+function generateMsFeatureUrl(which){
+	var featureUrl=window.msUrl + msFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+function generateCsgFeatureUrl(which){
+	var featureUrl=window.csgUrl + csgFeaturesUrl[which];
+	window.open(featureUrl);
+ }
+
+
+// functions to set the urls of services
+
+
+function gotoAppServer(){
+  window.open(asUrl,'_newtab')  ;
+}
+
+function gotoDss(){
+  window.open(dssUrl,'_newtab')  ;
+}
+
+function gotoEsb(){
+  window.open(esbUrl,'_newtab')  ;
+}
+
+
+function gotoMs(){
+  window.open(msUrl,'_newtab')  ;
+}
+
+function gotoIs(){
+  window.open(isUrl,'_newtab')  ;
+}
+
+function gotoGreg(){
+  window.open(gregUrl,'_newtab')  ;
+}
+
+function gotoGs(){
+  window.open(gsUrl,'_newtab')  ;
+}
+
+function gotoBam(){
+  window.open(bamUrl,'_newtab')  ;
+}
+
+
+function gotoBps(){
+  window.open(bpsUrl,'_newtab')  ;
+}
+
+
+function gotoBrs(){
+  window.open(brsUrl,'_newtab')  ;
+}
+
+function gotoCep(){
+  window.open(cepUrl,'_newtab')  ;
+}
+
+function gotoMb(){
+  window.open(mbUrl,'_newtab')  ;
+}
+
+function gotoCsg(){
+  window.open(csgUrl,'_newtab')  ;
+}
+
+
+
+
+
+
+
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/dashboard.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/dashboard.js b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/dashboard.js
new file mode 100644
index 0000000..e294f8c
--- /dev/null
+++ b/products/stratos-controller/modules/dashboard/src/main/resources/web/tenant-dashboard/js/dashboard.js
@@ -0,0 +1,12 @@
+function execOnPageLoad() {
+    // currently not used
+}
+
+function onChangeServiceSubscription() {
+    sessionAwareFunction(function() {
+        
+        var cloudServiceForm = document.getElementById("cloudService");
+        cloudServiceForm.submit();
+        
+    }, org_wso2_stratos_manager_dashboard_ui_jsi18n["session.timed.out"]);
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/INSTALL.txt
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/INSTALL.txt b/products/stratos-controller/modules/distribution/INSTALL.txt
new file mode 100755
index 0000000..31ea2f5
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/INSTALL.txt
@@ -0,0 +1,61 @@
+Installing  Apache Stratos Controller (SC) 1.0.1
+===============================================
+
+Standalone Mode
+===============
+1. The directory containing this INSTALL file will be the root and it will be
+   treated as Carbon home directory and let it be CARBON_HOME.
+
+2. All the shell scripts and .bat files are available in CARBON_HOME/bin directory.
+
+3. To start SC one can use either stratos.sh or daemon.sh in all *nix
+   system & stratos.bat file on Windows operating systems.
+
+4. Either of the following commands can be used to start Stratos-Manager
+     i)  ./stratos.sh {console|start|stop|restart|status|dump|version}
+    ii)  stratos.bat {start|stop|version}
+
+            Usage: stratos.sh [command] [system-properties]
+
+            command:
+                --debug <port> 	Start the server in remote debugging mode.
+                        port: The remote debugging port.
+                --start		Start Carbon as a Unix daemon in the background
+                --stop		Stop the Carbon Unix daemon
+                --restart	Restart the Carbon Unix daemon
+                --cleanRegistry	Clean registry space. [CAUTION] All Registry data will be lost.
+                --version	What version of the product are you running?
+
+            system-properties:
+                -DhttpPort=<httpPort>		Overrides the HTTP port defined in the catalina-server.xml file
+                -DhttpsPort=<httpsPort>		Overrides the HTTPS port defined in the catalina-server.xml file
+                -DosgiConsole=[port]		Start Carbon with Equinox OSGi console.
+                                            If the optional 'port' parameter is provided, a telnet port will be opened
+                -DosgiDebugOptions=[options-file]
+                                            Start Carbon with OSGi debugging enabled.
+                                            If the optional 'options-file is provided, the OSGi debug options will be loaded from it.
+                -Dsetup				        Clean the Registry & other configuration, recreate DB, re-populate the configuration, and start Carbon
+                -DserverRoles=<roles>		A comma separated list of roles. Used in deploying cApps
+                -Dcarbon.use.registry.repo	Use registry based repository.
+                -DdisableHttpLog		    Disable HTTP access logging
+                -DapplyPatches			    Use this system property when there are patches to be applied/reverted to/from the system.
+                                            Drop the patches to $CARBON_HOME/repository/componenets/patches directory and restart the system with this property.
+                                            When you want to revert a patch, delete it from the patches directory and restart the system with this property
+                -DworkerNode=true			This is required in clustered setups with master and worker nodes, not applicable for Stratos Controller.
+
+
+
+System Requirements
+===================
+1. Minimum memory - 1 GB
+2. Processor      - Pentium 800MHz or equivalent at minimum
+3. JDK - 1.6.x (1.6.0_24 onwards recommended for production)
+4. The Management Console requires you to enable Javascript of the Web browser,
+   with MS IE 6 and 7. In addition to JavaScript, ActiveX should also be enabled
+   with IE. This can be achieved by setting your security level to
+   medium or lower.
+   NOTE:
+     On Windows Server 2003, it is not allowed to go below the medium security
+     level in Internet Explorer 6.x and the default medium security setting with
+     IE does not allow sufficient level of JS or ActiveX enablement for the
+     management console to run.


[26/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/esb.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/esb.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/esb.html
new file mode 100755
index 0000000..7576114
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/esb.html
@@ -0,0 +1,70 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">Proxy Service</div>
+    <div class="story-content"> Proxy services facilitate location transparency and provides the means for the
+        integration between various other services, on different formats
+    </div>
+    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(0)">Go
+        to Web Applications...</a><a href="javascript:generateEsbFeatureUrl(1)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col2">
+    <div class="story-title">Sequence</div>
+    <div class="story-content">Sequence is a collection of mediators attached to perform a given mediation flow in an
+        integration.
+    </div>
+    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(2)">Go
+        to Web Applications...</a><a href="javascript:generateEsbFeatureUrl(3)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">Endpoint</div>
+    <div class="story-content">Endpoints represent the third party services or other endpoints the ESB is talking to,
+        this configuration allows you to record a set of meta data about the external endpoint
+        apart from it's EPR
+    </div>
+    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(4)">Go
+        to Web Applications...</a><a href="javascript:generateEsbFeatureUrl(5)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col2">
+    <div class="story-title">Scheduled Tasks</div>
+    <div class="story-content">Job scheduling facility in the ESB with quartz scheduler, helping several tasks to be
+        initiated and scheduled by the ESB.
+    </div>
+    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(6)">Go
+        to Web Applications...</a> <a href="javascript:generateEsbFeatureUrl(7)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Store &amp; Forward</div>
+    <div class="story-content"> Message Stores and Processors can be used to persist messages to queues and then process
+        preserving SLAs
+    </div>
+    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(8)">Go
+        to Web Applications...</a><a href="javascript:generateEsbFeatureUrl(9)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col2">
+    <div class="story-title">Priority Execution</div>
+    <div class="story-content">Ability to categorize mediation flows with a priority allowing certain messages or
+        mediation paths to get a high priority with compared to other messages or paths.
+    </div>
+    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(10)">Go
+        to Web Applications...</a><a href="javascript:generateEsbFeatureUrl(11)">Read
+        more (docs)...</a></div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/greg.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/greg.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/greg.html
new file mode 100755
index 0000000..410751c
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/greg.html
@@ -0,0 +1,94 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">Service</div>
+    <div class="story-content">Service is the basic entity of your SOA platform. You can manage service metadata and
+        the service lifecycle as well as maintain multiple versions of a given service, and much
+        more.
+    </div>
+    <div class="story-links"><a href="javascript:generateGregFeatureUrl(0)">Go
+        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(1)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col2">
+    <div class="story-title">WSDL</div>
+    <div class="story-content"> WSDL defines the interface of a web service. You can store, validate and manage WSDLs
+        with ease, keeping track of dependencies and associations such as services, schema and
+        policies.
+    </div>
+    <div class="story-links"><a href="javascript:generateGregFeatureUrl(2)">Go
+        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(3)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col3">
+    <div class="story-title">Schema</div>
+    <div class="story-content">XML Schema defines data types in a WSDL. As in the case of WSDLs, you can keep
+        associations of schema which helps in the impact analysis process, when maintaining the
+        data models associated with your SOA.
+    </div>
+    <div class="story-links"><a href="javascript:generateGregFeatureUrl(4)">Go
+        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(5)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col3">
+    <div class="story-title">Policy</div>
+    <div class="story-content">Policies help standardize SOA behaviour. You can keep track of the policies bound to a
+        service. It also supports policy enforcement to control how SOA behaves as desired by
+        both IT and business personnel.
+    </div>
+    <div class="story-links"><a href="javascript:generateGregFeatureUrl(6)">Go
+        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(7)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Search</div>
+    <div class="story-content">The repository can store any arbitrary type of resource. You can search for resources by
+        name, author, time created or updated. You also can search for resources by media type.
+    </div>
+    <div class="story-links"><a href="javascript:generateGregFeatureUrl(8)">Go
+        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(9)">Read
+        more (docs)...</a></div>
+
+</div>
+<div class="story col2">
+    <div class="story-title">Activities</div>
+    <div class="story-content">An activity log provide an invaluable insight to what operations took place on the
+        repository. You can browse activities while filtering them by date range, user name, or
+        activity type.
+    </div>
+    <div class="story-links"><a href="javascript:generateGregFeatureUrl(10)">Go
+        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(11)">Read
+        more (docs)...</a></div>
+
+</div>
+<div class="story col3">
+    <div class="story-title">Notifications</div>
+    <div class="story-content">The registry generates events when changes are made to a particular resource or
+        collection. You can subscribe to these events via e-mail, or forward them to a web
+        service via SOAP or REST.
+    </div>
+    <div class="story-links"><a href="javascript:generateGregFeatureUrl(12)">Go
+        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(13)">Read
+        more (docs)...</a></div>
+
+
+</div>
+<div class="story col2">
+    <div class="story-title">Extensions</div>
+    <div class="story-content"> While we address most governance and registry related scenarios out-of-the-box, you also
+        can upload your own extensions that is capable of extending the basic functionality of
+        the product
+    </div>
+    <div class="story-links"><a href="javascript:generateGregFeatureUrl(14)">Go
+        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(15)">Read
+        more (docs)...</a></div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/gs.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/gs.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/gs.html
new file mode 100755
index 0000000..ece3587
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/gs.html
@@ -0,0 +1,90 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">Enterprise Information Portal</div>
+    <div class="story-content">Users can organize gadgets in a familiar portal interface. Sets of gadgets can be
+        organized using tabs.
+    </div>
+    <div class="story-links"><a href="javascript:generateGsFeatureUrl(0)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(1)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+<div class="story col2">
+    <div class="story-title">Easy User Options</div>
+    <div class="story-content"> Add gadgets from the enterprise repository or from an external URL. Drag-and-drop
+        gadgets into new arrangements.
+    </div>
+    <div class="story-links"><a href="javascript:generateGsFeatureUrl(2)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(3)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col2">
+    <div class="story-title">Author Gadgets</div>
+    <div class="story-content">Supports XML, HTML, and Javascript and use 3rd party Javascript libraries. Include Flash
+        or other embeddable formats.
+    </div>
+    <div class="story-links"><a href="javascript:generateGsFeatureUrl(4)">Go
+        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(5)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Client-side Gadgets</div>
+    <div class="story-content">Any gadget adhering to the Google Gadget specification can be added to the portal.</div>
+    <div class="story-links"><a href="javascript:generateGsFeatureUrl(6)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(7)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+<div class="story col2">
+
+    <div class="story-title">Enterprise Gadget Repository</div>
+    <div class="story-content">Portal users can browse an enterprise gadget repository maintained by IT, add gadgets to
+        their individual portals, and rate and comment on individual gadgets.
+    </div>
+    <div class="story-links"><a href="javascript:generateGsFeatureUrl(8)">Go
+        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(9)">Read
+        more (docs)...</a></div>
+
+</div>
+<div class="story col1">
+    <div class="story-title">Anonymous Mode</div>
+    <div class="story-content"> Users can try out WSO2 Gadget Server and experience most of the portal’s functionality,
+        excluding the gadget repository, even before registration and sign-in.
+    </div>
+    <div class="story-links"><a href="javascript:generateGsFeatureUrl(10)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(11)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+<div class="story col2">
+    <div class="story-title">Secure Sign-in Options</div>
+    <div class="story-content"> User registration and sign-up can be handled using OpenID and InfoCards in addition to
+        the traditional user name and password-based scheme.
+    </div>
+    <div class="story-links"><a href="javascript:generateGsFeatureUrl(12)">Go
+        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(13)">Read
+        more (docs)...</a></div>
+
+</div>
+<div class="story col1">
+    <div class="story-title">Management Console</div>
+    <div class="story-content"> The intuitive browser-based interface of the console helps IT professionals configure
+        and manage WSO2 Gadget Server, its users, and the enterprise gadget repository.
+    </div>
+    <div class="story-links"><a href="javascript:generateGsFeatureUrl(14)"
+            >Go
+        to Web Applications...</a> <a href="javascript:generateGsFeatureUrl(15)">Read
+        more (docs)...</a></div>
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/black.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/black.png b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/black.png
new file mode 100755
index 0000000..7100b87
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/black.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/configure_db.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/configure_db.png b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/configure_db.png
new file mode 100755
index 0000000..11364b6
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/configure_db.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/tenant_isolation.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/tenant_isolation.png b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/tenant_isolation.png
new file mode 100755
index 0000000..359e316
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/tenant_isolation.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/usage_metering_and_throttling.jpg
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/usage_metering_and_throttling.jpg b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/usage_metering_and_throttling.jpg
new file mode 100755
index 0000000..aae6590
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/images/usage_metering_and_throttling.jpg differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/is.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/is.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/is.html
new file mode 100755
index 0000000..bf69e92
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/is.html
@@ -0,0 +1,98 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">User Profile</div>
+    <div class="story-content">Update your user profile or add multiple user profiles.The value from your profile will
+        be used to populate your Information card and OpenID profiles.
+    </div>
+    <div class="story-links"><a href="javascript:generateIsFeatureUrl(0)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(1)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col2">
+    <div class="story-title">OpenID</div>
+    <div class="story-content">This OpenID can be used with any OpenID relying party which trusts your domain for
+        login.
+    </div>
+    <div class="story-links"><a href="javascript:generateIsFeatureUrl(2)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(3)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col3">
+    <div class="story-title">Information Card</div>
+    <div class="story-content">This card can be used with any identity selector that supports Microsoft CardSpace
+        specifications and will allow you to login to web applications that support information
+        card logins.
+    </div>
+    <div class="story-links"><a href="javascript:generateIsFeatureUrl(4)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(5)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col2">
+    <div class="story-title">SAML 2.0 Single Sign-On</div>
+    <div class="story-content">Use WSO2 Identity Server for Single Sign-on configuration. Service Providers can be
+        added and removed.
+    </div>
+    <div class="story-links"><a href="javascript:generateIsFeatureUrl(6)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(7)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col3">
+    <div class="story-title">Multifactor Authentication</div>
+    <div class="story-content">Use WSO2 Identity Server to Enable XMPP based multi-factor authentication.</div>
+    <div class="story-links"><a href="javascript:generateIsFeatureUrl(8)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(9)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">Users and Roles</div>
+    <div class="story-content">WSO2 Identity Server enables you to manage users and roles in your system.</div>
+    <div class="story-links"><a href="javascript:generateIsFeatureUrl(10)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(11)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col2">
+    <div class="story-title">Relying Parties</div>
+    <div class="story-content">Manage your Relying Parties with WSO2 Identity Server.</div>
+    <div class="story-links"><a href="javascript:generateIsFeatureUrl(12)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(13)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col3">
+    <div class="story-title">Key Stores</div>
+    <div class="story-content"> Manage your Key Stores with WSO2 Identity Server</div>
+    <div class="story-links"><a href="javascript:generateIsFeatureUrl(14)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(15)"
+            >Read
+        more (docs)...</a></div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/manager.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/manager.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/manager.html
new file mode 100755
index 0000000..53c941b
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/manager.html
@@ -0,0 +1,68 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">Billing</div>
+    <div class="story-content">Billing is the process where the cloud computing service subscribers are charged
+        based on the metered data. Billing usually happens on a monthly basis. Billing uses
+        pricing rates defined against usage plans and compute the invoice against the usage
+        data.
+    </div>
+    <div class="story-links"><a href="javascript:generateManagerFeatureUrl(0)" >Go to
+        Billing...</a><a href="javascript:generateManagerFeatureUrl(1)"
+            >Read more (docs)...</a></div>
+
+</div>
+
+<div class="story col2">
+    <div class="story-title">Metering</div>
+    <div class="story-content">Metering measures levels of resource utilization, such as network bandwidth usage and
+        data storage volume, consumed by the cloud services subscribers, aka tenants.
+        Resource utilization's (bandwidth and storage usage) are measured on the fly and the
+        measured data is stored for summarizing and analyzing.
+    </div>
+    <div class="story-links"><a href="javascript:generateManagerFeatureUrl(2)" 
+
+            >Go to Metering...</a><a href="javascript:generateManagerFeatureUrl(3)"
+            >Read more (docs)...</a></div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Account Management</div>
+    <div class="story-content">Account management allows a tenant to update and validate contact information,
+        update the usage plan, validate the account and even de-activate the account .
+    </div>
+    <div class="story-links">
+        <a href="javascript:generateManagerFeatureUrl(4)" 
+                >Manage account...</a> <a href="javascript:generateManagerFeatureUrl(5)" 
+            >Read more (docs)...</a>
+    </div>
+
+</div>
+
+<div class="story col2">
+    <div class="story-title">Users and Roles</div>
+    <div class="story-content">You can add users and define your own roles for a tenant. The permission model is
+        role based. So a tenant admin can define what actions a role can perform by
+        configuring permissions for that role.
+    </div>
+    <div class="story-links"><a href="javascript:generateManagerFeatureUrl(6)"
+            >Manage
+        users/roles...</a><a href="javascript:generateManagerFeatureUrl(7)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Usage Metering and Throttling</div>
+    <div class="story-content"><a
+            href="http://wso2.org/library/articles/2011/09/usage-metering-throttling-cloud-computing"><img
+            src="../../../../features-dashboard/dashboards/images/usage_metering_and_throttling.jpg" alt=""/></a></div>
+</div>
+
+<div class="story col2">
+    <div class="story-title">How WSO2 StratosLive meets Security Challenges in Cloud</div>
+    <div class="story-content"><a
+            href=http://wso2.org/library/articles/2011/08/wso2-stratoslive-meets-security-challenges-cloud"><img
+            src="../../../../features-dashboard/dashboards/images/tenant_isolation.png" alt=""/></a></div>
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/mb.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/mb.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/mb.html
new file mode 100755
index 0000000..7507f4d
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/mb.html
@@ -0,0 +1,81 @@
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
+<div class="story col1">
+    <div class="story-title">Publish/Subscribe to Topics</div>
+    <div class="story-content"> WS-Eventing to publish/subscribe to topics using web service standards.</div>
+    <div class="story-links"><a href="javascript:generateMbFeatureUrl(0)">Go
+        to Web Applications...</a><a href="javascript:generateMbFeatureUrl(1)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">AMQP</div>
+    <div class="story-content">JMS support thorough AMQP to publish/subscribe to topics and Queues.</div>
+    <div class="story-links"><a href="javascript:generateMbFeatureUrl(2)">Go
+        to Web Applications...</a><a href="javascript:generateMbFeatureUrl(3)">Read
+        more (docs)...</a></div>
+    <h2>AMQP</h2>
+
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">Topic Authorization</div>
+    <div class="story-content">Role based authorization to topics.</div>
+    <div class="story-links"><a href="javascript:generateMbFeatureUrl(4)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateMbFeatureUrl(5)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">Manage topics and queues permissions</div>
+    <div class="story-content">Administrative console support to manage topics and queues permissions.</div>
+    <div class="story-links"><a href="javascript:generateMbFeatureUrl(6)">Go
+        to Web Applications...</a><a href=javascript:generateMbFeatureUrl(7)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">SQS support</div>
+    <div class="story-content">SQS support to store retrieve messages using a web service API.</div>
+    <div class="story-links"><a href="javascript:generateMbFeatureUrl(8)">Go
+        to Web Applications...</a><a href=javascript:generateMbFeatureUrl(9)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">User based authorization for queues</div>
+    <div class="story-content"> User based authorization for queues.</div>
+    <div class="story-links"><a href="javascript:generateMbFeatureUrl(10)">Go
+        to Web Applications...</a><a href=javascript:generateMbFeatureUrl(11)">Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">Manage message boxes</div>
+    <div class="story-content">Administrative console support to manage message boxes and store/retrieve messages.</div>
+    <div class="story-links"><a href="javascript:generateMbFeatureUrl(12)">Go
+        to Web Applications...</a><a href=javascript:generateMbFeatureUrl(13)">Read
+        more (docs)...</a></div>
+
+</div>
+
+<div class="story col1">
+    <div class="story-title">Message box as event sink</div>
+    <div class="story-content"> Ability to use a message box as the event sink for a subscription.</div>
+    <div class="story-links"><a href="javascript:generateMbFeatureUrl(14)">Go
+        to Web Applications...</a> <a href=javascript:generateMbFeatureUrl(15)">Read
+        more (docs)...</a></div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/ms.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/ms.html b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/ms.html
new file mode 100755
index 0000000..7b1ec4f
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/ms.html
@@ -0,0 +1,81 @@
+
+<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/><div class="story col1">
+    <div class="story-title">Scrape the Web</div>
+    <div class="story-content">Scrape legacy web pages, expose as SOAP/REST services quickly using Scraping
+        Assistant.
+    </div>
+    <div class="story-links"><a href="javascript:generateMsFeatureUrl(0)"
+            >Go
+        to Services...</a><a href="javascript:generateMsFeatureUrl(1)"
+            >Read
+        more (docs)...</a></div>
+</div>
+
+<div class="story col2">
+    <div class="story-title">Compose and Expose</div>
+    <div class="story-content"> Compose Enterprise level mashups quickly using Javascript and expose as SOAP/REST
+        Web Services with ease.
+    </div>
+    <div class="story-links"><a href="javascript:generateMsFeatureUrl(2)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateMsFeatureUrl(3)"
+            >Read
+        more (docs)...</a></div>
+
+
+</div>
+<div class="story col3">
+    <div class="story-title">Schedule Tasks</div>
+    <div class="story-content">Schedule recurring tasks, get updated via Emails and IMs using Email/IM Hostobjects.
+    </div>
+    <div class="story-links"><a href="javascript:generateMsFeatureUrl(4)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateMsFeatureUrl(5)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+
+
+<div class="story col1">
+    <div class="story-title">Javascript Stubs</div>
+    <div class="story-content"> Create Javascript stubs from a WSDL and invoke SOAP/REST services easily from a mashup
+        or
+        even from the browser.
+    </div>
+    <div class="story-links">
+        <a href="javascript:generateMsFeatureUrl(6)"
+                >Go
+            to Web Applications...</a><a href="javascript:generateMsFeatureUrl(7)"
+            >Read
+        more (docs)...</a>
+    </div>
+
+</div>
+
+<div class="story col2">
+    <div class="story-title">Modules</div>
+    <div class="story-content">The WSO2 SOA platform has the capabilities of Axis2 to add modules to extend its
+        capabilities. The global modules will affect all the services deployed within the
+        server.
+    </div>
+    <div class="story-links"><a href="javascript:generateMsFeatureUrl(8)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateMsFeatureUrl(9)"
+            >Read
+        more (docs)...</a></div>
+
+</div>
+<div class="story col3">
+    <div class="story-title">Message Tracing</div>
+    <div class="story-content">Trace the request and responses to your service. Message Tracing is a vital debugging
+        tool
+        when you have clients from heterogeneous platforms.
+    </div>
+    <div class="story-links"><a href="javascript:generateMsFeatureUrl(10)"
+            >Go
+        to Web Applications...</a><a href="javascript:generateMsFeatureUrl(11)"
+            >Read
+        more (docs)...</a></div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/server.jsp
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/server.jsp b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/server.jsp
new file mode 100755
index 0000000..c400280
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/dashboards/server.jsp
@@ -0,0 +1,152 @@
+<%-- 
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~ 
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~ 
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  --%>
+<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Data"%>
+<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Service"%>
+<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Link"%>
+<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Story"%>
+<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.utils.Utils"%>
+<%@ page import="java.util.HashMap"%>
+<%@ page import="java.util.Iterator"%>
+<%@ page import="java.util.Map"%>
+
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+	pageEncoding="UTF-8"%>
+<jsp:useBean id="serviceData" class="org.wso2.stratos.manager.feature.dashbord.ui.beans.Data"
+             scope="session"></jsp:useBean>
+<link type="text/css"
+	href="../../../../features-dashboard/dashboards/css/features-dashboard.css"
+	rel="stylesheet" />
+	<%
+		
+	%>
+<script type="text/javascript">
+	function goToFunction(url,serverUrl) {
+		var serverUrl = serverUrl+linkSuffix+url;
+		window.open(serverUrl);
+	}
+</script>
+<%
+	String serviceName = request.getParameter("name");
+	Service service = serviceData.getService(serviceName);
+	String name1 = service.getName();
+	String link = service.getLink();
+	Map<String, Story> stories = service.getStories();
+	int index = 1;
+	for (Map.Entry<String, Story> entry : stories.entrySet()) {
+		Story tempStory = entry.getValue();
+		String storyName = tempStory.getTitle();
+		String storyContent = tempStory.getContent();
+		Map<String, Link> links = tempStory.getLinks();
+		String divClassName;
+		if (index%2 == 0) {
+			divClassName = "story col" + 1;
+		} else {
+			divClassName = "story col" + 2;
+		}
+		index++;
+	
+%>
+<div class="<%=divClassName%>">
+	<div class="story-title"><%=storyName%></div>
+	<div class="story-content"><%=storyContent%></div>
+	<div class="story-links">
+		<%
+			for (Map.Entry<String, Link> linksEntry : links.entrySet()) {
+					Link tempLink = linksEntry.getValue();
+					String linkUrl = tempLink.getUrl();
+					String value = tempLink.getDescription();
+		%>
+		<a href="javascript:goToFunction('<%=linkUrl%>','<%=link%>')" class="blocklink"><%=value%></a>
+		<%
+			}
+		%>
+	</div>
+</div>
+<%
+	}
+%>
+
+<!-- 		<div class="story col1"> -->
+
+<!-- 			<div class="story-title">Service Hosting</div> -->
+
+
+<!-- 			<div class="story-content">Different types of Web Services such -->
+<!-- 				as Axis2 Services, JAXWS Services, Jar Services or Spring Services -->
+<!-- 				can be deployed in Application Server. All configurations such as -->
+<!-- 				QoS can be easily configured here.</div> -->
+<!-- 			<div class="story-links"> -->
+<!-- 				<a href="javascript:generateAsFeatureUrl(0)" class="blocklink">Got -->
+<!-- 					to services...</a> <a href="javascript:generateAsFeatureUrl(1)">Read -->
+<!-- 					more (docs)...</a> -->
+<!-- 			</div> -->
+<!-- 		</div> -->
+
+<!-- 		<div class="story col2"> -->
+<!-- 			<div class="story-title">Web Applications</div> -->
+
+
+<!-- 			<div class="story-content">Web Application hosting features in -->
+<!-- 				AppServer supports deployment of Tomcat compliant Webapps. Deployed -->
+<!-- 				Webapps can be easily managed using the Webapp management facilities -->
+<!-- 				available in the management console.</div> -->
+<!-- 			<div class="story-links"> -->
+<!-- 				<a href="javascript:generateAsFeatureUrl(2)" target="_blank">Go -->
+<!-- 					to Web Applications...</a> <a href="javascript:generateAsFeatureUrl(3)" -->
+<!-- 					target="_blank">Read more (docs)...</a> -->
+<!-- 			</div> -->
+<!-- 		</div> -->
+
+
+<!-- 		<div class="story col1"> -->
+<!-- 			<div class="story-title">Message Tracing</div> -->
+<!-- 			<div class="story-content">Trace the request and responses to -->
+<!-- 				your service. Message Tracing is a vital debugging tool when you -->
+<!-- 				have clients from heterogeneous platforms.</div> -->
+<!-- 			<div class="story-links"> -->
+<!-- 				<a href="javascript:generateAsFeatureUrl(4)">Go to Message -->
+<!-- 					Tracing...</a> <a href="javascript:generateAsFeatureUrl(5)">Read -->
+<!-- 					more (docs)...</a> -->
+<!-- 			</div> -->
+
+<!-- 		</div> -->
+
+<!-- 		<div class="story col2"> -->
+<!-- 			<div class="story-title">WSDL2Java Tool</div> -->
+<!-- 			<div class="story-content">Use WSDL2Java tool in Web -->
+<!-- 				Application Server to convert Web Service WSDL to a set of Java -->
+<!-- 				objects.</div> -->
+<!-- 			<div class="story-links"> -->
+<!-- 				<a href="javascript:generateAsFeatureUrl(6)">Go to WSDL2Java -->
+<!-- 					Tool...</a> <a href="javascript:generateAsFeatureUrl(7)">Read more -->
+<!-- 					(docs)...</a> -->
+<!-- 			</div> -->
+<!-- 		</div> -->
+
+<!-- 		<div class="story col1"> -->
+<!-- 			<div class="story-title">Java2WSDL Tool</div> -->
+
+<!-- 			<div class="story-content">Use Java2WSDL tool in Web -->
+<!-- 				Application Server make it easy to develop a new web service.</div> -->
+<!-- 			<div class="story-links"> -->
+<!-- 				<a href="javascript:generateAsFeatureUrl(8)">Go to Java2WSDL -->
+<!-- 					Tool...</a> <a href="javascript:generateAsFeatureUrl(9)">Read more -->
+<!-- 					(docs)...</a> -->
+<!-- 			</div> -->
+<!-- 		</div> -->

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/css/features-dashboard-new.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/css/features-dashboard-new.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/css/features-dashboard-new.css
new file mode 100755
index 0000000..c6a95bb
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/css/features-dashboard-new.css
@@ -0,0 +1,155 @@
+body{
+    background-color:#F2F2F2;
+}
+.db_menu {
+    width: 240px;
+    padding-top:20px;
+    line-height:20px;
+}
+
+.db_menu ul{
+    margin:0;
+    padding:0;
+    background: url("../images/back.jpg") repeat scroll left top transparent;
+}
+.db_menu li{
+    list-style-type:none;
+    margin-bottom:2px;
+
+    border-bottom: 1px solid #4BA5C6;
+    border-left: 6px solid #000;
+    padding: 10px;
+    width: auto;
+}
+.db_menu li a{
+    color: #48707E;
+    cursor:pointer;
+    width:100%;
+    font-size:13px;
+    white-space: nowrap;
+overflow: hidden;
+text-overflow: ellipsis;
+}
+.db_menu li.selected a{
+    font-weight:bold;
+}
+.db_table{
+    width:100%;
+    opacity:1;
+}
+.db_table td{
+    vertical-align:top;
+}
+
+.db_content{
+    padding:0px 10px 10px 0px;
+}
+#db_content_title{
+    color:#fff;
+    font-size:20px;
+    text-indent:10px;
+    height:40px;
+    padding:15px 5px;
+}
+.main-title{
+    color:#131313;
+    font-size:28px;
+    margin:10px;
+}
+/*Blue theme styles*/
+.page-picture{
+    padding:10px;
+}
+
+div.page-popup{
+    /*Rounded corners */
+    -moz-border-radius: 10px;
+    border-radius: 10px;
+
+
+}
+.page-popup  div.popup-circle{
+    height:100%;
+}
+#popup-close{
+    display:none !important;
+}
+table#main-table td#middle-content {
+    background: url("../images/workAreaBack.png") repeat-x scroll left top transparent;
+}
+div#middle {
+    background: none repeat scroll 0 0 transparent;
+    margin-top:-24px;
+}
+
+div#middle h2 {
+    font-size: 22px;
+}
+div#middle div#workArea {
+    background-color: transparent;
+}
+
+
+#middle .page-background {
+    background-image: none;
+}
+#middle .page-picture, #middle div.page-popup {
+    background-image: none;
+    border: medium none;
+}
+div#middle div#workArea, #middle #dashboard, #middle .page-background, #middle .page-picture {
+    padding: 0;
+}
+div#middle .main-title {
+    color: #727272;
+    font-size: 22px;
+}
+.goto-link1-wrapper{
+    float:right;
+    margin-bottom:10px;
+}
+
+.db_menu li a.goto-link1{
+    background:transparent url("../images/arrow-blue.png") no-repeat left top;
+    width:23px;
+    height:23px;
+    display:block;
+}
+.goto-link2{
+    background:transparent url("../images/arrow-white.png") no-repeat left top;
+    width:23px;
+    height:23px;
+    display:block;
+    float:left;
+}
+.goto-link2-prev{
+    float:left;
+    margin:5px 10px 0 0;
+}
+.service-menu-left-wrapper{
+    float:left;
+    width:185px;
+
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+}
+
+.green-note {
+    white-space:nowrap;
+    height:15px;
+}
+.db_menu li.manager-leftBar{ border-left-color:#0499cc;}
+.db_menu li.esb-leftBar{ border-left-color:#552988;}
+.db_menu li.as-leftBar{ border-left-color:#0067b1;}
+.db_menu li.dss-leftBar{ border-left-color:#00447c;}
+.db_menu li.greg-leftBar{ border-left-color:#794400;}
+.db_menu li.is-leftBar{ border-left-color:#e86d1f;}
+.db_menu li.bam-leftBar{ border-left-color:#8a2529;}
+.db_menu li.bam-leftBar{ border-left-color:#8a2529;}
+.db_menu li.bps-leftBar{ border-left-color:#ee3124;}
+.db_menu li.brs-leftBar{ border-left-color:#f1645d;}
+.db_menu li.cg-leftBar{ border-left-color:#0499cc;}
+.db_menu li.cep-leftBar{ border-left-color:#a70063;}
+.db_menu li.mb-leftBar{ border-left-color:#767395;}
+.db_menu li.ss-leftBar{ border-left-color:#5a1a0d;}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/css/ie7.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/css/ie7.css b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/css/ie7.css
new file mode 100755
index 0000000..58c394e
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/css/ie7.css
@@ -0,0 +1,8 @@
+div#middle h2{
+    margin-top:15px;
+}
+
+table#main-table td#middle-content{
+    background-position:left 30px;
+    background-color:#fff;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-blue.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-blue.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-blue.png
new file mode 100755
index 0000000..040d789
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-blue.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-white.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-white.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-white.png
new file mode 100755
index 0000000..4293aec
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-white.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/back.jpg
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/back.jpg b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/back.jpg
new file mode 100755
index 0000000..dda1588
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/back.jpg differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/boxes.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/boxes.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/boxes.png
new file mode 100755
index 0000000..aaf9473
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/boxes.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/dashboard-back-repeat.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/dashboard-back-repeat.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/dashboard-back-repeat.png
new file mode 100755
index 0000000..e5058e7
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/dashboard-back-repeat.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/workAreaBack.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/workAreaBack.png b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/workAreaBack.png
new file mode 100755
index 0000000..1999420
Binary files /dev/null and b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/images/workAreaBack.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/index.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/index.html b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/index.html
new file mode 100755
index 0000000..ada6150
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/index.html
@@ -0,0 +1,173 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+    <title>Dashboard</title>
+    <link type="text/css" href="../../../../features-dashboard/tenant-dashboard/css/features-dashboard-new.css" rel="stylesheet"/>
+    <script type="text/javascript" src="../../../../features-dashboard/tenant-dashboard/js/jquery-1.7.1.min.js"></script>
+    <script type="text/javascript" src="../../../../features-dashboard/tenant-dashboard/js/jquery.masonry.min.js"></script>
+
+    <script type="text/javascript">
+        var def = 'manager'; //This is the default section to display images
+        var hideOnMouseLeave = false; //Set this to true if you want to hide the popup on mouse out from the popup
+        var nameObj = {
+            manager:'Cloud Services',
+            as:'Application Services',
+            dss:'Data Services',
+            ms:'Mashup Services',
+            is:'Identity Services',
+            greg:'Governance Services',
+            gs:'Gadget Services',
+            bam:'Business Activity Monitor',
+            bps:'Business Process Services',
+            brs:'Business Rules Services',
+            esb:'Enterprise Service Bus',
+            cep:'Complex Event Processing Services',
+            mb:'Message Broker Services',
+            csg:'Cloud Gateway'
+        };
+        $(document).ready(function() {
+            for (var name in nameObj) {
+                var newDiv = document.createElement('div');
+                newDiv.id = name + "_content";
+                newDiv.style.display = "none";
+                jQuery(newDiv).load('../../../../features-dashboard/dashboards/' + name + '.html');
+                document.getElementById('container').appendChild(newDiv);
+            }
+            //Close button event register
+            $('#popup-close').click(
+                    function(){
+                        $(this).hide();
+                        $('#db_content_title').hide();
+                        $('#container > div').hide('slow');
+                        $('#page-popup').removeClass("page-popup");
+                        $('.db_menu li').removeClass("selected");
+                        loadDefalut();
+                    }
+                    );
+
+
+            //Showing title and content for the default manager div
+                $('#db_content_title').html(nameObj[def]);
+                $('#' + def + '_info').addClass("selected");
+//                $('#page-popup').addClass("page-popup");
+            var loadDefalut = function() {
+                $('#db_content_title').show();
+                var container = $('#' + def + '_content');
+                container.show(function() {
+                    container.imagesLoaded(function() {
+                        container.masonry({
+                            itemSelector : '.story',
+                            columnWidth : 250,
+                            isAnimated: true,
+                            animationOptions: {
+                                duration: 750,
+                                easing: 'linear',
+                                queue: false
+                            }
+                        });
+                    });
+                });
+            };
+            loadDefalut();
+
+            //Handle mouse over event
+            $('.db_menu li a').mouseover(
+                    function() {
+                        //Handle the menu styles
+                        $('.db_menu li').removeClass("selected");
+
+                        if(hideOnMouseLeave){
+                            $('#page-popup').mouseleave(
+                                    function(){
+                                        $('#page-popup').removeClass("page-popup");
+                                        $('#container > div').hide('slow');
+                                        $('#db_content_title').hide();
+                                        $('#popup-close').hide();
+                                    }
+                                    );
+                        }
+
+
+                        //Get the relevent catagory from the id of the link that has been mouse overred.
+                        var cat = this.id.split('_')[0];
+
+                        //hide all content and show and init the  mansonry for the relevent one
+                        $('#container > div').hide();
+                        $('#db_content_title').show();
+                        $('#db_content_title').html(nameObj[cat]);
+                        if(cat == def){
+                            $('#page-popup').removeClass("page-popup");
+                            $('#popup-close').hide();
+                        }else{
+
+                            //Show the gray box and register an event handler to remove it when the mouse is ouside
+                            $('#page-popup').addClass("page-popup");
+                            $('#popup-close').show();
+                            $(this.parentNode).addClass("selected");
+
+                        }
+                        var container = $('#' + cat + "_content");
+                        $('#' + cat + '_content').show(
+                                function() {
+                                    container.imagesLoaded(function() {
+                                        container.masonry({
+                                            itemSelector : '.story',
+                                            columnWidth : 250,
+                                            isAnimated: true,
+                                            animationOptions: {
+                                                duration: 750,
+                                                easing: 'linear',
+                                                queue: false
+                                            }
+                                        });
+                                    });
+                                }
+                                );
+                    }
+                    );
+        });
+
+
+    </script>
+</head>
+<body>
+<div class="page-background">
+<div class="page-picture">
+<div id="page-popup">
+    <a id="popup-close" style="display:none;">close</a>
+    <table class="db_table">
+        <tr>
+            <div class="main-title">Services</div>
+            <td class="db_menu">
+                <ul>
+                    <li><a id="manager_info">Cloud Services</a></li>
+                    <li><a id="as_info" onclick="gotoAppServer();">Application Services </a></li>
+                    <li><a id="dss_info" onclick="gotoDss();">Data Services </a></li>
+                    <li><a id="ms_info" onclick="gotoMs();">Mashup Services </a></li>
+                    <li><a id="is_info" onclick="gotoIs();">Identity Services </a></li>
+                    <li><a id="greg_info" onclick="gotoGreg();">Governance Services </a></li>
+                    <li><a id="gs_info" onclick="gotoGs();">Gadget Services </a></li>
+                    <li><a id="bam_info" onclick="gotoBam();">Business Activity Monitor </a></li>
+                    <li><a id="bps_info" onclick="gotoBps();">Business Process Services </a></li>
+                    <li><a id="brs_info" onclick="gotoBrs();">Business Rules Services </a></li>
+                    <li><a id="esb_info" onclick="gotoEsb();">Enterprise Service Bus </a></li>
+                    <li><a id="cep_info" onclick="gotoCep();">Complex Event Processing Services </a></li>
+                    <li><a id="mb_info" onclick="gotoMb();">Message Broker </a></li>
+                    <li><a id="csg_info" onclick="gotoCsg();">Cloud Gateway </a></li>
+                </ul>
+
+            </td>
+            <td class="db_content">
+                <div class="popup-circle">
+                    <div id="db_content_title"></div>
+                    <div id="container"></div>
+                </div>
+            </td>
+        </tr>
+    </table>
+</div>
+</div>
+</div>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/index.jsp
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/index.jsp b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/index.jsp
new file mode 100755
index 0000000..7d70b66
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/index.jsp
@@ -0,0 +1,205 @@
+<%-- 
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~ 
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~ 
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  --%>
+<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Data"%>
+<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Service"%>
+<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Link"%>
+<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Story"%>
+<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.utils.Utils"%>
+
+<%@ page import="java.util.HashMap"%>
+<%@ page import="java.util.Iterator"%>
+<%@ page import="java.util.Map"%>
+
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
+<jsp:useBean id="serviceData" class="org.wso2.stratos.manager.feature.dashbord.ui.beans.Data"
+             scope="session"></jsp:useBean>
+<%
+	serviceData = Utils.pupulateDashboardFeatures();
+	request.getSession().setAttribute("serviceData", serviceData);
+
+	// Data data = Utils.pupulateDashboardFeatures();
+	Map<String, Service> allServices = serviceData.getServices();
+	String serviceNames[] = serviceData.getServiceNames();
+	String keys[] = serviceData.getKeys();
+%>
+<script type="text/javascript">
+ function openServer(url) {
+	 window.open(url,'_newtab')  ;
+ }
+</script>
+
+
+<!DOCTYPE HTML>
+<html>
+<head>
+    <title>Dashboard</title>
+    <link type="text/css" href="../../../../features-dashboard/tenant-dashboard/css/features-dashboard-new.css" rel="stylesheet"/>
+    <!--[if IE 7]>
+	    <link rel="stylesheet" type="text/css" href="../../../../features-dashboard/tenant-dashboard/css/ie7.css">
+    <![endif]-->
+    <script type="text/javascript" src="../../../../features-dashboard/tenant-dashboard/js/jquery-1.7.1.min.js"></script>
+    <script type="text/javascript" src="../../../../features-dashboard/tenant-dashboard/js/jquery.masonry.min.js"></script>
+
+    <script type="text/javascript">
+        var def = 'manager'; //This is the default section to display images
+        var hideOnMouseLeave = false; //Set this to true if you want to hide the popup on mouse out from the popup
+
+        var nameObj = {
+        		<%for (int i = 0; i < serviceNames.length; i++) {
+				String name = serviceNames[i];
+				String key = keys[i];
+				if (i == serviceNames.length - 1) {%><%=key%>:'<%=name%>'
+				<%} else {%><%=key%>:'<%=name%>',
+				<%}%>
+        		<%}%>
+        };
+
+
+
+        $(document).ready(function() {
+            for (var name in nameObj) {
+                $.ajax({
+                    url:'../../../../features-dashboard/dashboards/server.jsp?name='+name,
+                    async:false,
+                    success:function(data){
+                        $('#container').append($('<div id="'+name + '_content"'+'>'+data+'</div>').hide());
+                    }
+                });
+            }
+
+            //Showing title and content for the default manager div
+                $('#db_content_title').html(nameObj[def]);
+                $('#' + def + '_info').parent().addClass("selected");
+//                $('#page-popup').addClass("page-popup");
+            var loadDefalut = function() {
+                $('#db_content_title').show();
+                var container = $('#' + def + '_content');
+                container.show(function() {
+                    container.imagesLoaded(function() {
+                        container.masonry({
+                            itemSelector : '.story',
+                            columnWidth : 250,
+                            isAnimated: true,
+                            animationOptions: {
+                                duration: 750,
+                                easing: 'linear',
+                                queue: false
+                            }
+                        });
+                    });
+                });
+            };
+            loadDefalut();
+
+            //Handle mouse over event
+            $('.db_menu li a.service-menu-left').click(
+                    function() {
+                        //Handle the menu styles
+                        $('.db_menu li').removeClass("selected");
+
+
+                        //Get the relevent catagory from the id of the link that has been mouse overred.
+                        var cat = this.id.split('_')[0];
+
+                        var href = $('a.goto-link1',$(this).parent().parent()).attr('href');
+
+                        //hide all content and show and init the  mansonry for the relevent one
+                        $('#container > div').hide();
+                        $('#db_content_title').show();
+						
+						if(cat == "manager"){
+							$('#db_content_title').html('<div class="goto-link2-prev">'+nameObj[cat]+'</div>');
+						}else{
+							$('#db_content_title').html('<div class="goto-link2-prev">'+nameObj[cat]+'</div><a class="goto-link2" href="'+href+'" target="_blank"></a>');
+						}
+						
+					
+                        if(cat == def){
+                            $('#page-popup').removeClass("page-popup");
+							 $(this.parentNode).addClass("selected");
+                        }else{
+
+                            //Show the gray box and register an event handler to remove it when the mouse is ouside
+                            $('#page-popup').addClass("page-popup");
+                            $(this.parentNode.parentNode).addClass("selected");
+
+                        }
+
+                        var container = $('#' + cat + "_content");
+                        $('#' + cat + '_content').show();
+                        $('#' + cat + '_content div.story').die();
+                        $('#' + cat + '_content').masonry({
+                          itemSelector: '.story',
+                          columnWidth: 250,
+                            isAnimated: true,
+                                        animationOptions: {
+                                            duration: 750,
+                                            easing: 'linear',
+                                            queue: false
+                                        }
+                        });
+                    }
+                    );
+        });
+
+
+    </script>
+</head>
+<body>
+
+<div class="page-background">
+<div class="page-picture">
+<div id="page-popup">
+    <table class="db_table">
+        <tr>
+            <div class="main-title">Services</div>
+            <td class="db_menu">
+                <ul>
+                  <li class="manager-leftBar"><a class="service-menu-left" id="manager_info">Cloud Services</a></li>
+                  <%
+
+                  	for (Map.Entry<String, Service> entry : allServices.entrySet()) {
+                  		Service myservice = entry.getValue();
+                  		String name = myservice.getName();
+                  		String link = myservice.getLink();
+                  		String id = myservice.getKey()+"_info";
+                  		if (!id.equals("manager_info")) {
+                  %>
+                          <li class="<%=myservice.getKey()%>-leftBar"><div class="service-menu-left-wrapper"><a class="service-menu-left" id="<%=id%>"><%=name%></a></div><div class="goto-link1-wrapper"><a href="<%=link%>" target="_blank" class="goto-link1"></a></div><div style="clear:both"></div> </li>
+
+                    <%
+                     	                    	}}
+                     	                    %>
+                </ul>
+
+            </td>
+            <td class="db_content">
+                <div class="popup-circle">
+                    <div id="db_content_title"></div>
+                    <div id="container"></div>
+                </div>
+            </td>
+        </tr>
+    </table>
+</div>
+</div>
+</div>
+
+
+</html>


[05/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/esb.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/esb.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/esb.html
deleted file mode 100755
index 7576114..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/esb.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">Proxy Service</div>
-    <div class="story-content"> Proxy services facilitate location transparency and provides the means for the
-        integration between various other services, on different formats
-    </div>
-    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(0)">Go
-        to Web Applications...</a><a href="javascript:generateEsbFeatureUrl(1)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col2">
-    <div class="story-title">Sequence</div>
-    <div class="story-content">Sequence is a collection of mediators attached to perform a given mediation flow in an
-        integration.
-    </div>
-    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(2)">Go
-        to Web Applications...</a><a href="javascript:generateEsbFeatureUrl(3)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">Endpoint</div>
-    <div class="story-content">Endpoints represent the third party services or other endpoints the ESB is talking to,
-        this configuration allows you to record a set of meta data about the external endpoint
-        apart from it's EPR
-    </div>
-    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(4)">Go
-        to Web Applications...</a><a href="javascript:generateEsbFeatureUrl(5)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col2">
-    <div class="story-title">Scheduled Tasks</div>
-    <div class="story-content">Job scheduling facility in the ESB with quartz scheduler, helping several tasks to be
-        initiated and scheduled by the ESB.
-    </div>
-    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(6)">Go
-        to Web Applications...</a> <a href="javascript:generateEsbFeatureUrl(7)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Store &amp; Forward</div>
-    <div class="story-content"> Message Stores and Processors can be used to persist messages to queues and then process
-        preserving SLAs
-    </div>
-    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(8)">Go
-        to Web Applications...</a><a href="javascript:generateEsbFeatureUrl(9)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col2">
-    <div class="story-title">Priority Execution</div>
-    <div class="story-content">Ability to categorize mediation flows with a priority allowing certain messages or
-        mediation paths to get a high priority with compared to other messages or paths.
-    </div>
-    <div class="story-links"><a href="javascript:generateEsbFeatureUrl(10)">Go
-        to Web Applications...</a><a href="javascript:generateEsbFeatureUrl(11)">Read
-        more (docs)...</a></div>
-
-</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/greg.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/greg.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/greg.html
deleted file mode 100755
index 410751c..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/greg.html
+++ /dev/null
@@ -1,94 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">Service</div>
-    <div class="story-content">Service is the basic entity of your SOA platform. You can manage service metadata and
-        the service lifecycle as well as maintain multiple versions of a given service, and much
-        more.
-    </div>
-    <div class="story-links"><a href="javascript:generateGregFeatureUrl(0)">Go
-        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(1)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col2">
-    <div class="story-title">WSDL</div>
-    <div class="story-content"> WSDL defines the interface of a web service. You can store, validate and manage WSDLs
-        with ease, keeping track of dependencies and associations such as services, schema and
-        policies.
-    </div>
-    <div class="story-links"><a href="javascript:generateGregFeatureUrl(2)">Go
-        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(3)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col3">
-    <div class="story-title">Schema</div>
-    <div class="story-content">XML Schema defines data types in a WSDL. As in the case of WSDLs, you can keep
-        associations of schema which helps in the impact analysis process, when maintaining the
-        data models associated with your SOA.
-    </div>
-    <div class="story-links"><a href="javascript:generateGregFeatureUrl(4)">Go
-        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(5)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col3">
-    <div class="story-title">Policy</div>
-    <div class="story-content">Policies help standardize SOA behaviour. You can keep track of the policies bound to a
-        service. It also supports policy enforcement to control how SOA behaves as desired by
-        both IT and business personnel.
-    </div>
-    <div class="story-links"><a href="javascript:generateGregFeatureUrl(6)">Go
-        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(7)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Search</div>
-    <div class="story-content">The repository can store any arbitrary type of resource. You can search for resources by
-        name, author, time created or updated. You also can search for resources by media type.
-    </div>
-    <div class="story-links"><a href="javascript:generateGregFeatureUrl(8)">Go
-        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(9)">Read
-        more (docs)...</a></div>
-
-</div>
-<div class="story col2">
-    <div class="story-title">Activities</div>
-    <div class="story-content">An activity log provide an invaluable insight to what operations took place on the
-        repository. You can browse activities while filtering them by date range, user name, or
-        activity type.
-    </div>
-    <div class="story-links"><a href="javascript:generateGregFeatureUrl(10)">Go
-        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(11)">Read
-        more (docs)...</a></div>
-
-</div>
-<div class="story col3">
-    <div class="story-title">Notifications</div>
-    <div class="story-content">The registry generates events when changes are made to a particular resource or
-        collection. You can subscribe to these events via e-mail, or forward them to a web
-        service via SOAP or REST.
-    </div>
-    <div class="story-links"><a href="javascript:generateGregFeatureUrl(12)">Go
-        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(13)">Read
-        more (docs)...</a></div>
-
-
-</div>
-<div class="story col2">
-    <div class="story-title">Extensions</div>
-    <div class="story-content"> While we address most governance and registry related scenarios out-of-the-box, you also
-        can upload your own extensions that is capable of extending the basic functionality of
-        the product
-    </div>
-    <div class="story-links"><a href="javascript:generateGregFeatureUrl(14)">Go
-        to Web Applications...</a><a href="javascript:generateGregFeatureUrl(15)">Read
-        more (docs)...</a></div>
-
-</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/gs.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/gs.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/gs.html
deleted file mode 100755
index ece3587..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/gs.html
+++ /dev/null
@@ -1,90 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">Enterprise Information Portal</div>
-    <div class="story-content">Users can organize gadgets in a familiar portal interface. Sets of gadgets can be
-        organized using tabs.
-    </div>
-    <div class="story-links"><a href="javascript:generateGsFeatureUrl(0)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(1)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-<div class="story col2">
-    <div class="story-title">Easy User Options</div>
-    <div class="story-content"> Add gadgets from the enterprise repository or from an external URL. Drag-and-drop
-        gadgets into new arrangements.
-    </div>
-    <div class="story-links"><a href="javascript:generateGsFeatureUrl(2)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(3)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col2">
-    <div class="story-title">Author Gadgets</div>
-    <div class="story-content">Supports XML, HTML, and Javascript and use 3rd party Javascript libraries. Include Flash
-        or other embeddable formats.
-    </div>
-    <div class="story-links"><a href="javascript:generateGsFeatureUrl(4)">Go
-        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(5)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Client-side Gadgets</div>
-    <div class="story-content">Any gadget adhering to the Google Gadget specification can be added to the portal.</div>
-    <div class="story-links"><a href="javascript:generateGsFeatureUrl(6)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(7)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-<div class="story col2">
-
-    <div class="story-title">Enterprise Gadget Repository</div>
-    <div class="story-content">Portal users can browse an enterprise gadget repository maintained by IT, add gadgets to
-        their individual portals, and rate and comment on individual gadgets.
-    </div>
-    <div class="story-links"><a href="javascript:generateGsFeatureUrl(8)">Go
-        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(9)">Read
-        more (docs)...</a></div>
-
-</div>
-<div class="story col1">
-    <div class="story-title">Anonymous Mode</div>
-    <div class="story-content"> Users can try out WSO2 Gadget Server and experience most of the portal’s functionality,
-        excluding the gadget repository, even before registration and sign-in.
-    </div>
-    <div class="story-links"><a href="javascript:generateGsFeatureUrl(10)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(11)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-<div class="story col2">
-    <div class="story-title">Secure Sign-in Options</div>
-    <div class="story-content"> User registration and sign-up can be handled using OpenID and InfoCards in addition to
-        the traditional user name and password-based scheme.
-    </div>
-    <div class="story-links"><a href="javascript:generateGsFeatureUrl(12)">Go
-        to Web Applications...</a><a href="javascript:generateGsFeatureUrl(13)">Read
-        more (docs)...</a></div>
-
-</div>
-<div class="story col1">
-    <div class="story-title">Management Console</div>
-    <div class="story-content"> The intuitive browser-based interface of the console helps IT professionals configure
-        and manage WSO2 Gadget Server, its users, and the enterprise gadget repository.
-    </div>
-    <div class="story-links"><a href="javascript:generateGsFeatureUrl(14)"
-            >Go
-        to Web Applications...</a> <a href="javascript:generateGsFeatureUrl(15)">Read
-        more (docs)...</a></div>
-</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/black.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/black.png b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/black.png
deleted file mode 100755
index 7100b87..0000000
Binary files a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/black.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/configure_db.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/configure_db.png b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/configure_db.png
deleted file mode 100755
index 11364b6..0000000
Binary files a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/configure_db.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/tenant_isolation.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/tenant_isolation.png b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/tenant_isolation.png
deleted file mode 100755
index 359e316..0000000
Binary files a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/tenant_isolation.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/usage_metering_and_throttling.jpg
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/usage_metering_and_throttling.jpg b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/usage_metering_and_throttling.jpg
deleted file mode 100755
index aae6590..0000000
Binary files a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/images/usage_metering_and_throttling.jpg and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/is.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/is.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/is.html
deleted file mode 100755
index bf69e92..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/is.html
+++ /dev/null
@@ -1,98 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">User Profile</div>
-    <div class="story-content">Update your user profile or add multiple user profiles.The value from your profile will
-        be used to populate your Information card and OpenID profiles.
-    </div>
-    <div class="story-links"><a href="javascript:generateIsFeatureUrl(0)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(1)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col2">
-    <div class="story-title">OpenID</div>
-    <div class="story-content">This OpenID can be used with any OpenID relying party which trusts your domain for
-        login.
-    </div>
-    <div class="story-links"><a href="javascript:generateIsFeatureUrl(2)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(3)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col3">
-    <div class="story-title">Information Card</div>
-    <div class="story-content">This card can be used with any identity selector that supports Microsoft CardSpace
-        specifications and will allow you to login to web applications that support information
-        card logins.
-    </div>
-    <div class="story-links"><a href="javascript:generateIsFeatureUrl(4)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(5)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col2">
-    <div class="story-title">SAML 2.0 Single Sign-On</div>
-    <div class="story-content">Use WSO2 Identity Server for Single Sign-on configuration. Service Providers can be
-        added and removed.
-    </div>
-    <div class="story-links"><a href="javascript:generateIsFeatureUrl(6)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(7)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col3">
-    <div class="story-title">Multifactor Authentication</div>
-    <div class="story-content">Use WSO2 Identity Server to Enable XMPP based multi-factor authentication.</div>
-    <div class="story-links"><a href="javascript:generateIsFeatureUrl(8)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(9)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">Users and Roles</div>
-    <div class="story-content">WSO2 Identity Server enables you to manage users and roles in your system.</div>
-    <div class="story-links"><a href="javascript:generateIsFeatureUrl(10)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(11)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col2">
-    <div class="story-title">Relying Parties</div>
-    <div class="story-content">Manage your Relying Parties with WSO2 Identity Server.</div>
-    <div class="story-links"><a href="javascript:generateIsFeatureUrl(12)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(13)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col3">
-    <div class="story-title">Key Stores</div>
-    <div class="story-content"> Manage your Key Stores with WSO2 Identity Server</div>
-    <div class="story-links"><a href="javascript:generateIsFeatureUrl(14)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateIsFeatureUrl(15)"
-            >Read
-        more (docs)...</a></div>
-
-</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/manager.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/manager.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/manager.html
deleted file mode 100755
index 53c941b..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/manager.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">Billing</div>
-    <div class="story-content">Billing is the process where the cloud computing service subscribers are charged
-        based on the metered data. Billing usually happens on a monthly basis. Billing uses
-        pricing rates defined against usage plans and compute the invoice against the usage
-        data.
-    </div>
-    <div class="story-links"><a href="javascript:generateManagerFeatureUrl(0)" >Go to
-        Billing...</a><a href="javascript:generateManagerFeatureUrl(1)"
-            >Read more (docs)...</a></div>
-
-</div>
-
-<div class="story col2">
-    <div class="story-title">Metering</div>
-    <div class="story-content">Metering measures levels of resource utilization, such as network bandwidth usage and
-        data storage volume, consumed by the cloud services subscribers, aka tenants.
-        Resource utilization's (bandwidth and storage usage) are measured on the fly and the
-        measured data is stored for summarizing and analyzing.
-    </div>
-    <div class="story-links"><a href="javascript:generateManagerFeatureUrl(2)" 
-
-            >Go to Metering...</a><a href="javascript:generateManagerFeatureUrl(3)"
-            >Read more (docs)...</a></div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Account Management</div>
-    <div class="story-content">Account management allows a tenant to update and validate contact information,
-        update the usage plan, validate the account and even de-activate the account .
-    </div>
-    <div class="story-links">
-        <a href="javascript:generateManagerFeatureUrl(4)" 
-                >Manage account...</a> <a href="javascript:generateManagerFeatureUrl(5)" 
-            >Read more (docs)...</a>
-    </div>
-
-</div>
-
-<div class="story col2">
-    <div class="story-title">Users and Roles</div>
-    <div class="story-content">You can add users and define your own roles for a tenant. The permission model is
-        role based. So a tenant admin can define what actions a role can perform by
-        configuring permissions for that role.
-    </div>
-    <div class="story-links"><a href="javascript:generateManagerFeatureUrl(6)"
-            >Manage
-        users/roles...</a><a href="javascript:generateManagerFeatureUrl(7)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Usage Metering and Throttling</div>
-    <div class="story-content"><a
-            href="http://wso2.org/library/articles/2011/09/usage-metering-throttling-cloud-computing"><img
-            src="../../../../features-dashboard/dashboards/images/usage_metering_and_throttling.jpg" alt=""/></a></div>
-</div>
-
-<div class="story col2">
-    <div class="story-title">How WSO2 StratosLive meets Security Challenges in Cloud</div>
-    <div class="story-content"><a
-            href=http://wso2.org/library/articles/2011/08/wso2-stratoslive-meets-security-challenges-cloud"><img
-            src="../../../../features-dashboard/dashboards/images/tenant_isolation.png" alt=""/></a></div>
-</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/mb.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/mb.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/mb.html
deleted file mode 100755
index 7507f4d..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/mb.html
+++ /dev/null
@@ -1,81 +0,0 @@
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/>
-<div class="story col1">
-    <div class="story-title">Publish/Subscribe to Topics</div>
-    <div class="story-content"> WS-Eventing to publish/subscribe to topics using web service standards.</div>
-    <div class="story-links"><a href="javascript:generateMbFeatureUrl(0)">Go
-        to Web Applications...</a><a href="javascript:generateMbFeatureUrl(1)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">AMQP</div>
-    <div class="story-content">JMS support thorough AMQP to publish/subscribe to topics and Queues.</div>
-    <div class="story-links"><a href="javascript:generateMbFeatureUrl(2)">Go
-        to Web Applications...</a><a href="javascript:generateMbFeatureUrl(3)">Read
-        more (docs)...</a></div>
-    <h2>AMQP</h2>
-
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">Topic Authorization</div>
-    <div class="story-content">Role based authorization to topics.</div>
-    <div class="story-links"><a href="javascript:generateMbFeatureUrl(4)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateMbFeatureUrl(5)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">Manage topics and queues permissions</div>
-    <div class="story-content">Administrative console support to manage topics and queues permissions.</div>
-    <div class="story-links"><a href="javascript:generateMbFeatureUrl(6)">Go
-        to Web Applications...</a><a href=javascript:generateMbFeatureUrl(7)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">SQS support</div>
-    <div class="story-content">SQS support to store retrieve messages using a web service API.</div>
-    <div class="story-links"><a href="javascript:generateMbFeatureUrl(8)">Go
-        to Web Applications...</a><a href=javascript:generateMbFeatureUrl(9)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">User based authorization for queues</div>
-    <div class="story-content"> User based authorization for queues.</div>
-    <div class="story-links"><a href="javascript:generateMbFeatureUrl(10)">Go
-        to Web Applications...</a><a href=javascript:generateMbFeatureUrl(11)">Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">Manage message boxes</div>
-    <div class="story-content">Administrative console support to manage message boxes and store/retrieve messages.</div>
-    <div class="story-links"><a href="javascript:generateMbFeatureUrl(12)">Go
-        to Web Applications...</a><a href=javascript:generateMbFeatureUrl(13)">Read
-        more (docs)...</a></div>
-
-</div>
-
-<div class="story col1">
-    <div class="story-title">Message box as event sink</div>
-    <div class="story-content"> Ability to use a message box as the event sink for a subscription.</div>
-    <div class="story-links"><a href="javascript:generateMbFeatureUrl(14)">Go
-        to Web Applications...</a> <a href=javascript:generateMbFeatureUrl(15)">Read
-        more (docs)...</a></div>
-
-</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/ms.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/ms.html b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/ms.html
deleted file mode 100755
index 7b1ec4f..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/ms.html
+++ /dev/null
@@ -1,81 +0,0 @@
-
-<link type="text/css" href="../../../../features-dashboard/dashboards/css/features-dashboard.css" rel="stylesheet"/><div class="story col1">
-    <div class="story-title">Scrape the Web</div>
-    <div class="story-content">Scrape legacy web pages, expose as SOAP/REST services quickly using Scraping
-        Assistant.
-    </div>
-    <div class="story-links"><a href="javascript:generateMsFeatureUrl(0)"
-            >Go
-        to Services...</a><a href="javascript:generateMsFeatureUrl(1)"
-            >Read
-        more (docs)...</a></div>
-</div>
-
-<div class="story col2">
-    <div class="story-title">Compose and Expose</div>
-    <div class="story-content"> Compose Enterprise level mashups quickly using Javascript and expose as SOAP/REST
-        Web Services with ease.
-    </div>
-    <div class="story-links"><a href="javascript:generateMsFeatureUrl(2)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateMsFeatureUrl(3)"
-            >Read
-        more (docs)...</a></div>
-
-
-</div>
-<div class="story col3">
-    <div class="story-title">Schedule Tasks</div>
-    <div class="story-content">Schedule recurring tasks, get updated via Emails and IMs using Email/IM Hostobjects.
-    </div>
-    <div class="story-links"><a href="javascript:generateMsFeatureUrl(4)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateMsFeatureUrl(5)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-
-
-<div class="story col1">
-    <div class="story-title">Javascript Stubs</div>
-    <div class="story-content"> Create Javascript stubs from a WSDL and invoke SOAP/REST services easily from a mashup
-        or
-        even from the browser.
-    </div>
-    <div class="story-links">
-        <a href="javascript:generateMsFeatureUrl(6)"
-                >Go
-            to Web Applications...</a><a href="javascript:generateMsFeatureUrl(7)"
-            >Read
-        more (docs)...</a>
-    </div>
-
-</div>
-
-<div class="story col2">
-    <div class="story-title">Modules</div>
-    <div class="story-content">The WSO2 SOA platform has the capabilities of Axis2 to add modules to extend its
-        capabilities. The global modules will affect all the services deployed within the
-        server.
-    </div>
-    <div class="story-links"><a href="javascript:generateMsFeatureUrl(8)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateMsFeatureUrl(9)"
-            >Read
-        more (docs)...</a></div>
-
-</div>
-<div class="story col3">
-    <div class="story-title">Message Tracing</div>
-    <div class="story-content">Trace the request and responses to your service. Message Tracing is a vital debugging
-        tool
-        when you have clients from heterogeneous platforms.
-    </div>
-    <div class="story-links"><a href="javascript:generateMsFeatureUrl(10)"
-            >Go
-        to Web Applications...</a><a href="javascript:generateMsFeatureUrl(11)"
-            >Read
-        more (docs)...</a></div>
-
-</div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/server.jsp
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/server.jsp b/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/server.jsp
deleted file mode 100755
index c400280..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/dashboards/server.jsp
+++ /dev/null
@@ -1,152 +0,0 @@
-<%-- 
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~ 
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~ 
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  --%>
-<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Data"%>
-<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Service"%>
-<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Link"%>
-<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Story"%>
-<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.utils.Utils"%>
-<%@ page import="java.util.HashMap"%>
-<%@ page import="java.util.Iterator"%>
-<%@ page import="java.util.Map"%>
-
-<%@ page language="java" contentType="text/html; charset=UTF-8"
-	pageEncoding="UTF-8"%>
-<jsp:useBean id="serviceData" class="org.wso2.stratos.manager.feature.dashbord.ui.beans.Data"
-             scope="session"></jsp:useBean>
-<link type="text/css"
-	href="../../../../features-dashboard/dashboards/css/features-dashboard.css"
-	rel="stylesheet" />
-	<%
-		
-	%>
-<script type="text/javascript">
-	function goToFunction(url,serverUrl) {
-		var serverUrl = serverUrl+linkSuffix+url;
-		window.open(serverUrl);
-	}
-</script>
-<%
-	String serviceName = request.getParameter("name");
-	Service service = serviceData.getService(serviceName);
-	String name1 = service.getName();
-	String link = service.getLink();
-	Map<String, Story> stories = service.getStories();
-	int index = 1;
-	for (Map.Entry<String, Story> entry : stories.entrySet()) {
-		Story tempStory = entry.getValue();
-		String storyName = tempStory.getTitle();
-		String storyContent = tempStory.getContent();
-		Map<String, Link> links = tempStory.getLinks();
-		String divClassName;
-		if (index%2 == 0) {
-			divClassName = "story col" + 1;
-		} else {
-			divClassName = "story col" + 2;
-		}
-		index++;
-	
-%>
-<div class="<%=divClassName%>">
-	<div class="story-title"><%=storyName%></div>
-	<div class="story-content"><%=storyContent%></div>
-	<div class="story-links">
-		<%
-			for (Map.Entry<String, Link> linksEntry : links.entrySet()) {
-					Link tempLink = linksEntry.getValue();
-					String linkUrl = tempLink.getUrl();
-					String value = tempLink.getDescription();
-		%>
-		<a href="javascript:goToFunction('<%=linkUrl%>','<%=link%>')" class="blocklink"><%=value%></a>
-		<%
-			}
-		%>
-	</div>
-</div>
-<%
-	}
-%>
-
-<!-- 		<div class="story col1"> -->
-
-<!-- 			<div class="story-title">Service Hosting</div> -->
-
-
-<!-- 			<div class="story-content">Different types of Web Services such -->
-<!-- 				as Axis2 Services, JAXWS Services, Jar Services or Spring Services -->
-<!-- 				can be deployed in Application Server. All configurations such as -->
-<!-- 				QoS can be easily configured here.</div> -->
-<!-- 			<div class="story-links"> -->
-<!-- 				<a href="javascript:generateAsFeatureUrl(0)" class="blocklink">Got -->
-<!-- 					to services...</a> <a href="javascript:generateAsFeatureUrl(1)">Read -->
-<!-- 					more (docs)...</a> -->
-<!-- 			</div> -->
-<!-- 		</div> -->
-
-<!-- 		<div class="story col2"> -->
-<!-- 			<div class="story-title">Web Applications</div> -->
-
-
-<!-- 			<div class="story-content">Web Application hosting features in -->
-<!-- 				AppServer supports deployment of Tomcat compliant Webapps. Deployed -->
-<!-- 				Webapps can be easily managed using the Webapp management facilities -->
-<!-- 				available in the management console.</div> -->
-<!-- 			<div class="story-links"> -->
-<!-- 				<a href="javascript:generateAsFeatureUrl(2)" target="_blank">Go -->
-<!-- 					to Web Applications...</a> <a href="javascript:generateAsFeatureUrl(3)" -->
-<!-- 					target="_blank">Read more (docs)...</a> -->
-<!-- 			</div> -->
-<!-- 		</div> -->
-
-
-<!-- 		<div class="story col1"> -->
-<!-- 			<div class="story-title">Message Tracing</div> -->
-<!-- 			<div class="story-content">Trace the request and responses to -->
-<!-- 				your service. Message Tracing is a vital debugging tool when you -->
-<!-- 				have clients from heterogeneous platforms.</div> -->
-<!-- 			<div class="story-links"> -->
-<!-- 				<a href="javascript:generateAsFeatureUrl(4)">Go to Message -->
-<!-- 					Tracing...</a> <a href="javascript:generateAsFeatureUrl(5)">Read -->
-<!-- 					more (docs)...</a> -->
-<!-- 			</div> -->
-
-<!-- 		</div> -->
-
-<!-- 		<div class="story col2"> -->
-<!-- 			<div class="story-title">WSDL2Java Tool</div> -->
-<!-- 			<div class="story-content">Use WSDL2Java tool in Web -->
-<!-- 				Application Server to convert Web Service WSDL to a set of Java -->
-<!-- 				objects.</div> -->
-<!-- 			<div class="story-links"> -->
-<!-- 				<a href="javascript:generateAsFeatureUrl(6)">Go to WSDL2Java -->
-<!-- 					Tool...</a> <a href="javascript:generateAsFeatureUrl(7)">Read more -->
-<!-- 					(docs)...</a> -->
-<!-- 			</div> -->
-<!-- 		</div> -->
-
-<!-- 		<div class="story col1"> -->
-<!-- 			<div class="story-title">Java2WSDL Tool</div> -->
-
-<!-- 			<div class="story-content">Use Java2WSDL tool in Web -->
-<!-- 				Application Server make it easy to develop a new web service.</div> -->
-<!-- 			<div class="story-links"> -->
-<!-- 				<a href="javascript:generateAsFeatureUrl(8)">Go to Java2WSDL -->
-<!-- 					Tool...</a> <a href="javascript:generateAsFeatureUrl(9)">Read more -->
-<!-- 					(docs)...</a> -->
-<!-- 			</div> -->
-<!-- 		</div> -->

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/css/features-dashboard-new.css
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/css/features-dashboard-new.css b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/css/features-dashboard-new.css
deleted file mode 100755
index c6a95bb..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/css/features-dashboard-new.css
+++ /dev/null
@@ -1,155 +0,0 @@
-body{
-    background-color:#F2F2F2;
-}
-.db_menu {
-    width: 240px;
-    padding-top:20px;
-    line-height:20px;
-}
-
-.db_menu ul{
-    margin:0;
-    padding:0;
-    background: url("../images/back.jpg") repeat scroll left top transparent;
-}
-.db_menu li{
-    list-style-type:none;
-    margin-bottom:2px;
-
-    border-bottom: 1px solid #4BA5C6;
-    border-left: 6px solid #000;
-    padding: 10px;
-    width: auto;
-}
-.db_menu li a{
-    color: #48707E;
-    cursor:pointer;
-    width:100%;
-    font-size:13px;
-    white-space: nowrap;
-overflow: hidden;
-text-overflow: ellipsis;
-}
-.db_menu li.selected a{
-    font-weight:bold;
-}
-.db_table{
-    width:100%;
-    opacity:1;
-}
-.db_table td{
-    vertical-align:top;
-}
-
-.db_content{
-    padding:0px 10px 10px 0px;
-}
-#db_content_title{
-    color:#fff;
-    font-size:20px;
-    text-indent:10px;
-    height:40px;
-    padding:15px 5px;
-}
-.main-title{
-    color:#131313;
-    font-size:28px;
-    margin:10px;
-}
-/*Blue theme styles*/
-.page-picture{
-    padding:10px;
-}
-
-div.page-popup{
-    /*Rounded corners */
-    -moz-border-radius: 10px;
-    border-radius: 10px;
-
-
-}
-.page-popup  div.popup-circle{
-    height:100%;
-}
-#popup-close{
-    display:none !important;
-}
-table#main-table td#middle-content {
-    background: url("../images/workAreaBack.png") repeat-x scroll left top transparent;
-}
-div#middle {
-    background: none repeat scroll 0 0 transparent;
-    margin-top:-24px;
-}
-
-div#middle h2 {
-    font-size: 22px;
-}
-div#middle div#workArea {
-    background-color: transparent;
-}
-
-
-#middle .page-background {
-    background-image: none;
-}
-#middle .page-picture, #middle div.page-popup {
-    background-image: none;
-    border: medium none;
-}
-div#middle div#workArea, #middle #dashboard, #middle .page-background, #middle .page-picture {
-    padding: 0;
-}
-div#middle .main-title {
-    color: #727272;
-    font-size: 22px;
-}
-.goto-link1-wrapper{
-    float:right;
-    margin-bottom:10px;
-}
-
-.db_menu li a.goto-link1{
-    background:transparent url("../images/arrow-blue.png") no-repeat left top;
-    width:23px;
-    height:23px;
-    display:block;
-}
-.goto-link2{
-    background:transparent url("../images/arrow-white.png") no-repeat left top;
-    width:23px;
-    height:23px;
-    display:block;
-    float:left;
-}
-.goto-link2-prev{
-    float:left;
-    margin:5px 10px 0 0;
-}
-.service-menu-left-wrapper{
-    float:left;
-    width:185px;
-
-    white-space: nowrap;
-    overflow: hidden;
-    text-overflow: ellipsis;
-}
-
-.green-note {
-    white-space:nowrap;
-    height:15px;
-}
-.db_menu li.manager-leftBar{ border-left-color:#0499cc;}
-.db_menu li.esb-leftBar{ border-left-color:#552988;}
-.db_menu li.as-leftBar{ border-left-color:#0067b1;}
-.db_menu li.dss-leftBar{ border-left-color:#00447c;}
-.db_menu li.greg-leftBar{ border-left-color:#794400;}
-.db_menu li.is-leftBar{ border-left-color:#e86d1f;}
-.db_menu li.bam-leftBar{ border-left-color:#8a2529;}
-.db_menu li.bam-leftBar{ border-left-color:#8a2529;}
-.db_menu li.bps-leftBar{ border-left-color:#ee3124;}
-.db_menu li.brs-leftBar{ border-left-color:#f1645d;}
-.db_menu li.cg-leftBar{ border-left-color:#0499cc;}
-.db_menu li.cep-leftBar{ border-left-color:#a70063;}
-.db_menu li.mb-leftBar{ border-left-color:#767395;}
-.db_menu li.ss-leftBar{ border-left-color:#5a1a0d;}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/css/ie7.css
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/css/ie7.css b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/css/ie7.css
deleted file mode 100755
index 58c394e..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/css/ie7.css
+++ /dev/null
@@ -1,8 +0,0 @@
-div#middle h2{
-    margin-top:15px;
-}
-
-table#main-table td#middle-content{
-    background-position:left 30px;
-    background-color:#fff;
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-blue.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-blue.png b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-blue.png
deleted file mode 100755
index 040d789..0000000
Binary files a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-blue.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-white.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-white.png b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-white.png
deleted file mode 100755
index 4293aec..0000000
Binary files a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/arrow-white.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/back.jpg
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/back.jpg b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/back.jpg
deleted file mode 100755
index dda1588..0000000
Binary files a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/back.jpg and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/boxes.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/boxes.png b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/boxes.png
deleted file mode 100755
index aaf9473..0000000
Binary files a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/boxes.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/dashboard-back-repeat.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/dashboard-back-repeat.png b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/dashboard-back-repeat.png
deleted file mode 100755
index e5058e7..0000000
Binary files a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/dashboard-back-repeat.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/workAreaBack.png
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/workAreaBack.png b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/workAreaBack.png
deleted file mode 100755
index 1999420..0000000
Binary files a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/images/workAreaBack.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/index.html
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/index.html b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/index.html
deleted file mode 100755
index ada6150..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/index.html
+++ /dev/null
@@ -1,173 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-    <title>Dashboard</title>
-    <link type="text/css" href="../../../../features-dashboard/tenant-dashboard/css/features-dashboard-new.css" rel="stylesheet"/>
-    <script type="text/javascript" src="../../../../features-dashboard/tenant-dashboard/js/jquery-1.7.1.min.js"></script>
-    <script type="text/javascript" src="../../../../features-dashboard/tenant-dashboard/js/jquery.masonry.min.js"></script>
-
-    <script type="text/javascript">
-        var def = 'manager'; //This is the default section to display images
-        var hideOnMouseLeave = false; //Set this to true if you want to hide the popup on mouse out from the popup
-        var nameObj = {
-            manager:'Cloud Services',
-            as:'Application Services',
-            dss:'Data Services',
-            ms:'Mashup Services',
-            is:'Identity Services',
-            greg:'Governance Services',
-            gs:'Gadget Services',
-            bam:'Business Activity Monitor',
-            bps:'Business Process Services',
-            brs:'Business Rules Services',
-            esb:'Enterprise Service Bus',
-            cep:'Complex Event Processing Services',
-            mb:'Message Broker Services',
-            csg:'Cloud Gateway'
-        };
-        $(document).ready(function() {
-            for (var name in nameObj) {
-                var newDiv = document.createElement('div');
-                newDiv.id = name + "_content";
-                newDiv.style.display = "none";
-                jQuery(newDiv).load('../../../../features-dashboard/dashboards/' + name + '.html');
-                document.getElementById('container').appendChild(newDiv);
-            }
-            //Close button event register
-            $('#popup-close').click(
-                    function(){
-                        $(this).hide();
-                        $('#db_content_title').hide();
-                        $('#container > div').hide('slow');
-                        $('#page-popup').removeClass("page-popup");
-                        $('.db_menu li').removeClass("selected");
-                        loadDefalut();
-                    }
-                    );
-
-
-            //Showing title and content for the default manager div
-                $('#db_content_title').html(nameObj[def]);
-                $('#' + def + '_info').addClass("selected");
-//                $('#page-popup').addClass("page-popup");
-            var loadDefalut = function() {
-                $('#db_content_title').show();
-                var container = $('#' + def + '_content');
-                container.show(function() {
-                    container.imagesLoaded(function() {
-                        container.masonry({
-                            itemSelector : '.story',
-                            columnWidth : 250,
-                            isAnimated: true,
-                            animationOptions: {
-                                duration: 750,
-                                easing: 'linear',
-                                queue: false
-                            }
-                        });
-                    });
-                });
-            };
-            loadDefalut();
-
-            //Handle mouse over event
-            $('.db_menu li a').mouseover(
-                    function() {
-                        //Handle the menu styles
-                        $('.db_menu li').removeClass("selected");
-
-                        if(hideOnMouseLeave){
-                            $('#page-popup').mouseleave(
-                                    function(){
-                                        $('#page-popup').removeClass("page-popup");
-                                        $('#container > div').hide('slow');
-                                        $('#db_content_title').hide();
-                                        $('#popup-close').hide();
-                                    }
-                                    );
-                        }
-
-
-                        //Get the relevent catagory from the id of the link that has been mouse overred.
-                        var cat = this.id.split('_')[0];
-
-                        //hide all content and show and init the  mansonry for the relevent one
-                        $('#container > div').hide();
-                        $('#db_content_title').show();
-                        $('#db_content_title').html(nameObj[cat]);
-                        if(cat == def){
-                            $('#page-popup').removeClass("page-popup");
-                            $('#popup-close').hide();
-                        }else{
-
-                            //Show the gray box and register an event handler to remove it when the mouse is ouside
-                            $('#page-popup').addClass("page-popup");
-                            $('#popup-close').show();
-                            $(this.parentNode).addClass("selected");
-
-                        }
-                        var container = $('#' + cat + "_content");
-                        $('#' + cat + '_content').show(
-                                function() {
-                                    container.imagesLoaded(function() {
-                                        container.masonry({
-                                            itemSelector : '.story',
-                                            columnWidth : 250,
-                                            isAnimated: true,
-                                            animationOptions: {
-                                                duration: 750,
-                                                easing: 'linear',
-                                                queue: false
-                                            }
-                                        });
-                                    });
-                                }
-                                );
-                    }
-                    );
-        });
-
-
-    </script>
-</head>
-<body>
-<div class="page-background">
-<div class="page-picture">
-<div id="page-popup">
-    <a id="popup-close" style="display:none;">close</a>
-    <table class="db_table">
-        <tr>
-            <div class="main-title">Services</div>
-            <td class="db_menu">
-                <ul>
-                    <li><a id="manager_info">Cloud Services</a></li>
-                    <li><a id="as_info" onclick="gotoAppServer();">Application Services </a></li>
-                    <li><a id="dss_info" onclick="gotoDss();">Data Services </a></li>
-                    <li><a id="ms_info" onclick="gotoMs();">Mashup Services </a></li>
-                    <li><a id="is_info" onclick="gotoIs();">Identity Services </a></li>
-                    <li><a id="greg_info" onclick="gotoGreg();">Governance Services </a></li>
-                    <li><a id="gs_info" onclick="gotoGs();">Gadget Services </a></li>
-                    <li><a id="bam_info" onclick="gotoBam();">Business Activity Monitor </a></li>
-                    <li><a id="bps_info" onclick="gotoBps();">Business Process Services </a></li>
-                    <li><a id="brs_info" onclick="gotoBrs();">Business Rules Services </a></li>
-                    <li><a id="esb_info" onclick="gotoEsb();">Enterprise Service Bus </a></li>
-                    <li><a id="cep_info" onclick="gotoCep();">Complex Event Processing Services </a></li>
-                    <li><a id="mb_info" onclick="gotoMb();">Message Broker </a></li>
-                    <li><a id="csg_info" onclick="gotoCsg();">Cloud Gateway </a></li>
-                </ul>
-
-            </td>
-            <td class="db_content">
-                <div class="popup-circle">
-                    <div id="db_content_title"></div>
-                    <div id="container"></div>
-                </div>
-            </td>
-        </tr>
-    </table>
-</div>
-</div>
-</div>
-
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/index.jsp
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/index.jsp b/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/index.jsp
deleted file mode 100755
index 7d70b66..0000000
--- a/products/stratos_controller/modules/features-dashboard/WebContent/tenant-dashboard/index.jsp
+++ /dev/null
@@ -1,205 +0,0 @@
-<%-- 
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~ 
-  ~ http://www.apache.org/licenses/LICENSE-2.0
-  ~ 
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  --%>
-<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Data"%>
-<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Service"%>
-<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Link"%>
-<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.beans.Story"%>
-<%@ page import="org.wso2.stratos.manager.feature.dashbord.ui.utils.Utils"%>
-
-<%@ page import="java.util.HashMap"%>
-<%@ page import="java.util.Iterator"%>
-<%@ page import="java.util.Map"%>
-
-<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
-<jsp:useBean id="serviceData" class="org.wso2.stratos.manager.feature.dashbord.ui.beans.Data"
-             scope="session"></jsp:useBean>
-<%
-	serviceData = Utils.pupulateDashboardFeatures();
-	request.getSession().setAttribute("serviceData", serviceData);
-
-	// Data data = Utils.pupulateDashboardFeatures();
-	Map<String, Service> allServices = serviceData.getServices();
-	String serviceNames[] = serviceData.getServiceNames();
-	String keys[] = serviceData.getKeys();
-%>
-<script type="text/javascript">
- function openServer(url) {
-	 window.open(url,'_newtab')  ;
- }
-</script>
-
-
-<!DOCTYPE HTML>
-<html>
-<head>
-    <title>Dashboard</title>
-    <link type="text/css" href="../../../../features-dashboard/tenant-dashboard/css/features-dashboard-new.css" rel="stylesheet"/>
-    <!--[if IE 7]>
-	    <link rel="stylesheet" type="text/css" href="../../../../features-dashboard/tenant-dashboard/css/ie7.css">
-    <![endif]-->
-    <script type="text/javascript" src="../../../../features-dashboard/tenant-dashboard/js/jquery-1.7.1.min.js"></script>
-    <script type="text/javascript" src="../../../../features-dashboard/tenant-dashboard/js/jquery.masonry.min.js"></script>
-
-    <script type="text/javascript">
-        var def = 'manager'; //This is the default section to display images
-        var hideOnMouseLeave = false; //Set this to true if you want to hide the popup on mouse out from the popup
-
-        var nameObj = {
-        		<%for (int i = 0; i < serviceNames.length; i++) {
-				String name = serviceNames[i];
-				String key = keys[i];
-				if (i == serviceNames.length - 1) {%><%=key%>:'<%=name%>'
-				<%} else {%><%=key%>:'<%=name%>',
-				<%}%>
-        		<%}%>
-        };
-
-
-
-        $(document).ready(function() {
-            for (var name in nameObj) {
-                $.ajax({
-                    url:'../../../../features-dashboard/dashboards/server.jsp?name='+name,
-                    async:false,
-                    success:function(data){
-                        $('#container').append($('<div id="'+name + '_content"'+'>'+data+'</div>').hide());
-                    }
-                });
-            }
-
-            //Showing title and content for the default manager div
-                $('#db_content_title').html(nameObj[def]);
-                $('#' + def + '_info').parent().addClass("selected");
-//                $('#page-popup').addClass("page-popup");
-            var loadDefalut = function() {
-                $('#db_content_title').show();
-                var container = $('#' + def + '_content');
-                container.show(function() {
-                    container.imagesLoaded(function() {
-                        container.masonry({
-                            itemSelector : '.story',
-                            columnWidth : 250,
-                            isAnimated: true,
-                            animationOptions: {
-                                duration: 750,
-                                easing: 'linear',
-                                queue: false
-                            }
-                        });
-                    });
-                });
-            };
-            loadDefalut();
-
-            //Handle mouse over event
-            $('.db_menu li a.service-menu-left').click(
-                    function() {
-                        //Handle the menu styles
-                        $('.db_menu li').removeClass("selected");
-
-
-                        //Get the relevent catagory from the id of the link that has been mouse overred.
-                        var cat = this.id.split('_')[0];
-
-                        var href = $('a.goto-link1',$(this).parent().parent()).attr('href');
-
-                        //hide all content and show and init the  mansonry for the relevent one
-                        $('#container > div').hide();
-                        $('#db_content_title').show();
-						
-						if(cat == "manager"){
-							$('#db_content_title').html('<div class="goto-link2-prev">'+nameObj[cat]+'</div>');
-						}else{
-							$('#db_content_title').html('<div class="goto-link2-prev">'+nameObj[cat]+'</div><a class="goto-link2" href="'+href+'" target="_blank"></a>');
-						}
-						
-					
-                        if(cat == def){
-                            $('#page-popup').removeClass("page-popup");
-							 $(this.parentNode).addClass("selected");
-                        }else{
-
-                            //Show the gray box and register an event handler to remove it when the mouse is ouside
-                            $('#page-popup').addClass("page-popup");
-                            $(this.parentNode.parentNode).addClass("selected");
-
-                        }
-
-                        var container = $('#' + cat + "_content");
-                        $('#' + cat + '_content').show();
-                        $('#' + cat + '_content div.story').die();
-                        $('#' + cat + '_content').masonry({
-                          itemSelector: '.story',
-                          columnWidth: 250,
-                            isAnimated: true,
-                                        animationOptions: {
-                                            duration: 750,
-                                            easing: 'linear',
-                                            queue: false
-                                        }
-                        });
-                    }
-                    );
-        });
-
-
-    </script>
-</head>
-<body>
-
-<div class="page-background">
-<div class="page-picture">
-<div id="page-popup">
-    <table class="db_table">
-        <tr>
-            <div class="main-title">Services</div>
-            <td class="db_menu">
-                <ul>
-                  <li class="manager-leftBar"><a class="service-menu-left" id="manager_info">Cloud Services</a></li>
-                  <%
-
-                  	for (Map.Entry<String, Service> entry : allServices.entrySet()) {
-                  		Service myservice = entry.getValue();
-                  		String name = myservice.getName();
-                  		String link = myservice.getLink();
-                  		String id = myservice.getKey()+"_info";
-                  		if (!id.equals("manager_info")) {
-                  %>
-                          <li class="<%=myservice.getKey()%>-leftBar"><div class="service-menu-left-wrapper"><a class="service-menu-left" id="<%=id%>"><%=name%></a></div><div class="goto-link1-wrapper"><a href="<%=link%>" target="_blank" class="goto-link1"></a></div><div style="clear:both"></div> </li>
-
-                    <%
-                     	                    	}}
-                     	                    %>
-                </ul>
-
-            </td>
-            <td class="db_content">
-                <div class="popup-circle">
-                    <div id="db_content_title"></div>
-                    <div id="container"></div>
-                </div>
-            </td>
-        </tr>
-    </table>
-</div>
-</div>
-</div>
-
-
-</html>


[08/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos_controller/modules/distribution/lib/home/js/jquery-1.5.1.min.js
----------------------------------------------------------------------
diff --git a/products/stratos_controller/modules/distribution/lib/home/js/jquery-1.5.1.min.js b/products/stratos_controller/modules/distribution/lib/home/js/jquery-1.5.1.min.js
deleted file mode 100755
index 14fd647..0000000
--- a/products/stratos_controller/modules/distribution/lib/home/js/jquery-1.5.1.min.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.5.1
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Wed Feb 23 13:55:29 2011 -0500
- */
-(function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h==="string"&&(f[h.toLowerCase()]=a.converters[h]);l=k,k=e[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=f[m]||f["* "+k];if(!n){p=b;for(o in f){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=f[j[1]+" "+k];if(p){o=f[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&d.error("No con
 version from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bP(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bO(a,b,c,e){if(d.isArray(b)&&b.length)d.each(b,function(b,f){c||bq.test(a)?e(a,f):bO(a+"["+(typeof f==="object"||d.isArray(f)?b:"")+"]",f,c,e)});else if(c||b==null||typeof b!=="object")e(a,b);else if(d.isArray(b)||d.isEmptyObject(b))e(a,"");else for(var f in b)bO(a+"["+f+"]",b[f],c,e)}function bN(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bH,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l==="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bN(a,c,d,e,l,g)));(k||!l)&&!g["*"
 ]&&(l=bN(a,c,d,e,"*",g));return l}function bM(a){return function(b,c){typeof b!=="string"&&(c=b,b="*");if(d.isFunction(c)){var e=b.toLowerCase().split(bB),f=0,g=e.length,h,i,j;for(;f<g;f++)h=e[f],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bo(a,b,c){var e=b==="width"?bi:bj,f=b==="width"?a.offsetWidth:a.offsetHeight;if(c==="border")return f;d.each(e,function(){c||(f-=parseFloat(d.css(a,"padding"+this))||0),c==="margin"?f+=parseFloat(d.css(a,"margin"+this))||0:f-=parseFloat(d.css(a,"border"+this+"Width"))||0});return f}function ba(a,b){b.src?d.ajax({url:b.src,async:!1,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||""),b.parentNode&&b.parentNode.removeChild(b)}function _(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function $(a,b){if(b.nodeType===1){var c=b.nodeName.toLowerCase();b.clearAttributes(),b.mergeAttributes(a);if(c==="object")b.outerHTML=a
 .outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(d.expando)}}function Z(a,b){if(b.nodeType===1&&d.hasData(a)){var c=d.expando,e=d.data(a),f=d.data(b,e);if(e=e[c]){var g=e.events;f=f[c]=d.extend({},e);if(g){delete f.handle,f.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)d.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function Y(a,b){return d.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function O(a,b,c){if(d.isFunction(b))return d.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return d.grep(a,function(a,d){return a===b===c});if(typeof b==="string"){var e=d.grep(a,function(a){return a.nodeType===1});if(J.t
 est(b))return d.filter(b,e,!c);b=d.filter(b,e)}return d.grep(a,function(a,e){return d.inArray(a,b)>=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;i<t.length;i++)g=t[i],g.origType.replace(p,"")===a.type?r.push(g.selector):t.splice(i--,1);f=d(a.target).closest(r,a.currentTarget);for(j=0,k=f.length;j<k;j++){m=f[j];for(i=0;i<t.length;i++){g=t[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,e=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,e=d(a.relatedTarget).closest(g.selector)[0];(!e||e!==h)&&q.push({elem:h,handleObj:g,
 level:m.level})}}}for(j=0,k=q.length;j<k;j++){f=q[j];if(c&&f.level>c)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a
 ,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a)
 :this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selecto
 r+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){e=i[c],f=a[c];if(i===f)continue;l&&f&&(d.isPlainObject(f)||(g=d.isArray(f)))?(g?(g=!1,h=e&&d.isArray(e)?e:[]):h=e&&d.isPlainObject(e)?e:{},i[c]=d.extend(l,h
 ,f)):f!==b&&(i[c]=f)}return i},d.extend({noConflict:function(b){a.$=f,b&&(a.jQuery=e);return d},isReady:!1,readyWait:1,ready:function(a){a===!0&&d.readyWait--;if(!d.readyWait||a!==!0&&!d.isReady){if(!c.body)return setTimeout(d.ready,1);d.isReady=!0;if(a!==!0&&--d.readyWait>0)return;y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=!0;if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",A,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",A),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return
  a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||C.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.cre
 ateElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g<h;)if(c.apply(a[g++],e)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(var j=a[0];g<h&&c.call(j,g,j)!==!1;j=a[++g]){}return a},trim:F?function(a){return a==null?"":F.call(a)}:function(a){return a==null?"":(a+"").replace(j,"").replace(k,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var e=d.type(a);a.length==null||e==="string"||e==="function"||e==="regexp"||d.isWindow(a)?D.call(c,a):d.merge(c,a)}return c},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length==="number")for(var f=c.
 length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,b,c){var d=[],e;for(var f=0,g=a.length;f<g;f++)e=b(a[f],f,c),e!=null&&(d[d.length]=e);return d.concat.apply([],d)},guid:1,proxy:function(a,c,e){arguments.length===2&&(typeof c==="string"?(e=a,a=e[c],c=b):c&&!d.isFunction(c)&&(e=c,c=b)),!c&&a&&(c=function(){return a.apply(e||this,arguments)}),a&&(c.guid=a.guid=a.guid||c.guid||d.guid++);return c},access:function(a,c,e,f,g,h){var i=a.length;if(typeof c==="object"){for(var j in c)d.access(a,j,c[j],f,g,e);return a}if(e!==b){f=!h&&f&&d.isFunction(e);for(var k=0;k<i;k++)g(a[k],c,f?e.call(a[k],k,g(a[k],c)):e,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},_Deferred:function(){var a=[],b,c,e,f={done:function(){if(!e){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=d.type(i),j==="a
 rray"?f.done.apply(f,i):j==="function"&&a.push(i);k&&f.resolveWith(k[0],k[1])}return this},resolveWith:function(d,f){if(!e&&!b&&!c){c=1;try{while(a[0])a.shift().apply(d,f)}catch(g){throw g}finally{b=[d,f],c=0}}return this},resolve:function(){f.resolveWith(d.isFunction(this.promise)?this.promise():this,arguments);return this},isResolved:function(){return c||b},cancel:function(){e=1,a=[];return this}};return f},Deferred:function(a){var b=d._Deferred(),c=d._Deferred(),e;d.extend(b,{then:function(a,c){b.done(a).fail(c);return this},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,promise:function(a){if(a==null){if(e)return e;e=a={}}var c=z.length;while(c--)a[z[c]]=b[z[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){var b=arguments.length,c=b<=1&&a&&d.isFunction(a.promise)?a:d.Deferred(),e=c.promise();if(b>1){var f=E.call(arguments,0),g=b,h=function(a){return function(b){f[a]=arguments.length>1?E.call(
 arguments,0):b,--g||c.resolveWith(e,f)}};while(b--)a=f[b],a&&d.isFunction(a.promise)?a.promise().then(h(b),c.reject):--g;g||c.resolveWith(e,f)}else c!==a&&c.resolve(a);return e},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),y=d._Deferred(),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),G&&(d.inArray=function(a,b){return G.call(b,a)}),i.test(" ")&&(
 j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?A=function(){c.removeEventListener("DOMContentLoaded",A,!1),d.ready()}:c.attachEvent&&(A=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",A),d.ready())});return d}();(function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected
 ,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e),b=e=f=null}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cl
 oneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function"),b=null;return d
 };d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}})();var e=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!g(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,h=b.nodeType,i=h?d.cache:b,j=h?b[d.expando]:d.expando;if(!i[j])return;i
 f(c){var k=e?i[j][f]:i[j];if(k){delete k[c];if(!g(k))return}}if(e){delete i[j][f];if(!g(i[j]))return}var l=i[j][f];d.support.deleteExpando||i!=a?delete i[j]:i[j]=null,l?(i[j]={},h||(i[j].toJSON=d.noop),i[j][f]=l):h&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var g=this[0].attributes,h;for(var i=0,j=g.length;i<j;i++)h=g[i].name,h.indexOf("data-")===0&&(h=h.substr(5),f(this[0],h,e[h]))}}return e}if(typeof a==="object")return this.each(function(){d.data(this,a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(c===b){e=this.triggerHandler("getData"+k[1]+"!",[k[0]]),e===b&&this.length&&(e=d.data(this[0],a),e=f(
 this[0],a,e));return e===b&&k[1]?this.data(k[0]):e}return this.each(function(){var b=d(this),e=[k[0],c];b.triggerHandler("setData"+k[1]+"!",e),d.data(this,a,c),b.triggerHandler("changeData"+k[1]+"!",e)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}}),d.extend({queue:function(a,b,c){if(a){b=(b||"fx")+"queue";var e=d._data(a,b);if(!c)return e||[];!e||d.isArray(c)?e=d._data(a,b,d.makeArray(c)):e.push(c);return e}},dequeue:function(a,b){b=b||"fx";var c=d.queue(a,b),e=c.shift();e==="inprogress"&&(e=c.shift()),e&&(b==="fx"&&c.unshift("inprogress"),e.call(a,function(){d.dequeue(a,b)})),c.length||d.removeData(a,b+"queue",!0)}}),d.fn.extend({queue:function(a,c){typeof a!=="string"&&(c=a,a="fx");if(c===b)return d.queue(this[0],a);return this.each(function(b){var e=d.queue(this,a,c);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a,b=b||"fx";retur
 n this.queue(b,function(){var c=this;setTimeout(function(){d.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var h=/[\n\t\r]/g,i=/\s+/,j=/\r/g,k=/^(?:href|src|style)$/,l=/^(?:button|input)$/i,m=/^(?:button|input|object|select|textarea)$/i,n=/^a(?:rea)?$/i,o=/^(?:radio|checkbox)$/i;d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},d.fn.extend({attr:function(a,b){return d.access(this,a,b,!0,d.attr)},removeAttr:function(a,b){return this.each(function(){d.attr(this,a,""),this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.addClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"){var b=(a||"").split(i);for(var c=0,e=this.length;c<e;c++){var f=this[c];if(f.nodeType===1)if(f.className){var g=" "+f.className+" ",h=
 f.className;for(var j=0,k=b.length;j<k;j++)g.indexOf(" "+b[j]+" ")<0&&(h+=" "+b[j]);f.className=d.trim(h)}else f.className=a}}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.removeClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"||a===b){var c=(a||"").split(i);for(var e=0,f=this.length;e<f;e++){var g=this[e];if(g.nodeType===1&&g.className)if(a){var j=(" "+g.className+" ").replace(h," ");for(var k=0,l=c.length;k<l;k++)j=j.replace(" "+c[k]+" "," ");g.className=d.trim(j)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,e=typeof b==="boolean";if(d.isFunction(a))return this.each(function(c){var e=d(this);e.toggleClass(a.call(this,c,e.attr("class"),b),b)});return this.each(function(){if(c==="string"){var f,g=0,h=d(this),j=b,k=a.split(i);while(f=k[g++])j=e?j:!h.hasClass(f),h[j?"addClass":"removeClass"](f)}else if(c==="undefined"||c==="boolean")this.className&&d._data(this,"__className__",this.cla
 ssName),this.className=this.className||a===!1?"":d._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(h," ").indexOf(b)>-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var k=i?f:0,l=i?f+1:h.length;k<l;k++){var m=h[k];if(m.selected&&(d.support.optDisabled?!m.disabled:m.getAttribute("disabled")===null)&&(!m.parentNode.disabled||!d.nodeName(m.parentNode,"optgroup"))){a=d(m).val();if(i)return a;g.push(a)}}if(i&&!g.length&&h.length)return d(h[f]).val();return g}if(o.test(c.type)&&!d.support.checkOn)return c.getAttribute("value")===null?"on":c.value;return(c.value||"").replace(j,"")}return b}var n=d.isFunction(a);return this.each(function(b){var c=d(this),e=a;if(this
 .nodeType===1){n&&(e=a.call(this,b,c.val())),e==null?e="":typeof e==="number"?e+="":d.isArray(e)&&(e=d.map(e,function(a){return a==null?"":a+""}));if(d.isArray(e)&&o.test(this.type))this.checked=d.inArray(c.val(),e)>=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=k.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&l.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.rem
 oveAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var o=a.getAttributeNode("tabIndex");return o&&o.specified?o.value:m.test(a.nodeName)||n.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var p=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return p===null?b:p}h&&(a[c]=e);return a[c]}});var p=/\.(.*)$/,q=/^(?:textarea|input|select)$/i,r=/\./g,s=/ /g,t=/[^\w\s.|`]/g,u=function(a){return a.replace(t,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=v;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=fu
 nction(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=v);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split
 ("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))d.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=d.event.special[h]||{};for(j=f||0;j<p.length;j++){q=p[j];if(e.guid===q.guid){if(l||n.test(q.namespace))f==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(f!=null)break}}if(p.length===0||f!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&d.removeEvent(a,h,s.handle),g=null,delete t[h]}if(d.isEmptyObject(t)){var w=s.handle;w&&(w.elem=null),delete s.events,delete s.handle,d.isEmptyObject(s)&&d.removeData(a,b,!0)}}},trigger:function(a,c,e){var f=a.type||a,g=arguments[3];if(!g){a=typeof a==="object"?a[d.expando]?a:d.extend(d.Event(f),a):d.Event(f),f.indexOf("!")>=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.e
 vent.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(p,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=!0,l[m]())}catch(q){}k&&(l["on"+m]=k),d.event.triggered=!1}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new R
 egExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l<m;l++){var n=f[l];if(e||h.test(n.namespace)){c.handler=n.handler,c.data=n.data,c.handleObj=n;var o=n.handler.apply(this,k);o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[d.expando])return a;var e=a;a=d.Event(e);for(var f=this.props.length,g;f;)g=this.props[--f],a[g]=e[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.related
 Target&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=c.documentElement,i=c.body;a.pageX=a.clientX+(h&&h.scrollLeft||i&&i.scrollLeft||0)-(h&&h.clientLeft||i&&i.clientLeft||0),a.pageY=a.clientY+(h&&h.scrollTop||i&&i.scrollTop||0)-(h&&h.clientTop||i&&i.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,F(a.origType,a.selector),d.extend({},a,{handler:E,guid:a.handler.guid}))},remove:function(a){d.event.remove(this,F(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){d.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},d.removeE
 vent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},d.Event=function(a){if(!this.preventDefault)return new d.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?w:v):this.type=a,this.timeStamp=d.now(),this[d.expando]=!0},d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=w;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=w;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=w,this.stopPropagation()},isDefaultPrevented:v,isPropagationStopped:v,isImmediatePropagationStopped:v};var x=function(a){var b=a.relatedTarget;try{if(b!==c&&!b.parentNode)return;while(b&&b!==th
 is)b=b.parentNode;b!==this&&(a.type=a.data,d.event.handle.apply(this,arguments))}catch(e){}},y=function(a){a.type=a.data,d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(c){d.event.add(this,b,c&&c.selector?y:x,a)},teardown:function(a){d.event.remove(this,b,a&&a.selector?y:x)}}}),d.support.submitBubbles||(d.event.special.submit={setup:function(a,b){if(this.nodeName&&this.nodeName.toLowerCase()!=="form")d.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&d(b).closest("form").length&&C("submit",this,arguments)}),d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&d(b).closest("form").length&&a.keyCode===13&&C("submit",this,arguments)});else return!1},teardown:function(a){d.event.remove(this,".specialSubmit")}});if(!d.support.changeBubbles){var z,A=function(a){var b=a.type,c=a.value;b==="ra
 dio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},B=function B(a){var c=a.target,e,f;if(q.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=A(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:B,beforedeactivate:B,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&B.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&B.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",A(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in 
 z)d.event.add(this,c+".specialChange",z[c]);return q.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return q.test(this.nodeName)}},z=d.event.special.change.filters,z.focus=z.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){a=d.event.fix(a),a.type=b;return d.event.handle.call(this,a)}d.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i<j;i++)d.event.add(this[i],a,h,e);return this}}),d.fn.extend({unbind:function(a,b){if(typeof a!=="object"||a.preventDefault)for(var e=0,f=this.length;e<f;e++)d.event.
 remove(this[e],a,b);else for(var c in a)this.unbind(c,a[c]);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var c=d.Event(a);c.preventDefault(),c.stopPropagation(),d.event.trigger(c,b,this[0]);return c.result}},toggle:function(a){var b=arguments,c=1;while(c<b.length)d.proxy(a,b[c++]);return this.click(d.proxy(a,function(e){var f=(d._data(this,"lastToggle"+a.guid)||0)%c;d._data(this,"lastToggle"+a.guid,f+1),e.preventDefault();return b[f].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var D={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,c){d.fn[c]=function(a,e,f,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:d(this.context);if(typeof a==="ob
 ject"&&!a.preventDefault){for(var o in a)n[c](o,e,a[o],m);return this}d.isFunction(e)&&(f=e,e=b),a=(a||"").split(" ");while((h=a[i++])!=null){j=p.exec(h),k="",j&&(k=j[0],h=h.replace(p,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,h==="focus"||h==="blur"?(a.push(D[h]+k),h=h+k):h=(D[h]||h)+k;if(c==="live")for(var q=0,r=n.length;q<r;q++)d.event.add(n[q],"live."+F(h,m),{data:e,selector:m,handler:f,origType:h,origHandler:f,preType:l});else n.unbind("live."+F(h,m),f)}return this}}),d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){d.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.s
 izset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!=="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[
 x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=fun
 ction(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(f){if(f===!0)continue}else g=o=!0}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");i
 f(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b==="string",d=c&&!j.test(b),e=c&&
 !d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1){}a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute(
 "name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not"
 )if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type
 },reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!
 0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};f
 or(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(a===b){g=!0;return 0}if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i
 ;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),fu
 nction(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3
 ]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,d=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(e){d=!0}b&&(k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(d||!l.match.PSEUDO.test(c)&&!/!=/.test(c))return b.call(a,c)}catch(e){}return k(c,null,null,[a]).length>0})}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test
  e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};d.find=k,d.expr=k.selectors,d.expr[":"]=d.expr.filters,d.unique=k.uniqueSort,d.text=k.getText,d.isXM
 LDoc=k.isXML,d.contains=k.contains}();var G=/Until$/,H=/^(?:parents|prevUntil|prevAll)/,I=/,/,J=/^.[^:#\[\.,]*$/,K=Array.prototype.slice,L=d.expr.match.POS,M={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var b=this.pushStack("","find",a),c=0;for(var e=0,f=this.length;e<f;e++){c=b.length,d.find(a,this[e],b);if(e>0)for(var g=c;g<b.length;g++)for(var h=0;h<c;h++)if(b[h]===b[g]){b.splice(g--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(d.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(O(this,a,!1),"not",a)},filter:function(a){return this.pushStack(O(this,a,!0),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e<f;e++)i=a[e],j[i]||(j[i]=d.expr.match.POS.test(i)?d(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.i
 ndex(g)>-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=L.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e<f;e++){g=this[e];while(g){if(l?l.index(g)>-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(N(c[0])||N(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling
 ")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=K.call(arguments);G.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!M[a]?d.unique(f):f,(this.length>1||I.test(e))&&H.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.
 push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var P=/ jQuery\d+="(?:\d+|null)"/g,Q=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,S=/<([\w:]+)/,T=/<tbody/i,U=/<|&#?\w+;/,V=/<(?:script|object|embed|option|style)/i,W=/checked\s*(?:[^=]|=\s*.checked.)/i,X={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td,d.support.htmlSerialize||(X._default=[1,"div<div>","</div>"]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(fun
 ction(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1
 &&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"
 ));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(P,""):null;if(typeof a!=="string"||V.test(a)||!d.support.leadingWhitespace&&Q.test(a)||X[(S.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(R,"<$1></$2>");try{for(var c=0,e=this.length;c<e;c++)this[c].nodeType===1&&(d.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(f){this.empty().append(a)}}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var c=d(this),e=c.html();c.replaceWith(a.call(this,b,e))});typeof a!=="string"&&(a=d(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;d(this).remove(),b?d(b).be
 fore(a):d(c).append(a)})}return this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,e){var f,g,h,i,j=a[0],k=[];if(!d.support.checkClone&&arguments.length===3&&typeof j==="string"&&W.test(j))return this.each(function(){d(this).domManip(a,c,e,!0)});if(d.isFunction(j))return this.each(function(f){var g=d(this);a[0]=j.call(this,f,c?g.html():b),g.domManip(a,c,e)});if(this[0]){i=j&&j.parentNode,d.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?f={fragment:i}:f=d.buildFragment(a,this,k),h=f.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&d.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)e.call(c?Y(this[l],g):this[l],f.cacheable||m>1&&l<n?d.clone(h,!0,!0):h)}k.length&&d.each(k,ba)}return this}}),d.buildFragment=function(a,b,e){var f,g,h,i=b&&b[0]?b[0].ownerDocument||b[0]:c;a.length===1&&typeof a[0]==="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!
 V.test(a[0])&&(d.support.checkClone||!W.test(a[0]))&&(g=!0,h=d.fragments[a[0]],h&&(h!==1&&(f=h))),f||(f=i.createDocumentFragment(),d.clean(a,i,f,e)),g&&(d.fragments[a[0]]=h?f:1);return{fragment:f,cacheable:g}},d.fragments={},d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(c){var e=[],f=d(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&f.length===1){f[b](this[0]);return this}for(var h=0,i=f.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){$(a,e),f=_(a),g=_(e);for(h=0;f[h];++h)$(f[h],g[h])}if(b){Z(a,e);if(c){f=_(a),g=_(e);for(h=0;f[h];++h)Z(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElem
 ent==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||U.test(i)){if(typeof i==="string"){i=i.replace(R,"<$1></$2>");var j=(S.exec(i)||["",""])[1].toLowerCase(),k=X[j]||X._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=T.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]==="<table>"&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&Q.test(i)&&m.insertBefore(b.createTextNode(Q.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElement
 sByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bb=/alpha\([^)]*\)/i,bc=/opacity=([^)]*)/,bd=/-([a-z])/ig,be=/([A-Z])/g,bf=/^-?\d+(?:px)?$/i,bg=/^-?\d/,bh={position:"absolute",visibility:"hidden",display:"block"},bi=["Left","Right"],bj=["Top","Bottom"],bk,bl,bm,bn=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:
 function(a,b){if(b){var c=bk(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bk)return bk(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bd,bn)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a
 ,c,e){var f;if(c){a.offsetWidth!==0?f=bo(a,b,e):d.swap(a,bh,function(){f=bo(a,b,e)});if(f<=0){f=bk(a,b,b),f==="0px"&&bm&&(f=bm(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bf.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return bc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bb.test(f)?f.replace(bb,e):c.filter+" "+e}}),c.defaultView&&c.defaultView.getComputedStyle&&(bl=function(a,c,e){var f,g,h;e=e.replace(be,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.
 documentElement.currentStyle&&(bm=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bf.test(d)&&bg.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bk=bl||bm,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var bp=/%20/g,bq=/\[\]$/,br=/\r?\n/g,bs=/#.*$/,bt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bu=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/(?:^file|^widget|\-extension):$/,bw=/^(?:GET|HEAD)$/,bx=/^\/\//,by=/\?/,bz=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bA=/^(?:select|textarea)/i,bB=/\s+/,bC=/([?&])_=[^&]*/,bD=/(^|\-)([a-z]
 )/g,bE=function(a,b,c){return b+c.toUpperCase()},bF=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,bG=d.fn.load,bH={},bI={},bJ,bK;try{bJ=c.location.href}catch(bL){bJ=c.createElement("a"),bJ.href="",bJ=bJ.href}bK=bF.exec(bJ.toLowerCase()),d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bG)return bG.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("<div>").append(c.replace(bz,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(t
 his.checked||bA.test(this.nodeName)||bu.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(br,"\r\n")}}):{name:b.name,value:c.replace(br,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bJ,isLocal:bv.test(bK[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,asyn
 c:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bM(bH),ajaxTransport:bM(bI),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bP(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bQ(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e
 ]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bD,bE)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bt.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bs,"").replace(bx,bK[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bB),e.crossDomain||(q=bF.e
 xec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bK[1]||q[2]!=bK[2]||(q[3]||(q[1]==="http:"?80:443))!=(bK[3]||(bK[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bN(bH,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!bw.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(by.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bC,"$1_="+w);e.url=x+(x===e.url?(by.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.be
 foreSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bN(bI,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bO(g,a[g],c,f);return e.join("&").replace(bp,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bR=d.now(),bS=/(\=)\?(&|$)|()\?\?()/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bR++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==
 !1&&(bS.test(b.url)||f&&bS.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bS,l),b.url===j&&(f&&(k=k.replace(bS,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:fu
 nction(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bT=d.now(),bU,bV;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bX()||bY()}:bX,bV=d.ajaxSettings.xhr(),d.support.ajax=!!bV,d.support.cors=bV&&"withCredentials"in bV,bV=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),(!a.crossDomain||a.hasContent)&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttp
 Request");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bU[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bU||(bU={},bW()),h=bT++,g.onreadystatechange=bU[h]=c):c()},abort:function(){c&&c(0,1)}}}});var bZ={},b$=/^(?:toggle|show|hide)$/,b_=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,cb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(cc("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)e=this[g],f=e.style.displa
 y,!d._data(e,"olddisplay")&&f==="none"&&(f=e.style.display=""),f===""&&d.css(e,"display")==="none"&&d._data(e,"olddisplay",cd(e.nodeName));for(g=0;g<h;g++){e=this[g],f=e.style.display;if(f===""||f==="none")e.style.display=d._data(e,"olddisplay")||""}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cc("hide",3),a,b,c);for(var e=0,f=this.length;e<f;e++){var g=d.css(this[e],"display");g!=="none"&&!d._data(this[e],"olddisplay")&&d._data(this[e],"olddisplay",g)}for(e=0;e<f;e++)this[e].style.display="none";return this},_toggle:d.fn.toggle,toggle:function(a,b,c){var e=typeof a==="boolean";d.isFunction(a)&&d.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:d(this).is(":hidden");d(this)[b?"show":"hide"]()}):this.animate(cc("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,e){var f=d.speed(b,c,e);if(d.isEmptyObject(a))
 return this.each(f.complete);return this[f.queue===!1?"each":"queue"](function(){var b=d.extend({},f),c,e=this.nodeType===1,g=e&&d(this).is(":hidden"),h=this;for(c in a){var i=d.camelCase(c);c!==i&&(a[i]=a[c],delete a[c],c=i);if(a[c]==="hide"&&g||a[c]==="show"&&!g)return b.complete.call(this);if(e&&(c==="height"||c==="width")){b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(d.css(this,"display")==="inline"&&d.css(this,"float")==="none")if(d.support.inlineBlockNeedsLayout){var j=cd(this.nodeName);j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else this.style.display="inline-block"}d.isArray(a[c])&&((b.specialEasing=b.specialEasing||{})[c]=a[c][1],a[c]=a[c][0])}b.overflow!=null&&(this.style.overflow="hidden"),b.curAnim=d.extend({},a),d.each(a,function(c,e){var f=new d.fx(h,b,c);if(b$.test(e))f[e==="toggle"?g?"show":"hide":e](a);else{var i=b_.exec(e),j=f.cur();if(i){var k=parseFloat(i[2]),l=i[3]||(d.cssNumber
 [c]?"":"px");l!=="px"&&(d.style(h,c,(k||1)+l),j=(k||1)/f.cur()*j,d.style(h,c,j+l)),i[1]&&(k=(i[1]==="-="?-1:1)*k+j),f.custom(j,k,l)}else f.custom(j,e,"")}});return!0})},stop:function(a,b){var c=d.timers;a&&this.queue([]),this.each(function(){for(var a=c.length-1;a>=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:cc("show",1),slideUp:cc("hide",1),slideToggle:cc("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e}
 ,easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!ca&&(ca=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||t
 his.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easin
 g[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||d.fx.stop()},interval:13,stop:function(){clearInterval(ca),ca=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),d.expr&&d.expr.filters&&(d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length});var ce=/^t(?:able|d|h)$/i,cf=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?d.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);try{c=
 b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!c||!d.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=f.body,i=cg(f),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||d.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||d.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:d.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var c,e=b.offsetParent,f=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(d.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===e&&(l+=b.offsetTop,m+=b.of
 fsetLeft,d.offset.doesNotAddBorder&&(!d.offset.doesAddBorderForTableAndCells||!ce.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),f=e,e=b.offsetParent),d.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;d.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},d.offset={initialize:function(){var a=c.body,b=c.createElement("div"),e,f,g,h,i=parseFloat(d.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";d.exte
 nd(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative"
 );var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var
  f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset
 "+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window);
\ No newline at end of file


[43/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/LICENSE.txt
----------------------------------------------------------------------
diff --git a/products/cloud_controller/LICENSE.txt b/products/cloud_controller/LICENSE.txt
deleted file mode 100644
index 58a72cd..0000000
--- a/products/cloud_controller/LICENSE.txt
+++ /dev/null
@@ -1,512 +0,0 @@
-
-This product is licensed by Apache under Apache License 2.0. The license
-can be downloaded from the following locations:
-	http://www.apache.org/licenses/LICENSE-2.0.html
-	http://www.apache.org/licenses/LICENSE-2.0.txt
-
-This product also contains software under different licenses. This table below
-all the contained libraries (jar files) and the license under which they are 
-provided to you.
-
-At the bottom of this file is a table that shows what each license indicated
-below is and where the actual text of the license can be found.
-
-Name                                                                            Type           License   
----------------------------------------------------------------------------------------------------------
-abdera_1.0.0.wso2v3.jar                                                         bundle         apache2   
-addressing-1.6.1-wso2v9.mar                                                     bundle         apache2   
-ajaxtags_1.3.0.beta-rc7-wso2v1.jar                                              bundle         apache2   
-andes-client-0.13.wso2v6.jar                                                    bundle         apache2   
-andes_0.13.0.wso2v6.jar                                                         bundle         apache2   
-annogen_0.1.0.wso2v1.jar                                                        bundle         apache2   
-antlr-runtime_3.2.0.wso2v1.jar                                                  bundle         bsd       
-antlr_3.2.0.wso2v1.jar                                                          bundle         bsd       
-ant_1.7.0.wso2v1.jar                                                            bundle         apache2   
-apache-cassandra_1.1.3.wso2v2.jar                                               bundle         apache2   
-apache-zookeeper_3.3.6.wso2v1.jar                                               bundle         apache2   
-apache-zookeeper_3.4.4.wso2v1.jar                                               bundle         apache2   
-authenticator_0.7.0.wso2v1.jar                                                  bundle         apache2   
-avro_1.4.0.fixeswso2v1.jar                                                      bundle         apache2   
-aws-common_1.5.0.beta_5.jar                                                     bundle         apache2   
-aws-ec2_1.5.0.beta5wso2v1.jar                                                   bundle         apache2   
-axiom_1.2.11.wso2v4.jar                                                         bundle         apache2   
-axis2-json_1.6.1.wso2v9.jar                                                     bundle         apache2   
-axis2-transport-jms_1.1.0.wso2v7.jar                                            bundle         apache2   
-axis2_1.6.1.wso2v9.jar                                                          bundle         apache2   
-backport-util-concurrent_3.1.0.wso2v1.jar                                       bundle         public    
-bcprov-jdk15-132.jar                                                            jarinbundle    bouncy    
-bcprov-jdk16_1.45.0.wso2v1.jar                                                  bundle         apache2   
-bsf-all_3.0.0.wso2v2.jar                                                        bundle         apache2   
-caja-r3950.jar                                                                  jarinbundle    unknown   
-com.google.gson_2.1.0.jar                                                       bundle         apache2   
-com.google.gson_2.2.0.jar                                                       bundle         apache2   
-com.googlecode.concurrentlinkedhashmap.lru_1.3.0.jar                            bundle         apache2   
-com.ning.compress-lzf_0.8.4.jar                                                 bundle         apache2   
-com.sun.jersey.jersey-core_1.12.0.jar                                           bundle         apache2   
-commons-beanutils-1.7.0.jar                                                     jarinbundle    apache2   
-commons-beanutils-1.8.0.jar                                                     jarinbundle    apache2   
-commons-beanutils_1.8.0.wso2v1.jar                                              bundle         apache2   
-commons-betwixt-0.8.jar                                                         jarinbundle    unknown   
-commons-cli_1.2.0.wso2v1.jar                                                    bundle         apache2   
-commons-codec_1.4.0.wso2v1.jar                                                  bundle         apache2   
-commons-collections-3.2.0.wso2v1.jar                                            bundle         apache2   
-commons-collections_3.2.0.wso2v1.jar                                            bundle         apache2   
-commons-configuration_1.6.0.wso2v1.jar                                          bundle         apache2   
-commons-dbcp_1.4.0.wso2v1.jar                                                   bundle         apache2   
-commons-digester-1.8.1.jar                                                      jarinbundle    apache2   
-commons-digester-1.8.jar                                                        jarinbundle    apache2   
-commons-digester_1.8.1.wso2v1.jar                                               bundle         apache2   
-commons-discovery-0.2.jar                                                       jarinbundle    apache2   
-commons-fileupload_1.2.2.wso2v1.jar                                             bundle         apache2   
-commons-httpclient_3.1.0.wso2v2.jar                                             bundle         apache2   
-commons-io_2.0.0.wso2v1.jar                                                     bundle         apache2   
-commons-io_2.0.0.wso2v2.jar                                                     bundle         apache2   
-commons-lang-2.6.0.wso2v1.jar                                                   bundle         apache2   
-commons-lang_2.6.0.wso2v1.jar                                                   bundle         apache2   
-commons-pool_1.5.6.wso2v1.jar                                                   bundle         apache2   
-compass_2.0.1.wso2v2.jar                                                        bundle         apache2   
-derby-10.4.2.0.jar                                                              jarinbundle    apache2   
-dnsjava_2.1.1.wso2v1.jar                                                        bundle         apache2   
-ec2_1.5.0.beta5.jar                                                             bundle         apache2   
-ec2_1.5.0.beta5wso2v1.jar                                                       bundle         apache2   
-ehcache_1.5.0.wso2v3.jar                                                        bundle         apache2   
-el-impl_2.2.0.wso2v1.jar                                                        bundle         cddl1     
-ezmorph-1.0.4.jar                                                               jarinbundle    unknown   
-geronimo-jms_1.1_spec-1.1.0.wso2v1.jar                                          bundle         apache2   
-geronimo-saaj_1.3_spec_1.0.0.wso2v3.jar                                         bundle         apache2   
-geronimo-stax-api_1.0_spec-1.0.1.wso2v2.jar                                     bundle         apache2   
-google-collect_1.0.0.wso2v2.jar                                                 bundle         apache2   
-guava_12.0.0.wso2v1.jar                                                         bundle         apache2   
-guice-assistedinject_3.0.0.wso2v1.jar                                           bundle         apache2   
-guice_3.0.0.wso2v1.jar                                                          bundle         apache2   
-h2-1.2.140-wso2v3.jar                                                           bundle         epl1      
-h2-database-engine_1.2.140.wso2v3.jar                                           bundle         epl1      
-hadoop-core_0.20.203.wso2v2.jar                                                 bundle         apache2   
-hector-core_1.1.0.wso2v1.jar                                                    bundle         mit       
-high-scale-lib_1.1.2.wso2v1.jar                                                 bundle         public    
-htmlunit-2.5.jar                                                                jarinbundle    unknown   
-httpclient-4.0.1.jar                                                            jarinbundle    unknown   
-httpclient_4.1.1.wso2v1.jar                                                     bundle         apache2   
-httpcore-nio_4.2.3.wso2v1.jar                                                   bundle         apache2   
-httpcore_4.1.0.wso2v1.jar                                                       bundle         apache2   
-httpcore_4.2.3.wso2v1.jar                                                       bundle         apache2   
-icu4j-3.8.jar                                                                   jarinbundle    ICU       
-infinispan-core_5.1.2.wso2v1.jar                                                bundle         lgpl2     
-jackson-core-asl_1.9.2.jar                                                      bundle         apache2   
-jackson-mapper-asl_1.9.2.jar                                                    bundle         apache2   
-jamm_0.2.5.wso2v2.jar                                                           bundle         apache2   
-java-xmlbuilder_0.4.0.wso2v1.jar                                                bundle         apache2   
-javasysmon_0.3.3.wso2v1.jar                                                     bundle         jsmon     
-javax.el_2.2.0.v201108011116.jar                                                bundle         cddl1     
-javax.servlet.jsp_2.2.0.v201112011158.jar                                       bundle         cddl1     
-javax.servlet_3.0.0.v201112011016.jar                                           bundle         cddl1     
-jaxb-api-2.2.6.jar                                                              jar            cddl+gpl  
-jaxb_2.2.5.wso2v1.jar                                                           bundle         cddl1     
-jboss-logging_3.1.0.wso2v1.jar                                                  bundle         lgpl2     
-jboss-transaction-api_1.1_spec-1.0.0.Final.jar                                  jar            lgpl2     
-jclouds-bouncycastle_1.5.0.beta_5.jar                                           bundle         apache2   
-jclouds-compute_1.5.0.beta_5.jar                                                bundle         apache2   
-jclouds-core_1.5.0.beta_5.jar                                                   bundle         apache2   
-jclouds-enterprise_1.5.0.beta_5.jar                                             bundle         apache2   
-jclouds-joda_1.5.0.beta_5.jar                                                   bundle         apache2   
-jclouds-log4j_1.5.0.beta_5.jar                                                  bundle         apache2   
-jclouds-netty_1.5.0.beta_5.jar                                                  bundle         apache2   
-jclouds-scriptbuilder_1.5.0.beta_5.jar                                          bundle         apache2   
-jclouds-slf4j_1.5.0.beta_5.jar                                                  bundle         apache2   
-jclouds-sshj_1.5.0.beta_5.jar                                                   bundle         apache2   
-jdbc-pool_7.0.34.wso2v1.jar                                                     bundle         apache2   
-jdom_1.0.0.wso2v1.jar                                                           bundle         jdom      
-jericho-html-2.4.jar                                                            jarinbundle    epl1      
-jettison_1.1.0.wso2v1.jar                                                       bundle         apache2   
-jetty-6.1.15.jar                                                                jarinbundle    unknown   
-jgroups_3.0.6.wso2v1.jar                                                        bundle         lgpl2     
-js-1.6R7.jar                                                                    jarinbundle    mpl11     
-jsecurity-0.9.0.jar                                                             jarinbundle    unknown   
-json-simple-1.1.jar                                                             jarinbundle    unknown   
-json-simple_1.1.0.wso2v1.jar                                                    bundle         apache2   
-json_1.0.0.wso2v1.jar                                                           bundle         json      
-json_2.0.0.wso2v1.jar                                                           bundle         json      
-jsr107cache_1.1.0.wso2v3.jar                                                    bundle         apache2   
-jstl-1.2.jar                                                                    jarinbundle    unknown   
-jstl_1.2.1.wso2v1.jar                                                           bundle         cddl1     
-juel-api-2.1.2.jar                                                              jarinbundle    unknown   
-juel-impl-2.1.2.jar                                                             jarinbundle    unknown   
-jug_2.0.0.wso2v1.jar                                                            bundle         apache2   
-jzlib_1.0.7.wso2v1.jar                                                          bundle         apache2   
-kaptcha_2.3.0.wso2v1.jar                                                        bundle         apache2   
-libthrift_0.7.0.wso2v2.jar                                                      bundle         apache2   
-log4j-1.2.17.jar                                                                bundle         apache2   
-marshalling_1.3.6.wso2v1.jar                                                    bundle         lgpl2     
-metrics-core_2.0.3.wso2v1.jar                                                   bundle         apache2   
-mina-core-1.1.7.jar                                                             jarinbundle    apache2   
-neethi_2.0.4.wso2v4.jar                                                         bundle         apache2   
-nekohtml-1.9.13.jar                                                             jarinbundle    unknown   
-net.schmizz.sshj_0.8.0.jar                                                      bundle         apache2   
-oauth-20090531.jar                                                              jarinbundle    unknown   
-oauth-provider-20090531.jar                                                     jarinbundle    unknown   
-opencsv-1.8.jar                                                                 jarinbundle    apache2   
-opencsv_1.8.0.wso2v1.jar                                                        bundle         apache2   
-opensaml-1.1.406.jar                                                            jarinbundle    apache2   
-opensaml-2.4.1.jar                                                              jarinbundle    apache2   
-opensaml2_2.4.1.wso2v1.jar                                                      bundle         apache2   
-openstack-common_1.5.0.beta_5.jar                                               bundle         apache2   
-openstack-keystone_1.5.0.beta5wso2v1.jar                                        bundle         apache2   
-openstack-nova_1.5.0.beta5wso2v1.jar                                            bundle         apache2   
-openws-1.4.1.jar                                                                jarinbundle    apache2   
-org.apache.felix.gogo.command_0.8.0.v201108120515.jar                           bundle         apache2   
-org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar                           bundle         apache2   
-org.apache.felix.gogo.shell_0.8.0.v201110170705.jar                             bundle         apache2   
-org.apache.jasper.glassfish_2.2.2.v201205150955.jar                             bundle         apache2   
-org.eclipse.core.contenttype_3.4.200.v20120523-2004.jar                         bundle         epl1      
-org.eclipse.core.expressions_3.4.401.v20120627-124442.jar                       bundle         epl1      
-org.eclipse.core.jobs_3.5.300.v20120622-204750.jar                              bundle         epl1      
-org.eclipse.core.runtime_3.8.0.v20120521-2346.jar                               bundle         epl1      
-org.eclipse.ecf.filetransfer_5.0.0.v20110531-2218.jar                           bundle         epl1      
-org.eclipse.ecf.identity_3.1.100.v20110531-2218.jar                             bundle         epl1      
-org.eclipse.ecf.provider.filetransfer.httpclient_4.0.200.v20120319-0616.jar     bundle         epl1      
-org.eclipse.ecf.provider.filetransfer_3.2.0.v20110531-2218.jar                  bundle         epl1      
-org.eclipse.ecf_3.1.300.v20110531-2218.jar                                      bundle         epl1      
-org.eclipse.equinox.app_1.3.100.v20120522-1841.jar                              bundle         epl1      
-org.eclipse.equinox.common_3.6.100.v20120522-1841.jar                           bundle         epl1      
-org.eclipse.equinox.concurrent_1.0.300.v20120522-2049.jar                       bundle         epl1      
-org.eclipse.equinox.console_1.0.0.v20120522-1841.jar                            bundle         epl1      
-org.eclipse.equinox.ds_1.4.0.v20120522-1841.jar                                 bundle         epl1      
-org.eclipse.equinox.frameworkadmin.equinox_1.0.400.v20120428-0117.jar           bundle         epl1      
-org.eclipse.equinox.frameworkadmin_2.0.100.v20120606-175127.jar                 bundle         epl1      
-org.eclipse.equinox.http.helper_1.1.0.wso2v1.jar                                bundle         epl1      
-org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar                     bundle         epl1      
-org.eclipse.equinox.jsp.jasper_1.0.400.v20120522-2049.jar                       bundle         epl1      
-org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar                           bundle         epl1      
-org.eclipse.equinox.p2.artifact.repository_1.1.100.v20110519.jar                bundle         epl1      
-org.eclipse.equinox.p2.console_1.0.300.v20110502-1955.jar                       bundle         epl1      
-org.eclipse.equinox.p2.core_2.1.0.v20110502-1955.jar                            bundle         epl1      
-org.eclipse.equinox.p2.director.app_1.0.300.v20110505.jar                       bundle         epl1      
-org.eclipse.equinox.p2.directorywatcher_1.0.300.v20110502-1955.jar              bundle         epl1      
-org.eclipse.equinox.p2.director_2.1.0.v20110504-1715.jar                        bundle         epl1      
-org.eclipse.equinox.p2.engine_2.1.0.v20110511.jar                               bundle         epl1      
-org.eclipse.equinox.p2.extensionlocation_1.2.100.v20110510.jar                  bundle         epl1      
-org.eclipse.equinox.p2.garbagecollector_1.0.200.v20110510.jar                   bundle         epl1      
-org.eclipse.equinox.p2.jarprocessor_1.0.200.v20110502-1955.jar                  bundle         epl1      
-org.eclipse.equinox.p2.metadata.repository_1.2.0.v20110511-1359.jar             bundle         epl1      
-org.eclipse.equinox.p2.metadata_2.1.0.v20110510.jar                             bundle         epl1      
-org.eclipse.equinox.p2.publisher_1.2.0.v20110511.jar                            bundle         epl1      
-org.eclipse.equinox.p2.repository.tools_2.0.100.v20110512-1320.jar              bundle         epl1      
-org.eclipse.equinox.p2.repository_2.1.0.v20110601.jar                           bundle         epl1      
-org.eclipse.equinox.p2.touchpoint.eclipse_2.1.0.v20110511-wso2v1.jar            bundle         epl1      
-org.eclipse.equinox.p2.touchpoint.natives_1.0.300.v20110502-1955.jar            bundle         epl1      
-org.eclipse.equinox.p2.transport.ecf_1.0.100.v20110902-0807.jar                 bundle         epl1      
-org.eclipse.equinox.p2.updatechecker_1.1.200.v20110502-1955.jar                 bundle         epl1      
-org.eclipse.equinox.p2.updatesite_1.0.300.v20110510.jar                         bundle         epl1      
-org.eclipse.equinox.preferences_3.5.0.v20120522-1841.jar                        bundle         epl1      
-org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar                         bundle         epl1      
-org.eclipse.equinox.security_1.1.100.v20120522-1841.jar                         bundle         epl1      
-org.eclipse.equinox.simpleconfigurator.manipulator_2.0.0.v20110808-1657.jar     bundle         epl1      
-org.eclipse.equinox.simpleconfigurator_1.0.301.v20120828-033635.jar             bundle         epl1      
-org.eclipse.equinox.util_1.0.400.v20120522-2049.jar                             bundle         epl1      
-org.eclipse.osgi.services_3.3.100.v20120522-1822.jar                            bundle         epl1      
-org.eclipse.osgi_3.8.1.v20120830-144521.jar                                     bundle         epl1      
-org.jboss.netty_3.3.0.Final.jar                                                 bundle         apache2   
-org.sat4j.core_2.3.0.v20110329.jar                                              bundle         epl1      
-org.sat4j.pb_2.3.0.v20110329.jar                                                bundle         epl1      
-org.wso2.carbon.activation_2.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.addressing_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.andes.admin_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.andes.authentication_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.andes.authorization_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.andes.cluster.mgt.ui_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.andes.cluster.mgt_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.andes.commons_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.andes.core_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.andes.stub_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.andes.ui_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.andes_4.1.0.jar                                                 bundle         apache2   
-org.wso2.carbon.apache.jasper.fragment_4.1.0.jar                                bundle         apache2   
-org.wso2.carbon.application.deployer_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.application.upload_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.authenticator.proxy_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.authenticator.stub_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.base_4.1.0.jar                                                  bundle         apache2   
-org.wso2.carbon.bootstrap-4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.bridge-4.1.0.jar                                                bundle         apache2   
-org.wso2.carbon.caching.core_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.caching_4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.captcha.mgt_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.cartridge.messages_2.1.1.jar                                    bundle         apache2   
-org.wso2.carbon.cassandra.server_4.1.1.jar                                      bundle         apache2   
-org.wso2.carbon.cassandra.sharedkey_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.cluster.mgt.core_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.coordination.common_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.coordination.core_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.coordination.server_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.core.bootup.validator_4.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.core.commons.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.core.common_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.core.services_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.core_4.1.0.jar                                                  bundle         apache2   
-org.wso2.carbon.databridge.agent.thrift_4.1.0.jar                               bundle         apache2   
-org.wso2.carbon.databridge.commons.thrift_4.1.0.jar                             bundle         apache2   
-org.wso2.carbon.databridge.commons_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.datasource_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.ec2-client_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.endpoint_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.event.admin_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.event.client-4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.event.client.stub-4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.event.client.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.event.client_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.event.common_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.event.core_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.event.ws_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.feature.mgt.core_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.feature.mgt.services_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.feature.mgt.stub_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.feature.mgt.ui_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.framework.exporter_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.google.analytics.ui_2.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.http.bridge-4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.i18n_4.1.0.jar                                                  bundle         apache2   
-org.wso2.carbon.identity.authentication_4.1.0.jar                               bundle         apache2   
-org.wso2.carbon.identity.authenticator.saml2.sso.common_4.1.0.jar               bundle         apache2   
-org.wso2.carbon.identity.authenticator.saml2.sso.stub_4.1.0.jar                 bundle         apache2   
-org.wso2.carbon.identity.authenticator.saml2.sso.ui_4.1.0.jar                   bundle         apache2   
-org.wso2.carbon.identity.authenticator.saml2.sso_4.1.0.jar                      bundle         apache2   
-org.wso2.carbon.identity.sso.saml.stub_4.1.0.jar                                bundle         apache2   
-org.wso2.carbon.jasper.patch_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.java2wsdl.ui_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.java2wsdl_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.keystore.mgt_2.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.lb.common_4.1.3.jar                                             bundle         apache2   
-org.wso2.carbon.load.balance.agent_2.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.logging-4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.logging.admin.stub_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.logging.admin.ui_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.logging.service_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.logging.view.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.logging.view.ui_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.logging_4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.mediation.dependency.mgt_4.1.0.jar                              bundle         apache2   
-org.wso2.carbon.mediation.initializer.ui_4.1.0.jar                              bundle         apache2   
-org.wso2.carbon.mediation.initializer_4.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.mediation.registry_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.mediator.clazz.services_4.1.0.jar                               bundle         apache2   
-org.wso2.carbon.mediator.command.services_4.1.0.jar                             bundle         apache2   
-org.wso2.carbon.mediator.event_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.mediator.fastXSLT_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.mediator.router.impl_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.mex_4.1.0.jar                                                   bundle         apache2   
-org.wso2.carbon.module.mgt_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.ndatasource.common_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.ndatasource.core_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.ndatasource.rdbms_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.ntask.common_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.ntask.core_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.ntask.solutions_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.operation.mgt_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.osgi.security_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.qpid.stub_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.queuing_4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.redirector.servlet.stub_4.1.0.jar                               bundle         apache2   
-org.wso2.carbon.redirector.servlet.ui_2.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.redirector.servlet_2.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.registry.admin.api_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.registry.api_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.registry.common.ui_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.registry.common_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.registry.core_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.registry.properties.stub_4.1.0.jar                              bundle         apache2   
-org.wso2.carbon.registry.properties.ui_4.1.0.jar                                bundle         apache2   
-org.wso2.carbon.registry.properties_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.registry.resource.stub_4.1.0.jar                                bundle         apache2   
-org.wso2.carbon.registry.resource.ui_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.registry.resource_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.registry.search.stub_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.registry.search.ui_4.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.registry.search_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.registry.server_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.registry.servlet_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.relay.mediators.builder_4.1.0.jar                               bundle         apache2   
-org.wso2.carbon.relay.module_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.relay_4.1.0.jar                                                 bundle         apache2   
-org.wso2.carbon.remote-tasks.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.rm_4.1.0.jar                                                    bundle         apache2   
-org.wso2.carbon.roles.mgt.stub_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.roles.mgt.ui_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.roles.mgt_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.sample.installer_2.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.securevault_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.security.mgt_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.sequences.common_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.sequences_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.server-4.1.0.jar                                                bundle         apache2   
-org.wso2.carbon.server.admin.common_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.server.admin.stub_4.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.server.admin.ui_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.server.admin_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.service.mgt_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.servletbridge-4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.sso.redirector.ui_2.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.startup_4.1.0.jar                                               bundle         apache2   
-org.wso2.carbon.statistics.stub_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.statistics.transport.stub_4.1.0.jar                             bundle         apache2   
-org.wso2.carbon.statistics.transport.ui_4.1.0.jar                               bundle         apache2   
-org.wso2.carbon.statistics.transport_4.1.0.jar                                  bundle         apache2   
-org.wso2.carbon.statistics.ui_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.statistics_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.stratos.cloud.controller_2.1.3.jar                              bundle         apache2   
-org.wso2.carbon.stratos.common.stub_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.stratos.common_2.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.stratos.deployment_2.1.0.jar                                    bundle         apache2   
-org.wso2.carbon.stratos.landing.page.deployer_2.1.0.jar                         bundle         apache2   
-org.wso2.carbon.task.services_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.task_4.1.0.jar                                                  bundle         apache2   
-org.wso2.carbon.tenant.dispatcher_2.1.0.jar                                     bundle         apache2   
-org.wso2.carbon.tenant.mgt.core_2.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.tenant.mgt.stub_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.tenant.mgt.ui_2.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.tenant.mgt_2.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.theme.mgt_2.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.throttle_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.throttling.agent.stub_4.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.throttling.agent_2.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.tomcat.ext_4.1.0.jar                                            bundle         apache2   
-org.wso2.carbon.tomcat.fragment.dummy_4.1.0.jar                                 bundle         apache2   
-org.wso2.carbon.tomcat.patch_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.tomcat_4.1.0.jar                                                bundle         apache2   
-org.wso2.carbon.tools.wsdlvalidator.ui_4.1.0.jar                                bundle         apache2   
-org.wso2.carbon.tools.wsdlvalidator_4.1.0.jar                                   bundle         apache2   
-org.wso2.carbon.tracer.stub_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.tracer.ui_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.tracer_4.1.0.jar                                                bundle         apache2   
-org.wso2.carbon.transport.https_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.transport.http_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.transport.local_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.transport.mgt_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.transport.nhttp_4.1.1.jar                                       bundle         apache2   
-org.wso2.carbon.transports.passthru_1.0.2.jar                                   bundle         apache2   
-org.wso2.carbon.tryit.ui_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.tryit_4.1.0.jar                                                 bundle         apache2   
-org.wso2.carbon.ui.menu.general_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.ui.menu.registry_4.1.0.jar                                      bundle         apache2   
-org.wso2.carbon.ui.menu.tools_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.ui_4.1.0.jar                                                    bundle         apache2   
-org.wso2.carbon.um.ws.service_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.usage.agent_2.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.user.api_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.user.core_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.user.mgt.common_4.1.0.jar                                       bundle         apache2   
-org.wso2.carbon.user.mgt.stub_4.1.0.jar                                         bundle         apache2   
-org.wso2.carbon.user.mgt.ui_4.1.0.jar                                           bundle         apache2   
-org.wso2.carbon.user.mgt_4.1.0.jar                                              bundle         apache2   
-org.wso2.carbon.utils_4.1.0.jar                                                 bundle         apache2   
-org.wso2.carbon.viewflows.stub_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.viewflows.ui_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.viewflows_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.wsdl2code.stub_4.1.0.jar                                        bundle         apache2   
-org.wso2.carbon.wsdl2code.ui_4.1.0.jar                                          bundle         apache2   
-org.wso2.carbon.wsdl2code_4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.wsdl2form-4.1.0.jar                                             bundle         apache2   
-org.wso2.carbon.xfer_4.1.0.jar                                                  bundle         apache2   
-org.wso2.ciphertool-1.0.0-wso2v2.jar                                            bundle         apache2   
-org.wso2.securevault_1.0.0.wso2v2.jar                                           bundle         apache2   
-pdepublishing-ant.jar                                                           jar            epl1      
-pdepublishing.jar                                                               jar            epl1      
-perf4j_0.9.12.wso2v1.jar                                                        bundle         apache2   
-poi-ooxml_3.5.0.wso2v1.jar                                                      bundle         apache2   
-poi-scratchpad_3.5.0.wso2v1.jar                                                 bundle         apache2   
-poi_3.5.0.wso2v1.jar                                                            bundle         apache2   
-quartz_2.1.1.wso2v1.jar                                                         bundle         apache2   
-rampart-1.6.1-wso2v4.mar                                                        bundle         apache2   
-rampart-core_1.6.1.wso2v8.jar                                                   bundle         apache2   
-rampart-policy_1.6.1.wso2v8.jar                                                 bundle         apache2   
-rampart-trust_1.6.1.wso2v8.jar                                                  bundle         apache2   
-rocoto_6.1.0.wso2v1.jar                                                         bundle         apache2   
-rome-1.0.jar                                                                    jarinbundle    unknown   
-sanselan-0.97-incubator.jar                                                     jarinbundle    unknown   
-saxon_8.9.0.wso2v1.jar                                                          bundle         mpl10     
-shindig-common-r910768-wso2v5.jar                                               jarinbundle    apache2   
-shindig-features-r910768-wso2v5.jar                                             jarinbundle    apache2   
-shindig-gadgets-r910768-wso2v5.jar                                              jarinbundle    apache2   
-shindig-social-api-r910768-wso2v5.jar                                           jarinbundle    apache2   
-shindig_1.1.0.wso2v6.jar                                                        bundle         apache2   
-slf4j-1.5.10.wso2v1.jar                                                         bundle         apache2   
-slf4j.api_1.6.4.jar                                                             bundle         mit       
-slf4j.log4j12_1.6.4.jar                                                         bundle         mit       
-snakeyaml_1.6.0.wso2v1.jar                                                      bundle         apache2   
-snappy-java_1.0.4.1_wso2v1.jar                                                  bundle         apache2   
-snaptree_0.1.0.wso2v1.jar                                                       bundle         snaptree  
-spring.framework_3.1.0.wso2v1.jar                                               bundle         apache2   
-synapse-commons_2.1.1.wso2v4.jar                                                bundle         apache2   
-synapse-core_2.1.1.wso2v4.jar                                                   bundle         apache2   
-synapse-extensions_2.1.1.wso2v4.jar                                             bundle         apache2   
-synapse-nhttp-transport_2.1.1.wso2v4.jar                                        bundle         apache2   
-synapse-samples_2.1.1.wso2v4.jar                                                bundle         apache2   
-synapse-tasks_2.1.1.wso2v4.jar                                                  bundle         apache2   
-tcpmon-1.0.jar                                                                  jar            apache2   
-tiles-jsp_2.0.5.wso2v1.jar                                                      bundle         apache2   
-tomcat-ha_7.0.34.wso2v1.jar                                                     bundle         apache2   
-tomcat-juli-7.0.34.jar                                                          jar            apache2   
-tomcat_7.0.34.wso2v1.jar                                                        bundle         apache2   
-tribes_7.0.28.wso2v1.jar                                                        bundle         apache2   
-uddi4j-1.0.1.jar                                                                jarinbundle    ibmpl     
-vcloud_1.6.0.wso2v1.jar                                                         bundle         apache2   
-woden_1.0.0.M8-wso2v1.jar                                                       bundle         apache2   
-wsdl-validator_1.2.0.wso2v1.jar                                                 bundle         apache2   
-wsdl4j_1.6.2.wso2v4.jar                                                         bundle         cpl1      
-wss4j_1.5.11.wso2v5.jar                                                         bundle         apache2   
-wstx-1.0.7.jar                                                                  jarinbundle    unknown   
-xalan-2.7.1.wso2v1.jar                                                          bundle         apache2   
-xercesImpl-2.8.1.wso2v2.jar                                                     bundle         apache2   
-xercesImpl-2.9.1.jar                                                            jarinbundle    unknown   
-xkms_2.4.0.wso2v1.jar                                                           bundle         apache2   
-xml-apis-1.3.04.jar                                                             jarinbundle    unknown   
-xml-apis-1.3.04.wso2v2.jar                                                      bundle         apache2   
-xmlbeans-2.3.0.jar                                                              jarinbundle    apache2   
-xmlbeans_2.3.0.wso2v1.jar                                                       bundle         apache2   
-xmlParserAPIs-2.6.2.jar                                                         jarinbundle    unknown   
-XmlSchema_1.4.7.wso2v2.jar                                                      bundle         apache2   
-xmltooling-1.3.1.jar                                                            jarinbundle    apache2   
-xpp3_min-1.1.4c.jar                                                             jarinbundle    unknown   
-xstream-1.3.1.jar                                                               jarinbundle    unknown   
-
-
-
-The license types used by the above libraries and their information is given below:
-
-epl1           Eclipse Public License
-               http://www.eclipse.org/legal/epl-v10.html
-ibmpl          IBM Public License 1.0
-               http://www.ibm.com/developerworks/library/os-ipl.html
-lgpl2          Lesser GPL v2.1
-               http://www.opensource.org/licenses/lgpl-2.1.php
-mpl11          Mozilla Public License 1.1
-               http://www.mozilla.org/MPL/MPL-1.1.html
-mpl10          Mozilla Public License 1.0
-               http://www.mozilla.org/MPL/
-mit            MIT License
-               http://www.opensource.org/licenses/mit-license.php
-unknown        
-               unknown
-cddl1          Common Development and Distribution License
-               http://www.opensource.org/licenses/cddl1.php
-cddl+gpl       CDDL + GPLv2
-               https://glassfish.dev.java.net/public/CDDL+GPL.html
-cpl1           Common Public License 1.0
-               http://www.eclipse.org/legal/cpl-v10.html
-json           JSON.org License
-               null
-jsmon          ThoughtWorks Javasysmon License
-               https://github.com/jezhumble/javasysmon/blob/master/LICENSE
-jdom           JDOM License - Apache Styled
-               null
-apache2        Apache License Version 2.0
-               http://www.apache.org/licenses/LICENSE-2.0.html
-icu            ICU License
-               http://source.icu-project.org/repos/icu/icu/trunk/license.html
-bsd            Berkeley License
-               http://www.opensource.org/licenses/bsd-license.php
-bouncy         Bouncy Castle License
-               http://www.bouncycastle.org/licence.html
-public         Public Domain
-               http://creativecommons.org/licenses/publicdomain/
-snaptree       Snaptree License
-               https://raw.github.com/nbronson/snaptree/b198f84b0c927f6b5cdef080552fc26aa004d3ee/doc/LICENSE

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/README.txt
----------------------------------------------------------------------
diff --git a/products/cloud_controller/README.txt b/products/cloud_controller/README.txt
deleted file mode 100644
index ae70465..0000000
--- a/products/cloud_controller/README.txt
+++ /dev/null
@@ -1,220 +0,0 @@
-================================================================================
-                        Apache Stratos Cloud Controller 3.0.0-SNAPSHOT
-================================================================================
-
-Welcome to the Apache Stratos CC 3.0.0-SNAPSHOT release.
-
-Apache Stratos Cloud Controller plays a vital role in Stratos 2.0 and is open source and freely
-distributed. Apache Stratos CC is available under the Apache Software License v2.0.
-
-This is based on the revolutionary WSO2 Carbon [Middleware a' la carte]
-framework. All the major features have been developed as pluggable Carbon
-components.
-
-Apache Stratos CC leverages the jclouds (http://jclouds.incubator.apache.org/) APIs and provides
-a generic layer to communicate with different IaaSes. 
-
-Key Features of Apache Stratos CC
-========================
-
- * It acts as a bridge between application level and Infrastructure as a Service (IaaS) level via jclouds API.
-
- * It enables your system to scale across multiple IaaS providers.
-
- * It is the central location where the service topology resides.
-
- * It is responsible for periodically sharing up-to-date service topology among other Stratos 2.0 core services.
-
- * It supports hot updates and deployment of its configuration files.
-
- * It has inbuilt support for ,
-
-        AWS EC2 IaaS provider
-
-        Openstack Nova IaaS provider
-
-        VMWare vCloud provider.
-
- * It enables you to cloud burst your system across multiple IaaS providers.
-
- * It allows you to easily plug an implementation of any IaaS provider support by jclouds.
-
- * It enables you to spawn new service instances, while associating a public IP automatically, to reduce the instance boot-up time.
-
- * It enables you to terminate an already started instance of a particular service cluster.
-
- * It can be configured to cover many scenarios, using it's well-thought-out configuration files.
-
-
-
-System Requirements
-=======================
-1. Minimum memory - 1.5GB
-2. Processor      - Pentium 800MHz or equivalent at minimum
-3. Java SE Development Kit 1.6.24 or higher
-4. The Management Console requires you to enable Javascript of the Web browser,
-   with MS IE 7. In addition to JavaScript, ActiveX should also be enabled
-   with IE. This can be achieved by setting your security level to
-   medium or lower.
-5. To compile and run the sample clients, an Ant version is required. Ant 1.7.0
-   version is recommended
-6. To build Apache Stratos CC from the Source distribution, it is necessary that you have
-   JDK 1.6.24 version and Maven 3.0.4 or later
-
-
-For more details see
-    http://docs.wso2.org/wiki/display/Carbon401/Installation+Prerequisites
-
-Installation & Running
-==================================
-
-1. Extract the apache-stratos-cc-3.0.0-SNAPSHOT.zip and go to the extracted directory
-2. Run the stratos.sh or stratos.bat as appropriate
-3. Point your favourite browser to
-
-    https://localhost:9443/carbon
-
-4. Use the following username and password to login
-
-    username : admin
-    password : admin
-
-   
-
-Apache Stratos CC 3.0.0-SNAPSHOT distribution directory structure
-=============================================
-
-	CARBON_HOME
-		|-- bin <folder>
-		|-- dbscripts <folder>
-		|-- client-lib <folder>
-		|-- lib <folder>
-		|-- repository <folder>
-		|   |-- components <folder>
-		|   |-- conf <folder>
-		|       |-- Advanced <folder>
-		|   |-- database <folder>
-		|   |-- deployment <folder>
-			|-- server <folder>
-			    |-- cartridges <folder>
-			    |-- services <folder>		
-		|   |-- logs <folder>
-		|   |-- resources <folder>
-		|       |-- security <folder>
-		|-- tmp <folder>
-		|-- LICENSE.txt <file>
-		|-- INSTALL.txt <file>
-		|-- README.txt <file>
-		`-- release-notes.html <file>
-
-    - bin
-	  Contains various scripts .sh & .bat scripts
-
-    - dbscripts
-      Contains the SQL scripts for setting up the database on a variety of
-      Database Management Systems, including H2, Derby, MSSQL, MySQL abd
-      Oracle.
-
-    - client-lib
-      Contains required libraries for JMS,Event Clients
-
-    - lib
-      Contains the basic set of libraries required to start-up  Apache Stratos CC
-      in standalone mode
-
-    - repository
-      The repository where cartridges and services are deployed in Apache Stratos CC.
-
-        - components
-          Contains OSGi bundles and configurations
-      
-        - conf
-          Contains configuration files
-
-          -Advanced
-              Contains advanced configurations.
-         
-        - database
-          Contains the database
-
-        - deployment
-          Contains Axis2 deployment details
-          
-        - logs
-          Contains all log files created during execution
-
-        - tenants
-          Contains tenant details
-
-    - resources
-      Contains additional resources that may be required
-
-        - security
-          Contains security resources
-          
-    - tmp
-      Used for storing temporary files, and is pointed to by the
-      java.io.tmpdir System property
-
-    - LICENSE.txt
-      Apache License 2.0 under which Apache Stratos CC is distributed.
-
-    - README.txt
-      This document.
-
-    - INSTALL.txt
-      This document will contain information on installing Apache Stratos CC
-
-
-Support
-==================================
-
-Any problem with this release can be reported to Apache Stratos mailing list
-or in the JIRA issue tracker. If you are sending an email to the mailing
-list make sure to add the [Apache Stratos] prefix to the subject.
-
-Mailing list subscription:
-    dev-subscribe@stratos.incubator.apache.org
-
-
-Issue Tracker
-==================================
-
-Jira:
-    https://issues.apache.org/jira/browse/stratos
-
-
-Crypto Notice
-==================================
-
-   This distribution includes cryptographic software.  The country in
-   which you currently reside may have restrictions on the import,
-   possession, use, and/or re-export to another country, of
-   encryption software.  BEFORE using any encryption software, please
-   check your country's laws, regulations and policies concerning the
-   import, possession, or use, and re-export of encryption software, to
-   see if this is permitted.  See <http://www.wassenaar.org/> for more
-   information.
-
-   The U.S. Government Department of Commerce, Bureau of Industry and
-   Security (BIS), has classified this software as Export Commodity
-   Control Number (ECCN) 5D002.C.1, which includes information security
-   software using or performing cryptographic functions with asymmetric
-   algorithms.  The form and manner of this Apache Software Foundation
-   distribution makes it eligible for export under the License Exception
-   ENC Technology Software Unrestricted (TSU) exception (see the BIS
-   Export Administration Regulations, Section 740.13) for both object
-   code and source code.
-
-   The following provides more details on the included cryptographic
-   software:
-
-   Apache Rampart   : http://ws.apache.org/rampart/
-   Apache WSS4J     : http://ws.apache.org/wss4j/
-   Apache Santuario : http://santuario.apache.org/
-   Bouncycastle     : http://www.bouncycastle.org/
-
-
-Thank you for using Apache Stratos!
-The Stratos Team.
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/css/mb-docs.css
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/css/mb-docs.css b/products/cloud_controller/docs/resources/css/mb-docs.css
deleted file mode 100644
index ef45164..0000000
--- a/products/cloud_controller/docs/resources/css/mb-docs.css
+++ /dev/null
@@ -1,173 +0,0 @@
-body {
-    color: #000;
-    font-size: 11px;
-    font-family: Verdana, Arial, Helvetica, sans-serif;
-    background-image: url( ../images/mb-docs-bg.gif );
-    background-repeat: repeat-x;
-    background-attachment: scroll;
-    background-position: left top;
-    text-decoration: none;
-    text-align: left;
-    padding: 0px;
-    list-style-type: square;
-    list-style-position: outside;
-}
-
-div#banner {
-	background-image: url(../images/mb-docs-header.gif);
-	background-repeat: no-repeat;
-	background-position: left top;
-	height: 38px;
-	padding-top: 30px;
-	padding-left: 265px;
-	border-bottom: 0px;
-}
-
-div#banner	span#bannerLeft {
-	font-size: 180%;
-	color: #A80063;
-}
-
-div#breadcrumbs {
-	background-color: transparent;
-	border-top: solid 0px;
-	border-bottom: solid 0px;
-	height: 23px;
-	padding-top: 5px;
-	padding-left: 20px;
-	padding-right: 20px;
-}
-
-div#leftColumn {
-	margin-left: 0px;
-	margin-top: 0px;
-	border-top: 0px;
-	background-color: #F7F7F7;
-	border-left: solid 0px;
-	border-right: solid 1px #A80063;
-	border-bottom: solid 1px #A80063;
-}
-
-div#leftColumn div#navcolumn {
-	padding-left: 20px;
-	padding-right: 20px;
-	padding-top: 15px;
-	background-color: #F7F7F7;
-}
-
-
-div#contentBox {
-	margin-top: 10px;
-	margin-bottom: 15px;
-	font-size: 12px;
-}
-
-div#navcolumn h5 {
-	margin-bottom: 2px;
-	padding-bottom: 2px;
-	border-bottom: solid 1px #A80063;
-	font-size: 110%;
-}
-
-#navcolumn li {
-	padding-top: 2px;
-	padding-bottom: 2px;
-}
-
-p {
-}
-
-td {
-    background-color: #f8f8f8;
-    padding: 3px 5px;
-    outline-color: gray;
-    outline-width: 0;
-}
-
-a:link {
-    color: #36c;
-}
-
-a:visited {
-}
-
-a:hover {
-    color: #7f7f7f;
-}
-
-a:active {
-}
-
-body, td, select, input, li  {
-	line-height: 18px;
-}
-
-h1 {
-    color: #333;
-    font-size: 18px;
-    font-weight: bold;
-    font-style: normal;
-    line-height: normal;
-    background-image: none;
-    background-repeat: no-repeat;
-    background-attachment: scroll;
-    background-position: left top;
-    text-decoration: none;
-    height: 30px;
-    padding-bottom: 2px;
-    border-bottom: 1px solid #A80063;
-}
-
-h2 {
-    color: black;
-    font-size: 15px;
-    font-weight: bold;
-    line-height: 24px;
-    border-bottom: 0px;
-    border-left: solid 1px #ccc;
-    border-right: solid 1px #ccc;
-    border-top: 0px;
-    background-color: #B5B5B5;
-    padding-left: 5px;
-    padding-top: 0px;
-    padding-bottom: 0px; 
-    color: #fff;
-}
-
-h3 {
-    color: #3a3a3a;
-    font-size: 12px;
-    font-weight: bold;
-    padding-top: 10px;
-    padding-bottom: 4px;
-    padding-left: 10px;
-    border-left: 0px;
-    border-right: 0px;
-    border-top: 0px;
-    border-bottom: 1px solid #ccc;
-    background-image: url(../images/table-header.gif);
-    background-position: left bottom;
-    background-repeat: repeat-x;
-    background-color: transparent;
-}
-
-table {
-    background-color: #cbcbcb;
-    margin: 0;
-    padding: 1px;
-    border-style: solid;
-    border-width: 0;
-}
-
-th {
-    padding-left: 5px;
-}
-
-img {
-    background-color: gray;
-    padding: 1px;
-}
-div#footer {
-	background-color: #ccc;
-	padding-right: 20px;
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/Deployment_Diagram.jpg
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/Deployment_Diagram.jpg b/products/cloud_controller/docs/resources/images/Deployment_Diagram.jpg
deleted file mode 100644
index 147d881..0000000
Binary files a/products/cloud_controller/docs/resources/images/Deployment_Diagram.jpg and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/Login.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/Login.png b/products/cloud_controller/docs/resources/images/Login.png
deleted file mode 100644
index 4cc00c2..0000000
Binary files a/products/cloud_controller/docs/resources/images/Login.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/MessageFlowDiagram.jpg
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/MessageFlowDiagram.jpg b/products/cloud_controller/docs/resources/images/MessageFlowDiagram.jpg
deleted file mode 100644
index 13c1aba..0000000
Binary files a/products/cloud_controller/docs/resources/images/MessageFlowDiagram.jpg and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/MessageQueue.jpg
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/MessageQueue.jpg b/products/cloud_controller/docs/resources/images/MessageQueue.jpg
deleted file mode 100644
index e790a89..0000000
Binary files a/products/cloud_controller/docs/resources/images/MessageQueue.jpg and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/addMessage.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/addMessage.png b/products/cloud_controller/docs/resources/images/addMessage.png
deleted file mode 100644
index 1697d67..0000000
Binary files a/products/cloud_controller/docs/resources/images/addMessage.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/addPermission.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/addPermission.png b/products/cloud_controller/docs/resources/images/addPermission.png
deleted file mode 100644
index 3c9ec93..0000000
Binary files a/products/cloud_controller/docs/resources/images/addPermission.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/cluster_scenario_01.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/cluster_scenario_01.png b/products/cloud_controller/docs/resources/images/cluster_scenario_01.png
deleted file mode 100644
index 7c29a1e..0000000
Binary files a/products/cloud_controller/docs/resources/images/cluster_scenario_01.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/cluster_scenario_02.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/cluster_scenario_02.png b/products/cloud_controller/docs/resources/images/cluster_scenario_02.png
deleted file mode 100644
index 6c8c003..0000000
Binary files a/products/cloud_controller/docs/resources/images/cluster_scenario_02.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/cluster_scenario_03.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/cluster_scenario_03.png b/products/cloud_controller/docs/resources/images/cluster_scenario_03.png
deleted file mode 100644
index 0db2694..0000000
Binary files a/products/cloud_controller/docs/resources/images/cluster_scenario_03.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/cluster_scenario_04.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/cluster_scenario_04.png b/products/cloud_controller/docs/resources/images/cluster_scenario_04.png
deleted file mode 100644
index 1919328..0000000
Binary files a/products/cloud_controller/docs/resources/images/cluster_scenario_04.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/cluster_scenario_05.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/cluster_scenario_05.png b/products/cloud_controller/docs/resources/images/cluster_scenario_05.png
deleted file mode 100644
index cdd84ca..0000000
Binary files a/products/cloud_controller/docs/resources/images/cluster_scenario_05.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/createMB.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/createMB.png b/products/cloud_controller/docs/resources/images/createMB.png
deleted file mode 100644
index abbf81b..0000000
Binary files a/products/cloud_controller/docs/resources/images/createMB.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/listMessageBoxes.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/listMessageBoxes.png b/products/cloud_controller/docs/resources/images/listMessageBoxes.png
deleted file mode 100644
index ce9332e..0000000
Binary files a/products/cloud_controller/docs/resources/images/listMessageBoxes.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/logs.PNG
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/logs.PNG b/products/cloud_controller/docs/resources/images/logs.PNG
deleted file mode 100644
index 9204327..0000000
Binary files a/products/cloud_controller/docs/resources/images/logs.PNG and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/mb-docs-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/mb-docs-bg.gif b/products/cloud_controller/docs/resources/images/mb-docs-bg.gif
deleted file mode 100644
index 9dee07b..0000000
Binary files a/products/cloud_controller/docs/resources/images/mb-docs-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/mb-docs-header.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/mb-docs-header.gif b/products/cloud_controller/docs/resources/images/mb-docs-header.gif
deleted file mode 100644
index aabe107..0000000
Binary files a/products/cloud_controller/docs/resources/images/mb-docs-header.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/retrieveMessage.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/retrieveMessage.png b/products/cloud_controller/docs/resources/images/retrieveMessage.png
deleted file mode 100644
index e6de6b2..0000000
Binary files a/products/cloud_controller/docs/resources/images/retrieveMessage.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/set-java-home.jpg
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/set-java-home.jpg b/products/cloud_controller/docs/resources/images/set-java-home.jpg
deleted file mode 100755
index d23d544..0000000
Binary files a/products/cloud_controller/docs/resources/images/set-java-home.jpg and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/state1_esper.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/state1_esper.png b/products/cloud_controller/docs/resources/images/state1_esper.png
deleted file mode 100644
index a2b7984..0000000
Binary files a/products/cloud_controller/docs/resources/images/state1_esper.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/storeConfig.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/storeConfig.png b/products/cloud_controller/docs/resources/images/storeConfig.png
deleted file mode 100644
index ebd4ab1..0000000
Binary files a/products/cloud_controller/docs/resources/images/storeConfig.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/table-header.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/table-header.gif b/products/cloud_controller/docs/resources/images/table-header.gif
deleted file mode 100644
index 92283f0..0000000
Binary files a/products/cloud_controller/docs/resources/images/table-header.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/topicBrowser.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/topicBrowser.png b/products/cloud_controller/docs/resources/images/topicBrowser.png
deleted file mode 100644
index e7512d1..0000000
Binary files a/products/cloud_controller/docs/resources/images/topicBrowser.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/topic_AddTopicFromDetails.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/topic_AddTopicFromDetails.png b/products/cloud_controller/docs/resources/images/topic_AddTopicFromDetails.png
deleted file mode 100644
index 6104538..0000000
Binary files a/products/cloud_controller/docs/resources/images/topic_AddTopicFromDetails.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/topic_add.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/topic_add.png b/products/cloud_controller/docs/resources/images/topic_add.png
deleted file mode 100644
index 94a22e2..0000000
Binary files a/products/cloud_controller/docs/resources/images/topic_add.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/topic_addSubscription.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/topic_addSubscription.png b/products/cloud_controller/docs/resources/images/topic_addSubscription.png
deleted file mode 100644
index 276710c..0000000
Binary files a/products/cloud_controller/docs/resources/images/topic_addSubscription.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/topic_browser.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/topic_browser.png b/products/cloud_controller/docs/resources/images/topic_browser.png
deleted file mode 100644
index 2d113f5..0000000
Binary files a/products/cloud_controller/docs/resources/images/topic_browser.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/topic_browser_clicked.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/topic_browser_clicked.png b/products/cloud_controller/docs/resources/images/topic_browser_clicked.png
deleted file mode 100644
index 7388a28..0000000
Binary files a/products/cloud_controller/docs/resources/images/topic_browser_clicked.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/topic_details.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/topic_details.png b/products/cloud_controller/docs/resources/images/topic_details.png
deleted file mode 100644
index 1933f29..0000000
Binary files a/products/cloud_controller/docs/resources/images/topic_details.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/topic_subscriptionDetails.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/topic_subscriptionDetails.png b/products/cloud_controller/docs/resources/images/topic_subscriptionDetails.png
deleted file mode 100644
index c3c5f82..0000000
Binary files a/products/cloud_controller/docs/resources/images/topic_subscriptionDetails.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/topic_updatePermissions.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/topic_updatePermissions.png b/products/cloud_controller/docs/resources/images/topic_updatePermissions.png
deleted file mode 100644
index aaa6aaf..0000000
Binary files a/products/cloud_controller/docs/resources/images/topic_updatePermissions.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/user-mgt.PNG
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/user-mgt.PNG b/products/cloud_controller/docs/resources/images/user-mgt.PNG
deleted file mode 100644
index 63a5dc8..0000000
Binary files a/products/cloud_controller/docs/resources/images/user-mgt.PNG and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/userguide_state_1.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/userguide_state_1.png b/products/cloud_controller/docs/resources/images/userguide_state_1.png
deleted file mode 100644
index 3f81b02..0000000
Binary files a/products/cloud_controller/docs/resources/images/userguide_state_1.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/resources/images/zookeeperConfig.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/resources/images/zookeeperConfig.png b/products/cloud_controller/docs/resources/images/zookeeperConfig.png
deleted file mode 100644
index 42f707c..0000000
Binary files a/products/cloud_controller/docs/resources/images/zookeeperConfig.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/site.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/site.xml b/products/cloud_controller/docs/site.xml
deleted file mode 100644
index 789268b..0000000
--- a/products/cloud_controller/docs/site.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<project name="WSO2 Message Broker">
-
-    <skin>
-        <groupId>org.apache.maven.skins</groupId>
-        <artifactId>maven-default-skin</artifactId>
-        <version>1.0</version>
-    </skin>
-
-    <body>
-        <links>
-            <item name="WSO2.org" href="http://www.wso2.org/"/>
-        </links>
-
-        <menu name="Overview">
-            <item name="Home" href="index.html"/>
-            <item name="Release Note" href="release-notes.html"/>
-            <item name="License"
-                  href="http://www.apache.org/licenses/LICENSE-2.0.html"/>
-            <item name="Contents" href="docs_index.html"/>
-        </menu>
-        <menu name="Downloads">
-            <item name="Releases"
-                  href="http://www.wso2.org/downloads/message-broker/"/>
-        </menu>
-        <menu name="Documentation">
-            <item name="Installation Guide" href="installation_guide.html"/>
-            <item name="Deployment Guide" href="deployment_guide.html"/>
-            <item name="User Guide" href="user_guide.html"/>
-            <item name="Administrator Guide" href="admin_guide.html"/>
-        </menu>
-        <menu name="Samples">
-            <item name="Samples Index" href="samples_index.html"/>
-        </menu>
-
-        <menu name="Resources">
-            <item name="FAQ's" href="faq.html"/>
-            <item name="Library" href="http://www.wso2.org/library/mb"/>
-            <item name="Features" href="http://www.wso2.org/projects/mb/java/features"/>
-            <item name="Source Code" href="http://www.wso2.org/svn"/>
-            <item name="Wiki" href="http://www.wso2.org/wiki/display/mb/java"/>
-        </menu>
-        <menu name="Community">
-            <item name="Forum" href="http://www.wso2.org/forum/1225"/>
-            <item name="Mailing Lists" href="http://www.wso2.org/mail"/>
-        </menu>
-        <menu name="Project Info">
-            <item name="Issue Tracking" href="https://www.wso2.org/jira/browse/mb"/>
-        </menu>
-
-    </body>
-</project>


[41/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/faq.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/faq.xml b/products/cloud_controller/docs/xdoc/faq.xml
deleted file mode 100644
index 5af8bf2..0000000
--- a/products/cloud_controller/docs/xdoc/faq.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-        <title>
-            WSO2 MB - Frequently Asked Questions
-        </title>
-        <link href="css/mb-docs.css" rel="stylesheet"/>
-        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
-    </head>
-    <body xml:lang="en">
-        [
-        <a href="docs_index.html">Documentation Index</a>
-        ]
-        <h1>WSO2 Business Server (MB) Frequently Asked Questions</h1>
-        <h2>Contents</h2>
-        <div class="toc">
-            <ol>
-                <li>
-                    <a href="#what-features">What are main features of WSO2 MB</a>
-                </li>
-                <li>
-                    <a href="#how-to-monitor">How to monitor queues and topics using MB?</a>
-                </li>
-                <li>
-                    <a href="#what-sqs">What is MessageBox(SQS)?
-                    </a>
-                </li>
-            </ol>
-
-            <h3 id="what-features">
-                1. What are main features of WSO2 MB?
-            </h3>
-            <p>The Message Broker is compliant with the latest WS-Eventing specification. It's
-                easy-to-use
-                Amazon SQS API provides a standard interface for your message queuing requirements.
-            </p>
-            <p>The underlying JMS engine handles WS-Eventing/JMS synchronisation that enables
-                exposing and
-                consuming your events using two different standard API's.
-            </p>
-            <h3 id="how-to-monitor">
-                2. How to monitor queues and topics using MB?
-            </h3>
-            <p>All the topics, subscriptions and queue details can be monitored using MB Management
-                Console
-            </p>
-            <h3 id="what-sqs">
-                3. What is MessageBox(SQS)?
-            </h3>
-            <p>Simple Queue Service(SQS) is a web service interface to do queue related operations.
-                Message box provides this service. Please find more details on how to use SQS in
-                <a href="samples_index.html">WSO2 MB Samples</a>.
-            </p>
-
-        </div>
-    </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/index.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/index.xml b/products/cloud_controller/docs/xdoc/index.xml
deleted file mode 100644
index b680178..0000000
--- a/products/cloud_controller/docs/xdoc/index.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-  <title>Welcome to WSO2 MB v2.0.1</title>
-  <link href="css/mb-docs.css" rel="stylesheet" />
-  <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
-  media="all" />
-</head>
-
-<body xml:lang="en" lang="en">
-<h1>Welcome to WSO2 Message Broker v2.0.1</h1>
-
-<p>WSO2 Message Broker (WSO2 MB) is to be your Message Broker System.
- Our ultimate goal is to provide you with the suitable message brokering 
- service. </p>
-
-<p>MB 2.0.1 supports publishing and receiving messages both online
-and on demand with the features Pub/Sub and Queues. Message broker compatible with
-JMS API and it implements AMQP 0.91 protocol.
-<p>WSO2 MB 2.0.1 is developed on top of the revolutionary <a
-href="http://wso2.org/projects/carbon">Carbon platform</a>
-, and is based on the OSGi framework to achieve the better modularity for
-your Service Oriented Architecture (SOA). This also contains a lots of new
-features and many other optional components to customize the behavior of the
-server. Further, if you do not want any of the built in features, you can
-uninstall those features without any trouble. In other words, MB can be
-customized to your SOA needs. </p>
-
-<p>You can download this distribution from <a
-href="http://wso2.org/downloads/message-broker">Project Download Page </a> and give it a
-try. </p>
-
-<h2>Getting Started</h2>
-
-<p>Getting your message broker project off the ground with the WSO2 MB is
-fairly simple.</p>
-<ol>
-  <li><a href="http://wso2.org/downloads/message-broker">Download</a> the WSO2 MB
-  2.0.1</li>
-  <li>Read through the <a href="docs_index.html">Documentation Index</a></li>
-  <li>Visit our <a href="http://wso2.com/products/message-broker/">Official Web
-    site</a></li>
-  <li>Look at the <a href="release-notes.html">Release Notes</a> for the high
-    level features, or the <a
-    href="http://wso2.com/products/message-broker/#tabs">WSO2 MB Data
-  Sheet</a></li>
-</ol>
-</p>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/installation_guide.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/installation_guide.xml b/products/cloud_controller/docs/xdoc/installation_guide.xml
deleted file mode 100644
index 7f9cf72..0000000
--- a/products/cloud_controller/docs/xdoc/installation_guide.xml
+++ /dev/null
@@ -1,414 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-        <title>
-            WSO2 MB - Installation Guide
-        </title>
-        <link href="css/mb-docs.css" rel="stylesheet"/>
-        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css" media="all"/>
-    </head>
-    <body xml:lang="en">
-        [ <a href="docs_index.html"> Documentation Index </a> ]
-        <h1>
-            WSO2 Message Broker (MB) Installation Guide
-        </h1>
-        <p/>
-
-        <p>This installation guide provides information on,</p>
-        <ol>
-            <li>the prerequisites for WSO2 MB</li>
-            <li>installation instructions</li>
-            <li>starting up WSO2 MB, and</li>
-            <li>accessing the management console</li>
-        </ol>
-
-        <p>
-            This document describes the distribution packages available in WSO2 MB -
-            the binary distribution and the source distribution for more advanced
-            users. It is followed by simple instructions on how to install and run
-            WSO2 MB using the binary distribution and how to build WSO2 MB using the
-            source distribution.
-        </p>
-
-        <h2>Contents</h2>
-        <div class="toc">
-            <ul>
-                <li>
-                    <a href="#Distribution">Distribution Packages</a>
-                </li>
-                <li>
-                    <a href="#Installing">Installing and Running WSO2 MB using the
-                        Binary Distribution
-                    </a>
-                    <ul>
-                        <li>
-                            <a href="#Prerequisites">Prerequisites</a>
-                        </li>
-                        <li>
-                            <a href="#Installing2">Installing on Linux</a>                            
-                        </li>
-                        <li>
-                            <a href="#Installing1">Installing on MS Windows</a>
-                        </li>
-                    </ul>
-                </li>
-                <li>
-                    <a href="#Building">Building WSO2 MB Using the Source Distribution</a>
-                    <ul>
-                        <li>
-                            <a href="#Prerequisites">Prerequisites</a>
-                        </li>
-                        <li>
-                            <a href="#Setting">Setting Up the Environment and Tools</a>
-                        </li>
-                        <li>
-                            <a href="#Building1">Building WSO2 MB</a>
-                        </li>
-                    </ul>
-                </li>
-            </ul>
-        </div>
-        <h2 id="Distribution">
-            Distribution Packages
-        </h2>
-        <p>
-            The following distribution packages are available for <a
-                href="http://wso2.org/downloads/message-broker/">download</a>.
-        </p>
-        <p>
-            1. Binary Distribution : Includes binary files for both MS Windows and
-            Linux operating systems, compressed into a single a zip file. Recommended
-            for normal users.
-        </p>
-        <p>
-            2. Source Distribution : Includes the source code for both MS Windows and Linux
-            operating systems, compressed into a single zip file which can be used to build the binary files.
-            Recommended for more advanced users.
-        </p>
-        <h2 id="Installing">
-            Installing and Running WSO2 MB using the Binary Distribution
-        </h2>
-        <h3 id="Prerequisites">
-            Prerequisites
-        </h3>
-        <p/>
-        <table border="2">
-            <tbody>
-                <tr>
-                    <td>
-                        <a href="http://java.sun.com/javase/downloads/index.jsp">Java SE
-                            Development Kit
-                        </a>
-                    </td>
-                    <td>
-                        1.6.x (For instructions on setting up the JDK on different operating
-                        systems, visit <a href="http://java.sun.com">http://java.sun.com</a>)
-                        <p/>
-                        <p>
-                            To build WSO2 MB from the Source distribution, it is necessary
-                            that you have JDK 1.6.x version and Maven 2.1.0 or later
-                        </p>
-                    </td>
-                </tr>
-
-                
-                <tr>
-                    <td>
-                        <a href="http://maven.apache.org/">Apache Maven</a>- To
-                        build MB from Source
-                    </td>
-                    <td>
-                        To build the WSO2 MB from its source distribution, you will need
-                        Maven 2.1.0 or later
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        Web browser- To start the MB Management Console
-                    </td>
-                    <td>
-                        Mozilla Firefox 3.0 at a resolution of 1024x768 is recommended. MS
-                        Internet Explorer 7 may be used as well, with some minor limitations. Once
-                        the WSO2 MB is started point the browser to
-                        https://localhost:9443/carbon in order to access your Management Console.
-                        See the
-                        <a href="user_guide.html">WSO2 MB User Guide</a>
-                        for more details.
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        Memory
-                    </td>
-                    <td>
-                        No minimum requirement - A heap size of 256~512MB is generally
-                        sufficient to process typical SOAP messages. Requirements may vary
-                        with larger message size and on the number of messages processed
-                        concurrently
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        Disk
-                    </td>
-                    <td>
-                        No minimum requirement. The installation will require ~125 MB
-                        excluding space allocated for log files and Databases.
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        Operating System
-                    </td>
-                    <td>
-                        Linux, Solaris, MS Windows - XP/ Vista (Not fully tested on Windows
-                        Vista). Since WSO2 MB is a Java application, it will generally be
-                        possible to run it on other operating systems with a JDK 1.6.x
-                        runtime.
-                    </td>
-                </tr>
-            </tbody>
-        </table>
-        <p/>
-
-        <h2 id="Installing2">Installing on Linux/Unix</h2>
-        <p>
-            The following steps will take you through the binary distribution
-            installation on Unix/Linux systems.
-        </p>
-        <ol>
-            <li>
-                <a href="http://wso2.org/downloads/message-broker/">Download</a>
-                the WSO2 MB binary distribution.
-            </li>
-            <li>
-                Extract the zip archive where you want the WSO2 MB installed (e.g. into
-                /opt)
-            </li>
-            <li>
-                Set the <a href="setting_java_home.html">JAVA_HOME</a>
-                environment variable to your Java home using the
-                export command or by editing /etc/profile, and add the Java /bin
-                directory to your PATH
-            </li>
-            <li>
-                Execute the WSO2 MB start script or the daemon script from the bin
-                directory. e.g. ./stratos.sh OR ./daemon.sh start OR
-                ./stratos.sh --console
-            </li>
-            <li>
-                Check your WSO2 MB instance using the URL https://localhost:9443/carbon
-                which will take you to the WSO2 MB Management Console. (Note that server
-                start up may take time)
-            </li>
-            <li>
-                Login as "admin" using the default password "admin"
-            </li>
-        </ol>
-
-        <h2 id="Installing1">
-            <strong>Installing on MS Windows</strong>
-        </h2>
-        <p>
-            The following steps will take you through the installation for the MS
-            Windows operating system.
-        </p>
-        <ol>
-            <li>
-                <a href="http://wso2.org/downloads/message-broker/">Download</a>
-                the WSO2 MB binary distribution.
-            </li>
-            <li>
-                Extract the zip archive where you want the WSO2 MB installed
-            </li>
-            <li>
-                Set the
-                <a href="setting_java_home.html">JAVA_HOME</a>
-                environment variable to your Java installation, and the PATH environment
-                variable to the Java /bin directory.
-            </li>
-            <li>
-                Execute the WSO2 MB start script from the bin folder. e.g. stratos.bat
-            </li>
-            <li>
-                If you would like to install the WSO2 MB as a Windows service, use the
-                install.bat script
-            </li>
-            <li>
-                Check your WSO2 MB instance using the URL https://localhost:9443/carbon
-                which will take you to the WSO2 MB Management Console.
-            </li>
-            <li>
-                Login as "admin" using the default password "admin"
-            </li>
-        </ol>
-        <h2 id="Building">
-            Building WSO2 MB Using the Source Distribution
-        </h2>
-        <h3 id="Prerequisi1">
-            Prerequisites
-        </h3>
-        <p/>
-        <table border="2">
-            <tbody>
-                <tr>
-                    <td>
-                        <a href="http://java.sun.com/javase/downloads/index.jsp">Java SE
-                            Development Kit
-                        </a>
-                    </td>
-                    <td>
-                        1.6.x (For instructions on setting up the JDK in different operating
-                        systems, visit <a href="http://java.sun.com">http://java.sun.com</a>)
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        <a href="http://maven.apache.org/">Apache Maven</a>- To
-                        build MB from Source
-                    </td>
-                    <td>
-                        To build the WSO2 MB from its source distribution, you will need
-                        Maven 2.1.0 or later
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        Operating System
-                    </td>
-                    <td>
-                        Linux, Solaris, MS Windows - XP/ Vista (Not fully tested on Windows
-                        Vista)
-                    </td>
-                </tr>
-            </tbody>
-        </table>
-        <p/>
-        <h3 id="Setting">
-            Setting up the Environment and Tools
-        </h3>
-        <p/>
-        <p>
-            <strong>Maven:</strong>
-        </p>
-        <p>
-            The WSO2 MB build is based on <a href="http://maven.apache.org/">Apache
-            Maven 2</a>. Hence, it is a prerequisite to have Maven (version 2.1.0 or later)
-            and JDK (version 1.6.x) installed in order to build WSO2 MB from the
-            source distribution. Extensive instructions on using Maven 2 are available
-            on the Maven website.
-        </p>
-        <p>
-            Please refer to the
-            <a
-                    href="http://maven.apache.org/guides/getting-started/index.html">Maven
-                Getting Started Guide
-            </a>
-            for more information on Maven
-        </p>
-        <ul>
-            <li>
-                Unix based OS (e.g., Linux)
-            </li>
-        </ul>
-        <ol>
-            <li>
-                Download Apache Maven tar ball or the zip archive.
-            </li>
-            <li>
-                Expand it to a directory of choice.
-            </li>
-            <li>
-                Set the environment variable M2_HOME and add M2_HOME/bin to the
-                path as well.
-            </li>
-            <li>
-                Run mvn --version to verify that it is correctly installed.
-            </li>
-        </ol>
-        <ul>
-            <li>
-                MS Windows
-            </li>
-        </ul>
-        <ol>
-            <li>
-                Download and run the Apache Maven Windows installer package.
-            </li>
-            <li>
-                Set the 'Environment Variables' (create the system variable M2_HOME
-                and edit the path. e.g., "C:\Program Files\Apache Software
-                Foundation\maven-2.0.6"; path %M2_HOME%\bin)
-            </li>
-            <li>
-                Make sure that the system variable
-                <a href="setting_java_home.html">JAVA_HOME</a>
-                is set to the location of your JDK, e.g., C:\Program Files\Java\jdk1.5
-            </li>
-            <li>
-                Run mvn --version to verify that it is correctly installed.
-            </li>
-        </ol>
-        <p>
-            Once Maven is properly installed, you can start building the WSO2 MB.
-        </p>
-        <h3 id="Building1">
-            Building WSO2 MB
-        </h3>
-        <ol>
-            <li>
-                <a href="http://wso2.org/downloads/message-broker/">Download</a>
-                the source distribution, which is available as a zip archive.
-            </li>
-            <li>
-                Expand the source archive to a directory of your choice.
-            </li>
-            <li>
-                All the necessary build scripts are included with the source
-                distribution.
-            </li>
-            <li>
-                You can run the following command inside that directory to build the
-                WSO2 MB. Note that you will require a connection to the Internet for the Maven build
-                to download dependencies required for the build.
-                <br/>
-                <p>
-                    Command: <strong>mvn clean install</strong>
-                </p>
-            </li>
-        </ol>
-        <p>
-            This will create the complete release artifacts including the binary and
-            source distributions in the modules/distribution/target/ directory which can be installed using
-            the above instructions.
-        </p>
-        <p>
-            Note: The first time you run Maven it will automatically download the
-            dependent .jar files. Therefore, the first run will take more time.
-        </p>
-    </body>
-</html>                                                 

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/release-notes.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/release-notes.xml b/products/cloud_controller/docs/xdoc/release-notes.xml
deleted file mode 100644
index 5f16e20..0000000
--- a/products/cloud_controller/docs/xdoc/release-notes.xml
+++ /dev/null
@@ -1,239 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html
-        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-    <head>
-        <meta content="text/html; charset=iso-8859-1" http-equiv="content-type"/>
-        <title>WSO2 Message Broker 2.0.1 Released!</title>
-        <link href="css/mb-docs.css" rel="stylesheet"/>
-        <link href="styles/dist-docs.css" rel="stylesheet" type="text/css"
-              media="all"/>
-    </head>
-    <body>
-        <div id="header">
-        </div>
-
-        <div id="main-content">
-            <h1>The WSO2 Message Broker (MB) 2.0.1 Released!</h1>
-
-            <p>
-                The WSO2 Message Broker team is pleased to announce the release of version 2.0.1 of
-                the Open Source Message Broker (MB).
-            </p>
-            <p>WSO2 Message Broker (WSO2 MB) 2.0.1  is fast, lightweight and user friendly open source
-                distributed message brokering system under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html">
-                Apache Software License v2.0</a>. WSO2 MB allows system administrators and developers to
-                easily configure jms queues and topics which could be used in message routing, message stores,
-                message processors. It also supports transport ws eventing. WSO2 MB is compliant with Advanced
-                Message Queueing Protocol Version 0-91 and Java Message Service Specification version 1.1.
-            </p>
-            <p>
-                WSO2 MB 2.0.1 is developed on top of the revolutionary
-                <a href="http://wso2.org/projects/carbon">WSO2 Carbon platform</a> (Middleware a' la carte),
-                an OSGi based framework that provides seamless modularity to your SOA via
-                componentization. This release also contains many new features and a range of optional
-                components (add-ons) that can be installed to customize the behavior of the MB. Further, any
-                existing features of the MB which are not required to your environment can be easily
-                removed using the underlying provisioning framework of Carbon. In brief, WSO2 MB can
-                be fully customized and tailored to meet your exact SOA needs.
-            </p>
-
-            <p>
-                You can download this distribution from
-                <a href="http://wso2.org/downloads/message-broker">
-                    http://wso2.org/downloads/message-broker
-                </a>
-
-            </p>
-
-            <h2>How to Run </h2>
-            <ol>
-              <li>Extract the downloaded zip</li>
-              <li>Go to the bin directory in the extracted folder</li>
-              <li>Run the stratos.sh or stratos.bat as appropriate</li>
-              <li>Point your browser to the URL https://localhost:9443/carbon</li>
-              <li>Use "admin", "admin" as the username and password to login as an admin</li>
-              <li>If you need to start the OSGi console with the server use the property
-                -DosgiConsole when starting the server. The INSTALL.txt file found on the
-                installation directory will give you a comprehensive set of options and
-                properties that can be passed into the startup script</li>
-
-            </ol>
-
-
-            <h2>New Features of WSO2 MB 2.0.1</h2>
-
-            <p>
-              The major newly introduced feature of this MB release is support for distributed message
-              brokering. This release is backed with newly invented Andes distributed message brokering
-              system which use cassandra as its storage.
-            </p>
-
-
-            <h2>Key Features of WSO2 Message Broker</h2>
-
-            <p>WSO2 Message Broker brings messaging and eventing capabilities into your SOA
-                framework. Message Broker contains all the previously available features except
-                SQS support. Those are :
-            </p>
-            <ul>
-                <li>JMS Queuing</li>
-                <li>JMS Pub/Sub </li>
-                <li>WS-Eventing</li>
-            </ul>
-
-
-            <p>The underlying JMS engine handles WS-Eventing/JMS synchronisation that enables
-                exposing and consuming your events using two different standard API's.
-            </p>
-
-            <h2>Project Resources</h2>
-
-            <ul>
-                <li>
-                    <strong>Home page:</strong>
-                    <a href="http://wso2.com/products/message-broker/">
-                        http://wso2.com/products/message-broker/
-                    </a>
-
-                </li>
-                <li>
-                    <strong>Library:</strong>
-                    <a href="http://www.wso2.org/library/mb">http://www.wso2.org/library/mb</a>
-
-                </li>
-                <li>
-                    <strong>Wiki:</strong>
-                    <a href="http://www.wso2.org/wiki/display/mb/java">
-                        http://www.wso2.org/wiki/display/mb/java
-                    </a>
-
-                </li>
-                <li>
-                    <strong>JIRA-Issue Tracker:</strong>
-                    <a href="https://wso2.org/jira/browse/MB">https://wso2.org/jira/browse/MB</a>
-
-                </li>
-            </ul>
-
-            <h2>Bugs Fixed in This Release</h2>
-            <p>
-                This release of WSO2 MB comes with a number of bug fixes, both in the base
-                framework and the MB specific components. All the issues which have been
-                fixed in MB 2.0.1 are recorded at following locations:
-            </p>
-            <ul>
-                                                            
-                <li><a href="https://wso2.org/jira/secure/IssueNavigator.jspa?mode=hide&amp;requestId=10787">
-                    Fixed MB specific issues</a></li>
-
-            </ul>
-            <h2>Known Issues</h2>
-            <p>
-                All the open issues pertaining to WSO2 MB 2.0.1 are reported at following
-                locations:
-            </p>
-            <ul>
-                <li><a href="https://wso2.org/jira/secure/IssueNavigator.jspa?mode=hide&amp;requestId=10788">
-                    WSO2 MB 2.0.1 component issues</a></li>
-            </ul>
-
-
-
-            <h2>How You Can Contribute</h2>
-            <h3>
-                Mailing Lists
-            </h3>
-            <p>
-                Join our mailing list and correspond with the developers directly.
-            </p>
-            <ul>
-                <li>
-                    Developer List :
-                    <a href="mailto:carbon-dev@wso2.org">carbon-dev@wso2.org</a>
-                    |
-                    <a href="mailto:carbon-dev-request@wso2.org?subject=subscribe">Subscribe</a>
-                    |
-                    <a href="http://wso2.org/mailarchive/carbon-dev/">Mail Archive</a>
-                </li>
-                <li>
-                    User List :
-                    <a href="mailto:mb-user@wso2.org">mb-user@wso2.org</a>
-                    |
-                    <a href="mailto:mb-user-request@wso2.org?subject=subscribe">Subscribe</a>
-                    |
-                    <a href="http://wso2.org/mailarchive/mb-user/">Mail Archive</a>
-                </li>
-            </ul>
-
-            <h3>
-                Reporting Issues
-            </h3>
-            <p>
-                WSO2 encourages you to report issues and your enhancement requests for the
-                WSO2 MB using the public<a
-                    href="https://wso2.org/jira/browse/MB">JIRA</a>.
-            </p>
-            <p>
-                You can also watch how they are resolved, and comment on the progress..
-            </p>
-            <h3>
-                Discussion Forums
-            </h3>
-            <p>
-                Alternatively, questions could be raised using the forums available.
-            </p>
-            <p>
-                <a href="http://wso2.org/forum/1225">WSO2 MB Forum</a>
-                :
-                Discussion forum for WSO2 MB developers/users
-            </p>
-
-
-            <h2>Support</h2>
-            <p>We are committed to ensuring that your enterprise middleware deployment is completely
-                supported from evaluation to production. Our unique approach ensures that all
-                support leverages our open development methodology and is provided by the very same
-                engineers who build the technology.
-            </p>
-
-            <p>For more details and to take advantage of this unique opportunity please visit
-                <a href="http://wso2.com/support/">http://wso2.com/support/</a>
-            </p>
-
-            <p>For more information on WSO2 MB Please see<a
-                    href="http://wso2.com/products/message-broker/">
-                http://wso2.com/products/message-broker/</a>, visit the WSO2 Oxygen Tank developer
-                portal for additional
-                resources.
-            </p>
-
-            <p>Thank you for your interest in WSO2 Message Broker.
-            </p>
-
-            <p>
-                <i>-- The WSO2 MB Team --</i>
-            </p>
-        </div>
-    </body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/samples/jms_queue_sample.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/samples/jms_queue_sample.xml b/products/cloud_controller/docs/xdoc/samples/jms_queue_sample.xml
deleted file mode 100644
index d9fcb84..0000000
--- a/products/cloud_controller/docs/xdoc/samples/jms_queue_sample.xml
+++ /dev/null
@@ -1,267 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-        <title>WSO2 MB Samples - JMS Queue Sample</title>
-        <link href="../css/mb-docs.css" rel="stylesheet"/>
-        <link href="../styles/dist-docs.css" rel="stylesheet" type="text/css"
-              media="all"/>
-    </head>
-
-    <body>
-        <p>[<a href="../docs_index.html">Documentation Index</a>] </p>
-            <h1>WSO2 MB - Samples :JMS Queue Sample</h1>
-
-            <p>This guide demonstrates how persistent queues can be created and used in Message
-                Broker using JMS API.
-            </p>
-
-            <h2>Contents</h2>
-
-            <div class="toc">
-                <ul>
-                    <li>
-                        <a href="#jms_queue_sample">JMS Queue Sample</a>
-                    </li>
-                </ul>
-            </div>
-
-            <h2 id="jms_queue_sample">JMS Queue Sample</h2>
-
-            <p>Following JMS client is used to send messages to a known created queue in WSO2 Message Broker. Queue Receiver
-               can receive messages and message is printed in console.
-            </p>
-
-            <p>
-                First log into WSO2 Message Broker Management console and create a queue named 'testQueue'. Click on the
-                'Add' menu item under the 'Queues' menu to create a queue. To create a queue , the only thing needed to
-                be provided is the name of the queue.
-            </p>
-
-            <p>
-                note: To run this code sample, you need to have dependencies located at
-                $CARBON_HOME/client-lib in class path. You need to run QueueReceiver class prior to QueueSender class
-                when testing this sample.
-            </p>
-            <p>
-                Using following QueueSender JMS client messages can be sent to 'testQueue'.
-            </p>
-            <pre xml:space="preserve">
-                package com.org.wso2.mb.jms.sample;
-                /**
-                 * Licensed to the Apache Software Foundation (ASF) under one
-                 * or more contributor license agreements.  See the NOTICE file
-                 * distributed with this work for additional information
-                 * regarding copyright ownership.  The ASF licenses this file
-                 * to you under the Apache License, Version 2.0 (the
-                 * "License"); you may not use this file except in compliance
-                 * with the License.  You may obtain a copy of the License at
-                 *
-                 *    http://www.apache.org/licenses/LICENSE-2.0
-                 *
-                 * Unless required by applicable law or agreed to in writing,
-                 * software distributed under the License is distributed on an
-                 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-                 * KIND, either express or implied.  See the License for the
-                 * specific language governing permissions and limitations
-                 * under the License.
-                 */
-
-                import javax.jms.JMSException;
-                import javax.jms.Queue;
-                import javax.jms.QueueConnection;
-                import javax.jms.QueueConnectionFactory;
-                import javax.jms.QueueSession;
-                import javax.jms.TextMessage;
-                import javax.naming.Context;
-                import javax.naming.InitialContext;
-                import javax.naming.NamingException;
-                import java.util.Properties;
-
-                public class QueueSender {
-                    public static final String QPID_ICF = "org.wso2.andes.jndi.PropertiesFileInitialContextFactory";
-                    private static final String CF_NAME_PREFIX = "connectionfactory.";
-                    private static final String QUEUE_NAME_PREFIX = "queue.";
-                    private static final String CF_NAME = "qpidConnectionfactory";
-                    String userName = "admin";
-                    String password = "admin";
-
-                    private static String CARBON_CLIENT_ID = "carbon";
-                    private static String CARBON_VIRTUAL_HOST_NAME = "carbon";
-                    private static String CARBON_DEFAULT_HOSTNAME = "localhost";
-                    private static String CARBON_DEFAULT_PORT = "5672";
-                    String queueName = "testQueue";
-
-
-                    public static void main(String[] args) throws NamingException, JMSException {
-                        QueueSender queueSender = new QueueSender();
-                        queueSender.sendMessages();
-                    }
-
-                    public void sendMessages() throws NamingException, JMSException {
-                        Properties properties = new Properties();
-                        properties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
-                        properties.put(CF_NAME_PREFIX + CF_NAME, getTCPConnectionURL(userName, password));
-                        properties.put(QUEUE_NAME_PREFIX + queueName, queueName);
-
-                        System.out.println("getTCPConnectionURL(userName,password) = " + getTCPConnectionURL(userName, password));
-
-                        InitialContext ctx = new InitialContext(properties);
-                        // Lookup connection factory
-                        QueueConnectionFactory connFactory = (QueueConnectionFactory) ctx.lookup(CF_NAME);
-                        QueueConnection queueConnection = connFactory.createQueueConnection();
-                        queueConnection.start();
-                        QueueSession queueSession =
-                                queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
-
-                        // Send message
-                        Queue queue = (Queue)ctx.lookup(queueName);
-
-                        // create the message to send
-                        TextMessage textMessage = queueSession.createTextMessage("Test Message Content");
-
-                        javax.jms.QueueSender queueSender = queueSession.createSender(queue);
-                        queueSender.send(textMessage);
-
-                        queueSender.close();
-                        queueSession.close();
-                        queueConnection.close();
-
-                    }
-
-                    public String getTCPConnectionURL(String username, String password) {
-                        // amqp://{username}:{password}@carbon/carbon?brokerlist='tcp://{hostname}:{port}'
-                        return new StringBuffer()
-                                .append("amqp://").append(username).append(":").append(password)
-                                .append("@").append(CARBON_CLIENT_ID)
-                                .append("/").append(CARBON_VIRTUAL_HOST_NAME)
-                                .append("?brokerlist='tcp://").append(CARBON_DEFAULT_HOSTNAME).append(":").append(CARBON_DEFAULT_PORT).append("'")
-                                .toString();
-                    }
-
-
-                }
-
-            </pre>
-             <p>
-                 You can view created queue and its increased message count using Message Broker management console.
-             </p>
-            <p>
-                Now to receive the messages from the 'testQueue' following QueueReceiver class can be used. Message received gets printed on the
-                console.
-            </p>
-            <pre xml:space="preserve">
-                package com.org.wso2.mb.jms.sample;
-                /**
-                 * Licensed to the Apache Software Foundation (ASF) under one
-                 * or more contributor license agreements.  See the NOTICE file
-                 * distributed with this work for additional information
-                 * regarding copyright ownership.  The ASF licenses this file
-                 * to you under the Apache License, Version 2.0 (the
-                 * "License"); you may not use this file except in compliance
-                 * with the License.  You may obtain a copy of the License at
-                 *
-                 *    http://www.apache.org/licenses/LICENSE-2.0
-                 *
-                 * Unless required by applicable law or agreed to in writing,
-                 * software distributed under the License is distributed on an
-                 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-                 * KIND, either express or implied.  See the License for the
-                 * specific language governing permissions and limitations
-                 * under the License.
-                 */
-
-                import javax.jms.*;
-                import javax.naming.Context;
-                import javax.naming.InitialContext;
-                import javax.naming.NamingException;
-                import java.util.Properties;
-
-                public class QueueReceiver {
-
-                    public static final String QPID_ICF = "org.wso2.andes.jndi.PropertiesFileInitialContextFactory";
-                    private static final String CF_NAME_PREFIX = "connectionfactory.";
-                    private static final String CF_NAME = "qpidConnectionfactory";
-                    String userName = "admin";
-                    String password = "admin";
-
-                    private static String CARBON_CLIENT_ID = "carbon";
-                    private static String CARBON_VIRTUAL_HOST_NAME = "carbon";
-                    private static String CARBON_DEFAULT_HOSTNAME = "localhost";
-                    private static String CARBON_DEFAULT_PORT = "5672";
-                    String queueName = "testQueue";
-
-
-                    public static void main(String[] args) throws NamingException, JMSException {
-                        QueueReceiver queueReceiver = new QueueReceiver();
-                        queueReceiver.receiveMessages();
-                    }
-
-                    public void receiveMessages() throws NamingException, JMSException {
-                        Properties properties = new Properties();
-                        properties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
-                        properties.put(CF_NAME_PREFIX + CF_NAME, getTCPConnectionURL(userName, password));
-                        properties.put("queue."+ queueName,queueName);
-
-                        System.out.println("getTCPConnectionURL(userName,password) = " + getTCPConnectionURL(userName, password));
-
-                        InitialContext ctx = new InitialContext(properties);
-                        // Lookup connection factory
-                        QueueConnectionFactory connFactory = (QueueConnectionFactory) ctx.lookup(CF_NAME);
-                        QueueConnection queueConnection = connFactory.createQueueConnection();
-                        queueConnection.start();
-                        QueueSession queueSession =
-                                queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
-
-                        //Receive message
-                        Queue queue =  (Queue) ctx.lookup(queueName);
-                        MessageConsumer queueReceiver = queueSession.createConsumer(queue);
-                        TextMessage message = (TextMessage) queueReceiver.receive();
-                        System.out.println("Got message ==>" + message.getText());
-
-                        queueReceiver.close();
-                        queueSession.close();
-                        queueConnection.stop();
-                        queueConnection.close();
-
-                    }
-
-                    public String getTCPConnectionURL(String username, String password) {
-                        // amqp://{username}:{password}@carbon/carbon?brokerlist='tcp://{hostname}:{port}'
-                        return new StringBuffer()
-                                .append("amqp://").append(username).append(":").append(password)
-                                .append("@").append(CARBON_CLIENT_ID)
-                                .append("/").append(CARBON_VIRTUAL_HOST_NAME)
-                                .append("?brokerlist='tcp://").append(CARBON_DEFAULT_HOSTNAME).append(":").append(CARBON_DEFAULT_PORT).append("'")
-                                .toString();
-                    }
-
-
-                }
-
-            </pre>
-        <p>
-            Now you should be able to see message count gets decreased for 'testQueue' using Management Console.
-        </p>
-    </body>
-</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/samples/jms_topic_sample.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/samples/jms_topic_sample.xml b/products/cloud_controller/docs/xdoc/samples/jms_topic_sample.xml
deleted file mode 100644
index bd05667..0000000
--- a/products/cloud_controller/docs/xdoc/samples/jms_topic_sample.xml
+++ /dev/null
@@ -1,260 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-        <title>WSO2 MB Samples - JMS Topic Sample</title>
-        <link href="../css/mb-docs.css" rel="stylesheet"/>
-        <link href="../styles/dist-docs.css" rel="stylesheet" type="text/css"
-              media="all"/>
-    </head>
-
-    <body>
-        <p>[<a href="../docs_index.html">Documentation Index</a>]  </p>
-            <h1>WSO2 MB - Samples :JMS Topic Sample</h1>
-
-            <p>This guide demonstrates how topics can be created and used in Message
-                Broker using JMS API.
-            </p>
-
-            <h2>Contents</h2>
-
-            <div class="toc">
-                <ul>
-                    <li>
-                        <a href="#jms_queue_sample">JMS Topic Sample</a>
-                    </li>
-                </ul>
-            </div>
-
-            <h2 id="jms_queue_sample">JMS Topic Sample</h2>
-
-            <p>Following code is used to create a topic, subscribe to it and publish messages. To
-                run this code sample, you need to have dependencies located at
-                $CARBON_HOME/client-lib in class path.
-                To try out following code fragment, Run the Topic Subscriber first and then run
-                Topic Publisher code. You should see, published message in Topic subscriber console.
-
-                You can see created topics in management console as well.
-            </p>
-
-            <p>Topic Publisher: This code is used to publish messages to a given topic.</p>
-
-            <pre xml:space="preserve">
-                package com.org.wso2.mb.jms.sample;
-
-                /**
-                 * Licensed to the Apache Software Foundation (ASF) under one
-                 * or more contributor license agreements.  See the NOTICE file
-                 * distributed with this work for additional information
-                 * regarding copyright ownership.  The ASF licenses this file
-                 * to you under the Apache License, Version 2.0 (the
-                 * "License"); you may not use this file except in compliance
-                 * with the License.  You may obtain a copy of the License at
-                 *
-                 *    http://www.apache.org/licenses/LICENSE-2.0
-                 *
-                 * Unless required by applicable law or agreed to in writing,
-                 * software distributed under the License is distributed on an
-                 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-                 * KIND, either express or implied.  See the License for the
-                 * specific language governing permissions and limitations
-                 * under the License.
-                 */
-
-                import javax.jms.JMSException;
-                import javax.jms.QueueSession;
-                import javax.jms.TextMessage;
-                import javax.jms.Topic;
-                import javax.jms.TopicConnection;
-                import javax.jms.TopicConnectionFactory;
-                import javax.jms.TopicSession;
-                import javax.naming.Context;
-                import javax.naming.InitialContext;
-                import javax.naming.NamingException;
-                import java.util.Properties;
-
-
-                public class TopicPublisher {
-                    public static final String QPID_ICF = "org.wso2.andes.jndi.PropertiesFileInitialContextFactory";
-                    private static final String CF_NAME_PREFIX = "connectionfactory.";
-                    private static final String CF_NAME = "qpidConnectionfactory";
-                    String userName = "admin";
-                    String password = "admin";
-
-                    private static String CARBON_CLIENT_ID = "carbon";
-                    private static String CARBON_VIRTUAL_HOST_NAME = "carbon";
-                    private static String CARBON_DEFAULT_HOSTNAME = "localhost";
-                    private static String CARBON_DEFAULT_PORT = "5672";
-                    String topicName = "MYTopic";
-
-
-                    public static void main(String[] args) throws NamingException, JMSException {
-                        TopicPublisher topicPublisher = new TopicPublisher();
-                        topicPublisher.publishMessage();
-                    }
-
-                    public void publishMessage() throws NamingException, JMSException {
-                        Properties properties = new Properties();
-                        properties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
-                        properties.put(CF_NAME_PREFIX + CF_NAME, getTCPConnectionURL(userName, password));
-
-                        System.out.println("getTCPConnectionURL(userName,password) = " + getTCPConnectionURL(userName, password));
-
-                        InitialContext ctx = new InitialContext(properties);
-                        // Lookup connection factory
-                        TopicConnectionFactory connFactory = (TopicConnectionFactory) ctx.lookup(CF_NAME);
-                        TopicConnection topicConnection = connFactory.createTopicConnection();
-                        topicConnection.start();
-                        TopicSession topicSession =
-                                topicConnection.createTopicSession(false, QueueSession.AUTO_ACKNOWLEDGE);
-
-                        // Send message
-                        Topic topic = topicSession.createTopic(topicName);
-
-                        // create the message to send
-                        TextMessage textMessage = topicSession.createTextMessage("Test Message");
-
-                        javax.jms.TopicPublisher topicPublisher = topicSession.createPublisher(topic);
-                        topicPublisher.publish(textMessage);
-
-                        topicSession.close();
-                        topicConnection.close();
-                    }
-
-                    public String getTCPConnectionURL(String username, String password) {
-                        // amqp://{username}:{password}@carbon/carbon?brokerlist='tcp://{hostname}:{port}'
-                        return new StringBuffer()
-                                .append("amqp://").append(username).append(":").append(password)
-                                .append("@").append(CARBON_CLIENT_ID)
-                                .append("/").append(CARBON_VIRTUAL_HOST_NAME)
-                                .append("?brokerlist='tcp://").append(CARBON_DEFAULT_HOSTNAME).append(":").append(CARBON_DEFAULT_PORT).append("'")
-                                .toString();
-                    }
-
-                }
-
-
-            </pre>
-
-            <p>Topic Subscriber: This code is used to Subscribe for topics.
-                topicSubscriber.receive() will wait till a message is received and exit the main
-                thread.
-            </p>
-            <pre xml:space="preserve">
-                package com.org.wso2.mb.jms.sample;
-                /**
-                 * Licensed to the Apache Software Foundation (ASF) under one
-                 * or more contributor license agreements.  See the NOTICE file
-                 * distributed with this work for additional information
-                 * regarding copyright ownership.  The ASF licenses this file
-                 * to you under the Apache License, Version 2.0 (the
-                 * "License"); you may not use this file except in compliance
-                 * with the License.  You may obtain a copy of the License at
-                 *
-                 *    http://www.apache.org/licenses/LICENSE-2.0
-                 *
-                 * Unless required by applicable law or agreed to in writing,
-                 * software distributed under the License is distributed on an
-                 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-                 * KIND, either express or implied.  See the License for the
-                 * specific language governing permissions and limitations
-                 * under the License.
-                 */
-
-                import javax.jms.JMSException;
-                import javax.jms.Message;
-                import javax.jms.QueueSession;
-                import javax.jms.TextMessage;
-                import javax.jms.Topic;
-                import javax.jms.TopicConnection;
-                import javax.jms.TopicConnectionFactory;
-                import javax.jms.TopicSession;
-                import javax.naming.Context;
-                import javax.naming.InitialContext;
-                import javax.naming.NamingException;
-                import java.util.Properties;
-
-
-                public class TopicSubscriber {
-                    public static final String QPID_ICF = "org.wso2.andes.jndi.PropertiesFileInitialContextFactory";
-                    private static final String CF_NAME_PREFIX = "connectionfactory.";
-                    private static final String CF_NAME = "qpidConnectionfactory";
-                    String userName = "admin";
-                    String password = "admin";
-
-                    private static String CARBON_CLIENT_ID = "carbon";
-                    private static String CARBON_VIRTUAL_HOST_NAME = "carbon";
-                    private static String CARBON_DEFAULT_HOSTNAME = "localhost";
-                    private static String CARBON_DEFAULT_PORT = "5672";
-                    String topicName = "MYTopic";
-
-
-                    public static void main(String[] args) throws NamingException, JMSException {
-                        TopicSubscriber topicSubscriber = new TopicSubscriber();
-                        topicSubscriber.subscribe();
-                    }
-
-                    public void subscribe() throws NamingException, JMSException {
-                        Properties properties = new Properties();
-                        properties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
-                        properties.put(CF_NAME_PREFIX + CF_NAME, getTCPConnectionURL(userName, password));
-
-                        System.out.println("getTCPConnectionURL(userName,password) = " + getTCPConnectionURL(userName, password));
-
-                        InitialContext ctx = new InitialContext(properties);
-                        // Lookup connection factory
-                        TopicConnectionFactory connFactory = (TopicConnectionFactory) ctx.lookup(CF_NAME);
-                        TopicConnection topicConnection = connFactory.createTopicConnection();
-                        topicConnection.start();
-                        TopicSession topicSession =
-                                topicConnection.createTopicSession(false, QueueSession.AUTO_ACKNOWLEDGE);
-
-                        // Send message
-                        Topic topic = topicSession.createTopic(topicName);
-                        javax.jms.TopicSubscriber topicSubscriber = topicSession.createSubscriber(topic);
-                        Message message = topicSubscriber.receive();
-                        if (message instanceof TextMessage) {
-                            TextMessage textMessage = (TextMessage) message;
-                            System.out.println("textMessage.getText() = " + textMessage.getText());
-                        }
-                        topicSession.close();
-                        topicConnection.close();
-                    }
-
-                    public String getTCPConnectionURL(String username, String password) {
-                        // amqp://{username}:{password}@carbon/carbon?brokerlist='tcp://{hostname}:{port}'
-                        return new StringBuffer()
-                                .append("amqp://").append(username).append(":").append(password)
-                                .append("@").append(CARBON_CLIENT_ID)
-                                .append("/").append(CARBON_VIRTUAL_HOST_NAME)
-                                .append("?brokerlist='tcp://").append(CARBON_DEFAULT_HOSTNAME).append(":").append(CARBON_DEFAULT_PORT).append("'")
-                                .toString();
-                    }
-
-                }
-
-
-            </pre>
-        <p>Also note that a MessageListener can be set to topicSubscriber to receive messages asynchronously.</p>
-    </body>
-</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/docs/xdoc/samples/jms_transport_sample.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/docs/xdoc/samples/jms_transport_sample.xml b/products/cloud_controller/docs/xdoc/samples/jms_transport_sample.xml
deleted file mode 100644
index 7978254..0000000
--- a/products/cloud_controller/docs/xdoc/samples/jms_transport_sample.xml
+++ /dev/null
@@ -1,374 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-    <head>
-        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
-        <title>WSO2 MB Samples - JMS Transport Sample</title>
-        <link href="../css/mb-docs.css" rel="stylesheet"/>
-        <link href="../styles/dist-docs.css" rel="stylesheet" type="text/css"
-              media="all"/>
-    </head>
-
-    <body>
-        <p>[<a href="../docs_index.html">Documentation Index</a>]  </p>
-        <h1>WSO2 MB - Samples :JMS Transport Sample</h1>
-        <p>Apache AXIS2 support a JMS transport layer in addition to the existing HTTP transport. This allows Web
-            service clients and servers to communicate via JMS queues and topics instead of HTTP connections.
-            Both one-way and synchronous two-way requests are supported.</p>
-        <p>The benefits of using JMS as an alternative to HTTP include the following:</p>
-        <ul>
-            <li>
-                Request and response messages are sent by way of reliable messaging.
-            </li>
-            <li>One-way requests allow client and server to be more loosely-coupled (the server does not have to be
-                active when the client sends the one-way request).
-            </li>
-            <li>One-way requests can be sent to multiple servers simultaneously through the use of a topic.
-            </li>
-        </ul>
-        <p>If a web service is to be accessible on the JMS transport, then the corresponding WSDL document should include
-            a JMS binding and a SOAP address which specifies a JMS endpoint URL string. A JMS binding is simply
-            a <b>wsdl:binding </b> element which contains a <b
-            >wsdlsoap:binding</b> element whose transport attribute ends in soap/jms,
-            rather than the normal soap/http value. In addition to the JMS binding, a <b>wsdl:port</b> element which references
-            the JMS binding should be included in the <b>wsdl:service</b> element within the WSDL document. This <b>wsdl:port</b> element
-            should contain a <b>wsdlsoap:address</b> element whose location attribute specifies a JMS endpoint URL string.
-        </p>
-        <p>
-            You also need to decide on the names and types of JMS objects that your application will use. For example,
-            you must decide whether your web service will receive its requests from a queue or a topic. You also must
-            decide whether to use a secure destination (queue or topic). Finally, you will need to decide on the names
-            for your destination, connection factory, and listener port.   The following list provides an example of the
-            names that might be used for the sample MessageReceiveService web service:
-        </p>
-        <table>
-            <tr>
-                <td>Queue</td>  <td>MessageReceiveService, JNDI name: MessageReceiveService</td>
-            </tr>
-            <tr>
-                <td>QueueConnectionFactory</td> <td></td>
-            </tr>
-        </table>
-        <h2>Creating A Simple Service</h2>
-        <p>Following java class with its two operations are hosted in Axis2 server as a web service</p>
-        <pre xml:space="preserve">
-           /**
-            * Licensed to the Apache Software Foundation (ASF) under one
-            * or more contributor license agreements.  See the NOTICE file
-            * distributed with this work for additional information
-            * regarding copyright ownership.  The ASF licenses this file
-            * to you under the Apache License, Version 2.0 (the
-            * "License"); you may not use this file except in compliance
-            * with the License.  You may obtain a copy of the License at
-            *
-            *    http://www.apache.org/licenses/LICENSE-2.0
-            *
-            * Unless required by applicable law or agreed to in writing,
-            * software distributed under the License is distributed on an
-            * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-            * KIND, either express or implied.  See the License for the
-            * specific language governing permissions and limitations
-            * under the License.
-            */
-
-            public class MessageReceiveService {
-                public void receive(String message) {
-                    System.out.println("Got the message ==> " + message);
-                }
-                public String echo(String message) {
-                    System.out.println("Got the message ==> " + message);
-                    return message;
-                }
-            }
-        </pre>
-        <p>As WSDL of the service following will be used. Note how JMS bindings are defined. receive operation is an
-            "in only" operation having only input message. But echo is "in-out" operation which is having an output
-            message as well as an input message.
-        </p>
-
-        <pre xml:space="preserve">
-            &lt;wsdl:definitions xmlns:wsdl=&quot;http://schemas.xmlsoap.org/wsdl/&quot; xmlns:ns1=&quot;http://org.apache.axis2/xsd&quot; xmlns:ns=&quot;http://transport.sample.org&quot; xmlns:wsaw=&quot;http://www.w3.org/2006/05/addressing/wsdl&quot; xmlns:http=&quot;http://schemas.xmlsoap.org/wsdl/http/&quot; xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:mime=&quot;http://schemas.xmlsoap.org/wsdl/mime/&quot; xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot; xmlns:soap12=&quot;http://schemas.xmlsoap.org/wsdl/soap12/&quot; targetNamespace=&quot;http://transport.sample.org&quot;&gt;
-                &lt;wsdl:types&gt;
-                    &lt;xs:schema attributeFormDefault=&quot;qualified&quot; elementFormDefault=&quot;unqualified&quot; targetNamespace=&quot;http://transport.sample.org&quot;&gt;
-                        &lt;xs:element name=&quot;receive&quot;&gt;
-                            &lt;xs:complexType&gt;
-                                &lt;xs:sequence&gt;
-                                    &lt;xs:element minOccurs=&quot;0&quot; name=&quot;message&quot; nillable=&quot;true&quot; type=&quot;xs:string&quot;/&gt;
-                                &lt;/xs:sequence&gt;
-                            &lt;/xs:complexType&gt;
-                        &lt;/xs:element&gt;
-                        &lt;xs:element name=&quot;echo&quot;&gt;
-                            &lt;xs:complexType&gt;
-                                &lt;xs:sequence&gt;
-                                    &lt;xs:element minOccurs=&quot;0&quot; name=&quot;message&quot; nillable=&quot;true&quot; type=&quot;xs:string&quot;/&gt;
-                                &lt;/xs:sequence&gt;
-                            &lt;/xs:complexType&gt;
-                        &lt;/xs:element&gt;
-                        &lt;xs:element name=&quot;echoResponse&quot;&gt;
-                            &lt;xs:complexType&gt;
-                                &lt;xs:sequence&gt;
-                                    &lt;xs:element minOccurs=&quot;0&quot; name=&quot;return&quot; nillable=&quot;true&quot; type=&quot;xs:string&quot;/&gt;
-                                &lt;/xs:sequence&gt;
-                            &lt;/xs:complexType&gt;
-                        &lt;/xs:element&gt;
-                    &lt;/xs:schema&gt;
-                &lt;/wsdl:types&gt;
-                &lt;wsdl:message name=&quot;echoRequest&quot;&gt;
-                    &lt;wsdl:part name=&quot;parameters&quot; element=&quot;ns:echo&quot;/&gt;
-                &lt;/wsdl:message&gt;
-                &lt;wsdl:message name=&quot;echoResponse&quot;&gt;
-                    &lt;wsdl:part name=&quot;parameters&quot; element=&quot;ns:echoResponse&quot;/&gt;
-                &lt;/wsdl:message&gt;
-                &lt;wsdl:message name=&quot;receiveRequest&quot;&gt;
-                    &lt;wsdl:part name=&quot;parameters&quot; element=&quot;ns:receive&quot;/&gt;
-                &lt;/wsdl:message&gt;
-                &lt;wsdl:portType name=&quot;MessageReceiveServicePortType&quot;&gt;
-                    &lt;wsdl:operation name=&quot;echo&quot;&gt;
-                        &lt;wsdl:input message=&quot;ns:echoRequest&quot; wsaw:Action=&quot;urn:echo&quot;/&gt;
-                        &lt;wsdl:output message=&quot;ns:echoResponse&quot; wsaw:Action=&quot;urn:echoResponse&quot;/&gt;
-                    &lt;/wsdl:operation&gt;
-                    &lt;wsdl:operation name=&quot;receive&quot;&gt;
-                        &lt;wsdl:input message=&quot;ns:receiveRequest&quot; wsaw:Action=&quot;urn:receive&quot;/&gt;
-                    &lt;/wsdl:operation&gt;
-                &lt;/wsdl:portType&gt;
-                &lt;wsdl:binding name=&quot;MessageReceiveServiceSoap11Binding&quot; type=&quot;ns:MessageReceiveServicePortType&quot;&gt;
-                    &lt;soap:binding transport=&quot;http://schemas.xmlsoap.org/soap/http&quot; style=&quot;document&quot;/&gt;
-                    &lt;wsdl:operation name=&quot;echo&quot;&gt;
-                        &lt;soap:operation soapAction=&quot;urn:echo&quot; style=&quot;document&quot;/&gt;
-                        &lt;wsdl:input&gt;
-                            &lt;soap:body use=&quot;literal&quot;/&gt;
-                        &lt;/wsdl:input&gt;
-                        &lt;wsdl:output&gt;
-                            &lt;soap:body use=&quot;literal&quot;/&gt;
-                        &lt;/wsdl:output&gt;
-                    &lt;/wsdl:operation&gt;
-                    &lt;wsdl:operation name=&quot;receive&quot;&gt;
-                        &lt;soap:operation soapAction=&quot;urn:receive&quot; style=&quot;document&quot;/&gt;
-                        &lt;wsdl:input&gt;
-                            &lt;soap:body use=&quot;literal&quot;/&gt;
-                        &lt;/wsdl:input&gt;
-                    &lt;/wsdl:operation&gt;
-                &lt;/wsdl:binding&gt;
-                &lt;wsdl:binding name=&quot;MessageReceiveServiceSoap12Binding&quot; type=&quot;ns:MessageReceiveServicePortType&quot;&gt;
-                    &lt;soap12:binding transport=&quot;http://schemas.xmlsoap.org/soap/http&quot; style=&quot;document&quot;/&gt;
-                    &lt;wsdl:operation name=&quot;echo&quot;&gt;
-                        &lt;soap12:operation soapAction=&quot;urn:echo&quot; style=&quot;document&quot;/&gt;
-                        &lt;wsdl:input&gt;
-                            &lt;soap12:body use=&quot;literal&quot;/&gt;
-                        &lt;/wsdl:input&gt;
-                        &lt;wsdl:output&gt;
-                            &lt;soap12:body use=&quot;literal&quot;/&gt;
-                        &lt;/wsdl:output&gt;
-                    &lt;/wsdl:operation&gt;
-                    &lt;wsdl:operation name=&quot;receive&quot;&gt;
-                        &lt;soap12:operation soapAction=&quot;urn:receive&quot; style=&quot;document&quot;/&gt;
-                        &lt;wsdl:input&gt;
-                            &lt;soap12:body use=&quot;literal&quot;/&gt;
-                        &lt;/wsdl:input&gt;
-                    &lt;/wsdl:operation&gt;
-                &lt;/wsdl:binding&gt;
-                &lt;wsdl:service name=&quot;MessageReceiveService&quot;&gt;
-                    &lt;wsdl:port name=&quot;MessageReceiveServiceJmsSoap11Endpoint&quot; binding=&quot;ns:MessageReceiveServiceSoap11Binding&quot;&gt;
-                        &lt;soap:address location=&quot;jms:/MessageReceiveService?transport.jms.DestinationType=queue&amp;amp;transport.jms.ContentTypeProperty=Content-Type&amp;amp;java.naming.provider.url=conf/jndi.properties&amp;amp;java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&amp;amp;transport.jms.ConnectionFactoryType=queue&amp;amp;transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&quot;/&gt;
-                    &lt;/wsdl:port&gt;
-                    &lt;wsdl:port name=&quot;MessageReceiveServiceJmsSoap12Endpoint&quot; binding=&quot;ns:MessageReceiveServiceSoap12Binding&quot;&gt;
-                        &lt;soap12:address location=&quot;jms:/MessageReceiveService?transport.jms.DestinationType=queue&amp;amp;transport.jms.ContentTypeProperty=Content-Type&amp;amp;java.naming.provider.url=conf/jndi.properties&amp;amp;java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory&amp;amp;transport.jms.ConnectionFactoryType=queue&amp;amp;transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&quot;/&gt;
-                    &lt;/wsdl:port&gt;
-                &lt;/wsdl:service&gt;
-            &lt;/wsdl:definitions&gt;
-        </pre>
-
-         <h2>Axi2 Configurations</h2>
-        <p>axi2.xml file, which configures the axis2 server on which above service is hosted, should be enabled with JMS
-            transport.</p>
-        <pre xml:space="preserve">
-            &lt;transportReceiver name=&quot;jms&quot; class=&quot;org.apache.axis2.transport.jms.JMSListener&quot;&gt;
-                &lt;parameter name=&quot;default&quot; locked=&quot;false&quot;&gt;
-                &lt;parameter name=&quot;java.naming.factory.initial&quot; locked=&quot;false&quot;&gt;org.wso2.andes.jndi.PropertiesFileInitialContextFactory&lt;/parameter&gt;
-                &lt;parameter name=&quot;java.naming.provider.url&quot; locked=&quot;false&quot;&gt;conf/jndi.properties&lt;/parameter&gt;
-                &lt;parameter name=&quot;transport.jms.ConnectionFactoryJNDIName&quot; locked=&quot;false&quot;&gt;QueueConnectionFactory&lt;/parameter&gt;
-                &lt;parameter name=&quot;transport.jms.ConnectionFactoryType&quot; locked=&quot;false&quot;&gt;queue&lt;/parameter&gt;
-                &lt;/parameter&gt;
-            &lt;/transportReceiver&gt;
-        </pre>
-        <br></br>
-        <pre xml:space="preserve">
-            <transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"/>
-        </pre>
-
-        <h2>Message Broker Bindings</h2>
-        <p>conf/jndi.properties file is having all JMS bindings (Queue/QueueConnectionFactory) mentioned above.</p>
-
-        <pre xml:space="preserve">
-
-            connectionfactory.QueueConnectionFactory=amqp://admin:admin@clientid/carbon?brokerlist='tcp://localhost:5672'
-            queue.MessageReceiveService=MessageReceiveService
-        </pre>
-        <p>Note that WSO2 Message Broker should be running at localhost port 5672 as per this sample.</p>
-        <h2>Start Axis2 Server</h2>
-        <p>Axis2 server is started with above configurations, hosting the above MessageReceiveService service.</p>
-        <pre xml:space="preserve">
-
-            private AxisServer axisServer;
-            public void start(){
-            try {
-                ConfigurationContext configurationContext =
-                ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,"conf/axis2.xml");
-                this.axisServer = new AxisServer();
-                this.axisServer.setConfigurationContext(configurationContext);
-                this.axisServer.deployService(MessageReceiveService.class.getName());
-                try {
-                Thread.sleep(2000);
-                } catch (InterruptedException e) {
-                }
-                } catch (AxisFault axisFault) {
-                axisFault.printStackTrace();
-            } catch (Exception e) {
-                e.printStackTrace();
-            }
-            }
-        </pre>
-
-        <h2>Send A Message To MessageReceiveService Service</h2>
-        <p>Now using axis2_client.xml as the config file a ConfigurationContext can be created and a message can be sent
-            to the service. Note that fist "in-only" message is sent and then "in-out" message is sent. Client stub is
-            generated from the above WSDL using WSDL-To-Java tool (when complied using build.xml at &amp; MB_HOME &amp;
-            /Samples/jmstransport using ant this will be done).
-        </p>
-        <p>Using WSO2 MB management console you can see how  MessageReceiveService queue is created. See Message Broker
-            Queues - User Guide for more information.</p>
-        <pre xml:space="preserve">
-
-            public void sendMessage(){
-            try {
-
-            ConfigurationContext configurationContext =
-            ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, "conf/axis2_client.xml");
-            MessageReceiveServiceStub stub = new MessageReceiveServiceStub(configurationContext,"http://localhost:8080/axis2/services/MessageReceiveService.MessageReceiveServiceHttpSoap11Endpoint/");
-            //first send the in only message
-            stub.receive("Test message to receive ");
-            // inout message
-            String response = stub.echo("Test message to echo");
-            System.out.println("Response ==> " + response);
-
-            try {
-            Thread.sleep(10000);
-            } catch (InterruptedException e) {
-            e.printStackTrace();
-            }
-            } catch (AxisFault axisFault) {
-            axisFault.printStackTrace();
-            } catch (java.rmi.RemoteException e) {
-            e.printStackTrace();
-            }
-            }
-        </pre>
-        <p>
-            The complete sample code demonstrating the scenario will be as follows.
-        </p>
-        <pre xml:space="preserve">
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.axis2.context.ConfigurationContextFactory;
-import org.apache.axis2.engine.AxisServer;
-import org.sample.transport.stub.MessageReceiveServiceStub;
-
-public class JMSTransportClient {
-        private AxisServer axisServer;
-        public void start(){
-            try {
-                ConfigurationContext configurationContext =
-                        ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,"conf/axis2.xml");
-                this.axisServer = new AxisServer();
-                this.axisServer.setConfigurationContext(configurationContext);
-                this.axisServer.deployService(MessageReceiveService.class.getName());
-                try {
-                    Thread.sleep(2000);
-                } catch (InterruptedException e) {
-                }
-            } catch (AxisFault axisFault) {
-                axisFault.printStackTrace();
-            } catch (Exception e) {
-                e.printStackTrace();
-            }
-        }
-        public void stop(){
-            try {
-                this.axisServer.stop();
-            } catch (AxisFault axisFault) {
-                axisFault.printStackTrace();
-            }
-        }
-        public void sendMessage(){
-            try {
-
-                ConfigurationContext configurationContext =
-                        ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, "conf/axis2_client.xml");
-                MessageReceiveServiceStub stub = new                    MessageReceiveServiceStub(configurationContext,"http://localhost:8080/axis2/services/MessageReceiveService.MessageReceiveServiceHttpSoap11Endpoint/");
-                //first send the in only message
-                stub.receive("Test message to receive ");
-                // inout message
-                String response = stub.echo("Test message to echo");
-                System.out.println("Response ==> " + response);
-
-                try {
-                    Thread.sleep(10000);
-                } catch (InterruptedException e) {
-                    e.printStackTrace();
-                }
-            } catch (AxisFault axisFault) {
-                axisFault.printStackTrace();
-            } catch (java.rmi.RemoteException e) {
-                e.printStackTrace();
-            }
-        }
-        public static void main(String[] args) {
-
-            JMSTransportClient jmsTransportClient = new JMSTransportClient();
-            jmsTransportClient.start();
-            jmsTransportClient.sendMessage();
-            jmsTransportClient.stop();
-        }
-
-    }
-        </pre>
-    </body>
-</html>


[37/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/product/src/main/resources/web/product/about.html
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/product/src/main/resources/web/product/about.html b/products/cloud_controller/modules/styles/product/src/main/resources/web/product/about.html
deleted file mode 100644
index 00513e4..0000000
--- a/products/cloud_controller/modules/styles/product/src/main/resources/web/product/about.html
+++ /dev/null
@@ -1,132 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html><head><title>WSO2 ESB - About</title>
-
-<link href="../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all"/>
-</head>
-<body>
-<h1>Version 4.7.0</h1>
-<h2>About WSO2 ESB </h2>
-<p>WSO2 ESB is a lightweight and easy-to-use Open Source Enterprise Service Bus
-(ESB) available under the Apache Software License v2.0. WSO2 ESB allows
-administrators to simply and easily configure message routing, intermediation,
-transformation, logging, task scheduling, load balancing, failover routing,
-event brokering, etc.. The runtime has been designed to be completely
-asynchronous, non-blocking and streaming based on the Apache Synapse core.</p>
-
-<p>WSO2 ESB 4.7.0 is developed on top of the revolutionary
-    <a href="http://wso2.org/projects/carbon">Carbon platform</a>
-(Middleware a' la carte), and is based on the OSGi framework to achieve the
-better modularity for your SOA architecture. This also contains a lots of new
-features and many other optional components to customize the behavior of the
-server. Further, if you do not want any of the built in features, you can
-uninstall those features without any trouble. In other words, this ESB can be
-customized to your SOA needs.</p>
-<h2>About WSO2 Carbon </h2>
-<p>WSO2 Carbon is a component based Enterprise SOA platform. The
-design of
-WSO2 Carbon focuses on separating the key functionality of the SOA
-platform
-into separate pluggable Carbon components that can be mixed and
-matched, like
-customizable building blocks. This allows you to add only the
-functionality
-you need to start up, and continue to add product capabilities
-as your
-requirements grow. This helps a business to quickly adapt to
-changes.</p>
-<p>OSGi is used as the underlying core modularization technology
-to build the
-Carbon platform. The Carbon framework is shipped with Eclipse Equinox
-by
-default, but can be supported on Spring dm Server, Felix or Knoplerfish
-if
-required. The OSGi technology even allows you to write your business
-functionality as an OSGi component and deploy it in the existing Carbon
-platform. </p>
-<p> For a quick start on using the WSO2 Carbon
-platform, the Carbon components are pre-assembled into the following
-products: </p>
-<ul id="CarbonProducts"> 
-<li><a href="http://wso2.com/products/governance-registry/">WSO2
-Governance Registry</a></li> 
-<li><a href="http://wso2.com/products/application-server/">WSO2
-Application Server</a></li> 
-<li><a href="http://wso2.com/products/business-rules-server/">WSO2
-Business Rules Server</a></li> 
-<li><a href="http://wso2.com/products/business-process-server/">WSO2
-Business Process Server</a></li> 
-<li><a href="http://wso2.com/products/identity-server/">WSO2
-Identity Server</a></li> 
-<li><a href="http://wso2.com/products/data-services-server">WSO2
-Data Services Server</a></li> 
-<li><a href="http://wso2.com/products/business-activity-monitor/">WSO2
-Business Activity Monitor</a></li> 
-<li><a href="http://wso2.com/products/gadget-server/">WSO2
-Gadget Server</a></li> 
-<li><a href="http://wso2.com/products/mashup-server/">WSO2
-Mashup Server</a></li> 
-</ul> 
-<p>You can assemble your own products by combining
-components and
-deploying them in a preferred architecture. </p>
-<p>The WSO2 Carbon platform gives maximum flexibility to adapt
-the middleware
-to your enterprise architecture, rather than adapt your architecture to
-the
-middleware. </p>
-
-<h2>About WSO2</h2>
-<p>WSO2 is a Open Source technology company building Open Source
-middleware
-platforms for Web services and SOA. WSO2 delivers integrated middleware
-stacks based on components developed at Apache, offering industry
-leading
-performance and convenience for customers. </p>
-<p>Founded in August 2005 by pioneers in Web services and Open
-Source, WSO2
-engineers contribute heavily to many key Apache Web services projects. </p>
-
-<h3>Have you tried...</h3>
-<p><a href="http://wso2.com/products/governance-registry/"><img src="../admin/images/registry_logo_h23.gif" alt="Governance Registry"/></a></p> 
-<p><a href="http://wso2.com/products/application-server/"><img src="../admin/images/appserver_logo_h23.gif" alt="AS"/></a></p> 
-<p><a href="http://wso2.com/products/business-rules-server/"><img src="../admin/images/brs_logo_h23.gif" alt="BRS"/></a></p> 
-<p><a href="http://wso2.com/products/business-process-server/"><img src="../admin/images/bps_logo_h23.gif" alt="BPS"/></a></p> 
-<p><a href="http://wso2.com/products/identity-server/"><img src="../admin/images/identity_logo_h23.gif" alt="IS"/></a></p> 
-<p><a href="http://wso2.com/products/data-services-server"><img src="../admin/images/ds_logo_h23.gif" alt="DS"/></a></p> 
-<p><a href="http://wso2.com/products/business-activity-monitor/"><img src="../admin/images/bam_logo_h23.gif" alt="BAM"/></a></p> 
-<p><a href="http://wso2.com/products/gadget-server/"><img src="../admin/images/gadgetserver_logo_h23.gif" alt="GS"/></a></p> 
-<p><a href="http://wso2.com/products/mashup-server/"><img src="../admin/images/mashup_logo_h23.gif" alt="MS"/></a></p> 
-<h3>Stay connected </h3> 
-<p><a href="http://wso2.org/user/login?destination=newsletter/subscriptions">Subscribe</a>
-to the WSO2 newsletter - project updates, events, articles, SOA news
-and much
-more.</p>
-<h3>Need more help?</h3>
-<ul>
-<li><a href="http://wso2.org/project/esb/java/4.7.0/docs/index.html">Online Documentation</a></li>
-<li><a href="http://wso2.org/library/esb">Read articles</a></li>
-<li><a href="http://wso2.org/forum/187">Post to the ESB forum</a></li>
-<li><a href="http://wso2.org/mail">Subscribe to the mailing list</a></li>
-<li><a href="https://wso2.org/jira/browse/ESBJAVA">Report an Issue</a></li>
-<li><a href="http://wso2.com/services/">Get commercial support</a></li>
-</ul>
-</body></html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/css/main.css
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/css/main.css b/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/css/main.css
deleted file mode 100644
index cd4a780..0000000
--- a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/css/main.css
+++ /dev/null
@@ -1,155 +0,0 @@
-/* ---------------- template styles ------------------------- */
-
-table#main-table td#header {
-	background-image: url( ../images/scc-header-repeat.png);
-	border-bottom: 1px solid #464646;
-	height:84px;
-}
-
-/* ---------------- header styles ------------------ */
-div#header-div {
-    background-image: url( ../images/scc-back.png);
-	height:84px;
-}
-
-div#header-div div.left-logo {
-	background-image: url( ../images/scclogo.png );
-    margin-left: 24px;
-    margin-top: 27px;
-}
-
-div#header-div div.right-logo {
-	color: #02516b;
-    height: 27px;
-    line-height: 27px;
-    margin-right: 20px;
-    margin-top: 10px;
-    padding-right: 0;
-    padding-top: 5px;
-}
-div#header-div div.header-links {
-	margin-top:-10px;
-}
-div#header-div div.header-links div.right-links {
-	margin-right: 0px;
-	height: 35px;
-	padding-top: 0px;
-}
-div#header-div div.header-links div.right-links ul {
-	background-image:url("../images/right-links-bg.gif");
-	background-position:left top;
-	background-repeat:repeat-x;
-	padding-left: 25px;
-	padding-right: 15px;
-	padding-top: 9px;
-	padding-bottom: 7px;
-}
-div#middle h2{
-	color:#34323b;
-}
-/* ------------- menu styles ---------------------- */
-div#menu {
-}
-
-div#menu ul.main {
-}
-
-div#menu ul.main li {
-}
-
-div#menu ul.main li.normal {
-}
-
-div#menu ul.main li a.menu-home {
-background-image:url(../images/menu_header.png);
-height:28px;
-}
-
-div#menu ul.main li.menu-header {
-	background-image: url(../images/menu_header.png);
-	background-position: left bottom;
-	background-repeat: repeat-x;
-	height: 32px;
-	line-height: 32px;
-}
-
-div#menu ul.main li a.menu-default {
-}
-
-div#menu ul.main li a.menu-default:hover {
-	background-color: #EFECF5;
-	border-bottom: solid 1px #C2B7D8;
-	border-top: solid 1px #C2B7D8;
-	color: #00447C;
-}
-
-div#menu ul.sub {
-}
-/* -------------- Sidew menu styles --------------- */
-
-.menu-panel-buttons{
-  
-
-    background-color: #827d91;
-    border-right: 1px solid #CCCCCC;
-    border-top: 1px solid #CCCCCC;
-    border-bottom: 1px solid #CCCCCC;
-
-    -moz-border-radius: 2px;
-    -moz-border-radius: 2px;
-    border-radius: 2px;
-    border-radius: 2px;
-
-    margin-bottom:10px;
-    height:48px;
-    padding: 10px 4px;
-    padding-bottom:10px;
-
-
-    text-align: center;
-}
-.menu-panel-buttons span{
-    color: #fff;
-	background-color:transparent;
-}
-.menu-panel-buttons span.ie{
-	margin-left:0px;
-    *margin-left:-10px;
-    margin-top:-10px;
-}
-div.selected{
-    border:solid 1px #000;
-}
-div.selected{
-    -moz-box-shadow: 3px 3px 3px #888;
-    -webkit-box-shadow: 3px 3px 3px #888;
-    box-shadow: 3px 3px 3px #888;
-}
-div.selected span{
-    color:#c9e3f2;  
-	background-color:transparent;
-}
-#menu-panel-button0{
-    height:20px;
-    margin-top:5px;
-    margin-bottom:5px;
-    margin-left:2px;
-    cursor:pointer;
-}
-
-.showToHidden{
-    background:transparent url(../images/leftRightSlider-dark.png) no-repeat 0 0;
-}
-.hiddenToShow{
-    background:transparent url(../images/leftRightSlider-dark.png) no-repeat -35px 0;
-}
-.vertical-menu{
-    background-color: #b0bcc3;
-    width:20px;
-}
-
-/* -- Footer Styles */
-
-table#main-table td#footer {
-    background-color: #464646;
-}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif b/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif
deleted file mode 100644
index f866f1d..0000000
Binary files a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png b/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png
deleted file mode 100644
index 36477e0..0000000
Binary files a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png b/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png
deleted file mode 100644
index cf8a1c2..0000000
Binary files a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif b/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif
deleted file mode 100644
index 677a421..0000000
Binary files a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif b/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif
deleted file mode 100644
index 074e94f..0000000
Binary files a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scc-back.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scc-back.png b/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scc-back.png
deleted file mode 100644
index 5af96f4..0000000
Binary files a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scc-back.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scc-header-repeat.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scc-header-repeat.png b/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scc-header-repeat.png
deleted file mode 100644
index 65adf34..0000000
Binary files a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scc-header-repeat.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scclogo.png
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scclogo.png b/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scclogo.png
deleted file mode 100644
index d4e5c6c..0000000
Binary files a/products/cloud_controller/modules/styles/product/src/main/resources/web/styles/images/scclogo.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/service/src/main/resources/META-INF/product.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/service/src/main/resources/META-INF/product.xml b/products/cloud_controller/modules/styles/service/src/main/resources/META-INF/product.xml
deleted file mode 100644
index ab0f544..0000000
--- a/products/cloud_controller/modules/styles/service/src/main/resources/META-INF/product.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<product xmlns="http://products.wso2.org/carbon">
-    <properties>
-       <property name="userforum">http://wso2.org/forum/351</property>
-       <property name="userguide">http://wso2.com/cloud</property>
-       <property name="mailinglist">http://wso2.org/mail</property>
-       <property name="issuetracker">https://wso2.org/jira/browse/STRATOS</property>
-       <property name="webAdminConsoleTitle">WSO2 Stratos Manager</property>
-    </properties>
-</product>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/service/src/main/resources/web/favicon.ico
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/service/src/main/resources/web/favicon.ico b/products/cloud_controller/modules/styles/service/src/main/resources/web/favicon.ico
deleted file mode 100644
index f7b2bbf..0000000
Binary files a/products/cloud_controller/modules/styles/service/src/main/resources/web/favicon.ico and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/css/main.css
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/css/main.css b/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/css/main.css
deleted file mode 100644
index f8071d9..0000000
--- a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/css/main.css
+++ /dev/null
@@ -1,240 +0,0 @@
-/* ---------------- template styles ------------------------- */
-body {
-	background-image: url( ../images/def-body-bg.gif);
-	background-position: left top;
-	background-repeat: repeat-x;
-}
-
-table#main-table td#header {
-	background-image: url( ../images/def-header-region-bg.gif);
-	background-position: right top;
-	background-repeat: no-repeat;
-}
-
-table#main-table td#menu-panel {
-	border-right: solid 0px #78BDE8;
-	padding-right: 10px;
-}
-
-table#main-table td#menu-panel table#menu-table {
-	background-image:url("../images/theme-menu-table-bg.gif");
-	background-position:left bottom;
-	background-repeat:no-repeat;
-}
-table#main-table td#menu-panel table#menu-table {
-	background-image: none;
-	background-position:left bottom;
-	background-repeat:no-repeat;
-	border-right:1px solid #B6D8F2;
-	border-bottom:1px solid #B6D8F2;
-}
-table#main-table td#menu-panel table#menu-table tbody tr td img {
-	height: 17px;
-}
-/* ---------------- header styles ------------------ */
-div#header-div {
-    background-image: url( ../images/def-header-bg.gif);
-    height: 121px;
-}
-
-div#header-div div.left-logo {
-	background-image:url("../images/logo.gif");
-	background-position:left center;
-	height:50px;
-	margin-left:50px;
-	margin-top:37px;
-}
-
-div#header-div div.middle-ad {
-	float: left;
-	margin-top: 18px;
-	height: 55px;
-	width: 35%;
-}
-
-div#header-div div.right-logo {
-	background-image:url("../images/right-logo.gif");
-	background-position:right top;
-	background-repeat:no-repeat;
-	color:#B6D8F2;
-	font-size:0;
-	height:31px;
-	line-height:0;
-	margin-right:20px;
-	margin-top:36px;
-	padding-right:0;
-	padding-top:5px;
-	width:239px;
-}
-div#header-div div.header-links {
-	margin-top: 8px;
-}
-div#header-div div.header-links div.right-links {
-	margin-right: 0px;
-	height: 20px;
-	padding-top: 0px;
-}
-div#header-div div.header-links div.right-links ul {
-	background-image: none;
-	background-position:left top;
-	background-repeat:repeat-x;
-	padding-left: 25px;
-	padding-right: 15px;
-	padding-top: 6px;
-	padding-bottom: 7px;
-}
-/* ------------- menu styles ---------------------- */
-div#menu {
-}
-
-div#menu ul.main {
-}
-
-div#menu ul.main li {
-}
-
-div#menu ul.main li.normal {
-}
-
-div#menu ul.main li a.menu-home {
-	display: block !important;
-}
-
-div#menu ul.main li.menu-header {
-	background-image:none;
-	background-position:center top;
-	border-top: 1px solid #CFE3F6;
-	border-bottom:1px solid #78BDE8;
-	height:25px;
-}
-
-div#menu ul.main li a.menu-default {
-}
-
-div#menu ul.main li a.menu-default:hover {
-	background-color: #DAF0FC;
-	border-bottom: solid 1px #72CDF4;
-	border-top: solid 1px #72CDF4;
-	color: #00447C;
-}
-
-div#menu ul.sub {
-} 
-
-/* -------------- child no-01 styles -------------- */
-
-div#menu ul.sub li.normal {
-
-}
-
-div#menu ul.sub li a.menu-default {
-} 
-
-/* ----------- child no-01 (disabled) styles ------------------- */
-	
-div#menu ul.sub li a.menu-disabled-link {
-	}
-	
-	div#menu ul.sub li a.menu-disabled-link:hover {
-	} 
-
-/* -------------- child no-02 styles -------------- */
-
-div#menu ul.sub li.normal ul.sub li a.menu-default {
-
-}
-
-/* -------------- child no-03 styles -------------- */
-
-div#menu ul.sub li.normal ul.sub li.normal ul.sub li a.menu-default {
-}
-
-/* ------------- footer styles -------------------- */
-
-div#footer-div div.footer-content div.poweredby {
-	background-image: url(../images/powered-synapse.gif);
-	background-position: right top;
-}
-div#middle {
-	background-color: #fff;
-}
-
-/* ---- login styles ----- */
-
-
-/* --------------- table styles -------------------- */
-
-.tableOddRow{background-color: white;}
-.tableEvenRow{background-color: #EFECF5;}
-
-.button:hover{
-	background-image:url(../images/esb-button-bg-hover.gif);
-	border:solid 1px #8268A8;
-}
-
-/* =============================================================================================================== */
-
-
-
-.cornerExpand {
-    position: relative;
-    top: 3px;
-    left: -12px;
-    cursor: pointer;
-}
-
-.cornerCollapse {
-    position: relative;
-    top: 3px;
-    left: -12px;
-    cursor: pointer;
-}
-
-/* chanaka */
-
-.form-table td{
-   padding-bottom:5px !important;
-   padding-left:5px !important;
-   padding-top:5px !important;
-   padding-right:10px !important;
-}
-.form-table td div.indented{
-    padding-left:7px !important;
-    color:#595959 !important;
-}
-.form-table-left{
-width:100px;
-}
-
-.longTextField{
-width:270px;
-}
-.rowAlone{
-padding-top:10px;
-padding-bottom:10px;
-}
-.tabedBox{
-border:solid 1px #cccccc;
-margin-left:10px;
-padding:10px;
-margin-bottom:10px;
-}
-/* chanaka end */
-
-a.fact-selector-icon-link {
-    background-image: url( ../images/facts-selector.gif );
-    background-repeat: no-repeat;
-    background-position: left top;
-    padding-left: 20px;
-    line-height: 17px;
-    height: 17px;
-    float: left;
-    position: relative;
-    margin-left: 10px;
-    margin-top: 5px;
-    margin-bottom: 3px;
-    white-space: nowrap;
-}
-table#main-table td#middle-content {
-	background-color: #fff;
-}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif b/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif
deleted file mode 100644
index 5db1464..0000000
Binary files a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif b/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif
deleted file mode 100644
index 758363d..0000000
Binary files a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif b/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif
deleted file mode 100644
index 935ee9e..0000000
Binary files a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif b/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif
deleted file mode 100644
index 813e625..0000000
Binary files a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif b/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif
deleted file mode 100644
index b8bc163..0000000
Binary files a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif b/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif
deleted file mode 100644
index 533d85a..0000000
Binary files a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif
----------------------------------------------------------------------
diff --git a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif b/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif
deleted file mode 100644
index f118904..0000000
Binary files a/products/cloud_controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/pom.xml
----------------------------------------------------------------------
diff --git a/products/cloud_controller/pom.xml b/products/cloud_controller/pom.xml
deleted file mode 100644
index e1a449f..0000000
--- a/products/cloud_controller/pom.xml
+++ /dev/null
@@ -1,160 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-    <parent>
-        <groupId>org.apache.stratos</groupId>
-        <artifactId>stratos-products-parent</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <groupId>org.apache.stratos.cc</groupId>
-    <artifactId>cc-parent</artifactId>
-    <packaging>pom</packaging>
-    <name>Apache Stratos - Cloud Controller</name>
-    <url>http://wso2.org/projects/mb/java</url>
-    <description>Apache Stratos Cloud Controller</description>
-
-    <licenses>
-        <license>
-            <name>Apache License Version 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
-        </license>
-    </licenses>
-
-    <modules>
-        <module>modules/p2-profile</module>
-        <module>modules/distribution</module>
-    </modules>
-
-    <scm>
-        <connection>scm:svn:http://wso2.org/repos/wso2/trunk/mb/java</connection>
-        <developerConnection>scm:svn:https://wso2.org/repos/wso2/trunk/mb/java</developerConnection>
-        <url>https://wso2.org/repos/wso2/trunk/mb/java/</url>
-    </scm>
-
-    <repositories>
-        <repository>
-            <id>wso2-nexus</id>
-            <name>WSO2 internal Repository</name>
-            <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
-            <releases>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </releases>
-        </repository>
-    </repositories>
-
-    <pluginRepositories>
-        <pluginRepository>
-            <id>wso2-maven2-repository</id>
-            <url>http://dist.wso2.org/maven2</url>
-        </pluginRepository>
-    </pluginRepositories>
-
-
-    <distributionManagement>
-        <repository>
-            <id>wso2-maven2-repository</id>
-            <name>WSO2 Maven2 Repository</name>
-            <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/maven2/</url>
-        </repository>
-        <snapshotRepository>
-            <id>wso2-maven2-snapshot-repository</id>
-            <name>WSO2 Maven2 Snapshot Repository</name>
-            <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/snapshots/maven2/</url>
-        </snapshotRepository>
-    </distributionManagement>
-
-    <profiles>
-        <profile>
-            <id>signed-build</id>
-            <activation>
-                <property>
-                    <name>sign</name>
-                </property>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-gpg-plugin</artifactId>
-                        <version>1.0-alpha-3</version>
-                        <executions>
-                            <execution>
-                                <id>sign-artifacts</id>
-                                <phase>verify</phase>
-                                <goals>
-                                    <goal>sign</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
-
-    <organization>
-        <name>Apache</name>
-        <url>http://apache.org</url>
-    </organization>
-
-    <issueManagement>
-        <system>JIRA</system>
-        <url>https://issues.apache.org/jira/browse/stratos</url>
-    </issueManagement>
-
-    <mailingLists>
-        <mailingList>
-            <name>WSO2 Users' list</name>
-            <post>mailto:user@wso2.org</post>
-            <archive>http://wso2.markmail.org/search/+list:org%2Ewso2%2Euser</archive>
-            <subscribe>mailto:dev-request@wso2.org?subject=subscribe</subscribe>
-            <unsubscribe>mailto:dev-request@wso2.org?subject=unsubscribe</unsubscribe>
-        </mailingList>
-        <mailingList>
-            <name>WSO2 Developers' List</name>
-            <post>mailto:dev@wso2.org</post>
-            <archive>http://wso2.markmail.org/search/+list:org%2Ewso2%2Edev</archive>
-            <subscribe>mailto:user-request@wso2.org?subject=subscribe</subscribe>
-            <unsubscribe>mailto:user-request@wso2.org?subject=unsubscribe</unsubscribe>
-        </mailingList>
-    </mailingLists>
-
-    <properties>
-        <carbon.version>4.1.0</carbon.version>
-        <carbon.patch.version>4.1.1</carbon.patch.version>
-        <carbon.patch.version.4.1.3>4.1.3</carbon.patch.version.4.1.3>
-        <carbon.kernel.version>4.1.0</carbon.kernel.version>
-        <carbon.p2.plugin.version>1.5.2</carbon.p2.plugin.version>
-        <stratos.component.version>2.1.0</stratos.component.version>
-        <stratos.component.patch.version.2.1.1>2.1.1</stratos.component.patch.version.2.1.1>
-        <stratos.component.patch.version.2.1.3>2.1.3</stratos.component.patch.version.2.1.3>
-        <passthru.transport.version>1.0.2</passthru.transport.version>
-        <synapse.version>2.1.1-wso2v4</synapse.version>
-        <rampart.mar.version>1.6.1-wso2v8</rampart.mar.version>
-        <slf4j.wso2.version>1.5.10.wso2v1</slf4j.wso2.version>
-    </properties>
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/pom.xml
----------------------------------------------------------------------
diff --git a/products/pom.xml b/products/pom.xml
index efd6014..274c363 100644
--- a/products/pom.xml
+++ b/products/pom.xml
@@ -35,11 +35,11 @@
     <url>http://apache.org</url>
 
     <modules>
-        <module>cloud_controller</module>
+        <module>cloud-controller</module>
         <module>elb</module>
-        <module>stratos_agent</module>
-        <module>stratos_cli</module>
-        <module>stratos_controller</module>
+        <module>stratos-agent</module>
+        <module>stratos-cli</module>
+        <module>stratos-controller</module>
     </modules>
 </project>
 

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/INSTALL.txt
----------------------------------------------------------------------
diff --git a/products/stratos-agent/INSTALL.txt b/products/stratos-agent/INSTALL.txt
new file mode 100644
index 0000000..9d41b13
--- /dev/null
+++ b/products/stratos-agent/INSTALL.txt
@@ -0,0 +1,52 @@
+Installing Apache Stratos Stratos Agent 1.0.1
+==================================================
+
+Standalone Mode
+===============
+1. The directory containing this INSTALL.txt file will be the root and it will be
+   treated as Carbon home directory and let it be CARBON_HOME.
+
+2. All the shell scripts and .bat files are available in CARBON_HOME/bin folder.
+
+3. To start Stratos Agent one can use either stratos.sh in all Unix
+   systems & stratos.bat file on Windows operating systems.
+
+4. Either of the following commands can be used to start Stratos Agent
+      i)  ./stratos.sh {console|start|stop|restart|version}
+     ii)  stratos.bat {start|stop|version}
+
+        Usage: stratos.sh [command] [options] [system-properties]
+
+            command:
+                --start		    Start Stratos Agent as a Unix daemon in the background
+                --console	    Start Stratos Agent as a Unix daemon in the foreground
+                --stop		    Stop the Stratos Agent Unix daemon
+                --restart	    Restart the Stratos Agent Unix daemon
+                --version	    What version of the Stratos Agent server are you running
+            options:
+                --debug <port> 	Start the server in remote debugging mode.
+                                port: The remote debugging port.
+
+            system-properties:
+                -DhttpPort		Overrides the HTTP port defined in the
+                                catalina-server.xml file
+                -DhttpsPort		Overrides the HTTPS port defined in the
+                                catalina-server.xml file
+                -DosgiConsole=[port]
+                                Start Carbon with Equinox OSGi console.
+                                If the optional 'port' parameter is provided, a
+                                telnet port will be opened
+                -DosgiDebugOptions=[options-file]
+                                Start Carbon with OSGi debugging enabled.
+                                If the optional 'options-file is provided, the
+                                OSGi debug options will be loaded from it.
+                -Dsetup			Clean the Registry database & other
+                                configuration, recreate DB, re-populate the
+                                configuration, and start Carbon
+
+System Requirements
+=======================
+1. Minimum memory - 1.5GB
+2. Processor      - Pentium 800MHz or equivalent at minimum
+3. Java SE Development Kit 1.6.0_24 or higher
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/LICENSE.txt
----------------------------------------------------------------------
diff --git a/products/stratos-agent/LICENSE.txt b/products/stratos-agent/LICENSE.txt
new file mode 100644
index 0000000..e9542e3
--- /dev/null
+++ b/products/stratos-agent/LICENSE.txt
@@ -0,0 +1,250 @@
+
+This product is licensed by Apache under Apache License 2.0. The license
+can be downloaded from the following locations:
+	http://www.apache.org/licenses/LICENSE-2.0.html
+	http://www.apache.org/licenses/LICENSE-2.0.txt
+
+This product also contains software under different licenses. This table below
+all the contained libraries (jar files) and the license under which they are 
+provided to you.
+
+At the bottom of this file is a table that shows what each license indicated
+below is and where the actual text of the license can be found.
+
+Name                                                                            Type           License   
+---------------------------------------------------------------------------------------------------------
+abdera_1.0.0.wso2v3.jar                                                         bundle         apache2   
+addressing-1.6.1-wso2v9.mar                                                     bundle         apache2   
+ajaxtags_1.3.0.beta-rc7-wso2v1.jar                                              bundle         apache2   
+andes-client-0.13.wso2v5.jar                                                    bundle         apache2   
+annogen_0.1.0.wso2v1.jar                                                        bundle         apache2   
+antlr_3.2.0.wso2v1.jar                                                          bundle         bsd       
+ant_1.7.0.wso2v1.jar                                                            bundle         apache2   
+authenticator_0.7.0.wso2v1.jar                                                  bundle         apache2   
+axiom_1.2.11.wso2v4.jar                                                         bundle         apache2   
+axis2-json_1.6.1.wso2v9.jar                                                     bundle         apache2   
+axis2-transport-jms_1.1.0.wso2v7.jar                                            bundle         apache2   
+axis2_1.6.1.wso2v8.jar                                                          bundle         apache2   
+axis2_1.6.1.wso2v9.jar                                                          bundle         apache2   
+backport-util-concurrent_3.1.0.wso2v1.jar                                       bundle         public    
+bcprov-jdk15-132.jar                                                            jarinbundle    bouncy    
+bcprov-jdk15.jar                                                                jar            mit       
+com.google.gson_2.1.0.jar                                                       bundle         apache2   
+commons-beanutils-1.7.0.jar                                                     jarinbundle    apache2   
+commons-codec_1.4.0.wso2v1.jar                                                  bundle         apache2   
+commons-collections-3.2.0.wso2v1.jar                                            bundle         apache2   
+commons-collections_3.2.0.wso2v1.jar                                            bundle         apache2   
+commons-dbcp_1.4.0.wso2v1.jar                                                   bundle         apache2   
+commons-digester-1.8.jar                                                        jarinbundle    apache2   
+commons-fileupload_1.2.2.wso2v1.jar                                             bundle         apache2   
+commons-httpclient_3.1.0.wso2v2.jar                                             bundle         apache2   
+commons-io_2.0.0.wso2v2.jar                                                     bundle         apache2   
+commons-lang-2.6.0.wso2v1.jar                                                   bundle         apache2   
+commons-lang_2.6.0.wso2v1.jar                                                   bundle         apache2   
+commons-pool_1.5.6.wso2v1.jar                                                   bundle         apache2   
+compass_2.0.1.wso2v2.jar                                                        bundle         apache2   
+ehcache_1.5.0.wso2v3.jar                                                        bundle         apache2   
+el-impl_2.2.0.wso2v1.jar                                                        bundle         cddl1     
+geronimo-jms_1.1_spec-1.1.0.wso2v1.jar                                          bundle         apache2   
+geronimo-saaj_1.3_spec_1.0.0.wso2v3.jar                                         bundle         apache2   
+geronimo-stax-api_1.0_spec-1.0.1.wso2v2.jar                                     bundle         apache2   
+h2-1.2.140-wso2v3.jar                                                           bundle         epl1      
+h2-database-engine_1.2.140.wso2v3.jar                                           bundle         epl1      
+httpcore_4.2.3.wso2v1.jar                                                       bundle         apache2   
+infinispan-core_5.1.2.wso2v1.jar                                                bundle         lgpl2     
+javasysmon_0.3.3.wso2v1.jar                                                     bundle         jsmon     
+javax.el_2.2.0.v201108011116.jar                                                bundle         cddl1     
+javax.servlet.jsp_2.2.0.v201112011158.jar                                       bundle         cddl1     
+javax.servlet_3.0.0.v201112011016.jar                                           bundle         cddl1     
+jaxb-api-2.2.6.jar                                                              jar            cddl+gpl  
+jaxb_2.2.5.wso2v1.jar                                                           bundle         cddl1     
+jboss-logging_3.1.0.wso2v1.jar                                                  bundle         lgpl2     
+jboss-transaction-api_1.1_spec-1.0.0.Final.jar                                  jar            lgpl2     
+jdbc-pool_7.0.34.wso2v1.jar                                                     bundle         apache2   
+jericho-html-2.4.jar                                                            jarinbundle    epl1      
+jettison_1.1.0.wso2v1.jar                                                       bundle         apache2   
+jgroups_3.0.6.wso2v1.jar                                                        bundle         lgpl2     
+jsr107cache_1.1.0.wso2v3.jar                                                    bundle         apache2   
+jstl_1.2.1.wso2v1.jar                                                           bundle         cddl1     
+marshalling_1.3.6.wso2v1.jar                                                    bundle         lgpl2     
+neethi_2.0.4.wso2v4.jar                                                         bundle         apache2   
+opencsv-1.8.jar                                                                 jarinbundle    apache2   
+opencsv_1.8.0.wso2v1.jar                                                        bundle         apache2   
+opensaml-1.1.406.jar                                                            jarinbundle    apache2   
+opensaml-2.4.1.jar                                                              jarinbundle    apache2   
+opensaml2_2.4.1.wso2v1.jar                                                      bundle         apache2   
+openws-1.4.1.jar                                                                jarinbundle    apache2   
+org.apache.felix.gogo.command_0.8.0.v201108120515.jar                           bundle         apache2   
+org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar                           bundle         apache2   
+org.apache.felix.gogo.shell_0.8.0.v201110170705.jar                             bundle         apache2   
+org.apache.jasper.glassfish_2.2.2.v201205150955.jar                             bundle         apache2   
+org.eclipse.core.contenttype_3.4.200.v20120523-2004.jar                         bundle         epl1      
+org.eclipse.core.expressions_3.4.401.v20120627-124442.jar                       bundle         epl1      
+org.eclipse.core.jobs_3.5.300.v20120622-204750.jar                              bundle         epl1      
+org.eclipse.core.runtime_3.8.0.v20120521-2346.jar                               bundle         epl1      
+org.eclipse.ecf.filetransfer_5.0.0.v20110531-2218.jar                           bundle         epl1      
+org.eclipse.ecf.identity_3.1.100.v20110531-2218.jar                             bundle         epl1      
+org.eclipse.ecf.provider.filetransfer.httpclient_4.0.200.v20120319-0616.jar     bundle         epl1      
+org.eclipse.ecf.provider.filetransfer_3.2.0.v20110531-2218.jar                  bundle         epl1      
+org.eclipse.ecf_3.1.300.v20110531-2218.jar                                      bundle         epl1      
+org.eclipse.equinox.app_1.3.100.v20120522-1841.jar                              bundle         epl1      
+org.eclipse.equinox.common_3.6.100.v20120522-1841.jar                           bundle         epl1      
+org.eclipse.equinox.concurrent_1.0.300.v20120522-2049.jar                       bundle         epl1      
+org.eclipse.equinox.console_1.0.0.v20120522-1841.jar                            bundle         epl1      
+org.eclipse.equinox.ds_1.4.0.v20120522-1841.jar                                 bundle         epl1      
+org.eclipse.equinox.frameworkadmin.equinox_1.0.400.v20120428-0117.jar           bundle         epl1      
+org.eclipse.equinox.frameworkadmin_2.0.100.v20120606-175127.jar                 bundle         epl1      
+org.eclipse.equinox.http.helper_1.1.0.wso2v1.jar                                bundle         epl1      
+org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar                     bundle         epl1      
+org.eclipse.equinox.jsp.jasper_1.0.400.v20120522-2049.jar                       bundle         epl1      
+org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar                           bundle         epl1      
+org.eclipse.equinox.p2.artifact.repository_1.1.100.v20110519.jar                bundle         epl1      
+org.eclipse.equinox.p2.console_1.0.300.v20110502-1955.jar                       bundle         epl1      
+org.eclipse.equinox.p2.core_2.1.0.v20110502-1955.jar                            bundle         epl1      
+org.eclipse.equinox.p2.director.app_1.0.300.v20110505.jar                       bundle         epl1      
+org.eclipse.equinox.p2.directorywatcher_1.0.300.v20110502-1955.jar              bundle         epl1      
+org.eclipse.equinox.p2.director_2.1.0.v20110504-1715.jar                        bundle         epl1      
+org.eclipse.equinox.p2.engine_2.1.0.v20110511.jar                               bundle         epl1      
+org.eclipse.equinox.p2.extensionlocation_1.2.100.v20110510.jar                  bundle         epl1      
+org.eclipse.equinox.p2.garbagecollector_1.0.200.v20110510.jar                   bundle         epl1      
+org.eclipse.equinox.p2.jarprocessor_1.0.200.v20110502-1955.jar                  bundle         epl1      
+org.eclipse.equinox.p2.metadata.repository_1.2.0.v20110511-1359.jar             bundle         epl1      
+org.eclipse.equinox.p2.metadata_2.1.0.v20110510.jar                             bundle         epl1      
+org.eclipse.equinox.p2.publisher_1.2.0.v20110511.jar                            bundle         epl1      
+org.eclipse.equinox.p2.repository.tools_2.0.100.v20110512-1320.jar              bundle         epl1      
+org.eclipse.equinox.p2.repository_2.1.0.v20110601.jar                           bundle         epl1      
+org.eclipse.equinox.p2.touchpoint.eclipse_2.1.0.v20110511-wso2v1.jar            bundle         epl1      
+org.eclipse.equinox.p2.touchpoint.natives_1.0.300.v20110502-1955.jar            bundle         epl1      
+org.eclipse.equinox.p2.transport.ecf_1.0.100.v20110902-0807.jar                 bundle         epl1      
+org.eclipse.equinox.p2.updatechecker_1.1.200.v20110502-1955.jar                 bundle         epl1      
+org.eclipse.equinox.p2.updatesite_1.0.300.v20110510.jar                         bundle         epl1      
+org.eclipse.equinox.preferences_3.5.0.v20120522-1841.jar                        bundle         epl1      
+org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar                         bundle         epl1      
+org.eclipse.equinox.security_1.1.100.v20120522-1841.jar                         bundle         epl1      
+org.eclipse.equinox.simpleconfigurator.manipulator_2.0.0.v20110808-1657.jar     bundle         epl1      
+org.eclipse.equinox.simpleconfigurator_1.0.301.v20120828-033635.jar             bundle         epl1      
+org.eclipse.equinox.util_1.0.400.v20120522-2049.jar                             bundle         epl1      
+org.eclipse.osgi.services_3.3.0.v20110513.jar                                   bundle         epl1      
+org.eclipse.osgi.services_3.3.100.v20120522-1822.jar                            bundle         epl1      
+org.eclipse.osgi_3.8.1.v20120830-144521.jar                                     bundle         epl1      
+org.sat4j.core_2.3.0.v20110329.jar                                              bundle         epl1      
+org.sat4j.pb_2.3.0.v20110329.jar                                                bundle         epl1      
+org.wso2.carbon.adc.instanceinfo.mgt.stub_4.1.1.jar                             bundle         apache2   
+org.wso2.carbon.addressing_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.apache.jasper.fragment_4.1.0.jar                                bundle         apache2   
+org.wso2.carbon.application.deployer_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.authenticator.proxy_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.authenticator.stub_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.base_4.1.0.jar                                                  bundle         apache2   
+org.wso2.carbon.bootstrap-4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.bridge-4.1.0.jar                                                bundle         apache2   
+org.wso2.carbon.caching.core_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.cartridge.agent_2.1.3.jar                                       bundle         apache2   
+org.wso2.carbon.cartridge.messages_2.1.1.jar                                    bundle         apache2   
+org.wso2.carbon.cluster.mgt.core_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.core.bootup.validator_4.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.core.commons.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.core.common_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.core.services_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.core_4.1.0.jar                                                  bundle         apache2   
+org.wso2.carbon.feature.mgt.core_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.feature.mgt.services_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.feature.mgt.stub_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.framework.exporter_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.http.bridge-4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.i18n_4.1.0.jar                                                  bundle         apache2   
+org.wso2.carbon.jasper.patch_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.lb.common_4.1.3.jar                                             bundle         apache2   
+org.wso2.carbon.logging-4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.logging_4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.mediator.bridge-4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.ndatasource.common_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.ndatasource.core_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.ndatasource.rdbms_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.osgi.security_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.queuing_4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.registry.api_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.registry.core_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.registry.server_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.roles.mgt.stub_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.roles.mgt_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.securevault_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.server-4.1.0.jar                                                bundle         apache2   
+org.wso2.carbon.server.admin.common_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.server.admin.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.server.admin_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.servletbridge-4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.tomcat.ext_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.tomcat.fragment.dummy_4.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.tomcat.patch_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.tomcat_4.1.0.jar                                                bundle         apache2   
+org.wso2.carbon.user.api_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.user.core_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.user.mgt.common_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.user.mgt.stub_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.user.mgt_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.utils_4.1.0.jar                                                 bundle         apache2   
+org.wso2.ciphertool-1.0.0-wso2v2.jar                                            bundle         apache2   
+org.wso2.securevault_1.0.0.wso2v2.jar                                           bundle         apache2   
+pdepublishing-ant.jar                                                           jar            epl1      
+pdepublishing.jar                                                               jar            epl1      
+poi-ooxml_3.5.0.wso2v1.jar                                                      bundle         apache2   
+poi-scratchpad_3.5.0.wso2v1.jar                                                 bundle         apache2   
+poi_3.5.0.wso2v1.jar                                                            bundle         apache2   
+quartz_2.1.1.wso2v1.jar                                                         bundle         apache2   
+rampart-1.6.1-wso2v9.mar                                                        bundle         apache2   
+rampart-core_1.6.1.wso2v8.jar                                                   bundle         apache2   
+rampart-policy_1.6.1.wso2v8.jar                                                 bundle         apache2   
+rampart-trust_1.6.1.wso2v8.jar                                                  bundle         apache2   
+saxon_8.9.0.wso2v1.jar                                                          bundle         mpl10     
+slf4j.api_1.6.4.jar                                                             bundle         mit       
+slf4j.log4j12_1.6.4.jar                                                         bundle         mit       
+synapse-commons_2.1.1.wso2v4.jar                                                bundle         apache2   
+synapse-core_2.1.1.wso2v4.jar                                                   bundle         apache2   
+synapse-extensions_2.1.1.wso2v4.jar                                             bundle         apache2   
+synapse-tasks_2.1.1.wso2v4.jar                                                  bundle         apache2   
+tcpmon-1.0.jar                                                                  jar            apache2   
+tiles-jsp_2.0.5.wso2v1.jar                                                      bundle         apache2   
+tomcat-ha_7.0.34.wso2v1.jar                                                     bundle         apache2   
+tomcat-juli-7.0.34.jar                                                          jar            apache2   
+tomcat_7.0.34.wso2v1.jar                                                        bundle         apache2   
+tribes_7.0.28.wso2v1.jar                                                        bundle         apache2   
+woden_1.0.0.M8-wso2v1.jar                                                       bundle         apache2   
+wsdl4j_1.6.2.wso2v4.jar                                                         bundle         cpl1      
+wss4j_1.5.11.wso2v5.jar                                                         bundle         apache2   
+xalan-2.7.1.wso2v1.jar                                                          bundle         apache2   
+xercesImpl-2.8.1.wso2v2.jar                                                     bundle         apache2   
+xml-apis-1.3.04.wso2v2.jar                                                      bundle         apache2   
+xmlbeans-2.3.0.jar                                                              jarinbundle    apache2   
+xmlbeans_2.3.0.wso2v1.jar                                                       bundle         apache2   
+XmlSchema_1.4.7.wso2v2.jar                                                      bundle         apache2   
+xmltooling-1.3.1.jar                                                            jarinbundle    apache2   
+
+
+
+The license types used by the above libraries and their information is given below:
+
+cddl+gpl       CDDL + GPLv2
+               https://glassfish.dev.java.net/public/CDDL+GPL.html
+cpl1           Common Public License 1.0
+               http://www.eclipse.org/legal/cpl-v10.html
+epl1           Eclipse Public License
+               http://www.eclipse.org/legal/epl-v10.html
+jsmon          ThoughtWorks Javasysmon License
+               https://github.com/jezhumble/javasysmon/blob/master/LICENSE
+lgpl2          Lesser GPL v2.1
+               http://www.opensource.org/licenses/lgpl-2.1.php
+apache2        Apache License Version 2.0
+               http://www.apache.org/licenses/LICENSE-2.0.html
+mpl10          Mozilla Public License 1.0
+               http://www.mozilla.org/MPL/
+mit            MIT License
+               http://www.opensource.org/licenses/mit-license.php
+bsd            Berkeley License
+               http://www.opensource.org/licenses/bsd-license.php
+cddl1          Common Development and Distribution License
+               http://www.opensource.org/licenses/cddl1.php
+bouncy         Bouncy Castle License
+               http://www.bouncycastle.org/licence.html
+public         Public Domain
+               http://creativecommons.org/licenses/publicdomain/

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/README.txt
----------------------------------------------------------------------
diff --git a/products/stratos-agent/README.txt b/products/stratos-agent/README.txt
new file mode 100755
index 0000000..2b1e978
--- /dev/null
+++ b/products/stratos-agent/README.txt
@@ -0,0 +1,114 @@
+================================================================================
+                        Apache Stratos Agent 1.0.1
+================================================================================
+
+Welcome to the Apache Stratos Agent 1.0.1 release
+
+Apache Stratos Agent provides services to Non-Carbon Cartridges and it helps
+to communicate the status of Cartridge Instances with Apache Stratos Controller.
+
+System Requirements
+==================================
+
+1. Minimum memory - 1GB
+2. Processor      - Pentium 800MHz or equivalent at minimum
+3. Java SE Development Kit 1.6.0_24 or higher
+
+
+Apache Stratos Agent 1.0.1 distribution directory structure
+=========================================================
+
+    CARBON_HOME
+	|- bin <folder>
+	|- lib <folder>
+	|- repository <folder>
+	|- tmp <folder>
+	|- LICENSE.txt <file>
+	|- README.txt <file>
+	|- INSTALL.txt <file>		
+	|- release-notes.html <file>
+
+    - bin
+	  Contains various scripts, .sh & .bat files
+
+    - dbscripts
+    Contains all the database scripts
+
+    - lib
+	  Contains the basic set of libraries required to startup Stratos Agent
+	  in standalone mode
+
+    - repository
+	  The repository where services and modules deployed in Apache Stratos Agent
+	  are stored. In addition to this, the components directory inside the
+	  repository directory contains the carbon runtime and the user added
+	  jar files including mediators, third party libraries etc. All
+	  global and LB specific configuration files, generated log files
+	  and other deployed artifacts are also housed under this directory.
+
+    - tmp
+	  Used for storing temporary files, and is pointed to by the
+	  java.io.tmpdir System property
+
+    - LICENSE.txt
+	  Apache License 2.0 and the relevant other licenses under which
+	  Apache Stratos Agent is distributed.
+
+    - README.txt
+	  This document.
+
+    - INSTALL.txt
+      This document will contain information on installing Apache Stratos Agent
+
+
+Support
+==================================
+
+Any problem with this release can be reported to Apache Stratos mailing list
+or in the JIRA issue tracker. If you are sending an email to the mailing
+list make sure to add the [Apache Stratos] prefix to the subject.
+
+Mailing list subscription:
+    dev-subscribe@stratos.incubator.apache.org
+
+
+Issue Tracker
+==================================
+
+Jira:
+    https://issues.apache.org/jira/browse/stratos
+
+
+Crypto Notice
+==================================
+
+   This distribution includes cryptographic software.  The country in
+   which you currently reside may have restrictions on the import,
+   possession, use, and/or re-export to another country, of
+   encryption software.  BEFORE using any encryption software, please
+   check your country's laws, regulations and policies concerning the
+   import, possession, or use, and re-export of encryption software, to
+   see if this is permitted.  See <http://www.wassenaar.org/> for more
+   information.
+
+   The U.S. Government Department of Commerce, Bureau of Industry and
+   Security (BIS), has classified this software as Export Commodity
+   Control Number (ECCN) 5D002.C.1, which includes information security
+   software using or performing cryptographic functions with asymmetric
+   algorithms.  The form and manner of this Apache Software Foundation
+   distribution makes it eligible for export under the License Exception
+   ENC Technology Software Unrestricted (TSU) exception (see the BIS
+   Export Administration Regulations, Section 740.13) for both object
+   code and source code.
+
+   The following provides more details on the included cryptographic
+   software:
+
+   Apache Rampart   : http://ws.apache.org/rampart/
+   Apache WSS4J     : http://ws.apache.org/wss4j/
+   Apache Santuario : http://santuario.apache.org/
+   Bouncycastle     : http://www.bouncycastle.org/
+
+
+Thank you for using Apache Stratos!
+The Stratos Team.

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-agent/docs/xdoc/release-notes.xml
----------------------------------------------------------------------
diff --git a/products/stratos-agent/docs/xdoc/release-notes.xml b/products/stratos-agent/docs/xdoc/release-notes.xml
new file mode 100644
index 0000000..65d02bb
--- /dev/null
+++ b/products/stratos-agent/docs/xdoc/release-notes.xml
@@ -0,0 +1,169 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+      <meta content="text/html; charset=iso-8859-1" http-equiv="content-type"/>
+      <title>Apache Stratos ELB v2.0.3 Release </title>
+  </head>
+  <body>
+  <div id="header">
+</div>
+
+<div id="main-content">
+<h1>The Apache Stratos Elastic Load Balancer (ELB) 2.0.3 Release - 28th January 2013!</h1>
+
+<p>
+    The Apache Stratos ELB team is pleased to announce the release of version 2.0.3 of
+    the Open Source Elastic Load Balancer (ELB).
+</p>
+
+<p>
+    Apache Stratos ELB is a fast, lightweight and user friendly open source Elastic Load Balancer (ELB)
+    distributed under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache
+    Software License v2.0</a>. Apache Stratos ELB allows system administrators and developers to
+    easily configure fail over routing, load balancing, service aware load balancing, 
+    tenant aware load balancing and dynamic load balancing with auto scaling.The ELB runtime 
+    is designed to be completely asynchronous, non-blocking and streaming based on the 
+    <a href="http://synapse.apache.org">Apache Synapse</a> mediation engine.
+</p>
+
+<p>
+    Apache Stratos ELB 2.0.3 is developed on top of the revolutionary
+    <a href="http://wso2.org/projects/carbon">WSO2 Carbon platform</a> (Middleware a' la carte),
+    an OSGi based framework that provides seamless modularity to your SOA via
+    componentization. This release also contains many new features and a range of optional
+    components (add-ons) that can be installed to customize the behavior of the ELB. Further, any
+    existing features of the ELB which are not required to your environment can be easily
+    removed using the underlying provisioning framework of Carbon. In brief, Apache Stratos ELB can
+    be fully customized and tailored to meet your exact SOA needs.
+</p>
+
+<p>
+    You can download this distribution from <a href="http://wso2.com/products/elastic-load-balancer/">
+    http://wso2.com/products/elastic-load-balancer/</a> our product page and give it a try.</p>
+
+<h2>How to Run </h2>
+<ol>
+  <li>Extract the downloaded zip</li>
+  <li>Go to the bin directory in the extracted folder</li>
+  <li>Run the stratos.sh or stratos.bat as appropriate</li>
+  <li>Configure the load balancer to manage the load across the instances to be balanced.</li>
+  <li>If you need to start the OSGi console with the server use the property
+    -DosgiConsole when starting the server. The INSTALL.txt file found on the
+    installation directory will give you a comprehensive set of options and
+    properties that can be passed into the startup script</li>
+</ol>
+
+<h2>Key Features of Apache Stratos ELB</h2>
+<ul>
+  <li>Non-blocking HTTP/S transports based on Apache HttpCore-NIO for ultra-fast
+   execution and support for thousands of connections at high concurrency with
+   constant memory usage. Integrated high performing, Passthrough Transport.</li>
+  <li>Load-balancing (with or without sticky sessions)/Fail-over, and clustered
+   Throttling and Caching support</li>
+  <li>Lightweight, XML and Web services centric messaging model</li>
+  <li><b>NEW! Automatically scaling the system according to the number of requests in-flight for 
+          a particular service cluster - "Scale up early, scale down slowly"</b> 
+  </li>
+  <li>Service aware dynamic load balancing - A single load balancer
+   can centrally manage the load across the nodes of different service clusters.
+  </li>
+  <li>Tenant aware load balancing - Tenants can be loaded and unloaded dynamically.
+   Tenants can be partitioned to different service clusters.
+</ul>
+
+<h2>Known Issues</h2>
+<p>
+    All the open issues pertaining to Apache Stratos ELB 2.0.3 are reported at following
+    locations:
+</p>
+
+<ul>
+    <li>
+        <a href="http://goo.gl/W8KYs">
+            Open ELB issues
+        </a>
+    </li>
+</ul>
+
+    <h2>Release 2.0.3</h2>
+    <p>Change Log: This release brings out the autoscaling support for ELB and also contains fixes for some critical issues.</p>
+    <ol>
+        <li>LB-17 - SSO Enables deployment does not work with load balancer.</li>
+        <li>LB-31 - No response code in the access log.</li>
+        <li>LB-37 - Browser tries to save the page sent via LB time to time rather than display it.</li>
+        <li>LB-51 - Disable management console in LB and do not print mgmt console URL at startup.</li>
+        <li>LB-52 - When member leaves the cluster, session continued to bind to that cluster member.</li>
+        <li>LB-55 - Make autoscaling algorithm configurable.</li>
+        <li>LB-64 - Failover is broken in ELB.</li>
+        <li>LB-65 - If one member of a cluster is going off and during that time, the requests redirected to that member by the load balancer, will be failed with a timeout, until the load balancer gets updated that this member has left cluster.</li>
+        <li>LB-66 - Embed Cloud Controller Service aka Autoscaler Service into ELB.</li>
+    </ol>
+
+<h2>How You Can Contribute</h2>
+    <h3>
+      Mailing Lists
+    </h3>
+    <p>
+      Join our mailing list and correspond with the developers directly.
+    </p>
+    <ul>
+      <li>
+        Developer List : <a href="mailto:dev@wso2.org">dev@wso2.org</a>
+        | <a href="mailto:dev-request@wso2.org?subject=subscribe">Subscribe</a>
+        | <a href="http://wso2.org/mailarchive/carbon-dev/">Mail Archive</a>
+      </li>
+    </ul>
+    <h3>
+      Reporting Issues
+    </h3>
+    <p>
+      We encourage you to report issues, documentation faults and feature requests regarding
+      Apache Stratos ELB through the public <a href="https://wso2.org/jira/browse/LB">ELB JIRA</a>. You
+      can use the <a href="https://wso2.org/jira/browse/CARBON">Carbon JIRA</a> to report any
+      issues related to the Carbon base framework or associated Carbon components.
+    </p>
+
+    <h3>
+      Discussion Forums
+    </h3>
+    <p>
+      Alternatively, questions could be raised using <a href="http://stackoverflow.com/questions/tagged/wso2">StackOverflow</a> website.
+    </p>
+
+<h2>Support</h2>
+<p>
+    We are committed to ensuring that your enterprise middleware deployment is
+    completely supported from evaluation to production. Our unique approach
+    ensures that all support leverages our open development methodology and is
+    provided by the very same engineers who build the technology.
+</p>
+<p>
+    For more details and to take advantage of this unique opportunity please
+    visit <a href="http://wso2.com/support">http://wso2.com/support</a>.
+</p>
+
+<p><i>-- The Apache Stratos ELB Team --</i> </p>
+</div>
+  </body>
+</html>


[44/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/product/src/main/resources/web/product/about.html
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/product/src/main/resources/web/product/about.html b/products/cloud-controller/modules/styles/product/src/main/resources/web/product/about.html
new file mode 100644
index 0000000..00513e4
--- /dev/null
+++ b/products/cloud-controller/modules/styles/product/src/main/resources/web/product/about.html
@@ -0,0 +1,132 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head><title>WSO2 ESB - About</title>
+
+<link href="../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all"/>
+</head>
+<body>
+<h1>Version 4.7.0</h1>
+<h2>About WSO2 ESB </h2>
+<p>WSO2 ESB is a lightweight and easy-to-use Open Source Enterprise Service Bus
+(ESB) available under the Apache Software License v2.0. WSO2 ESB allows
+administrators to simply and easily configure message routing, intermediation,
+transformation, logging, task scheduling, load balancing, failover routing,
+event brokering, etc.. The runtime has been designed to be completely
+asynchronous, non-blocking and streaming based on the Apache Synapse core.</p>
+
+<p>WSO2 ESB 4.7.0 is developed on top of the revolutionary
+    <a href="http://wso2.org/projects/carbon">Carbon platform</a>
+(Middleware a' la carte), and is based on the OSGi framework to achieve the
+better modularity for your SOA architecture. This also contains a lots of new
+features and many other optional components to customize the behavior of the
+server. Further, if you do not want any of the built in features, you can
+uninstall those features without any trouble. In other words, this ESB can be
+customized to your SOA needs.</p>
+<h2>About WSO2 Carbon </h2>
+<p>WSO2 Carbon is a component based Enterprise SOA platform. The
+design of
+WSO2 Carbon focuses on separating the key functionality of the SOA
+platform
+into separate pluggable Carbon components that can be mixed and
+matched, like
+customizable building blocks. This allows you to add only the
+functionality
+you need to start up, and continue to add product capabilities
+as your
+requirements grow. This helps a business to quickly adapt to
+changes.</p>
+<p>OSGi is used as the underlying core modularization technology
+to build the
+Carbon platform. The Carbon framework is shipped with Eclipse Equinox
+by
+default, but can be supported on Spring dm Server, Felix or Knoplerfish
+if
+required. The OSGi technology even allows you to write your business
+functionality as an OSGi component and deploy it in the existing Carbon
+platform. </p>
+<p> For a quick start on using the WSO2 Carbon
+platform, the Carbon components are pre-assembled into the following
+products: </p>
+<ul id="CarbonProducts"> 
+<li><a href="http://wso2.com/products/governance-registry/">WSO2
+Governance Registry</a></li> 
+<li><a href="http://wso2.com/products/application-server/">WSO2
+Application Server</a></li> 
+<li><a href="http://wso2.com/products/business-rules-server/">WSO2
+Business Rules Server</a></li> 
+<li><a href="http://wso2.com/products/business-process-server/">WSO2
+Business Process Server</a></li> 
+<li><a href="http://wso2.com/products/identity-server/">WSO2
+Identity Server</a></li> 
+<li><a href="http://wso2.com/products/data-services-server">WSO2
+Data Services Server</a></li> 
+<li><a href="http://wso2.com/products/business-activity-monitor/">WSO2
+Business Activity Monitor</a></li> 
+<li><a href="http://wso2.com/products/gadget-server/">WSO2
+Gadget Server</a></li> 
+<li><a href="http://wso2.com/products/mashup-server/">WSO2
+Mashup Server</a></li> 
+</ul> 
+<p>You can assemble your own products by combining
+components and
+deploying them in a preferred architecture. </p>
+<p>The WSO2 Carbon platform gives maximum flexibility to adapt
+the middleware
+to your enterprise architecture, rather than adapt your architecture to
+the
+middleware. </p>
+
+<h2>About WSO2</h2>
+<p>WSO2 is a Open Source technology company building Open Source
+middleware
+platforms for Web services and SOA. WSO2 delivers integrated middleware
+stacks based on components developed at Apache, offering industry
+leading
+performance and convenience for customers. </p>
+<p>Founded in August 2005 by pioneers in Web services and Open
+Source, WSO2
+engineers contribute heavily to many key Apache Web services projects. </p>
+
+<h3>Have you tried...</h3>
+<p><a href="http://wso2.com/products/governance-registry/"><img src="../admin/images/registry_logo_h23.gif" alt="Governance Registry"/></a></p> 
+<p><a href="http://wso2.com/products/application-server/"><img src="../admin/images/appserver_logo_h23.gif" alt="AS"/></a></p> 
+<p><a href="http://wso2.com/products/business-rules-server/"><img src="../admin/images/brs_logo_h23.gif" alt="BRS"/></a></p> 
+<p><a href="http://wso2.com/products/business-process-server/"><img src="../admin/images/bps_logo_h23.gif" alt="BPS"/></a></p> 
+<p><a href="http://wso2.com/products/identity-server/"><img src="../admin/images/identity_logo_h23.gif" alt="IS"/></a></p> 
+<p><a href="http://wso2.com/products/data-services-server"><img src="../admin/images/ds_logo_h23.gif" alt="DS"/></a></p> 
+<p><a href="http://wso2.com/products/business-activity-monitor/"><img src="../admin/images/bam_logo_h23.gif" alt="BAM"/></a></p> 
+<p><a href="http://wso2.com/products/gadget-server/"><img src="../admin/images/gadgetserver_logo_h23.gif" alt="GS"/></a></p> 
+<p><a href="http://wso2.com/products/mashup-server/"><img src="../admin/images/mashup_logo_h23.gif" alt="MS"/></a></p> 
+<h3>Stay connected </h3> 
+<p><a href="http://wso2.org/user/login?destination=newsletter/subscriptions">Subscribe</a>
+to the WSO2 newsletter - project updates, events, articles, SOA news
+and much
+more.</p>
+<h3>Need more help?</h3>
+<ul>
+<li><a href="http://wso2.org/project/esb/java/4.7.0/docs/index.html">Online Documentation</a></li>
+<li><a href="http://wso2.org/library/esb">Read articles</a></li>
+<li><a href="http://wso2.org/forum/187">Post to the ESB forum</a></li>
+<li><a href="http://wso2.org/mail">Subscribe to the mailing list</a></li>
+<li><a href="https://wso2.org/jira/browse/ESBJAVA">Report an Issue</a></li>
+<li><a href="http://wso2.com/services/">Get commercial support</a></li>
+</ul>
+</body></html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/css/main.css
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/css/main.css b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/css/main.css
new file mode 100644
index 0000000..cd4a780
--- /dev/null
+++ b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/css/main.css
@@ -0,0 +1,155 @@
+/* ---------------- template styles ------------------------- */
+
+table#main-table td#header {
+	background-image: url( ../images/scc-header-repeat.png);
+	border-bottom: 1px solid #464646;
+	height:84px;
+}
+
+/* ---------------- header styles ------------------ */
+div#header-div {
+    background-image: url( ../images/scc-back.png);
+	height:84px;
+}
+
+div#header-div div.left-logo {
+	background-image: url( ../images/scclogo.png );
+    margin-left: 24px;
+    margin-top: 27px;
+}
+
+div#header-div div.right-logo {
+	color: #02516b;
+    height: 27px;
+    line-height: 27px;
+    margin-right: 20px;
+    margin-top: 10px;
+    padding-right: 0;
+    padding-top: 5px;
+}
+div#header-div div.header-links {
+	margin-top:-10px;
+}
+div#header-div div.header-links div.right-links {
+	margin-right: 0px;
+	height: 35px;
+	padding-top: 0px;
+}
+div#header-div div.header-links div.right-links ul {
+	background-image:url("../images/right-links-bg.gif");
+	background-position:left top;
+	background-repeat:repeat-x;
+	padding-left: 25px;
+	padding-right: 15px;
+	padding-top: 9px;
+	padding-bottom: 7px;
+}
+div#middle h2{
+	color:#34323b;
+}
+/* ------------- menu styles ---------------------- */
+div#menu {
+}
+
+div#menu ul.main {
+}
+
+div#menu ul.main li {
+}
+
+div#menu ul.main li.normal {
+}
+
+div#menu ul.main li a.menu-home {
+background-image:url(../images/menu_header.png);
+height:28px;
+}
+
+div#menu ul.main li.menu-header {
+	background-image: url(../images/menu_header.png);
+	background-position: left bottom;
+	background-repeat: repeat-x;
+	height: 32px;
+	line-height: 32px;
+}
+
+div#menu ul.main li a.menu-default {
+}
+
+div#menu ul.main li a.menu-default:hover {
+	background-color: #EFECF5;
+	border-bottom: solid 1px #C2B7D8;
+	border-top: solid 1px #C2B7D8;
+	color: #00447C;
+}
+
+div#menu ul.sub {
+}
+/* -------------- Sidew menu styles --------------- */
+
+.menu-panel-buttons{
+  
+
+    background-color: #827d91;
+    border-right: 1px solid #CCCCCC;
+    border-top: 1px solid #CCCCCC;
+    border-bottom: 1px solid #CCCCCC;
+
+    -moz-border-radius: 2px;
+    -moz-border-radius: 2px;
+    border-radius: 2px;
+    border-radius: 2px;
+
+    margin-bottom:10px;
+    height:48px;
+    padding: 10px 4px;
+    padding-bottom:10px;
+
+
+    text-align: center;
+}
+.menu-panel-buttons span{
+    color: #fff;
+	background-color:transparent;
+}
+.menu-panel-buttons span.ie{
+	margin-left:0px;
+    *margin-left:-10px;
+    margin-top:-10px;
+}
+div.selected{
+    border:solid 1px #000;
+}
+div.selected{
+    -moz-box-shadow: 3px 3px 3px #888;
+    -webkit-box-shadow: 3px 3px 3px #888;
+    box-shadow: 3px 3px 3px #888;
+}
+div.selected span{
+    color:#c9e3f2;  
+	background-color:transparent;
+}
+#menu-panel-button0{
+    height:20px;
+    margin-top:5px;
+    margin-bottom:5px;
+    margin-left:2px;
+    cursor:pointer;
+}
+
+.showToHidden{
+    background:transparent url(../images/leftRightSlider-dark.png) no-repeat 0 0;
+}
+.hiddenToShow{
+    background:transparent url(../images/leftRightSlider-dark.png) no-repeat -35px 0;
+}
+.vertical-menu{
+    background-color: #b0bcc3;
+    width:20px;
+}
+
+/* -- Footer Styles */
+
+table#main-table td#footer {
+    background-color: #464646;
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif
new file mode 100644
index 0000000..f866f1d
Binary files /dev/null and b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/1px.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png
new file mode 100644
index 0000000..36477e0
Binary files /dev/null and b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/leftRightSlider-dark.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png
new file mode 100644
index 0000000..cf8a1c2
Binary files /dev/null and b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif
new file mode 100644
index 0000000..677a421
Binary files /dev/null and b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif
new file mode 100644
index 0000000..074e94f
Binary files /dev/null and b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scc-back.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scc-back.png b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scc-back.png
new file mode 100644
index 0000000..5af96f4
Binary files /dev/null and b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scc-back.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scc-header-repeat.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scc-header-repeat.png b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scc-header-repeat.png
new file mode 100644
index 0000000..65adf34
Binary files /dev/null and b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scc-header-repeat.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scclogo.png
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scclogo.png b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scclogo.png
new file mode 100644
index 0000000..d4e5c6c
Binary files /dev/null and b/products/cloud-controller/modules/styles/product/src/main/resources/web/styles/images/scclogo.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/service/src/main/resources/META-INF/product.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/service/src/main/resources/META-INF/product.xml b/products/cloud-controller/modules/styles/service/src/main/resources/META-INF/product.xml
new file mode 100644
index 0000000..ab0f544
--- /dev/null
+++ b/products/cloud-controller/modules/styles/service/src/main/resources/META-INF/product.xml
@@ -0,0 +1,27 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<product xmlns="http://products.wso2.org/carbon">
+    <properties>
+       <property name="userforum">http://wso2.org/forum/351</property>
+       <property name="userguide">http://wso2.com/cloud</property>
+       <property name="mailinglist">http://wso2.org/mail</property>
+       <property name="issuetracker">https://wso2.org/jira/browse/STRATOS</property>
+       <property name="webAdminConsoleTitle">WSO2 Stratos Manager</property>
+    </properties>
+</product>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/service/src/main/resources/web/favicon.ico
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/service/src/main/resources/web/favicon.ico b/products/cloud-controller/modules/styles/service/src/main/resources/web/favicon.ico
new file mode 100644
index 0000000..f7b2bbf
Binary files /dev/null and b/products/cloud-controller/modules/styles/service/src/main/resources/web/favicon.ico differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/css/main.css
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/css/main.css b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/css/main.css
new file mode 100644
index 0000000..f8071d9
--- /dev/null
+++ b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/css/main.css
@@ -0,0 +1,240 @@
+/* ---------------- template styles ------------------------- */
+body {
+	background-image: url( ../images/def-body-bg.gif);
+	background-position: left top;
+	background-repeat: repeat-x;
+}
+
+table#main-table td#header {
+	background-image: url( ../images/def-header-region-bg.gif);
+	background-position: right top;
+	background-repeat: no-repeat;
+}
+
+table#main-table td#menu-panel {
+	border-right: solid 0px #78BDE8;
+	padding-right: 10px;
+}
+
+table#main-table td#menu-panel table#menu-table {
+	background-image:url("../images/theme-menu-table-bg.gif");
+	background-position:left bottom;
+	background-repeat:no-repeat;
+}
+table#main-table td#menu-panel table#menu-table {
+	background-image: none;
+	background-position:left bottom;
+	background-repeat:no-repeat;
+	border-right:1px solid #B6D8F2;
+	border-bottom:1px solid #B6D8F2;
+}
+table#main-table td#menu-panel table#menu-table tbody tr td img {
+	height: 17px;
+}
+/* ---------------- header styles ------------------ */
+div#header-div {
+    background-image: url( ../images/def-header-bg.gif);
+    height: 121px;
+}
+
+div#header-div div.left-logo {
+	background-image:url("../images/logo.gif");
+	background-position:left center;
+	height:50px;
+	margin-left:50px;
+	margin-top:37px;
+}
+
+div#header-div div.middle-ad {
+	float: left;
+	margin-top: 18px;
+	height: 55px;
+	width: 35%;
+}
+
+div#header-div div.right-logo {
+	background-image:url("../images/right-logo.gif");
+	background-position:right top;
+	background-repeat:no-repeat;
+	color:#B6D8F2;
+	font-size:0;
+	height:31px;
+	line-height:0;
+	margin-right:20px;
+	margin-top:36px;
+	padding-right:0;
+	padding-top:5px;
+	width:239px;
+}
+div#header-div div.header-links {
+	margin-top: 8px;
+}
+div#header-div div.header-links div.right-links {
+	margin-right: 0px;
+	height: 20px;
+	padding-top: 0px;
+}
+div#header-div div.header-links div.right-links ul {
+	background-image: none;
+	background-position:left top;
+	background-repeat:repeat-x;
+	padding-left: 25px;
+	padding-right: 15px;
+	padding-top: 6px;
+	padding-bottom: 7px;
+}
+/* ------------- menu styles ---------------------- */
+div#menu {
+}
+
+div#menu ul.main {
+}
+
+div#menu ul.main li {
+}
+
+div#menu ul.main li.normal {
+}
+
+div#menu ul.main li a.menu-home {
+	display: block !important;
+}
+
+div#menu ul.main li.menu-header {
+	background-image:none;
+	background-position:center top;
+	border-top: 1px solid #CFE3F6;
+	border-bottom:1px solid #78BDE8;
+	height:25px;
+}
+
+div#menu ul.main li a.menu-default {
+}
+
+div#menu ul.main li a.menu-default:hover {
+	background-color: #DAF0FC;
+	border-bottom: solid 1px #72CDF4;
+	border-top: solid 1px #72CDF4;
+	color: #00447C;
+}
+
+div#menu ul.sub {
+} 
+
+/* -------------- child no-01 styles -------------- */
+
+div#menu ul.sub li.normal {
+
+}
+
+div#menu ul.sub li a.menu-default {
+} 
+
+/* ----------- child no-01 (disabled) styles ------------------- */
+	
+div#menu ul.sub li a.menu-disabled-link {
+	}
+	
+	div#menu ul.sub li a.menu-disabled-link:hover {
+	} 
+
+/* -------------- child no-02 styles -------------- */
+
+div#menu ul.sub li.normal ul.sub li a.menu-default {
+
+}
+
+/* -------------- child no-03 styles -------------- */
+
+div#menu ul.sub li.normal ul.sub li.normal ul.sub li a.menu-default {
+}
+
+/* ------------- footer styles -------------------- */
+
+div#footer-div div.footer-content div.poweredby {
+	background-image: url(../images/powered-synapse.gif);
+	background-position: right top;
+}
+div#middle {
+	background-color: #fff;
+}
+
+/* ---- login styles ----- */
+
+
+/* --------------- table styles -------------------- */
+
+.tableOddRow{background-color: white;}
+.tableEvenRow{background-color: #EFECF5;}
+
+.button:hover{
+	background-image:url(../images/esb-button-bg-hover.gif);
+	border:solid 1px #8268A8;
+}
+
+/* =============================================================================================================== */
+
+
+
+.cornerExpand {
+    position: relative;
+    top: 3px;
+    left: -12px;
+    cursor: pointer;
+}
+
+.cornerCollapse {
+    position: relative;
+    top: 3px;
+    left: -12px;
+    cursor: pointer;
+}
+
+/* chanaka */
+
+.form-table td{
+   padding-bottom:5px !important;
+   padding-left:5px !important;
+   padding-top:5px !important;
+   padding-right:10px !important;
+}
+.form-table td div.indented{
+    padding-left:7px !important;
+    color:#595959 !important;
+}
+.form-table-left{
+width:100px;
+}
+
+.longTextField{
+width:270px;
+}
+.rowAlone{
+padding-top:10px;
+padding-bottom:10px;
+}
+.tabedBox{
+border:solid 1px #cccccc;
+margin-left:10px;
+padding:10px;
+margin-bottom:10px;
+}
+/* chanaka end */
+
+a.fact-selector-icon-link {
+    background-image: url( ../images/facts-selector.gif );
+    background-repeat: no-repeat;
+    background-position: left top;
+    padding-left: 20px;
+    line-height: 17px;
+    height: 17px;
+    float: left;
+    position: relative;
+    margin-left: 10px;
+    margin-top: 5px;
+    margin-bottom: 3px;
+    white-space: nowrap;
+}
+table#main-table td#middle-content {
+	background-color: #fff;
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif
new file mode 100644
index 0000000..5db1464
Binary files /dev/null and b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif
new file mode 100644
index 0000000..758363d
Binary files /dev/null and b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif
new file mode 100644
index 0000000..935ee9e
Binary files /dev/null and b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif
new file mode 100644
index 0000000..813e625
Binary files /dev/null and b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif
new file mode 100644
index 0000000..b8bc163
Binary files /dev/null and b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif
new file mode 100644
index 0000000..533d85a
Binary files /dev/null and b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif
----------------------------------------------------------------------
diff --git a/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif
new file mode 100644
index 0000000..f118904
Binary files /dev/null and b/products/cloud-controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud-controller/pom.xml
----------------------------------------------------------------------
diff --git a/products/cloud-controller/pom.xml b/products/cloud-controller/pom.xml
new file mode 100644
index 0000000..e1a449f
--- /dev/null
+++ b/products/cloud-controller/pom.xml
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-products-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.stratos.cc</groupId>
+    <artifactId>cc-parent</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Cloud Controller</name>
+    <url>http://wso2.org/projects/mb/java</url>
+    <description>Apache Stratos Cloud Controller</description>
+
+    <licenses>
+        <license>
+            <name>Apache License Version 2.0</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+        </license>
+    </licenses>
+
+    <modules>
+        <module>modules/p2-profile</module>
+        <module>modules/distribution</module>
+    </modules>
+
+    <scm>
+        <connection>scm:svn:http://wso2.org/repos/wso2/trunk/mb/java</connection>
+        <developerConnection>scm:svn:https://wso2.org/repos/wso2/trunk/mb/java</developerConnection>
+        <url>https://wso2.org/repos/wso2/trunk/mb/java/</url>
+    </scm>
+
+    <repositories>
+        <repository>
+            <id>wso2-nexus</id>
+            <name>WSO2 internal Repository</name>
+            <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
+            <releases>
+                <enabled>true</enabled>
+                <updatePolicy>daily</updatePolicy>
+                <checksumPolicy>ignore</checksumPolicy>
+            </releases>
+        </repository>
+    </repositories>
+
+    <pluginRepositories>
+        <pluginRepository>
+            <id>wso2-maven2-repository</id>
+            <url>http://dist.wso2.org/maven2</url>
+        </pluginRepository>
+    </pluginRepositories>
+
+
+    <distributionManagement>
+        <repository>
+            <id>wso2-maven2-repository</id>
+            <name>WSO2 Maven2 Repository</name>
+            <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/maven2/</url>
+        </repository>
+        <snapshotRepository>
+            <id>wso2-maven2-snapshot-repository</id>
+            <name>WSO2 Maven2 Snapshot Repository</name>
+            <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/snapshots/maven2/</url>
+        </snapshotRepository>
+    </distributionManagement>
+
+    <profiles>
+        <profile>
+            <id>signed-build</id>
+            <activation>
+                <property>
+                    <name>sign</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-gpg-plugin</artifactId>
+                        <version>1.0-alpha-3</version>
+                        <executions>
+                            <execution>
+                                <id>sign-artifacts</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>sign</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+    <organization>
+        <name>Apache</name>
+        <url>http://apache.org</url>
+    </organization>
+
+    <issueManagement>
+        <system>JIRA</system>
+        <url>https://issues.apache.org/jira/browse/stratos</url>
+    </issueManagement>
+
+    <mailingLists>
+        <mailingList>
+            <name>WSO2 Users' list</name>
+            <post>mailto:user@wso2.org</post>
+            <archive>http://wso2.markmail.org/search/+list:org%2Ewso2%2Euser</archive>
+            <subscribe>mailto:dev-request@wso2.org?subject=subscribe</subscribe>
+            <unsubscribe>mailto:dev-request@wso2.org?subject=unsubscribe</unsubscribe>
+        </mailingList>
+        <mailingList>
+            <name>WSO2 Developers' List</name>
+            <post>mailto:dev@wso2.org</post>
+            <archive>http://wso2.markmail.org/search/+list:org%2Ewso2%2Edev</archive>
+            <subscribe>mailto:user-request@wso2.org?subject=subscribe</subscribe>
+            <unsubscribe>mailto:user-request@wso2.org?subject=unsubscribe</unsubscribe>
+        </mailingList>
+    </mailingLists>
+
+    <properties>
+        <carbon.version>4.1.0</carbon.version>
+        <carbon.patch.version>4.1.1</carbon.patch.version>
+        <carbon.patch.version.4.1.3>4.1.3</carbon.patch.version.4.1.3>
+        <carbon.kernel.version>4.1.0</carbon.kernel.version>
+        <carbon.p2.plugin.version>1.5.2</carbon.p2.plugin.version>
+        <stratos.component.version>2.1.0</stratos.component.version>
+        <stratos.component.patch.version.2.1.1>2.1.1</stratos.component.patch.version.2.1.1>
+        <stratos.component.patch.version.2.1.3>2.1.3</stratos.component.patch.version.2.1.3>
+        <passthru.transport.version>1.0.2</passthru.transport.version>
+        <synapse.version>2.1.1-wso2v4</synapse.version>
+        <rampart.mar.version>1.6.1-wso2v8</rampart.mar.version>
+        <slf4j.wso2.version>1.5.10.wso2v1</slf4j.wso2.version>
+    </properties>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/cloud_controller/INSTALL.txt
----------------------------------------------------------------------
diff --git a/products/cloud_controller/INSTALL.txt b/products/cloud_controller/INSTALL.txt
deleted file mode 100644
index e3e53be..0000000
--- a/products/cloud_controller/INSTALL.txt
+++ /dev/null
@@ -1,75 +0,0 @@
-Installing  Apache Stratos Cloud Controller Server (CC) 3.0.0-SNAPSHOT
-===================================================================
-
-1. The directory containing this INSTALL.txt file will be the root and it will be
-   treated as Carbon home directory and let it be CARBON_HOME.
-
-2. All the shell scripts and .bat files are available in CARBON_HOME/bin folder.
-
-3. To start CC one can use either stratos.sh in all Unix
-   systems & stratos.bat file on Windows operating systems.
-
-4. Either of the following commands can be used to start CC
-      i)  ./stratos.sh {console|start|stop|restart|version}
-      ii)  stratos.bat {start|stop|version}
-
-            Usage: stratos.sh [command] [options] [system-properties]
-
-                command:
-                    --start	    Start CC as a Unix daemon in the background
-                    --console	    Start CC as a Unix daemon in the foreground
-                    --stop	    Stop the CC Unix daemon
-                    --restart	    Restart the CC Unix daemon
-                    --version	    What version of the CC server are you running
-
-                options:
-                    --debug <port>  Start the server in remote debugging mode.
-                                    port: The remote debugging port.
-                    --cleanRegistry Clean registry space
-                    --reset         Clean the cache & component repository and the
-                                    registry space
-
-                system-properties:
-                    -DhttpPort	    Overrides the HTTP port defined in the
-                                    catalina-server.xml file
-                    -DhttpsPort	    Overrides the HTTPS port defined in the
-                                    catalina-server.xml file
-                    -DSynapseServerName=[server-name]
-                                    Server name of the synapse server
-                    -DosgiConsole=[port]
-                                    Start Carbon with Equinox OSGi console.
-                                    If the optional 'port' parameter is provided, a
-                                    telnet port will be opened
-                    -DosgiDebugOptions=[options-file]
-                                    Start Carbon with OSGi debugging enabled.
-                                    If the optional 'options-file is provided, the
-                                    OSGi debug options will be loaded from it.
-                    -Dsetup	    Clean the Registry database & other
-                                    configuration, recreate DB, re-populate the
-                                    configuration, and start Carbon
-                    -Dcarbon.registry.root
-                                    The root of the Registry used by
-                                    this Carbon instance
-                    -Dweb.location  The directory into which UI artifacts
-                                    included in an Axis2 AAR file are extracted to
-                    -DworkerNode=true
-                                    Set this system property when starting as a worker node.
-                                    This is required in clustered setups with master and worker nodes.
-
-System Requirements
-=======================
-1. Minimum memory - 1.5GB
-2. Processor      - Pentium 800MHz or equivalent at minimum
-3. Java SE Development Kit 1.6.24 or higher
-4. The Management Console requires you to enable Javascript of the Web browser,
-   with MS IE 7. In addition to JavaScript, ActiveX should also be enabled
-   with IE. This can be achieved by setting your security level to
-   medium or lower.
-5. To compile and run the sample clients, an Ant version is required. Ant 1.7.0
-   version is recommended
-6. To build Apache Stratos CC from the Source distribution, it is necessary that you have
-   JDK 1.6.24 version and Maven 3.0.4 or later
-
-
-
-


[17/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png
new file mode 100644
index 0000000..cf8a1c2
Binary files /dev/null and b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/menu_header.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif
new file mode 100644
index 0000000..677a421
Binary files /dev/null and b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/right-links-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif
new file mode 100644
index 0000000..074e94f
Binary files /dev/null and b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/right-logo-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sc-back.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sc-back.png b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sc-back.png
new file mode 100644
index 0000000..680369a
Binary files /dev/null and b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sc-back.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sc-header-repeat.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sc-header-repeat.png b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sc-header-repeat.png
new file mode 100644
index 0000000..65adf34
Binary files /dev/null and b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sc-header-repeat.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sclogo.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sclogo.png b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sclogo.png
new file mode 100644
index 0000000..0c26fa1
Binary files /dev/null and b/products/stratos-controller/modules/styles/product/src/main/resources/web/styles/images/sclogo.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/service/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/service/pom.xml b/products/stratos-controller/modules/styles/service/pom.xml
new file mode 100644
index 0000000..fb2ab4b
--- /dev/null
+++ b/products/stratos-controller/modules/styles/service/pom.xml
@@ -0,0 +1,143 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+     <parent>
+	<groupId>org.apache.stratos</groupId>
+	<artifactId>manager-styles-parent</artifactId>
+	<version>3.0.0-SNAPSHOT</version>
+    </parent>
+
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.stratos.manager.styles</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Stratos - Cloud Manager UI styles</name>
+    <url>http://apache.org</url>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-eclipse-plugin</artifactId>
+                <version>2.6</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+                        <Bundle-Name>${project.artifactId}</Bundle-Name>
+                        <Import-Package>
+                            org.osgi.framework,
+                            org.osgi.service.http,
+                            org.wso2.carbon.ui,
+                            javax.servlet.*;version="2.4.0",
+                            *;resolution:=optional
+                        </Import-Package>
+                        <!--<Fragment-Host>org.wso2.carbon.ui</Fragment-Host>-->
+                        <Carbon-Component>UIBundle</Carbon-Component>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <includes>
+                    <include>META-INF/product.xml</include>
+                </includes>
+                <filtering>true</filtering>
+            </resource>
+            <resource>
+                <directory>src/main/resources</directory>
+                <excludes>
+                    <exclude>META-INF/product.xml</exclude>
+                </excludes>
+            </resource>
+        </resources>
+    </build>
+
+     <dependencies>
+        
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.ui</artifactId>
+            <version>4.1.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.apache.felix.framework</artifactId>
+            <version>1.0.3</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.apache.felix.main</artifactId>
+             <version>1.0.3</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.osgi.compendium</artifactId>
+             <version>1.0.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.eclipse.equinox</groupId>
+            <artifactId>org.eclipse.equinox.http.servlet</artifactId>
+            <version>2.2.2</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.eclipse.equinox</groupId>
+            <artifactId>org.eclipse.equinox.http.helper</artifactId>
+            <version>1.0.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.eclipse.equinox</groupId>
+            <artifactId>org.eclipse.equinox.jsp.jasper</artifactId>
+            <version>1.0.1.R33x_v20070816</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.eclipse.equinox</groupId>
+            <artifactId>javax.servlet.jsp</artifactId>
+            <version>2.0.0.v200706191603</version>
+        </dependency>
+    </dependencies>
+    <properties>
+         <wso2carbon.version>4.1.0</wso2carbon.version>
+    </properties>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/service/src/main/resources/META-INF/product.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/service/src/main/resources/META-INF/product.xml b/products/stratos-controller/modules/styles/service/src/main/resources/META-INF/product.xml
new file mode 100644
index 0000000..1d80dae
--- /dev/null
+++ b/products/stratos-controller/modules/styles/service/src/main/resources/META-INF/product.xml
@@ -0,0 +1,27 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<product xmlns="http://products.wso2.org/carbon">
+    <properties>
+       <property name="userforum">http://stackoverflow.com/questions/tagged/wso2</property>
+       <property name="userguide">http://docs.wso2.org/stratos</property>
+       <property name="mailinglist">http://wso2.org/mail</property>
+       <property name="issuetracker">https://wso2.org/jira/browse/SPI</property>
+       <property name="webAdminConsoleTitle">WSO2 Stratos Controller (WSO2 SC)</property>
+    </properties>
+</product>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/service/src/main/resources/web/favicon.ico
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/service/src/main/resources/web/favicon.ico b/products/stratos-controller/modules/styles/service/src/main/resources/web/favicon.ico
new file mode 100644
index 0000000..f7b2bbf
Binary files /dev/null and b/products/stratos-controller/modules/styles/service/src/main/resources/web/favicon.ico differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/css/main.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/css/main.css b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/css/main.css
new file mode 100755
index 0000000..78803ea
--- /dev/null
+++ b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/css/main.css
@@ -0,0 +1,240 @@
+/* ---------------- template styles ------------------------- */
+body {
+	background-image: url( ../images/def-body-bg.gif);
+	background-position: left top;
+	background-repeat: repeat-x;
+}
+
+table#main-table td#header {
+	background-image: url( ../images/def-header-region-bg.gif);
+	background-position: right top;
+	background-repeat: no-repeat;
+}
+
+table#main-table td#menu-panel {
+	border-right: solid 0px #78BDE8;
+	padding-right: 10px;
+}
+
+table#main-table td#menu-panel table#menu-table {
+	background-image:url("../images/theme-menu-table-bg.gif");
+	background-position:left bottom;
+	background-repeat:no-repeat;
+}
+table#main-table td#menu-panel table#menu-table {
+	background-image: none;
+	background-position:left bottom;
+	background-repeat:no-repeat;
+	border-right:1px solid #B6D8F2;
+	border-bottom:1px solid #B6D8F2;
+}
+table#main-table td#menu-panel table#menu-table tbody tr td img {
+	height: 17px;
+}
+/* ---------------- header styles ------------------ */
+div#header-div {
+    background-image: url( ../images/def-header-bg.gif);
+    height: 121px;
+}
+
+div#header-div div.left-logo {
+	background-image:url("../images/logo.gif");
+	background-position:left center;
+	height:50px;
+	margin-left:50px;
+	margin-top:37px;
+}
+
+div#header-div div.middle-ad {
+	float: left;
+	margin-top: 18px;
+	height: 55px;
+	width: 35%;
+}
+
+div#header-div div.right-logo {
+	background-image:url("../images/right-logo.gif");
+	background-position:right top;
+	background-repeat:no-repeat;
+	color:#B6D8F2;
+	font-size:0;
+	height:31px;
+	line-height:0;
+	margin-right:20px;
+	margin-top:36px;
+	padding-right:0;
+	padding-top:5px;
+	width:239px;
+}
+div#header-div div.header-links {
+	margin-top: 8px;
+}
+div#header-div div.header-links div.right-links {
+	margin-right: 0px;
+	height: 20px;
+	padding-top: 0px;
+}
+div#header-div div.header-links div.right-links ul {
+	background-image: none;
+	background-position:left top;
+	background-repeat:repeat-x;
+	padding-left: 25px;
+	padding-right: 15px;
+	padding-top: 6px;
+	padding-bottom: 7px;
+}
+/* ------------- menu styles ---------------------- */
+div#menu {
+}
+
+div#menu ul.main {
+}
+
+div#menu ul.main li {
+}
+
+div#menu ul.main li.normal {
+}
+
+div#menu ul.main li a.menu-home {
+	display: block !important;
+}
+
+div#menu ul.main li.menu-header {
+	background-image:none;
+	background-position:center top;
+	border-top: 1px solid #CFE3F6;
+	border-bottom:1px solid #78BDE8;
+	height:25px;
+}
+
+div#menu ul.main li a.menu-default {
+}
+
+div#menu ul.main li a.menu-default:hover {
+	background-color: #DAF0FC;
+	border-bottom: solid 1px #72CDF4;
+	border-top: solid 1px #72CDF4;
+	color: #00447C;
+}
+
+div#menu ul.sub {
+} 
+
+/* -------------- child no-01 styles -------------- */
+
+div#menu ul.sub li.normal {
+
+}
+
+div#menu ul.sub li a.menu-default {
+} 
+
+/* ----------- child no-01 (disabled) styles ------------------- */
+	
+div#menu ul.sub li a.menu-disabled-link {
+	}
+	
+	div#menu ul.sub li a.menu-disabled-link:hover {
+	} 
+
+/* -------------- child no-02 styles -------------- */
+
+div#menu ul.sub li.normal ul.sub li a.menu-default {
+
+}
+
+/* -------------- child no-03 styles -------------- */
+
+div#menu ul.sub li.normal ul.sub li.normal ul.sub li a.menu-default {
+}
+
+/* ------------- footer styles -------------------- */
+
+div#footer-div div.footer-content div.poweredby {
+	background-image: url(../images/powered-synapse.gif);
+	background-position: right top;
+}
+div#middle {
+	background-color: #fff;
+}
+
+/* ---- login styles ----- */
+
+
+/* --------------- table styles -------------------- */
+
+.tableOddRow{background-color: white;}
+.tableEvenRow{background-color: #EFECF5;}
+
+.button:hover{
+	background-image:url(../images/esb-button-bg-hover.gif);
+	border:solid 1px #8268A8;
+}
+
+/* =============================================================================================================== */
+
+
+
+.cornerExpand {
+    position: relative;
+    top: 3px;
+    left: -12px;
+    cursor: pointer;
+}
+
+.cornerCollapse {
+    position: relative;
+    top: 3px;
+    left: -12px;
+    cursor: pointer;
+}
+
+/* chanaka */
+
+.form-table td{
+   padding-bottom:5px !important;
+   padding-left:5px !important;
+   padding-top:5px !important;
+   padding-right:10px !important;
+}
+.form-table td div.indented{
+    padding-left:7px !important;
+    color:#595959 !important;
+}
+.form-table-left{
+width:100px;
+}
+
+.longTextField{
+width:270px;
+}
+.rowAlone{
+padding-top:10px;
+padding-bottom:10px;
+}
+.tabedBox{
+border:solid 1px #cccccc;
+margin-left:10px;
+padding:10px;
+margin-bottom:10px;
+}
+/* chanaka end */
+
+a.fact-selector-icon-link {
+    background-image: url( ../images/facts-selector.gif );
+    background-repeat: no-repeat;
+    background-position: left top;
+    padding-left: 20px;
+    line-height: 17px;
+    height: 17px;
+    float: left;
+    position: relative;
+    margin-left: 10px;
+    margin-top: 5px;
+    margin-bottom: 3px;
+    white-space: nowrap;
+}
+table#main-table td#middle-content {
+	background-color: #fff;
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif
new file mode 100755
index 0000000..5db1464
Binary files /dev/null and b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-body-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif
new file mode 100755
index 0000000..758363d
Binary files /dev/null and b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif
new file mode 100755
index 0000000..935ee9e
Binary files /dev/null and b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/def-header-region-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif
new file mode 100755
index 0000000..813e625
Binary files /dev/null and b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif
new file mode 100644
index 0000000..b8bc163
Binary files /dev/null and b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/powered.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif
new file mode 100755
index 0000000..533d85a
Binary files /dev/null and b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/right-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif
new file mode 100644
index 0000000..f118904
Binary files /dev/null and b/products/stratos-controller/modules/styles/service/src/main/resources/web/styles/images/t-right-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/pom.xml b/products/stratos-controller/pom.xml
new file mode 100755
index 0000000..acecd81
--- /dev/null
+++ b/products/stratos-controller/pom.xml
@@ -0,0 +1,419 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-products-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+    </parent>
+    
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.stratos</groupId>
+    <artifactId>stratos-controller-parent</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Controller Parent</name>
+    <url>http://apache.org</url>
+    <description>Apache Stratos Controller Parent</description>
+
+    <licenses>
+        <license>
+            <name>Apache License Version 2.0</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+        </license>
+    </licenses>
+
+    <modules>
+        <module>modules/styles</module>
+        <module>modules/cloud-service-mgt</module>
+        <module>modules/dashboard</module>
+        <module>modules/login</module>
+        <module>modules/features</module>
+        <module>modules/p2-profile-gen</module>
+        <module>modules/features-dashboard</module>
+        <module>resources/cloud-services-icons</module>
+        <module>modules/distribution</module>
+        <module>modules/integration</module>
+    </modules>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>log4j</groupId>
+                <artifactId>log4j</artifactId>
+                <version>1.2.13</version>
+            </dependency>
+            <dependency>
+                <groupId>commons-logging</groupId>
+                <artifactId>commons-logging</artifactId>
+                <version>1.1.1</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.axis2.wso2</groupId>
+                <artifactId>axis2</artifactId>
+                <version>1.6.1.wso2v1</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.ws.commons.axiom.wso2</groupId>
+                <artifactId>axiom</artifactId>
+                <version>1.2.11.wso2v2</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.derby.wso2</groupId>
+                <artifactId>derby</artifactId>
+                <version>10.3.2.1wso2v1</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.core</artifactId>
+                <version>${carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.ui</artifactId>
+                <version>${carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.registry.core</artifactId>
+                <version>${carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.registry.mgt.ui.search</artifactId>
+                <version>${carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.registry.ui.search</artifactId>
+                <version>${carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.registry.mgt.ui.resources</artifactId>
+                <version>${carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.registry.ui.resources</artifactId>
+                <version>${carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.registry.ui.common</artifactId>
+                <version>${carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.apache.felix.framework</artifactId>
+                <version>1.0.3</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.osgi.core</artifactId>
+                <version>1.0.0</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.apache.felix.main</artifactId>
+                <version>1.0.3</version>
+            </dependency>
+
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.osgi.compendium</artifactId>
+                <version>1.0.0</version>
+            </dependency>
+
+            <dependency>
+                <groupId>org.eclipse.equinox</groupId>
+                <artifactId>org.eclipse.equinox.http.servlet</artifactId>
+                <version>2.2.2</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.equinox</groupId>
+                <artifactId>org.eclipse.equinox.http.helper</artifactId>
+                <version>1.0.0</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.equinox</groupId>
+                <artifactId>org.eclipse.equinox.jsp.jasper</artifactId>
+                <version>1.0.1.R33x_v20070816</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.equinox</groupId>
+                <artifactId>javax.servlet.jsp</artifactId>
+                <version>2.0.0.v200706191603</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.equinox</groupId>
+                <artifactId>org.apache.jasper</artifactId>
+                <version>5.5.17.v200706111724</version>
+            </dependency>
+            <dependency>
+                <groupId>javax.servlet</groupId>
+                <artifactId>servlet-api</artifactId>
+                <version>${servlet-api.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.swt</groupId>
+                <artifactId>org.eclipse.swt</artifactId>
+                <version>${eclipse.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.swt</groupId>
+                <artifactId>org.eclipse.swt.win32.win32.x86</artifactId>
+                <version>${eclipse.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.jface</groupId>
+                <artifactId>org.eclipse.jface</artifactId>
+                <version>${eclipse.version}</version>
+            </dependency>
+
+            <!-- Dependencies required for Cloud Manager -->
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.captcha.mgt</artifactId>
+                <version>${carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.admin.mgt</artifactId>
+                <version>${carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.admin.mgt.ui</artifactId>
+                <version>${carbon.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.account.mgt</artifactId>
+                <version>${stratos.component.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.tenant.mgt</artifactId>
+                <version>${project.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.tenant.mgt.email.sender</artifactId>
+                <version>${project.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.tenant.mgt.core</artifactId>
+                <version>${project.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>org.wso2.carbon.tenant.mgt.axis2</artifactId>
+                <version>${stratos.component.version}</version>
+            </dependency>
+        <dependency>
+            <groupId>org.apache.stratos</groupId>
+            <artifactId>org.apache.stratos.common</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.theme.mgt</artifactId>
+                <version>${project.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.stratos</groupId>
+                <artifactId>org.apache.stratos.redirector.servlet</artifactId>
+                <version>${project.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.batik.wso2</groupId>
+                <artifactId>batik</artifactId>
+                <version>1.7.0.wso2v1</version>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <build>
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <groupId>org.apache.felix</groupId>
+                    <artifactId>maven-scr-plugin</artifactId>
+                    <version>1.0.10</version>
+                    <executions>
+                        <execution>
+                            <id>generate-scr-scrdescriptor</id>
+                            <goals>
+                                <goal>scr</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>             
+        </plugins>
+    </build>
+    <scm>
+        <connection>scm:svn:https://wso2.org/repos/wso2/trunk/wsas/java</connection>
+        <developerConnection>scm:svn:https://wso2.org/repos/wso2/trunk/wsas/java
+        </developerConnection>
+    </scm>
+
+    <repositories>
+        <repository>
+            <id>wso2-nexus</id>
+            <name>WSO2 internal Repository</name>
+            <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
+            <releases>
+                <enabled>true</enabled>
+                <updatePolicy>daily</updatePolicy>
+                <checksumPolicy>ignore</checksumPolicy>
+            </releases>
+        </repository>
+        <!--moved to nexus
+
+        <repository>
+            <id>wso2-maven2-repository-snapshot</id>
+            <url>http://dist.wso2.org/snapshots/maven2</url>
+        </repository>
+        <repository>
+            <id>m2-snapshot-repository</id>
+            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </repository>
+        <repository>
+            <id>wso2-maven2-repository</id>
+            <url>http://dist.wso2.org/maven2</url>
+        </repository>
+        <repository>
+            <id>tomcat-repository</id>
+            <url>http://tomcat.apache.org/dev/dist/m2-repository</url>
+        </repository>
+        <repository>
+            <id>ws-zones-repository</id>
+            <url>http://ws.zones.apache.org/repository2</url>
+        </repository>
+        <!&ndash;&ndash; Others are available from http://repo1.maven.org/maven2 &ndash;&ndash;>
+
+        -->
+    </repositories>
+
+    <distributionManagement>
+        <repository>
+            <id>wso2-maven2-repository</id>
+            <name>WSO2 Maven2 Repository</name>
+            <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/maven2/</url>
+        </repository>
+        <snapshotRepository>
+            <id>wso2-maven2-snapshot-repository</id>
+            <name>WSO2 Maven2 Snapshot Repository</name>
+            <url>scp://dist.wso2.org/home/httpd/dist.wso2.org/snapshots/maven2/</url>
+        </snapshotRepository>
+    </distributionManagement>
+
+    <profiles>
+        <profile>
+            <activation>
+                <property>
+                    <name>sign</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-gpg-plugin</artifactId>
+                        <version>1.0-alpha-3</version>
+                        <executions>
+                            <execution>
+                                <id>sign-artifacts</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>sign</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-compiler-plugin</artifactId>
+                        <configuration>
+                            <source>1.6</source>
+                            <target>1.6</target>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+    <organization>
+        <name>WSO2 Inc</name>
+        <url>http://wso2.com</url>
+    </organization>
+
+    <properties>
+        <rampart.mar.version>1.6.1-wso2v8</rampart.mar.version>
+        <features-dashboard.war.version>1.0.0</features-dashboard.war.version>
+        <carbon.version>4.1.0</carbon.version>
+	<synapse.version>2.1.1.wso2v4</synapse.version>
+        <stratos.controller.version>1.0.1</stratos.controller.version>
+        <stratos.component.version>2.1.0</stratos.component.version>
+	<project.version>3.0.0-SNAPSHOT</project.version>
+        <stratos.component.patch.version>2.1.3</stratos.component.patch.version>
+        <eclipse.version>3.2.0</eclipse.version>
+        <servlet-api.version>2.4</servlet-api.version>
+        <shoppingcart.version>2.1.0</shoppingcart.version>
+	<shoppingcart.global.version>2.1.0</shoppingcart.global.version>
+	<carbon.kernel.version>4.1.0</carbon.kernel.version>
+	<version.synapse>2.1.1-wso2v3</version.synapse>
+	<carbon.p2.plugin.version>1.5.2</carbon.p2.plugin.version>
+	<carbon.platform.version>4.1.0</carbon.platform.version>
+	<passthru.transport.version>1.0.2</passthru.transport.version>
+	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <opencsv.version>1.8</opencsv.version>
+        <poi.version>3.0-FINAL</poi.version>
+        <axis2.transport.version>1.1.0-wso2v8</axis2.transport.version>
+        <axis2.wso2.version>1.6.1.wso2v8</axis2.wso2.version>
+        <axiom.osgi.version>1.2.11.wso2v4</axiom.osgi.version>
+        <axiom.osgi.version.range>[1.2.11.wso2v4, 1.3.0)</axiom.osgi.version.range>
+	<servlet-api.version>2.4</servlet-api.version>
+        <log4j.version>1.2.17</log4j.version>
+        <commons.logging.version>1.1</commons.logging.version>
+	<quartz.wso2.version>2.1.1.wso2v1</quartz.wso2.version>
+    </properties>
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Dark/admin/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Dark/admin/logo.gif b/products/stratos-controller/resources/allthemes/Dark/admin/logo.gif
new file mode 100755
index 0000000..196b81f
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Dark/admin/logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Dark/admin/main.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Dark/admin/main.css b/products/stratos-controller/resources/allthemes/Dark/admin/main.css
new file mode 100755
index 0000000..cea80c4
--- /dev/null
+++ b/products/stratos-controller/resources/allthemes/Dark/admin/main.css
@@ -0,0 +1,232 @@
+/* ---------------- template styles ------------------------- */
+
+table#main-table td#header {
+	background-image: url( theme-header-region-bg.gif);
+}
+
+table#main-table td#menu-panel {
+	border-right: solid 0px #73559D;
+	background-image: url(theme-menu-panel-l-bg.gif);
+	background-position: left top;
+	background-repeat: no-repeat;
+	padding-left: 0;
+	background-color: #F4F4F4;
+}
+
+table#main-table td#menu-panel table#menu-table {
+	background-image:url("theme-menu-table-bg.gif");
+	background-position:left bottom;
+	background-repeat:no-repeat;
+}
+table#main-table td#menu-panel table#menu-table td {
+	padding-left: 6px;
+	padding-right:16px;
+}	
+table#main-table td#menu-panel table#menu-table tbody tr td img {
+	height: 17px;
+}
+/* ---------------- header styles ------------------ */
+div#header-div {
+    background-image: url( theme-header-bg.gif);
+    height: 115px;
+}
+
+div#header-div div.left-logo {
+	background-image: url( logo.gif );
+	background-position: left center;
+	height: 80px;
+	margin-left:65px;
+	margin-top:0px;
+}
+
+div#header-div div.middle-ad {
+	float: left;
+	margin-top: 18px;
+	height: 55px;
+	width: 35%;
+	display: none;
+}
+
+div#header-div div.right-logo {
+	background-image:url("../../../../../../../../../carbon/admin/images/t-right-logo.gif");
+	background-position:right top;
+	background-repeat:no-repeat;
+	height:45px;
+	margin-right:20px;
+	line-height: 0px;
+	margin-top:10px;
+	padding-right:0px;
+	padding-top:5px;
+	color: #fff;
+	font-size: 0px;
+	width: 500px;
+}
+div#header-div div.header-links {
+	margin-top:0px;
+}
+div#header-div div.header-links div.right-links {
+	margin-right: 0px;
+	height: 35px;
+	padding-top: 0px;
+}
+div#header-div div.header-links div.right-links ul {
+	background-image:url("theme-right-links-bg.gif");
+	background-position:left top;
+	background-repeat:repeat-x;
+	padding-left: 25px;
+	padding-right: 15px;
+	padding-top: 6px;
+	padding-bottom: 7px;
+}
+/* ------------- menu styles ---------------------- */
+div#menu {
+}
+
+div#menu ul.main {
+}
+
+div#menu ul.main li {
+}
+
+div#menu ul.main li.normal {
+}
+
+div#menu ul.main li a.menu-home {
+	display:block !important;
+}
+
+div#menu ul.main li.menu-header {
+	background-image:url("theme-menu-header.gif");
+	background-position: top;
+	height: 28px;
+}
+
+div#menu ul.main li a.menu-default {
+}
+
+div#menu ul.main li a.menu-default:hover {
+	background-color: #EFECF5;
+	border-bottom: solid 1px #C2B7D8;
+	border-top: solid 1px #C2B7D8;
+	color: #00447C;
+}
+
+div#menu ul.sub {
+} 
+
+/* -------------- child no-01 styles -------------- */
+
+div#menu ul.sub li.normal {
+
+}
+
+div#menu ul.sub li a.menu-default {
+} 
+
+/* ----------- child no-01 (disabled) styles ------------------- */
+	
+div#menu ul.sub li a.menu-disabled-link {
+	}
+	
+	div#menu ul.sub li a.menu-disabled-link:hover {
+	} 
+
+/* -------------- child no-02 styles -------------- */
+
+div#menu ul.sub li.normal ul.sub li a.menu-default {
+
+}
+
+/* -------------- child no-03 styles -------------- */
+
+div#menu ul.sub li.normal ul.sub li.normal ul.sub li a.menu-default {
+}
+
+/* ------------- footer styles -------------------- */
+
+
+div#footer-div div.footer-content {
+    background-image: url(../../../../../../../../../carbon/admin/images/powered.gif);
+	background-position: right center;
+	background-repeat: no-repeat;
+	margin-right: 10px;
+	
+}
+
+/* ---- login styles ----- */
+
+
+/* --------------- table styles -------------------- */
+
+.tableOddRow{background-color: white;}
+.tableEvenRow{background-color: #EFECF5;}
+
+.button:hover{
+	border:solid 1px #8268A8;
+}
+
+/* =============================================================================================================== */
+
+
+
+.cornerExpand {
+    position: relative;
+    top: 3px;
+    left: -12px;
+    cursor: pointer;
+}
+
+.cornerCollapse {
+    position: relative;
+    top: 3px;
+    left: -12px;
+    cursor: pointer;
+}
+
+/* chanaka */
+
+.form-table td{
+   padding-bottom:5px !important;
+   padding-left:5px !important;
+   padding-top:5px !important;
+   padding-right:10px !important;
+}
+.form-table td div.indented{
+    padding-left:7px !important;
+    color:#595959 !important;
+}
+.form-table-left{
+width:100px;
+}
+
+.longTextField{
+width:270px;
+}
+.rowAlone{
+padding-top:10px;
+padding-bottom:10px;
+}
+.tabedBox{
+border:solid 1px #cccccc;
+margin-left:10px;
+padding:10px;
+margin-bottom:10px;
+}
+/* chanaka end */
+
+a.fact-selector-icon-link {
+    background-repeat: no-repeat;
+    background-position: left top;
+    padding-left: 20px;
+    line-height: 17px;
+    height: 17px;
+    float: left;
+    position: relative;
+    margin-left: 10px;
+    margin-top: 5px;
+    margin-bottom: 3px;
+    white-space: nowrap;
+}
+table#main-table td#middle-content {
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Dark/admin/powered-stratos.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Dark/admin/powered-stratos.gif b/products/stratos-controller/resources/allthemes/Dark/admin/powered-stratos.gif
new file mode 100755
index 0000000..6597d26
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Dark/admin/powered-stratos.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Dark/admin/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Dark/admin/right-logo.gif b/products/stratos-controller/resources/allthemes/Dark/admin/right-logo.gif
new file mode 100755
index 0000000..e6c3d13
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Dark/admin/right-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Dark/admin/theme-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Dark/admin/theme-header-bg.gif b/products/stratos-controller/resources/allthemes/Dark/admin/theme-header-bg.gif
new file mode 100755
index 0000000..99add93
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Dark/admin/theme-header-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Dark/admin/theme-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Dark/admin/theme-header-region-bg.gif b/products/stratos-controller/resources/allthemes/Dark/admin/theme-header-region-bg.gif
new file mode 100755
index 0000000..7cc3f52
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Dark/admin/theme-header-region-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-header.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-header.gif b/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-header.gif
new file mode 100755
index 0000000..84bb42e
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-header.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-panel-l-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-panel-l-bg.gif b/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-panel-l-bg.gif
new file mode 100755
index 0000000..a6c268f
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-panel-l-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-table-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-table-bg.gif b/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-table-bg.gif
new file mode 100755
index 0000000..213819a
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Dark/admin/theme-menu-table-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Dark/admin/theme-right-links-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Dark/admin/theme-right-links-bg.gif b/products/stratos-controller/resources/allthemes/Dark/admin/theme-right-links-bg.gif
new file mode 100755
index 0000000..0a2e51a
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Dark/admin/theme-right-links-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Dark/thumb.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Dark/thumb.png b/products/stratos-controller/resources/allthemes/Dark/thumb.png
new file mode 100755
index 0000000..7db90a6
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Dark/thumb.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Default/admin/def-body-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Default/admin/def-body-bg.gif b/products/stratos-controller/resources/allthemes/Default/admin/def-body-bg.gif
new file mode 100755
index 0000000..5db1464
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Default/admin/def-body-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Default/admin/def-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Default/admin/def-header-bg.gif b/products/stratos-controller/resources/allthemes/Default/admin/def-header-bg.gif
new file mode 100755
index 0000000..758363d
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Default/admin/def-header-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Default/admin/def-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Default/admin/def-header-region-bg.gif b/products/stratos-controller/resources/allthemes/Default/admin/def-header-region-bg.gif
new file mode 100755
index 0000000..935ee9e
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Default/admin/def-header-region-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Default/admin/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Default/admin/logo.gif b/products/stratos-controller/resources/allthemes/Default/admin/logo.gif
new file mode 100755
index 0000000..813e625
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Default/admin/logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Default/admin/main.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Default/admin/main.css b/products/stratos-controller/resources/allthemes/Default/admin/main.css
new file mode 100755
index 0000000..252266e
--- /dev/null
+++ b/products/stratos-controller/resources/allthemes/Default/admin/main.css
@@ -0,0 +1,229 @@
+/* ---------------- template styles ------------------------- */
+body {
+	background-image: url( def-body-bg.gif);
+	background-position: left top;
+	background-repeat: repeat-x;
+}
+
+table#main-table td#header {
+	background-image: url( def-header-region-bg.gif);
+	background-position: right top;
+	background-repeat: no-repeat;
+}
+
+table#main-table td#menu-panel {
+	border-right: solid 0px #78BDE8;
+	padding-right: 10px;
+}
+
+table#main-table td#menu-panel table#menu-table {
+	background-image: none;
+	background-position:left bottom;
+	background-repeat:no-repeat;
+}
+table#main-table td#menu-panel table#menu-table {
+	background-image: none;
+	background-position:left bottom;
+	background-repeat:no-repeat;
+	border-right:1px solid #B6D8F2;
+	border-bottom:1px solid #B6D8F2;
+}
+table#main-table td#menu-panel table#menu-table tbody tr td img {
+	height: 17px;
+}
+/* ---------------- header styles ------------------ */
+div#header-div {
+    background-image: url( def-header-bg.gif);
+    height: 121px;
+}
+
+div#header-div div.left-logo {
+	background-image:url("logo.gif");
+	background-position:left center;
+	height:50px;
+	margin-left:50px;
+	margin-top:37px;
+}
+
+div#header-div div.middle-ad {
+	float: left;
+	margin-top: 18px;
+	height: 55px;
+	width: 35%;
+	display:none;
+}
+
+div#header-div div.right-logo {
+	background-image:url("../../../../../../../../../carbon/admin/images/t-right-logo.gif");
+	background-position:right top;
+	background-repeat:no-repeat;
+	color:#B6D8F2;
+	font-size:0;
+	height:45px;
+	line-height:0;
+	margin-right:20px;
+	margin-top:20px;
+	padding-right:0;
+	padding-top:5px;
+	width:500px;
+}
+div#header-div div.header-links {
+	margin-top: 8px;
+}
+div#header-div div.header-links div.right-links {
+	margin-right: 0px;
+	height: 20px;
+	padding-top: 0px;
+}
+div#header-div div.header-links div.right-links ul {
+	background-image: none;
+	background-position:left top;
+	background-repeat:repeat-x;
+	padding-left: 25px;
+	padding-right: 15px;
+	padding-top: 6px;
+	padding-bottom: 7px;
+}
+/* ------------- menu styles ---------------------- */
+div#menu {
+}
+
+div#menu ul.main {
+}
+
+div#menu ul.main li {
+}
+
+div#menu ul.main li.normal {
+}
+
+div#menu ul.main li a.menu-home {
+	display: block !important;
+}
+
+div#menu ul.main li.menu-header {
+	background-image:none;
+	background-position:center top;
+	border-top: 1px solid #CFE3F6;
+	border-bottom:1px solid #78BDE8;
+	height:25px;
+}
+
+div#menu ul.main li a.menu-default {
+}
+
+div#menu ul.main li a.menu-default:hover {
+	background-color: #DAF0FC;
+	border-bottom: solid 1px #72CDF4;
+	border-top: solid 1px #72CDF4;
+	color: #00447C;
+}
+
+div#menu ul.sub {
+} 
+
+/* -------------- child no-01 styles -------------- */
+
+div#menu ul.sub li.normal {
+
+}
+
+div#menu ul.sub li a.menu-default {
+} 
+
+/* ----------- child no-01 (disabled) styles ------------------- */
+	
+div#menu ul.sub li a.menu-disabled-link {
+	}
+	
+	div#menu ul.sub li a.menu-disabled-link:hover {
+	} 
+
+/* -------------- child no-02 styles -------------- */
+
+div#menu ul.sub li.normal ul.sub li a.menu-default {
+
+}
+
+/* -------------- child no-03 styles -------------- */
+
+div#menu ul.sub li.normal ul.sub li.normal ul.sub li a.menu-default {
+}
+
+/* ------------- footer styles -------------------- */
+
+div#footer-div div.footer-content {
+    background-image: url(../../../../../../../../../carbon/admin/images/powered.gif);
+	background-position: right center;
+	background-repeat: no-repeat;
+	margin-right: 10px;
+}
+
+div#middle {
+	background-color: #fff;
+}
+
+/* ---- login styles ----- */
+
+
+/* --------------- table styles -------------------- */
+
+.tableOddRow{background-color: white;}
+.tableEvenRow{background-color: #EFECF5;}
+
+.button:hover{
+	border:solid 1px #8268A8;
+}
+
+/* =============================================================================================================== */
+
+
+
+.cornerExpand {
+    position: relative;
+    top: 3px;
+    left: -12px;
+    cursor: pointer;
+}
+
+.cornerCollapse {
+    position: relative;
+    top: 3px;
+    left: -12px;
+    cursor: pointer;
+}
+
+/* chanaka */
+
+.form-table td{
+   padding-bottom:5px !important;
+   padding-left:5px !important;
+   padding-top:5px !important;
+   padding-right:10px !important;
+}
+.form-table td div.indented{
+    padding-left:7px !important;
+    color:#595959 !important;
+}
+.form-table-left{
+width:100px;
+}
+
+.longTextField{
+width:270px;
+}
+.rowAlone{
+padding-top:10px;
+padding-bottom:10px;
+}
+.tabedBox{
+border:solid 1px #cccccc;
+margin-left:10px;
+padding:10px;
+margin-bottom:10px;
+}
+/* chanaka end */
+
+table#main-table td#middle-content {
+	background-color: #fff;
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Default/admin/powered-stratos.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Default/admin/powered-stratos.gif b/products/stratos-controller/resources/allthemes/Default/admin/powered-stratos.gif
new file mode 100755
index 0000000..6597d26
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Default/admin/powered-stratos.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Default/admin/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Default/admin/right-logo.gif b/products/stratos-controller/resources/allthemes/Default/admin/right-logo.gif
new file mode 100755
index 0000000..f118904
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Default/admin/right-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Default/thumb.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Default/thumb.png b/products/stratos-controller/resources/allthemes/Default/thumb.png
new file mode 100755
index 0000000..46fc8e6
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Default/thumb.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/admin/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/admin/logo.gif b/products/stratos-controller/resources/allthemes/Light/admin/logo.gif
new file mode 100755
index 0000000..196b81f
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Light/admin/logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/admin/main.css
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/admin/main.css b/products/stratos-controller/resources/allthemes/Light/admin/main.css
new file mode 100755
index 0000000..baf34f0
--- /dev/null
+++ b/products/stratos-controller/resources/allthemes/Light/admin/main.css
@@ -0,0 +1,229 @@
+/* ---------------- template styles ------------------------- */
+
+table#main-table td#header {
+	background-image: url( theme-header-region-bg.gif);
+}
+
+table#main-table td#menu-panel {
+	border-right: solid 0px #73559D;
+	background-image: url(theme-menu-panel-l-bg.gif);
+	background-position: left top;
+	background-repeat: no-repeat;
+	padding-left: 0;
+	background-color: #F4F4F4;
+}
+
+table#main-table td#menu-panel table#menu-table {
+	background-image:url("theme-menu-table-bg.gif");
+	background-position:left bottom;
+	background-repeat:no-repeat;
+}
+table#main-table td#menu-panel table#menu-table td {
+	padding-left: 6px;
+	padding-right:16px;
+}	
+table#main-table td#menu-panel table#menu-table tbody tr td img {
+	height: 17px;
+}
+/* ---------------- header styles ------------------ */
+div#header-div {
+    background-image: url( theme-header-bg.gif);
+    height: 103px;
+}
+
+div#header-div div.left-logo {
+	background-image: url( logo.gif );
+	background-position: left center;
+	height: 80px;
+	margin-left:65px;
+	margin-top:0px;
+}
+
+div#header-div div.middle-ad {
+	float: left;
+	margin-top: 18px;
+	height: 55px;
+	width: 35%;
+	display:none;
+}
+
+div#header-div div.right-logo {
+	background-image:url("../../../../../../../../../carbon/admin/images/t-right-logo.gif");
+	background-position:right top;
+	background-repeat:no-repeat;
+	height:45px;
+	margin-right:20px;
+	line-height: 0px;
+	margin-top:10px;
+	padding-right:0px;
+	padding-top:5px;
+	color: #fff;
+	font-size: 0px;
+    	width:500px;
+}
+div#header-div div.header-links {
+	margin-top:-10px;
+}
+div#header-div div.header-links div.right-links {
+	margin-right: 0px;
+	height: 35px;
+	padding-top: 0px;
+}
+div#header-div div.header-links div.right-links ul {
+	background-position:left top;
+	background-repeat:repeat-x;
+	padding-left: 25px;
+	padding-right: 15px;
+	padding-top: 6px;
+	padding-bottom: 7px;
+}
+/* ------------- menu styles ---------------------- */
+div#menu {
+}
+
+div#menu ul.main {
+}
+
+div#menu ul.main li {
+}
+
+div#menu ul.main li.normal {
+}
+
+div#menu ul.main li a.menu-home {
+	display:block !important;
+}
+
+div#menu ul.main li.menu-header {
+	background-position: top;
+	height: 28px;
+}
+
+div#menu ul.main li a.menu-default {
+}
+
+div#menu ul.main li a.menu-default:hover {
+	background-color: #EFECF5;
+	border-bottom: solid 1px #C2B7D8;
+	border-top: solid 1px #C2B7D8;
+	color: #00447C;
+}
+
+div#menu ul.sub {
+} 
+
+/* -------------- child no-01 styles -------------- */
+
+div#menu ul.sub li.normal {
+
+}
+
+div#menu ul.sub li a.menu-default {
+} 
+
+/* ----------- child no-01 (disabled) styles ------------------- */
+	
+div#menu ul.sub li a.menu-disabled-link {
+	}
+	
+	div#menu ul.sub li a.menu-disabled-link:hover {
+	} 
+
+/* -------------- child no-02 styles -------------- */
+
+div#menu ul.sub li.normal ul.sub li a.menu-default {
+
+}
+
+/* -------------- child no-03 styles -------------- */
+
+div#menu ul.sub li.normal ul.sub li.normal ul.sub li a.menu-default {
+}
+
+/* ------------- footer styles -------------------- */
+
+
+div#footer-div div.footer-content {
+    background-image: url(../../../../../../../../../carbon/admin/images/powered.gif);
+	background-position: right center;
+	background-repeat: no-repeat;
+	margin-right: 10px;
+}
+
+/* ---- login styles ----- */
+
+
+/* --------------- table styles -------------------- */
+
+.tableOddRow{background-color: white;}
+.tableEvenRow{background-color: #EFECF5;}
+
+.button:hover{
+	border:solid 1px #8268A8;
+}
+
+/* =============================================================================================================== */
+
+
+
+.cornerExpand {
+    position: relative;
+    top: 3px;
+    left: -12px;
+    cursor: pointer;
+}
+
+.cornerCollapse {
+    position: relative;
+    top: 3px;
+    left: -12px;
+    cursor: pointer;
+}
+
+/* chanaka */
+
+.form-table td{
+   padding-bottom:5px !important;
+   padding-left:5px !important;
+   padding-top:5px !important;
+   padding-right:10px !important;
+}
+.form-table td div.indented{
+    padding-left:7px !important;
+    color:#595959 !important;
+}
+.form-table-left{
+width:100px;
+}
+
+.longTextField{
+width:270px;
+}
+.rowAlone{
+padding-top:10px;
+padding-bottom:10px;
+}
+.tabedBox{
+border:solid 1px #cccccc;
+margin-left:10px;
+padding:10px;
+margin-bottom:10px;
+}
+/* chanaka end */
+
+a.fact-selector-icon-link {
+    background-repeat: no-repeat;
+    background-position: left top;
+    padding-left: 20px;
+    line-height: 17px;
+    height: 17px;
+    float: left;
+    position: relative;
+    margin-left: 10px;
+    margin-top: 5px;
+    margin-bottom: 3px;
+    white-space: nowrap;
+}
+table#main-table td#middle-content {
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/admin/menu_header.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/admin/menu_header.gif b/products/stratos-controller/resources/allthemes/Light/admin/menu_header.gif
new file mode 100755
index 0000000..6887ec4
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Light/admin/menu_header.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/admin/powered-stratos.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/admin/powered-stratos.gif b/products/stratos-controller/resources/allthemes/Light/admin/powered-stratos.gif
new file mode 100755
index 0000000..6597d26
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Light/admin/powered-stratos.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/admin/right-links-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/admin/right-links-bg.gif b/products/stratos-controller/resources/allthemes/Light/admin/right-links-bg.gif
new file mode 100755
index 0000000..ba9d5d0
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Light/admin/right-links-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/admin/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/admin/right-logo.gif b/products/stratos-controller/resources/allthemes/Light/admin/right-logo.gif
new file mode 100755
index 0000000..e6c3d13
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Light/admin/right-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/admin/theme-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/admin/theme-header-bg.gif b/products/stratos-controller/resources/allthemes/Light/admin/theme-header-bg.gif
new file mode 100755
index 0000000..4d47044
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Light/admin/theme-header-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/admin/theme-header-region-b-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/admin/theme-header-region-b-bg.gif b/products/stratos-controller/resources/allthemes/Light/admin/theme-header-region-b-bg.gif
new file mode 100755
index 0000000..463b157
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Light/admin/theme-header-region-b-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/admin/theme-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/admin/theme-header-region-bg.gif b/products/stratos-controller/resources/allthemes/Light/admin/theme-header-region-bg.gif
new file mode 100755
index 0000000..57a2ec1
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Light/admin/theme-header-region-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/admin/theme-menu-panel-l-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/admin/theme-menu-panel-l-bg.gif b/products/stratos-controller/resources/allthemes/Light/admin/theme-menu-panel-l-bg.gif
new file mode 100755
index 0000000..bafb43a
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Light/admin/theme-menu-panel-l-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/admin/theme-menu-table-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/admin/theme-menu-table-bg.gif b/products/stratos-controller/resources/allthemes/Light/admin/theme-menu-table-bg.gif
new file mode 100755
index 0000000..9582772
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Light/admin/theme-menu-table-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/allthemes/Light/thumb.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/allthemes/Light/thumb.png b/products/stratos-controller/resources/allthemes/Light/thumb.png
new file mode 100755
index 0000000..6dba1ff
Binary files /dev/null and b/products/stratos-controller/resources/allthemes/Light/thumb.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/appserver.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/appserver.gif b/products/stratos-controller/resources/cloud-services-icons/appserver.gif
new file mode 100755
index 0000000..b760eb0
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/appserver.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/bam.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/bam.gif b/products/stratos-controller/resources/cloud-services-icons/bam.gif
new file mode 100755
index 0000000..264f289
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/bam.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/bps.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/bps.gif b/products/stratos-controller/resources/cloud-services-icons/bps.gif
new file mode 100755
index 0000000..1cd9d5e
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/bps.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/brs-old.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/brs-old.gif b/products/stratos-controller/resources/cloud-services-icons/brs-old.gif
new file mode 100755
index 0000000..c5a7dd8
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/brs-old.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/brs.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/brs.gif b/products/stratos-controller/resources/cloud-services-icons/brs.gif
new file mode 100755
index 0000000..38f20e3
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/brs.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/cep.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/cep.png b/products/stratos-controller/resources/cloud-services-icons/cep.png
new file mode 100755
index 0000000..3a481b1
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/cep.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/cg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/cg.gif b/products/stratos-controller/resources/cloud-services-icons/cg.gif
new file mode 100755
index 0000000..1e8ad73
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/cg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/csg-inactive.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/csg-inactive.gif b/products/stratos-controller/resources/cloud-services-icons/csg-inactive.gif
new file mode 100755
index 0000000..00d542c
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/csg-inactive.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/csg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/csg.gif b/products/stratos-controller/resources/cloud-services-icons/csg.gif
new file mode 100755
index 0000000..df9da9f
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/csg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/ds.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/ds.gif b/products/stratos-controller/resources/cloud-services-icons/ds.gif
new file mode 100755
index 0000000..5721908
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/ds.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/esb.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/esb.gif b/products/stratos-controller/resources/cloud-services-icons/esb.gif
new file mode 100755
index 0000000..bb43e99
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/esb.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/gadget.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/gadget.gif b/products/stratos-controller/resources/cloud-services-icons/gadget.gif
new file mode 100755
index 0000000..55b41de
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/gadget.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/governance.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/governance.gif b/products/stratos-controller/resources/cloud-services-icons/governance.gif
new file mode 100755
index 0000000..f9dfce4
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/governance.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/identity.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/identity.gif b/products/stratos-controller/resources/cloud-services-icons/identity.gif
new file mode 100755
index 0000000..40f1fb7
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/identity.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/inactive-appserver.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/inactive-appserver.gif b/products/stratos-controller/resources/cloud-services-icons/inactive-appserver.gif
new file mode 100755
index 0000000..2e7b33f
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/inactive-appserver.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/inactive-bam.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/inactive-bam.gif b/products/stratos-controller/resources/cloud-services-icons/inactive-bam.gif
new file mode 100755
index 0000000..2401c11
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/inactive-bam.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/inactive-brs.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/inactive-brs.gif b/products/stratos-controller/resources/cloud-services-icons/inactive-brs.gif
new file mode 100755
index 0000000..3e29688
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/inactive-brs.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/inactive-cep.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/inactive-cep.png b/products/stratos-controller/resources/cloud-services-icons/inactive-cep.png
new file mode 100755
index 0000000..e454bab
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/inactive-cep.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/inactive-esb.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/inactive-esb.gif b/products/stratos-controller/resources/cloud-services-icons/inactive-esb.gif
new file mode 100755
index 0000000..8ae52bc
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/inactive-esb.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/inactive-gadget.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/inactive-gadget.gif b/products/stratos-controller/resources/cloud-services-icons/inactive-gadget.gif
new file mode 100755
index 0000000..243f893
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/inactive-gadget.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/inactive-governance.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/inactive-governance.gif b/products/stratos-controller/resources/cloud-services-icons/inactive-governance.gif
new file mode 100755
index 0000000..fba1531
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/inactive-governance.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/inactive-identity.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/inactive-identity.gif b/products/stratos-controller/resources/cloud-services-icons/inactive-identity.gif
new file mode 100755
index 0000000..6f5e1be
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/inactive-identity.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/inactive-mashup.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/inactive-mashup.gif b/products/stratos-controller/resources/cloud-services-icons/inactive-mashup.gif
new file mode 100755
index 0000000..17c74c4
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/inactive-mashup.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/inactive-mb.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/inactive-mb.png b/products/stratos-controller/resources/cloud-services-icons/inactive-mb.png
new file mode 100755
index 0000000..275136b
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/inactive-mb.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/mashup.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/mashup.gif b/products/stratos-controller/resources/cloud-services-icons/mashup.gif
new file mode 100755
index 0000000..58d91af
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/mashup.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/mb.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/mb.png b/products/stratos-controller/resources/cloud-services-icons/mb.png
new file mode 100755
index 0000000..928c95e
Binary files /dev/null and b/products/stratos-controller/resources/cloud-services-icons/mb.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/resources/cloud-services-icons/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/resources/cloud-services-icons/pom.xml b/products/stratos-controller/resources/cloud-services-icons/pom.xml
new file mode 100755
index 0000000..662ea95
--- /dev/null
+++ b/products/stratos-controller/resources/cloud-services-icons/pom.xml
@@ -0,0 +1,72 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.wso2.manager</groupId>
+    <artifactId>cloud-services-icons</artifactId>
+    <version>1.0.0</version>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - Manager Cloud Services Icons</name>
+    <description>Apache Stratos - Manager Cloud Services Icons</description>
+
+    <licenses>
+        <license>
+            <name>Apache License Version 2.0</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+        </license>
+    </licenses>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>2.1.1</version>
+                <executions>
+                    <execution>
+				        <id>war</id>
+				        <phase>package</phase>
+				        <goals>
+					        <goal>war</goal>
+				        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+				    <warName>cloud-services-icons</warName>
+			        <failOnMissingWebXml>false</failOnMissingWebXml>  
+			        <webResources>
+					    <resource>
+					        <directory>.</directory>
+				        </resource>
+		            </webResources>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <organization>
+        <name>WSO2 Inc</name>
+        <url>http://wso2.com</url>
+    </organization>
+
+
+</project>


[23/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery-1.5.1.min.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery-1.5.1.min.js b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery-1.5.1.min.js
new file mode 100755
index 0000000..e8a831a
--- /dev/null
+++ b/products/stratos-controller/modules/features-dashboard/WebContent/tenant-dashboard/js/jquery/jquery-1.5.1.min.js
@@ -0,0 +1,16 @@
+/*!
+ * jQuery JavaScript Library v1.5.1
+ * http://jquery.com/
+ *
+ * Copyright 2011, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Wed Feb 23 13:55:29 2011 -0500
+ */
+(function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h==="string"&&(f[h.toLowerCase()]=a.converters[h]);l=k,k=e[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=f[m]||f["* "+k];if(!n){p=b;for(o in f){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=f[j[1]+" "+k];if(p){o=f[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&d.error("No con
 version from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bP(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bO(a,b,c,e){if(d.isArray(b)&&b.length)d.each(b,function(b,f){c||bq.test(a)?e(a,f):bO(a+"["+(typeof f==="object"||d.isArray(f)?b:"")+"]",f,c,e)});else if(c||b==null||typeof b!=="object")e(a,b);else if(d.isArray(b)||d.isEmptyObject(b))e(a,"");else for(var f in b)bO(a+"["+f+"]",b[f],c,e)}function bN(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bH,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l==="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bN(a,c,d,e,l,g)));(k||!l)&&!g["*"
 ]&&(l=bN(a,c,d,e,"*",g));return l}function bM(a){return function(b,c){typeof b!=="string"&&(c=b,b="*");if(d.isFunction(c)){var e=b.toLowerCase().split(bB),f=0,g=e.length,h,i,j;for(;f<g;f++)h=e[f],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bo(a,b,c){var e=b==="width"?bi:bj,f=b==="width"?a.offsetWidth:a.offsetHeight;if(c==="border")return f;d.each(e,function(){c||(f-=parseFloat(d.css(a,"padding"+this))||0),c==="margin"?f+=parseFloat(d.css(a,"margin"+this))||0:f-=parseFloat(d.css(a,"border"+this+"Width"))||0});return f}function ba(a,b){b.src?d.ajax({url:b.src,async:!1,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||""),b.parentNode&&b.parentNode.removeChild(b)}function _(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function jQuery(a,b){if(b.nodeType===1){var c=b.nodeName.toLowerCase();b.clearAttributes(),b.mergeAttributes(a);if(c==="object")b.outerH
 TML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(d.expando)}}function Z(a,b){if(b.nodeType===1&&d.hasData(a)){var c=d.expando,e=d.data(a),f=d.data(b,e);if(e=e[c]){var g=e.events;f=f[c]=d.extend({},e);if(g){delete f.handle,f.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)d.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function Y(a,b){return d.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function O(a,b,c){if(d.isFunction(b))return d.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return d.grep(a,function(a,d){return a===b===c});if(typeof b==="string"){var e=d.grep(a,function(a){return a.nodeType===1});i
 f(J.test(b))return d.filter(b,e,!c);b=d.filter(b,e)}return d.grep(a,function(a,e){return d.inArray(a,b)>=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|jQuery)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;i<t.length;i++)g=t[i],g.origType.replace(p,"")===a.type?r.push(g.selector):t.splice(i--,1);f=d(a.target).closest(r,a.currentTarget);for(j=0,k=f.length;j<k;j++){m=f[j];for(i=0;i<t.length;i++){g=t[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,e=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,e=d(a.relatedTarget).closest(g.selector)[0];(!e||e!==h)&&q.push({elem:h,ha
 ndleObj:g,level:m.level})}}}for(j=0,k=q.length;j<k;j++){f=q[j];if(c&&f.level>c)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d
 .fn.init(a,b,g)},e=a.jQuery,f=a.jQuery,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery
 ?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.select
 or=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){e=i[c],f=a[c];if(i===f)continue;l&&f&&(d.isPlainObject(f)||(g=d.isArray(f)))?(g?(g=!1,h=e&&d.isArray(e)?e:[]):h=e&&d.isPlainObject(e)?e:{},i[
 c]=d.extend(l,h,f)):f!==b&&(i[c]=f)}return i},d.extend({noConflict:function(b){a.jQuery=f,b&&(a.jQuery=e);return d},isReady:!1,readyWait:1,ready:function(a){a===!0&&d.readyWait--;if(!d.readyWait||a!==!0&&!d.isReady){if(!c.body)return setTimeout(d.ready,1);d.isReady=!0;if(a!==!0&&--d.readyWait>0)return;y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=!0;if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",A,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",A),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},typ
 e:function(a){return a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||C.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.doc
 umentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g<h;)if(c.apply(a[g++],e)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(var j=a[0];g<h&&c.call(j,g,j)!==!1;j=a[++g]){}return a},trim:F?function(a){return a==null?"":F.call(a)}:function(a){return a==null?"":(a+"").replace(j,"").replace(k,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var e=d.type(a);a.length==null||e==="string"||e==="function"||e==="regexp"||d.isWindow(a)?D.call(c,a):d.merge(c,a)}return c},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length==="
 number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,b,c){var d=[],e;for(var f=0,g=a.length;f<g;f++)e=b(a[f],f,c),e!=null&&(d[d.length]=e);return d.concat.apply([],d)},guid:1,proxy:function(a,c,e){arguments.length===2&&(typeof c==="string"?(e=a,a=e[c],c=b):c&&!d.isFunction(c)&&(e=c,c=b)),!c&&a&&(c=function(){return a.apply(e||this,arguments)}),a&&(c.guid=a.guid=a.guid||c.guid||d.guid++);return c},access:function(a,c,e,f,g,h){var i=a.length;if(typeof c==="object"){for(var j in c)d.access(a,j,c[j],f,g,e);return a}if(e!==b){f=!h&&f&&d.isFunction(e);for(var k=0;k<i;k++)g(a[k],c,f?e.call(a[k],k,g(a[k],c)):e,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},_Deferred:function(){var a=[],b,c,e,f={done:function(){if(!e){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g
 ],j=d.type(i),j==="array"?f.done.apply(f,i):j==="function"&&a.push(i);k&&f.resolveWith(k[0],k[1])}return this},resolveWith:function(d,f){if(!e&&!b&&!c){c=1;try{while(a[0])a.shift().apply(d,f)}catch(g){throw g}finally{b=[d,f],c=0}}return this},resolve:function(){f.resolveWith(d.isFunction(this.promise)?this.promise():this,arguments);return this},isResolved:function(){return c||b},cancel:function(){e=1,a=[];return this}};return f},Deferred:function(a){var b=d._Deferred(),c=d._Deferred(),e;d.extend(b,{then:function(a,c){b.done(a).fail(c);return this},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,promise:function(a){if(a==null){if(e)return e;e=a={}}var c=z.length;while(c--)a[z[c]]=b[z[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){var b=arguments.length,c=b<=1&&a&&d.isFunction(a.promise)?a:d.Deferred(),e=c.promise();if(b>1){var f=E.call(arguments,0),g=b,h=function(a){return function(b){f[a]=argume
 nts.length>1?E.call(arguments,0):b,--g||c.resolveWith(e,f)}};while(b--)a=f[b],a&&d.isFunction(a.promise)?a.promise().then(h(b),c.reject):--g;g||c.resolveWith(e,f)}else c!==a&&c.resolve(a);return e},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),y=d._Deferred(),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),G&&(d.inArray=function(a,b){return G.call(b
 ,a)}),i.test(" ")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?A=function(){c.removeEventListener("DOMContentLoaded",A,!1),d.ready()}:c.attachEvent&&(A=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",A),d.ready())});return d}();(function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",o
 ptSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e),b=e=f=null}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClo
 ne=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="funct
 ion"),b=null;return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}})();var e=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!g(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,h=b.nodeType,i=h?d.cache:b,j=h?b[d.expando]:d.expa
 ndo;if(!i[j])return;if(c){var k=e?i[j][f]:i[j];if(k){delete k[c];if(!g(k))return}}if(e){delete i[j][f];if(!g(i[j]))return}var l=i[j][f];d.support.deleteExpando||i!=a?delete i[j]:i[j]=null,l?(i[j]={},h||(i[j].toJSON=d.noop),i[j][f]=l):h&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var g=this[0].attributes,h;for(var i=0,j=g.length;i<j;i++)h=g[i].name,h.indexOf("data-")===0&&(h=h.substr(5),f(this[0],h,e[h]))}}return e}if(typeof a==="object")return this.each(function(){d.data(this,a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(c===b){e=this.triggerHandler("getData"+k[1]+"!",[k[0]]),e===b&&this.length&&(e=d
 .data(this[0],a),e=f(this[0],a,e));return e===b&&k[1]?this.data(k[0]):e}return this.each(function(){var b=d(this),e=[k[0],c];b.triggerHandler("setData"+k[1]+"!",e),d.data(this,a,c),b.triggerHandler("changeData"+k[1]+"!",e)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}}),d.extend({queue:function(a,b,c){if(a){b=(b||"fx")+"queue";var e=d._data(a,b);if(!c)return e||[];!e||d.isArray(c)?e=d._data(a,b,d.makeArray(c)):e.push(c);return e}},dequeue:function(a,b){b=b||"fx";var c=d.queue(a,b),e=c.shift();e==="inprogress"&&(e=c.shift()),e&&(b==="fx"&&c.unshift("inprogress"),e.call(a,function(){d.dequeue(a,b)})),c.length||d.removeData(a,b+"queue",!0)}}),d.fn.extend({queue:function(a,c){typeof a!=="string"&&(c=a,a="fx");if(c===b)return d.queue(this[0],a);return this.each(function(b){var e=d.queue(this,a,c);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]
 ||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){d.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var h=/[\n\t\r]/g,i=/\s+/,j=/\r/g,k=/^(?:href|src|style)$/,l=/^(?:button|input)$/i,m=/^(?:button|input|object|select|textarea)$/i,n=/^a(?:rea)?$/i,o=/^(?:radio|checkbox)$/i;d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},d.fn.extend({attr:function(a,b){return d.access(this,a,b,!0,d.attr)},removeAttr:function(a,b){return this.each(function(){d.attr(this,a,""),this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.addClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"){var b=(a||"").split(i);for(var c=0,e=this.length;c<e;c++){var f=this[c];if(f.nodeType===1)if(f.className){var g="
  "+f.className+" ",h=f.className;for(var j=0,k=b.length;j<k;j++)g.indexOf(" "+b[j]+" ")<0&&(h+=" "+b[j]);f.className=d.trim(h)}else f.className=a}}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.removeClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"||a===b){var c=(a||"").split(i);for(var e=0,f=this.length;e<f;e++){var g=this[e];if(g.nodeType===1&&g.className)if(a){var j=(" "+g.className+" ").replace(h," ");for(var k=0,l=c.length;k<l;k++)j=j.replace(" "+c[k]+" "," ");g.className=d.trim(j)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,e=typeof b==="boolean";if(d.isFunction(a))return this.each(function(c){var e=d(this);e.toggleClass(a.call(this,c,e.attr("class"),b),b)});return this.each(function(){if(c==="string"){var f,g=0,h=d(this),j=b,k=a.split(i);while(f=k[g++])j=e?j:!h.hasClass(f),h[j?"addClass":"removeClass"](f)}else if(c==="undefined"||c==="boolean")this.className&&d._data(this,"__
 className__",this.className),this.className=this.className||a===!1?"":d._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(h," ").indexOf(b)>-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var k=i?f:0,l=i?f+1:h.length;k<l;k++){var m=h[k];if(m.selected&&(d.support.optDisabled?!m.disabled:m.getAttribute("disabled")===null)&&(!m.parentNode.disabled||!d.nodeName(m.parentNode,"optgroup"))){a=d(m).val();if(i)return a;g.push(a)}}if(i&&!g.length&&h.length)return d(h[f]).val();return g}if(o.test(c.type)&&!d.support.checkOn)return c.getAttribute("value")===null?"on":c.value;return(c.value||"").replace(j,"")}return b}var n=d.isFunction(a);return this.each(function(b){var 
 c=d(this),e=a;if(this.nodeType===1){n&&(e=a.call(this,b,c.val())),e==null?e="":typeof e==="number"?e+="":d.isArray(e)&&(e=d.map(e,function(a){return a==null?"":a+""}));if(d.isArray(e)&&o.test(this.type))this.checked=d.inArray(c.val(),e)>=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=k.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&l.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?
 a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var o=a.getAttributeNode("tabIndex");return o&&o.specified?o.value:m.test(a.nodeName)||n.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var p=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return p===null?b:p}h&&(a[c]=e);return a[c]}});var p=/\.(.*)$/,q=/^(?:textarea|input|select)$/i,r=/\./g,s=/ /g,t=/[^\w\s.|`]/g,u=function(a){return a.replace(t,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=v;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l=
 {}),m||(k.handle=m=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=v);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")
 <0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))d.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=d.event.special[h]||{};for(j=f||0;j<p.length;j++){q=p[j];if(e.guid===q.guid){if(l||n.test(q.namespace))f==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(f!=null)break}}if(p.length===0||f!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&d.removeEvent(a,h,s.handle),g=null,delete t[h]}if(d.isEmptyObject(t)){var w=s.handle;w&&(w.elem=null),delete s.events,delete s.handle,d.isEmptyObject(s)&&d.removeData(a,b,!0)}}},trigger:function(a,c,e){var f=a.type||a,g=arguments[3];if(!g){a=typeof a==="object"?a[d.expando]?a:d.extend(d.Event(f),a):d.Event(f),f.indexOf("!")>=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.eve
 nts&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(p,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=!0,l[m]())}catch(q){}k&&(l["on"+m]=k),d.event.triggered=!1}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.sl
 ice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l<m;l++){var n=f[l];if(e||h.test(n.namespace)){c.handler=n.handler,c.data=n.data,c.handleObj=n;var o=n.handler.apply(this,k);o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[d.expando])return a;var e=a;a=d.Event(e);for(var f=this.props.length,g;f;)g=this.props[--f],a[g]=e[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.p
 arentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=c.documentElement,i=c.body;a.pageX=a.clientX+(h&&h.scrollLeft||i&&i.scrollLeft||0)-(h&&h.clientLeft||i&&i.clientLeft||0),a.pageY=a.clientY+(h&&h.scrollTop||i&&i.scrollTop||0)-(h&&h.clientTop||i&&i.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,F(a.origType,a.selector),d.extend({},a,{handler:E,guid:a.handler.guid}))},remove:function(a){d.event.remove(this,F(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){d.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunloa
 d=null)}}}},d.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},d.Event=function(a){if(!this.preventDefault)return new d.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?w:v):this.type=a,this.timeStamp=d.now(),this[d.expando]=!0},d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=w;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=w;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=w,this.stopPropagation()},isDefaultPrevented:v,isPropagationStopped:v,isImmediatePropagationStopped:v};var x=function(a){var b=a.relatedTarget;try{if(b!==c&&!b.parentNode)r
 eturn;while(b&&b!==this)b=b.parentNode;b!==this&&(a.type=a.data,d.event.handle.apply(this,arguments))}catch(e){}},y=function(a){a.type=a.data,d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(c){d.event.add(this,b,c&&c.selector?y:x,a)},teardown:function(a){d.event.remove(this,b,a&&a.selector?y:x)}}}),d.support.submitBubbles||(d.event.special.submit={setup:function(a,b){if(this.nodeName&&this.nodeName.toLowerCase()!=="form")d.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&d(b).closest("form").length&&C("submit",this,arguments)}),d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&d(b).closest("form").length&&a.keyCode===13&&C("submit",this,arguments)});else return!1},teardown:function(a){d.event.remove(this,".specialSubmit")}});if(!d.support.changeBubbles){var z,A=function(a){var b=a.t
 ype,c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},B=function B(a){var c=a.target,e,f;if(q.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=A(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:B,beforedeactivate:B,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&B.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&B.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",A(b))}},setup:function(a,b){if(this.type==="file")r
 eturn!1;for(var c in z)d.event.add(this,c+".specialChange",z[c]);return q.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return q.test(this.nodeName)}},z=d.event.special.change.filters,z.focus=z.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){a=d.event.fix(a),a.type=b;return d.event.handle.call(this,a)}d.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i<j;i++)d.event.add(this[i],a,h,e);return this}}),d.fn.extend({unbind:function(a,b){if(typeof a!=="object"||a.preventDefault)for(var e=0,f=this.le
 ngth;e<f;e++)d.event.remove(this[e],a,b);else for(var c in a)this.unbind(c,a[c]);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var c=d.Event(a);c.preventDefault(),c.stopPropagation(),d.event.trigger(c,b,this[0]);return c.result}},toggle:function(a){var b=arguments,c=1;while(c<b.length)d.proxy(a,b[c++]);return this.click(d.proxy(a,function(e){var f=(d._data(this,"lastToggle"+a.guid)||0)%c;d._data(this,"lastToggle"+a.guid,f+1),e.preventDefault();return b[f].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var D={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,c){d.fn[c]=function(a,e,f,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:d(this.conte
 xt);if(typeof a==="object"&&!a.preventDefault){for(var o in a)n[c](o,e,a[o],m);return this}d.isFunction(e)&&(f=e,e=b),a=(a||"").split(" ");while((h=a[i++])!=null){j=p.exec(h),k="",j&&(k=j[0],h=h.replace(p,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,h==="focus"||h==="blur"?(a.push(D[h]+k),h=h+k):h=(D[h]||h)+k;if(c==="live")for(var q=0,r=n.length;q<r;q++)d.event.add(n[q],"live."+F(h,m),{data:e,selector:m,handler:f,origType:h,origHandler:f,preType:l});else n.unbind("live."+F(h,m),f)}return this}}),d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){d.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.
 sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!=="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],
 d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}re
 turn a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(f){if(f===!0)continue}else g=o=!0}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.rep
 lace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b==="string",
 d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1){}a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e
 ++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d
 ,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){r
 eturn"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType
 ===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){
 return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(a===b){g=!0;return 0}if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(
 j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeCh
 ild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p(
 [e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,d=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(e){d=!0}b&&(k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(d||!l.match.PSEUDO.test(c)&&!/!=/.test(c))return b.call(a,c)}catch(e){}return k(c,null,null,[a]).length>0})}(),function(){var a=c.createElement("div");a.innerH
 TML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};d.find=k,d.expr=k.selectors,d.expr[":"]=d.expr.filters,d.unique=k.uniqueSort,d.
 text=k.getText,d.isXMLDoc=k.isXML,d.contains=k.contains}();var G=/Until$/,H=/^(?:parents|prevUntil|prevAll)/,I=/,/,J=/^.[^:#\[\.,]*$/,K=Array.prototype.slice,L=d.expr.match.POS,M={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var b=this.pushStack("","find",a),c=0;for(var e=0,f=this.length;e<f;e++){c=b.length,d.find(a,this[e],b);if(e>0)for(var g=c;g<b.length;g++)for(var h=0;h<c;h++)if(b[h]===b[g]){b.splice(g--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(d.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(O(this,a,!1),"not",a)},filter:function(a){return this.pushStack(O(this,a,!0),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e<f;e++)i=a[e],j[i]||(j[i]=d.expr.match.POS.test(i)?d(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j
 )h=j[i],(h.jquery?h.index(g)>-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=L.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e<f;e++){g=this[e];while(g){if(l?l.index(g)>-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(N(c[0])||N(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth
 (a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=K.call(arguments);G.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!M[a]?d.unique(f):f,(this.length>1||I.test(e))&&H.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e
 )))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var P=/ jQuery\d+="(?:\d+|null)"/g,Q=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,S=/<([\w:]+)/,T=/<tbody/i,U=/<|&#?\w+;/,V=/<(?:script|object|embed|option|style)/i,W=/checked\s*(?:[^=]|=\s*.checked.)/i,X={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td,d.support.htmlSerialize||(X._default=[1,"div<div>","</div>"]),d.fn.extend({text:function(a){if(d.isFunction(a)
 )return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function
 (a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.get
 ElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(P,""):null;if(typeof a!=="string"||V.test(a)||!d.support.leadingWhitespace&&Q.test(a)||X[(S.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(R,"<$1></$2>");try{for(var c=0,e=this.length;c<e;c++)this[c].nodeType===1&&(d.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(f){this.empty().append(a)}}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var c=d(this),e=c.html();c.replaceWith(a.call(this,b,e))});typeof a!=="string"&&(a=d(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;d(thi
 s).remove(),b?d(b).before(a):d(c).append(a)})}return this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,e){var f,g,h,i,j=a[0],k=[];if(!d.support.checkClone&&arguments.length===3&&typeof j==="string"&&W.test(j))return this.each(function(){d(this).domManip(a,c,e,!0)});if(d.isFunction(j))return this.each(function(f){var g=d(this);a[0]=j.call(this,f,c?g.html():b),g.domManip(a,c,e)});if(this[0]){i=j&&j.parentNode,d.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?f={fragment:i}:f=d.buildFragment(a,this,k),h=f.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&d.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)e.call(c?Y(this[l],g):this[l],f.cacheable||m>1&&l<n?d.clone(h,!0,!0):h)}k.length&&d.each(k,ba)}return this}}),d.buildFragment=function(a,b,e){var f,g,h,i=b&&b[0]?b[0].ownerDocument||b[0]:c;a.length===1&&typeof a[0]==="string"&&a[0].length<512&&i===c&&a[
 0].charAt(0)==="<"&&!V.test(a[0])&&(d.support.checkClone||!W.test(a[0]))&&(g=!0,h=d.fragments[a[0]],h&&(h!==1&&(f=h))),f||(f=i.createDocumentFragment(),d.clean(a,i,f,e)),g&&(d.fragments[a[0]]=h?f:1);return{fragment:f,cacheable:g}},d.fragments={},d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(c){var e=[],f=d(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&f.length===1){f[b](this[0]);return this}for(var h=0,i=f.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){$(a,e),f=_(a),g=_(e);for(h=0;f[h];++h)$(f[h],g[h])}if(b){Z(a,e);if(c){f=_(a),g=_(e);for(h=0;f[h];++h)Z(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||
 c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||U.test(i)){if(typeof i==="string"){i=i.replace(R,"<$1></$2>");var j=(S.exec(i)||["",""])[1].toLowerCase(),k=X[j]||X._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=T.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]==="<table>"&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&Q.test(i)&&m.insertBefore(b.createTextNode(Q.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.make
 Array(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bb=/alpha\([^)]*\)/i,bc=/opacity=([^)]*)/,bd=/-([a-z])/ig,be=/([A-Z])/g,bf=/^-?\d+(?:px)?$/i,bg=/^-?\d/,bh={position:"absolute",visibility:"hidden",display:"block"},bi=["Left","Right"],bj=["Top","Bottom"],bk,bl,bm,bn=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cs
 sHooks:{opacity:{get:function(a,b){if(b){var c=bk(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bk)return bk(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bd,bn)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHoo
 ks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bo(a,b,e):d.swap(a,bh,function(){f=bo(a,b,e)});if(f<=0){f=bk(a,b,b),f==="0px"&&bm&&(f=bm(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bf.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return bc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bb.test(f)?f.replace(bb,e):c.filter+" "+e}}),c.defaultView&&c.defaultView.getComputedStyle&&(bl=function(a,c,e){var f,g,h;e=e.replace(be,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.styl
 e(a,e));return f}),c.documentElement.currentStyle&&(bm=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bf.test(d)&&bg.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bk=bl||bm,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var bp=/%20/g,bq=/\[\]$/,br=/\r?\n/g,bs=/#.*$/,bt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bu=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/(?:^file|^widget|\-extension):$/,bw=/^(?:GET|HEAD)$/,bx=/^\/\//,by=/\?/,bz=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bA=/^(?:select|textarea)/i,bB=/\s+/,bC=/([?&])_=[^
 &]*/,bD=/(^|\-)([a-z])/g,bE=function(a,b,c){return b+c.toUpperCase()},bF=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,bG=d.fn.load,bH={},bI={},bJ,bK;try{bJ=c.location.href}catch(bL){bJ=c.createElement("a"),bJ.href="",bJ=bJ.href}bK=bF.exec(bJ.toLowerCase()),d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bG)return bG.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("<div>").append(c.replace(bz,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.nam
 e&&!this.disabled&&(this.checked||bA.test(this.nodeName)||bu.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(br,"\r\n")}}):{name:b.name,value:c.replace(br,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bJ,isLocal:bv.test(bK[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded
 ",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bM(bH),ajaxTransport:bM(bI),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bP(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bQ(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigge
 r("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bD,bE)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bt.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bs,"").replace(bx,bK[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bB),e
 .crossDomain||(q=bF.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bK[1]||q[2]!=bK[2]||(q[3]||(q[1]==="http:"?80:443))!=(bK[3]||(bK[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bN(bH,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!bw.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(by.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bC,"$1_="+w);e.url=x+(x===e.url?(by.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);i
 f(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bN(bI,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bO(g,a[g],c,f);return e.join("&").replace(bp,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bR=d.now(),bS=/(\=)\?(&|$)|()\?\?()/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bR++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.js
 onp!=null||b.jsonp!==!1&&(bS.test(b.url)||f&&bS.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bS,l),b.url===j&&(f&&(k=k.replace(bS,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentE
 lement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bT=d.now(),bU,bV;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bX()||bY()}:bX,bV=d.ajaxSettings.xhr(),d.support.ajax=!!bV,d.support.cors=bV&&"withCredentials"in bV,bV=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),(!a.crossDomain||a.hasContent)&&!e["X-Requested-With"]&&(e["X-Requ
 ested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bU[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bU||(bU={},bW()),h=bT++,g.onreadystatechange=bU[h]=c):c()},abort:function(){c&&c(0,1)}}}});var bZ={},b$=/^(?:toggle|show|hide)$/,b_=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,cb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(cc("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)e=thi
 s[g],f=e.style.display,!d._data(e,"olddisplay")&&f==="none"&&(f=e.style.display=""),f===""&&d.css(e,"display")==="none"&&d._data(e,"olddisplay",cd(e.nodeName));for(g=0;g<h;g++){e=this[g],f=e.style.display;if(f===""||f==="none")e.style.display=d._data(e,"olddisplay")||""}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cc("hide",3),a,b,c);for(var e=0,f=this.length;e<f;e++){var g=d.css(this[e],"display");g!=="none"&&!d._data(this[e],"olddisplay")&&d._data(this[e],"olddisplay",g)}for(e=0;e<f;e++)this[e].style.display="none";return this},_toggle:d.fn.toggle,toggle:function(a,b,c){var e=typeof a==="boolean";d.isFunction(a)&&d.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:d(this).is(":hidden");d(this)[b?"show":"hide"]()}):this.animate(cc("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,e){var f=d.speed(b,c,e);i
 f(d.isEmptyObject(a))return this.each(f.complete);return this[f.queue===!1?"each":"queue"](function(){var b=d.extend({},f),c,e=this.nodeType===1,g=e&&d(this).is(":hidden"),h=this;for(c in a){var i=d.camelCase(c);c!==i&&(a[i]=a[c],delete a[c],c=i);if(a[c]==="hide"&&g||a[c]==="show"&&!g)return b.complete.call(this);if(e&&(c==="height"||c==="width")){b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(d.css(this,"display")==="inline"&&d.css(this,"float")==="none")if(d.support.inlineBlockNeedsLayout){var j=cd(this.nodeName);j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else this.style.display="inline-block"}d.isArray(a[c])&&((b.specialEasing=b.specialEasing||{})[c]=a[c][1],a[c]=a[c][0])}b.overflow!=null&&(this.style.overflow="hidden"),b.curAnim=d.extend({},a),d.each(a,function(c,e){var f=new d.fx(h,b,c);if(b$.test(e))f[e==="toggle"?g?"show":"hide":e](a);else{var i=b_.exec(e),j=f.cur();if(i){var k=parseFloat(i[2])
 ,l=i[3]||(d.cssNumber[c]?"":"px");l!=="px"&&(d.style(h,c,(k||1)+l),j=(k||1)/f.cur()*j,d.style(h,c,j+l)),i[1]&&(k=(i[1]==="-="?-1:1)*k+j),f.custom(j,k,l)}else f.custom(j,e,"")}});return!0})},stop:function(a,b){var c=d.timers;a&&this.queue([]),this.each(function(){for(var a=c.length-1;a>=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:cc("show",1),slideUp:cc("hide",1),slideToggle:cc("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.
 call(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!ca&&(ca=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(t
 his.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"line
 ar");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||d.fx.stop()},interval:13,stop:function(){clearInterval(ca),ca=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),d.expr&&d.expr.filters&&(d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length});var ce=/^t(?:able|d|h)$/i,cf=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?d.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset
 .bodyOffset(b);try{c=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!c||!d.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=f.body,i=cg(f),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||d.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||d.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:d.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var c,e=b.offsetParent,f=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(d.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===e&&(l
 +=b.offsetTop,m+=b.offsetLeft,d.offset.doesNotAddBorder&&(!d.offset.doesAddBorderForTableAndCells||!ce.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),f=e,e=b.offsetParent),d.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;d.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},d.offset={initialize:function(){var a=c.body,b=c.createElement("div"),e,f,g,h,i=parseFloat(d.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td>
 </tr></table>";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.styl
 e.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.
 fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.do
 cumentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window);
\ No newline at end of file


[30/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/LICENSE.txt
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/LICENSE.txt b/products/stratos-controller/modules/distribution/LICENSE.txt
new file mode 100755
index 0000000..bb5a3f4
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/LICENSE.txt
@@ -0,0 +1,488 @@
+
+This product is licensed by WSO2 Inc. under Apache License 2.0. The license
+can be downloaded from the following locations:
+	http://www.apache.org/licenses/LICENSE-2.0.html
+	http://www.apache.org/licenses/LICENSE-2.0.txt
+
+This product also contains software under different licenses. This table below
+all the contained libraries (jar files) and the license under which they are 
+provided to you.
+
+At the bottom of this file is a table that shows what each license indicated
+below is and where the actual text of the license can be found.
+
+Name                                                                            Type           License   
+---------------------------------------------------------------------------------------------------------
+abdera_1.0.0.wso2v3.jar                                                         bundle         apache2   
+addressing-1.6.1-wso2v9.mar                                                     bundle         apache2   
+ajaxtags_1.3.0.beta-rc7-wso2v1.jar                                              bundle         apache2   
+andes-client_0.13.0.wso2v6.jar                                                  bundle         apache2   
+annogen_0.1.0.wso2v1.jar                                                        bundle         apache2   
+antlr-runtime_3.2.0.wso2v1.jar                                                  bundle         bsd       
+antlr_2.7.7.wso2v1.jar                                                          bundle         bsd       
+antlr_3.2.0.wso2v1.jar                                                          bundle         bsd       
+ant_1.7.0.wso2v1.jar                                                            bundle         apache2   
+apache-cassandra_1.1.3.wso2v2.jar                                               bundle         apache2   
+apache-zookeeper_3.3.6.wso2v1.jar                                               bundle         apache2   
+atomikos_3.8.0.wso2v1.jar                                                       bundle         apache2   
+authenticator_0.7.0.wso2v1.jar                                                  bundle         apache2   
+axiom_1.2.11.wso2v4.jar                                                         bundle         apache2   
+axis2-json_1.6.1.wso2v9.jar                                                     bundle         apache2   
+axis2-transport-jms_1.1.0.wso2v7.jar                                            bundle         apache2   
+axis2_1.6.1.wso2v9.jar                                                          bundle         apache2   
+axis_1.4.0.wso2v1.jar                                                           bundle         apache2   
+backport-util-concurrent_3.1.0.wso2v1.jar                                       bundle         public    
+batik-anim-1.7.jar                                                              jarinbundle    apache2   
+batik-awt-util-1.7.jar                                                          jarinbundle    apache2   
+batik-bridge-1.7.jar                                                            jarinbundle    apache2   
+batik-codec-1.7.jar                                                             jarinbundle    apache2   
+batik-css-1.7.jar                                                               jarinbundle    apache2   
+batik-dom-1.7.jar                                                               jarinbundle    apache2   
+batik-ext-1.7.jar                                                               jarinbundle    apache2   
+batik-extension-1.7.jar                                                         jarinbundle    apache2   
+batik-gui-util-1.7.jar                                                          jarinbundle    apache2   
+batik-gvt-1.7.jar                                                               jarinbundle    apache2   
+batik-js-1.7.jar                                                                jarinbundle    apache2   
+batik-parser-1.7.jar                                                            jarinbundle    apache2   
+batik-script-1.7.jar                                                            jarinbundle    apache2   
+batik-slideshow-1.7.jar                                                         jarinbundle    apache2   
+batik-svg-dom-1.7.jar                                                           jarinbundle    apache2   
+batik-svggen-1.7.jar                                                            jarinbundle    apache2   
+batik-swing-1.7.jar                                                             jarinbundle    apache2   
+batik-transcoder-1.7.jar                                                        jarinbundle    apache2   
+batik-util-1.7.jar                                                              jarinbundle    apache2   
+batik-xml-1.7.jar                                                               jarinbundle    apache2   
+batik_1.7.0.wso2v1.jar                                                          bundle         apache2   
+bcprov-jdk15-132.jar                                                            jarinbundle    bouncy    
+bcprov-jdk15-132.jar                                                            jar            bouncy    
+bcprov-jdk15.jar                                                                jar            mit       
+com.google.gson_2.1.0.jar                                                       bundle         apache2   
+commons-beanutils-1.7.0.jar                                                     jarinbundle    apache2   
+commons-beanutils-1.8.0.jar                                                     jarinbundle    apache2   
+commons-beanutils_1.8.0.wso2v1.jar                                              bundle         apache2   
+commons-codec_1.4.0.wso2v1.jar                                                  bundle         apache2   
+commons-collections-3.2.0.wso2v1.jar                                            bundle         apache2   
+commons-collections_3.2.0.wso2v1.jar                                            bundle         apache2   
+commons-configuration_1.6.0.wso2v1.jar                                          bundle         apache2   
+commons-dbcp_1.4.0.wso2v1.jar                                                   bundle         apache2   
+commons-digester-1.8.1.jar                                                      jarinbundle    apache2   
+commons-digester-1.8.jar                                                        jarinbundle    apache2   
+commons-digester_1.8.1.wso2v1.jar                                               bundle         apache2   
+commons-discovery-0.2.jar                                                       jarinbundle    apache2   
+commons-fileupload_1.2.2.wso2v1.jar                                             bundle         apache2   
+commons-httpclient_3.1.0.wso2v2.jar                                             bundle         apache2   
+commons-io_2.0.0.wso2v2.jar                                                     bundle         apache2   
+commons-lang-2.6.0.wso2v1.jar                                                   bundle         apache2   
+commons-lang_2.6.0.wso2v1.jar                                                   bundle         apache2   
+commons-pool_1.5.6.wso2v1.jar                                                   bundle         apache2   
+compass_2.0.1.wso2v2.jar                                                        bundle         apache2   
+drools_5.2.1.wso2v1.jar                                                         bundle         apache2   
+ehcache_1.5.0.wso2v3.jar                                                        bundle         apache2   
+el-impl_2.2.0.wso2v1.jar                                                        bundle         cddl1     
+fop-0.94.jar                                                                    jarinbundle    apache2   
+geronimo-jms_1.1_spec-1.1.0.wso2v1.jar                                          bundle         apache2   
+geronimo-saaj_1.3_spec_1.0.0.wso2v3.jar                                         bundle         apache2   
+geronimo-stax-api_1.0_spec-1.0.1.wso2v2.jar                                     bundle         apache2   
+gitblit_1.2.0.wso2v1.jar                                                        bundle         apache2   
+guava_12.0.0.wso2v1.jar                                                         bundle         apache2   
+guice_3.0.0.wso2v1.jar                                                          bundle         apache2   
+h2-1.2.140-wso2v3.jar                                                           bundle         epl1      
+h2-database-engine_1.2.140.wso2v3.jar                                           bundle         epl1      
+hadoop-core_0.20.203.wso2v2.jar                                                 bundle         apache2   
+hector-core_1.1.0.wso2v1.jar                                                    bundle         mit       
+high-scale-lib_1.1.2.wso2v1.jar                                                 bundle         public    
+httpclient-4.1.1-wso2v1.jar                                                     bundle         apache2   
+httpclient_4.1.1.wso2v1.jar                                                     bundle         apache2   
+httpcore_4.1.0.wso2v1.jar                                                       bundle         apache2   
+httpcore_4.2.3.wso2v1.jar                                                       bundle         apache2   
+infinispan-core_5.1.2.wso2v1.jar                                                bundle         lgpl2     
+itext-2.1.7.jar                                                                 jarinbundle    mpl10     
+itext_2.1.7.wso2v1.jar                                                          bundle         mpl11     
+janino_2.5.15.wso2v1.jar                                                        bundle         bsd       
+jasper-jdt_6.0.18.wso2v1.jar                                                    bundle         apache2   
+jasperreports_4.5.0.wso2v1.jar                                                  bundle         lgpl3     
+javasysmon_0.3.3.wso2v1.jar                                                     bundle         jsmon     
+javax.el_2.2.0.v201108011116.jar                                                bundle         cddl1     
+javax.servlet.jsp_2.2.0.v201112011158.jar                                       bundle         cddl1     
+javax.servlet_3.0.0.v201112011016.jar                                           bundle         cddl1     
+jaxb-api-2.2.6.jar                                                              jar            cddl+gpl  
+jaxb_2.2.5.wso2v1.jar                                                           bundle         cddl1     
+jboss-logging_3.1.0.wso2v1.jar                                                  bundle         lgpl2     
+jboss-transaction-api_1.1_spec-1.0.0.Final.jar                                  jar            lgpl2     
+jcommon-1.0.15.jar                                                              jarinbundle    lgpl2     
+jcommon_1.0.15.wso2v1.jar                                                       bundle         lgpl2     
+jdbc-pool_7.0.34.wso2v1.jar                                                     bundle         apache2   
+jdom_1.0.0.wso2v1.jar                                                           bundle         jdom      
+jericho-html-2.4.jar                                                            jarinbundle    epl1      
+jettison_1.1.0.wso2v1.jar                                                       bundle         apache2   
+jfreechart-1.0.13.jar                                                           jarinbundle    lgpl2     
+jfreechart_1.0.13.wso2v1.jar                                                    bundle         lgpl2     
+jgroups_3.0.6.wso2v1.jar                                                        bundle         lgpl2     
+joda-time_1.6.0.wso2v1.jar                                                      bundle         apache2   
+jsch_0.1.49.wso2v1.jar                                                          bundle         apache2   
+json_2.0.0.wso2v1.jar                                                           bundle         json      
+jsr107cache_1.1.0.wso2v3.jar                                                    bundle         apache2   
+jsr94_1.1.0.wso2v1.jar                                                          bundle         beajsr94  
+jstl_1.2.1.wso2v1.jar                                                           bundle         cddl1     
+jxl_2.6.8.wso2v1.jar                                                            bundle         lgpl2     
+kaptcha_2.3.0.wso2v1.jar                                                        bundle         apache2   
+libthrift_0.7.0.wso2v2.jar                                                      bundle         apache2   
+log4j-1.2.13.jar                                                                jar            apache2   
+marshalling_1.3.6.wso2v1.jar                                                    bundle         lgpl2     
+mvel2_2.1.0.wso2v1.jar                                                          bundle         apache2   
+neethi_2.0.4.wso2v4.jar                                                         bundle         apache2   
+nekohtml-1.9.7.jar                                                              jarinbundle    apache2   
+opencsv-1.8.jar                                                                 jarinbundle    apache2   
+opencsv_1.8.0.wso2v1.jar                                                        bundle         apache2   
+openid4java-nodeps_0.9.6.wso2v2.jar                                             bundle         apache2   
+opensaml-1.1.406.jar                                                            jarinbundle    apache2   
+opensaml-2.4.1.jar                                                              jarinbundle    apache2   
+opensaml2_2.4.1.wso2v1.jar                                                      bundle         apache2   
+openws-1.4.1.jar                                                                jarinbundle    apache2   
+openxri-client-1.2.0.jar                                                        jarinbundle    apache2   
+openxri-syntax-1.2.0.jar                                                        jarinbundle    apache2   
+org.apache.felix.gogo.command_0.8.0.v201108120515.jar                           bundle         apache2   
+org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar                           bundle         apache2   
+org.apache.felix.gogo.shell_0.8.0.v201110170705.jar                             bundle         apache2   
+org.apache.jasper.glassfish_2.2.2.v201205150955.jar                             bundle         apache2   
+org.eclipse.core.contenttype_3.4.200.v20120523-2004.jar                         bundle         epl1      
+org.eclipse.core.expressions_3.4.401.v20120627-124442.jar                       bundle         epl1      
+org.eclipse.core.jobs_3.5.300.v20120622-204750.jar                              bundle         epl1      
+org.eclipse.core.runtime_3.8.0.v20120521-2346.jar                               bundle         epl1      
+org.eclipse.ecf.filetransfer_5.0.0.v20110531-2218.jar                           bundle         epl1      
+org.eclipse.ecf.identity_3.1.100.v20110531-2218.jar                             bundle         epl1      
+org.eclipse.ecf.provider.filetransfer.httpclient_4.0.200.v20120319-0616.jar     bundle         epl1      
+org.eclipse.ecf.provider.filetransfer_3.2.0.v20110531-2218.jar                  bundle         epl1      
+org.eclipse.ecf_3.1.300.v20110531-2218.jar                                      bundle         epl1      
+org.eclipse.equinox.app_1.3.100.v20120522-1841.jar                              bundle         epl1      
+org.eclipse.equinox.common_3.6.100.v20120522-1841.jar                           bundle         epl1      
+org.eclipse.equinox.concurrent_1.0.300.v20120522-2049.jar                       bundle         epl1      
+org.eclipse.equinox.console_1.0.0.v20120522-1841.jar                            bundle         epl1      
+org.eclipse.equinox.ds_1.4.0.v20120522-1841.jar                                 bundle         epl1      
+org.eclipse.equinox.frameworkadmin.equinox_1.0.400.v20120428-0117.jar           bundle         epl1      
+org.eclipse.equinox.frameworkadmin_2.0.100.v20120606-175127.jar                 bundle         epl1      
+org.eclipse.equinox.http.helper_1.1.0.wso2v1.jar                                bundle         epl1      
+org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar                     bundle         epl1      
+org.eclipse.equinox.jsp.jasper_1.0.400.v20120522-2049.jar                       bundle         epl1      
+org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar                           bundle         epl1      
+org.eclipse.equinox.p2.artifact.repository_1.1.100.v20110519.jar                bundle         epl1      
+org.eclipse.equinox.p2.console_1.0.300.v20110502-1955.jar                       bundle         epl1      
+org.eclipse.equinox.p2.core_2.1.0.v20110502-1955.jar                            bundle         epl1      
+org.eclipse.equinox.p2.director.app_1.0.300.v20110505.jar                       bundle         epl1      
+org.eclipse.equinox.p2.directorywatcher_1.0.300.v20110502-1955.jar              bundle         epl1      
+org.eclipse.equinox.p2.director_2.1.0.v20110504-1715.jar                        bundle         epl1      
+org.eclipse.equinox.p2.engine_2.1.0.v20110511.jar                               bundle         epl1      
+org.eclipse.equinox.p2.extensionlocation_1.2.100.v20110510.jar                  bundle         epl1      
+org.eclipse.equinox.p2.garbagecollector_1.0.200.v20110510.jar                   bundle         epl1      
+org.eclipse.equinox.p2.jarprocessor_1.0.200.v20110502-1955.jar                  bundle         epl1      
+org.eclipse.equinox.p2.metadata.repository_1.2.0.v20110511-1359.jar             bundle         epl1      
+org.eclipse.equinox.p2.metadata_2.1.0.v20110510.jar                             bundle         epl1      
+org.eclipse.equinox.p2.publisher_1.2.0.v20110511.jar                            bundle         epl1      
+org.eclipse.equinox.p2.repository.tools_2.0.100.v20110512-1320.jar              bundle         epl1      
+org.eclipse.equinox.p2.repository_2.1.0.v20110601.jar                           bundle         epl1      
+org.eclipse.equinox.p2.touchpoint.eclipse_2.1.0.v20110511-wso2v1.jar            bundle         epl1      
+org.eclipse.equinox.p2.touchpoint.natives_1.0.300.v20110502-1955.jar            bundle         epl1      
+org.eclipse.equinox.p2.transport.ecf_1.0.100.v20110902-0807.jar                 bundle         epl1      
+org.eclipse.equinox.p2.updatechecker_1.1.200.v20110502-1955.jar                 bundle         epl1      
+org.eclipse.equinox.p2.updatesite_1.0.300.v20110510.jar                         bundle         epl1      
+org.eclipse.equinox.preferences_3.5.0.v20120522-1841.jar                        bundle         epl1      
+org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar                         bundle         epl1      
+org.eclipse.equinox.security_1.1.100.v20120522-1841.jar                         bundle         epl1      
+org.eclipse.equinox.simpleconfigurator.manipulator_2.0.0.v20110808-1657.jar     bundle         epl1      
+org.eclipse.equinox.simpleconfigurator_1.0.301.v20120828-033635.jar             bundle         epl1      
+org.eclipse.equinox.util_1.0.400.v20120522-2049.jar                             bundle         epl1      
+org.eclipse.jgit_2.1.0.wso2v1.jar                                               bundle         apache2   
+org.eclipse.osgi.services_3.3.100.v20120522-1822.jar                            bundle         epl1      
+org.eclipse.osgi_3.8.1.v20120830-144521.jar                                     bundle         epl1      
+org.sat4j.core_2.3.0.v20110329.jar                                              bundle         epl1      
+org.sat4j.pb_2.3.0.v20110329.jar                                                bundle         epl1      
+org.wso2.carbon.account.mgt.stub_4.1.3.jar                                      bundle         apache2   
+org.wso2.carbon.account.mgt.ui_2.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.account.mgt_2.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.activation_2.1.2.jar                                            bundle         apache2   
+org.wso2.carbon.adc.mgt.stub_4.1.3.jar                                          bundle         apache2   
+org.wso2.carbon.adc.mgt_2.1.3.jar                                               bundle         apache2   
+org.wso2.carbon.adc.reponotification.service.stub_4.1.1.jar                     bundle         apache2   
+org.wso2.carbon.adc.topology.mgt_2.1.3.jar                                      bundle         apache2   
+org.wso2.carbon.addressing_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.admin.mgt.stub_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.admin.mgt.ui_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.admin.mgt_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.apache.jasper.fragment_4.1.0.jar                                bundle         apache2   
+org.wso2.carbon.application.deployer_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.application.upload_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.authenticator.proxy_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.authenticator.stub_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.base_4.1.0.jar                                                  bundle         apache2   
+org.wso2.carbon.billing.core_2.1.3.jar                                          bundle         apache2   
+org.apache.stratos.billing.mgt.stub_4.1.0.jar                                      bundle         apache2
+org.wso2.carbon.billing.mgt.ui_2.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.billing.mgt_2.1.3.jar                                           bundle         apache2   
+org.wso2.carbon.bootstrap-4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.bridge-4.1.0.jar                                                bundle         apache2   
+org.wso2.carbon.business.messaging.paypal.integration.core_4.1.0.jar            bundle         apache2   
+org.wso2.carbon.caching.core_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.captcha.mgt_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.cartridge.mgt.ui_2.1.3.jar                                      bundle         apache2   
+org.wso2.carbon.cluster.mgt.core_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.coordination.common_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.coordination.core_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.core.bootup.validator_4.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.core.commons.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.core.common_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.core.services_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.core_4.1.0.jar                                                  bundle         apache2   
+org.wso2.carbon.databridge.agent.thrift_4.1.0.jar                               bundle         apache2   
+org.wso2.carbon.databridge.commons.thrift_4.1.0.jar                             bundle         apache2   
+org.wso2.carbon.databridge.commons_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.email.sender_2.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.email.verification.stub_4.1.0.jar                               bundle         apache2   
+org.wso2.carbon.email.verification.ui_4.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.email.verification_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.event.admin_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.event.client.stub-4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.event.client.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.event.client_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.event.common_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.event.core_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.event.ws_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.feature.mgt.core_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.feature.mgt.services_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.feature.mgt.stub_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.feature.mgt.ui_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.framework.exporter_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.google.analytics.ui_2.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.http.bridge-4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.i18n_4.1.0.jar                                                  bundle         apache2   
+org.wso2.carbon.identity.authenticator.saml2.sso.common_4.1.0.jar               bundle         apache2   
+org.wso2.carbon.identity.authenticator.saml2.sso.stub_4.1.0.jar                 bundle         apache2   
+org.wso2.carbon.identity.authenticator.saml2.sso.ui_4.1.0.jar                   bundle         apache2   
+org.wso2.carbon.identity.authenticator.saml2.sso_4.1.0.jar                      bundle         apache2   
+org.wso2.carbon.identity.base_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.identity.core_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.identity.menu.ui_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.identity.provider.openid.stub_4.1.0.jar                         bundle         apache2   
+org.wso2.carbon.identity.provider.openid.ui_4.1.0.jar                           bundle         apache2   
+org.wso2.carbon.identity.provider.openid_4.1.0.jar                              bundle         apache2   
+org.wso2.carbon.identity.provider_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.identity.relyingparty.stub_4.1.0.jar                            bundle         apache2   
+org.wso2.carbon.identity.relyingparty.ui_4.1.0.jar                              bundle         apache2   
+org.wso2.carbon.identity.relyingparty_4.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.identity.sso.saml.stub_4.1.0.jar                                bundle         apache2   
+org.wso2.carbon.identity.sso.saml.ui_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.identity.sso.saml_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.jasper.patch_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.keystore.mgt_2.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.lb.common_4.1.3.jar                                             bundle         apache2   
+org.wso2.carbon.load.balance.agent_2.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.load.balance.cartridge.autoscaler.service.stub_4.1.3.jar        bundle         apache2   
+org.wso2.carbon.logging-4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.logging.admin.stub_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.logging.admin.ui_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.logging.service_4.1.1.jar                                       bundle         apache2   
+org.wso2.carbon.logging.view.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.logging.view.ui_4.1.1.jar                                       bundle         apache2   
+org.wso2.carbon.logging_4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.mediator.bridge-4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.ndatasource.common_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.ndatasource.core_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.ndatasource.rdbms_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.ntask.common_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.ntask.core_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.ntask.solutions_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.osgi.security_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.payment.paypal_2.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.payment.stub_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.payment.ui_2.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.qpid.stub_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.queuing_4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.redirector.servlet.stub_4.1.0.jar                               bundle         apache2   
+org.wso2.carbon.redirector.servlet.ui_2.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.redirector.servlet_2.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.register.ui_2.1.1.jar                                           bundle         apache2   
+org.wso2.carbon.registry.admin.api_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.registry.api_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.registry.common.ui_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.registry.common_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.registry.core_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.registry.properties.stub_4.1.0.jar                              bundle         apache2   
+org.wso2.carbon.registry.properties.ui_4.1.0.jar                                bundle         apache2   
+org.wso2.carbon.registry.properties_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.registry.resource.stub_4.1.0.jar                                bundle         apache2   
+org.wso2.carbon.registry.resource.ui_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.registry.resource_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.registry.search.stub_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.registry.search.ui_4.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.registry.search_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.registry.server_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.registry.servlet_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.remote-tasks.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.reporting.api_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.reporting.core_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.reporting.util_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.roles.mgt.stub_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.roles.mgt.ui_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.roles.mgt_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.rule.backend_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.rule.common_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.rule.kernel_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.rule.ws.admin_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.rule.ws_4.1.0.jar                                               bundle         apache2   
+org.wso2.carbon.securevault_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.security.mgt.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.security.mgt.ui_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.security.mgt_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.server-4.1.0.jar                                                bundle         apache2   
+org.wso2.carbon.server.admin.common_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.server.admin.stub_4.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.server.admin.ui_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.server.admin_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.service.mgt_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.servletbridge-4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.sso.redirector.ui_2.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.stratos.common.stub_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.stratos.common_2.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.stratos.landing.page.deployer_2.1.0.jar                         bundle         apache2   
+org.apache.stratos.manager.dashboard.stub_4.1.0.jar                        bundle         apache2
+org.wso2.carbon.task.services_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.task_4.1.0.jar                                                  bundle         apache2   
+org.wso2.carbon.tenant.activity_2.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.tenant.dispatcher_2.1.0.jar                                     bundle         apache2   
+org.wso2.carbon.tenant.mgt.core_2.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.tenant.mgt.email.sender_2.1.0.jar                               bundle         apache2   
+org.wso2.carbon.tenant.mgt.stub_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.tenant.mgt.ui_2.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.tenant.mgt_2.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.tenant.register.stub_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.theme.mgt.stub_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.theme.mgt.ui_2.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.theme.mgt_2.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.throttling.agent.stub_4.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.throttling.agent_2.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.throttling.manager_2.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.throttling.stub_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.throttling.ui_2.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.tomcat.ext_4.1.0.jar                                            bundle         apache2   
+org.wso2.carbon.tomcat.fragment.dummy_4.1.0.jar                                 bundle         apache2   
+org.wso2.carbon.tomcat.patch_4.1.0.jar                                          bundle         apache2   
+org.wso2.carbon.tomcat_4.1.0.jar                                                bundle         apache2   
+org.wso2.carbon.transaction.manager_4.1.0.jar                                   bundle         apache2   
+org.wso2.carbon.transport.https_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.transport.http_4.1.0.jar                                        bundle         apache2   
+org.wso2.carbon.transport.local_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.transport.mgt_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.ui.menu.general_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.ui.menu.registry_4.1.0.jar                                      bundle         apache2   
+org.wso2.carbon.ui.menu.tools_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.ui_4.1.0.jar                                                    bundle         apache2   
+org.wso2.carbon.usage.agent_2.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.usage.stub_4.1.3.jar                                            bundle         apache2   
+org.wso2.carbon.usage.ui_2.1.3.jar                                              bundle         apache2   
+org.wso2.carbon.usage_2.1.3.jar                                                 bundle         apache2   
+org.wso2.carbon.user.api_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.user.core_4.1.0.jar                                             bundle         apache2   
+org.wso2.carbon.user.mgt.common_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.user.mgt.stub_4.1.0.jar                                         bundle         apache2   
+org.wso2.carbon.user.mgt.ui_4.1.0.jar                                           bundle         apache2   
+org.wso2.carbon.user.mgt_4.1.0.jar                                              bundle         apache2   
+org.wso2.carbon.utils_4.1.0.jar                                                 bundle         apache2   
+org.wso2.carbon.validate.domain.stub_4.1.0.jar                                  bundle         apache2   
+org.wso2.carbon.validate.domain.ui_2.1.0.jar                                    bundle         apache2   
+org.wso2.carbon.validate.domain_2.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.webapp.deployer_4.1.0.jar                                       bundle         apache2   
+org.wso2.carbon.webapp.mgt_4.1.0.jar                                            bundle         apache2   
+org.wso2.ciphertool-1.0.0-wso2v2.jar                                            bundle         apache2   
+org.wso2.securevault_1.0.0.wso2v2.jar                                           bundle         apache2   
+org.wso2.stratos.identity.saml2.sso.mgt.ui_2.1.0.jar                            bundle         apache2   
+org.wso2.stratos.identity.saml2.sso.mgt_2.1.0.jar                               bundle         apache2   
+org.wso2.stratos.manager.dashboard.ui_1.0.1.jar                                 bundle         apache2   
+org.wso2.stratos.manager.login.ui_1.0.1.jar                                     bundle         apache2   
+org.wso2.stratos.manager.services.mgt_1.0.1.jar                                 bundle         apache2   
+org.wso2.stratos.manager.styles_1.0.1.jar                                       bundle         apache2   
+paypal-1.1.0.wso2v1.jar                                                         bundle         apache2   
+paypal_1.1.0.wso2v1.jar                                                         bundle         apache2   
+pdepublishing-ant.jar                                                           jar            epl1      
+pdepublishing.jar                                                               jar            epl1      
+perf4j_0.9.12.wso2v1.jar                                                        bundle         apache2   
+poi-ooxml_3.5.0.wso2v1.jar                                                      bundle         apache2   
+poi-scratchpad_3.5.0.wso2v1.jar                                                 bundle         apache2   
+poi_3.5.0.wso2v1.jar                                                            bundle         apache2   
+quartz_2.1.1.wso2v1.jar                                                         bundle         apache2   
+rampart-1.6.1-wso2v1.mar                                                        bundle         apache2   
+rampart-core_1.6.1.wso2v8.jar                                                   bundle         apache2   
+rampart-policy_1.6.1.wso2v8.jar                                                 bundle         apache2   
+rampart-trust_1.6.1.wso2v8.jar                                                  bundle         apache2   
+saxon_8.9.0.wso2v1.jar                                                          bundle         mpl10     
+slf4j-1.5.10.wso2v1.jar                                                         bundle         apache2   
+smack_3.0.4.wso2v1.jar                                                          bundle         apache2   
+spring.framework_3.1.0.wso2v1.jar                                               bundle         apache2   
+step2-common-1.0.0-wso2v1.jar                                                   bundle         apache2   
+step2-consumer-1.0.0-wso2v1.jar                                                 bundle         apache2   
+step2_1.0.0.wso2v1.jar                                                          bundle         apache2   
+synapse-commons_2.1.1.wso2v4.jar                                                bundle         apache2   
+synapse-core_2.1.1.wso2v4.jar                                                   bundle         apache2   
+synapse-extensions_2.1.1.wso2v4.jar                                             bundle         apache2   
+synapse-samples_2.1.1.wso2v4.jar                                                bundle         apache2   
+synapse-tasks_2.1.1.wso2v4.jar                                                  bundle         apache2   
+synapse-tasks_2.1.1.wso2v5.jar                                                  bundle         apache2   
+tcpmon-1.0.jar                                                                  jar            apache2   
+tiles-jsp_2.0.5.wso2v1.jar                                                      bundle         apache2   
+tomcat-ha_7.0.34.wso2v1.jar                                                     bundle         apache2   
+tomcat-juli-7.0.34.jar                                                          jar            apache2   
+tomcat_7.0.34.wso2v1.jar                                                        bundle         apache2   
+tribes_7.0.28.wso2v1.jar                                                        bundle         apache2   
+woden_1.0.0.M8-wso2v1.jar                                                       bundle         apache2   
+wsdl4j_1.6.2.wso2v4.jar                                                         bundle         cpl1      
+wss4j_1.5.11.wso2v5.jar                                                         bundle         apache2   
+xalan-2.7.1.wso2v1.jar                                                          bundle         apache2   
+xercesImpl-2.8.1.wso2v2.jar                                                     bundle         apache2   
+xkms_2.4.0.wso2v1.jar                                                           bundle         apache2   
+xml-apis-1.3.04.jar                                                             jarinbundle    unknown   
+xml-apis-1.3.04.wso2v2.jar                                                      bundle         apache2   
+xml-apis-ext-1.3.04.jar                                                         jarinbundle    unknown   
+xmlbeans-2.3.0.jar                                                              jarinbundle    apache2   
+xmlbeans_2.3.0.wso2v1.jar                                                       bundle         apache2   
+xmlgraphics-commons-1.3.1.jar                                                   jarinbundle    apache2   
+XmlSchema_1.4.7.wso2v2.jar                                                      bundle         apache2   
+xmltooling-1.3.1.jar                                                            jarinbundle    apache2   
+
+
+
+The license types used by the above libraries and their information is given below:
+
+lgpl3          GNU LESSER GENERAL PUBLIC LICENSE  Version 3
+               http://www.gnu.org/licenses/lgpl-3.0.txt
+epl1           Eclipse Public License
+               http://www.eclipse.org/legal/epl-v10.html
+lgpl2          Lesser GPL v2.1
+               http://www.opensource.org/licenses/lgpl-2.1.php
+mpl11          Mozilla Public License 1.1
+               http://www.mozilla.org/MPL/MPL-1.1.html
+mpl10          Mozilla Public License 1.0
+               http://www.mozilla.org/MPL/
+mit            MIT License
+               http://www.opensource.org/licenses/mit-license.php
+unknown        
+               unknown
+cddl1          Common Development and Distribution License
+               http://www.opensource.org/licenses/cddl1.php
+cddl+gpl       CDDL + GPLv2
+               https://glassfish.dev.java.net/public/CDDL+GPL.html
+cpl1           Common Public License 1.0
+               http://www.eclipse.org/legal/cpl-v10.html
+json           JSON.org License
+               null
+jsmon          ThoughtWorks Javasysmon License
+               https://github.com/jezhumble/javasysmon/blob/master/LICENSE
+jdom           JDOM License - Apache Styled
+               null
+apache2        Apache License Version 2.0
+               http://www.apache.org/licenses/LICENSE-2.0.html
+bsd            Berkeley License
+               http://www.opensource.org/licenses/bsd-license.php
+bouncy         Bouncy Castle License
+               http://www.bouncycastle.org/licence.html
+beajsr94       BEA License for JSR94 API
+               http://download.oracle.com/otndocs/jcp/jreng-1_0a-fr-spec-api-oth-JSpec/jreng-1_0a-fr-spec-api-oth-JSpec-license.html
+public         Public Domain
+               http://creativecommons.org/licenses/publicdomain/

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/README.txt
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/README.txt b/products/stratos-controller/modules/distribution/README.txt
new file mode 100755
index 0000000..02db83a
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/README.txt
@@ -0,0 +1,42 @@
+Apache Stratos Controller
+-----------------------
+
+Welcome to the Apache Stratos Controller
+
+The Stratos Controller (SC) mainly consists of the graphical user interface (GUI) and The Artifact Distribution 
+Coordinator that is responsible for the distribution of artifacts has been embedded into the Stratos Controller. 
+
+The Stratos Controller also defines the autoscaling policies that are defined for the Cartridges. 
+
+For more information about Stratos Controller, please refer WSO2 Stratos Wiki Docs:
+http://docs.wso2.org/wiki/display/Stratos200/WSO2+Stratos+Documentation
+
+Crypto Notice
+=============
+
+   This distribution includes cryptographic software.  The country in
+   which you currently reside may have restrictions on the import,
+   possession, use, and/or re-export to another country, of
+   encryption software.  BEFORE using any encryption software, please
+   check your country's laws, regulations and policies concerning the
+   import, possession, or use, and re-export of encryption software, to
+   see if this is permitted.  See <http://www.wassenaar.org/> for more
+   information.
+
+   The U.S. Government Department of Commerce, Bureau of Industry and
+   Security (BIS), has classified this software as Export Commodity
+   Control Number (ECCN) 5D002.C.1, which includes information security
+   software using or performing cryptographic functions with asymmetric
+   algorithms.  The form and manner of this Apache Software Foundation
+   distribution makes it eligible for export under the License Exception
+   ENC Technology Software Unrestricted (TSU) exception (see the BIS
+   Export Administration Regulations, Section 740.13) for both object
+   code and source code.
+
+   The following provides more details on the included cryptographic
+   software:
+
+   Apacge Rampart   : http://ws.apache.org/rampart/
+   Apache WSS4J     : http://ws.apache.org/wss4j/
+   Apache Santuario : http://santuario.apache.org/
+   Bouncycastle     : http://www.bouncycastle.org/

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/faq.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/faq.html b/products/stratos-controller/modules/distribution/lib/home/faq.html
new file mode 100755
index 0000000..1aa750c
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/lib/home/faq.html
@@ -0,0 +1,392 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+
+
+
+
+<script src="js/ga.js" async="" type="text/javascript"></script>
+
+
+
+	
+		<script type="text/javascript" src="../../carbon/googleanalytics/js/jquery.min.js"></script>
+                <script type="text/javascript" src="../../carbon/googleanalytics/js/googleAnalyticsProcessor.js"></script>
+		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
+		<title>WSO2 StratosLive – the most complete open PaaS powered by the multi-tenant WSO2 Stratos cloud middleware platform,  and WSO2 Carbon enterprise middleware platform</title>
+		<link href="style.css" rel="stylesheet" type="text/css" media="all" />
+		<meta name="description" content="WSO2 is the lean enterprise middleware company, delivering the only complete open source enterprise SOA middleware stack available internally and in the cloud." />
+		<meta name="keywords" content="cloud, platform-as-a-service, PaaS, multi-tenant, cloud enterprise middleware, SOA, open source PaaS" />
+	 	<link rel="stylesheet" href="js/orbit-1.2.3.css">
+		<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
+		<script type="text/javascript" src="js/jquery.orbit-1.2.3.min.js"></script>	
+		
+		
+			<!--[if IE]>
+			     <style type="text/css">
+			         .timer { display: none !important; }
+			         div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; }
+			    </style>
+			<![endif]-->
+		
+		<script type="text/javascript">
+			$(window).load(function() {
+				$('#featured').orbit({
+					timer: false
+				});
+			});
+		</script>
+	<style type="text/css" charset="utf-8">/* See license.txt for terms of usage */
+</style></head><body dir="LTR" lang="en-US" text="#000000">
+		<div id="main-content">
+			<div id="header">
+				<div class="top-nav">
+					<ul>
+						<li><a href="http://stratoslive.wso2.com/" target="_blank">Stratoslive</a></li>
+						<li><a target="_blank" href="http://wso2.com/cloud/stratoslive/">Stratoslive home</a></li>
+						<li><a href="http://wso2.com/cloud/stratoslive/pricing/" target="_blank">Pricing</a></li>
+						<li class="right"><a href="http://www.wso2.com/cloud/services/support" target="_blank">Support</a></li>
+					</ul>
+				</div>
+<div class="logo"><img src="images/logo.gif"></div>
+
+			
+			</div>
+<p style="text-decoration: none;" align="JUSTIFY">
+<b><a name="faqs"></a>StratosLive Frequently Asked Questions</b>
+</p>
+
+
+			<div id="content">
+
+
+					
+					
+					<div class="banner">
+						
+					</div>
+
+	
+	
+	
+	
+	
+	
+	<style type="text/css">
+	<!--
+		P { color: #000000; font-family: "Arial"; font-size: 11pt }
+	-->
+	</style>
+
+<p style="text-decoration: none;" align="JUSTIFY"><br>
+</p>
+<pre><p align="JUSTIFY"><a href="#startup"><strong>	StratosLive Start-up Questions</strong></a>
+    </p><p align="JUSTIFY"><a href="#general"><strong>	Using StratosLive - General Questions</strong></a>
+    </p><p align="JUSTIFY"><a href="#features"><strong>	StratosLive Features</strong></a>
+    </p><p align="JUSTIFY"><a href="#private"><strong>	Stratos Private Set up</strong></a>
+</p></pre>
+<br><br>
+<p style="font-style: normal; font-weight: normal;" align="JUSTIFY"><a name="startup"></a><u><strong>StratosLive
+Start-up Questions</strong></u></p>
+<ol>
+	<li><p align="JUSTIFY"><strong>I have registered an account just now. Why am I
+	unable to log in yet?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Please make sure that you have validated the
+registration, by clicking the validation link in the email sent to
+you. Also make sure that you have entered the username (in the form
+of adminname@domainname) and password correct.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="2">
+	<li><p align="JUSTIFY"><strong>Why should I validate my domain?</strong></p>
+</li></ol>
+<p align="JUSTIFY">While domain validation is optional, you can prove
+the ownership of the domain by validating the domain. Otherwise, you
+may have to lose your account, if the legitimate owner of the domain
+claims it. You might skip this step at the time of registration, and
+validate the domain at a later time from your account.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="3">
+	<li><p align="JUSTIFY"><strong>I have registered for a particular Stratos
+	Service. Now do I have to register for the other services?</strong></p>
+</li></ol>
+<p align="JUSTIFY">No, you don't have to. Stratos tenants are centrally
+managed. That means, if you have registered from a service, you will
+be able to use all the Stratos services. However, as the tenant
+admin, you will be able to activate and deactivate the Stratos
+services, from Stratos Manager.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="4">
+	<li><p align="JUSTIFY"><strong>I didn't get any email after registering or
+	after resetting my password?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Please check your spam folder, in case if the mail
+had been treated as a spam by your mail server. If it is still not
+there, you may need to contact WSO2 Support on sorting this out. We
+are glad to help from our end.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="5">
+	<li><p align="JUSTIFY"><strong>How do I get any further assistance on using
+	Stratos/StratosLive?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Please contact WSO2 using <a href="http://wso2.com/contact/">http://wso2.com/contact/</a>, if
+you need further assistance. StratosLive forum can be found at
+<a href="http://wso2.org/forum/1241">http://wso2.org/forum/1241</a>.
+You also can send your queries to the stratos-dev mailing list (stratos-dev@wso2.org) regarding
+StratosLive PaaS or Stratos Cloud Middleware Platform.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="6">
+	<li><p align="JUSTIFY"><strong>I have registered for a 'Demo/Free'
+	account. Will I be charged, if I exceed the usage limits?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Free/Demo accounts are never charged. Anyway, you
+can upgrade and downgrade your usage plan at any time.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="7">
+	<li><p align="JUSTIFY"><strong>Now I have registered for an account. What's
+	next?</strong></p>
+</li></ol>
+<p align="JUSTIFY">If you are familiar with the WSO2 Carbon based
+products, there is nothing new to learn for StratosLive. StratosLive
+is simply the WSO2 Carbon Middleware Platform as a Service, with all
+the WSO2 Carbon based products available publicly over the cloud as
+services. For a detailed introduction to the Platform aspect of
+Carbon and StratosLive, refer to the article, <a href="http://wso2.org/library/blog-post/2011/08/wso2-stratoslive-enterprise-ready-java-paas">“WSO2
+StratosLive - An Enterprise Ready Java PaaS</a>.”</p>
+    </p><p align="JUSTIFY"><a href="#faqs"><strong>	Back To Top</strong></a>
+<p align="JUSTIFY"><br><br>
+</p>
+<p align="JUSTIFY"><a name="general"></a><u><strong>Using StratosLive - General Questions</strong></u></p>
+<ol>
+	<li><p align="JUSTIFY"><strong>Does Stratos support multi-tenant model?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Yes, Stratos supports a multi-tenant model. In
+StratosLive PaaS, WSO2 is the super admin, and you have register a
+tenant. You can OEM Stratos, by setting up a private cloud for your
+own. In that case, you would be the super tenant and you can decide
+what level of functionality you want to allow your tenants.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="2">
+	<li><p align="JUSTIFY"><strong>How does Stratos overcome the inherent security
+	challenges of the cloud?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Tenants are isolated from each other in Stratos.
+Data processing code is protected by java security manager, hence the
+custom code deployed by tenants (such as web applications and web
+services) does not have access to it. Tenants are also prevented from
+executing the priviledged actions, such as opening the ports and
+accessing the file system. For more insights, please refer to the
+article, “<a href="http://wso2.org/library/articles/2011/08/wso2-stratoslive-meets-security-challenges-cloud">How
+WSO2 StratosLive meets Security Challenges in Cloud</a>.”</p>
+<p align="JUSTIFY">
+</p>
+<ol start="3">
+	<li><p align="JUSTIFY"><strong>How is multi-tenancy achieved in Stratos? Is it
+	at the Database level or the application level?</strong></p>
+</li></ol>
+<p align="JUSTIFY">It is multi-tenanted at the database level, as far
+as the data stored by Stratos is concerned. For user data, we are
+currently working on a polyglot data architecture which will allow a
+range of choices from a share, multi-tenant NoSQL feature (based on
+Cassandra) to a per-tenant database model.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="4">
+	<li><p align="JUSTIFY"><strong>Do we have the opportunity to customize or
+	extend Stratos as appropriate?</strong></p>
+</li></ol>
+<p align="JUSTIFY">StratosLive is a publicly hosted Stratos Cloud
+Middleware Platform-as-a-Service, where you are using the services as
+a tenant. Tenants have limited access due to the security and the
+other concerns. But if you host Stratos in your own data center and
+OEM Stratos, as super tenant you will be able to extend Stratos and
+customize it more, as you prefer.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="5">
+	<li><p align="JUSTIFY"><strong>What are the developer frameworks supported by
+	Stratos/StratosLive?</strong></p>
+</li></ol>
+<p align="JUSTIFY">StratosLive is a Java Platform as a Service. We
+currently support any Java developer framework as we are currently
+only supporting deploying Java webapps (WAR files). 
+</p>
+<p align="JUSTIFY">
+</p>
+<ol start="6">
+	<li><p align="JUSTIFY"><strong>Does Stratos support secure tunneling?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Yes, Stratos supports secure tunneling via the <a href="http://wso2.com/cloud/connectors/services-gateway/">Cloud
+Services Gateway</a>. Cloud Services Gateway is used to create a
+managed, secured channel for business processes and other tasks
+running in a public cloud to get access to enterprise data and
+services. It allows the service and data owners inside the enterprise
+to selectively publish services and data to the cloud. The resulting
+services can be fully protected – authentication, authorization,
+confidentiality, integrity and more. Here only the approved messages
+are delivered to access the services.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="7">
+	<li><p align="JUSTIFY"><strong>Does Stratos support elasticity?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Yes, we do support elasticity with the cloud
+provider. In StratosLive, the services are fronted by WSO2 Load
+Balancer, which balances the load across the service instances and
+scales the services automatically according to the load. Stratos
+services also can scale with the other load balancers including the
+hardware loadbalancers.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="8">
+	<li><p align="JUSTIFY"><strong>Does Stratos support single sign-on?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Yes, single sign-on and single sign-out are
+supported by design. Once you have logged into any of the Stratos
+services, you will not need to sign in to the other services.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="9">
+	<li><p align="JUSTIFY"><strong>Does Stratos support integration with
+	customer's on-premise Identity Management?</strong> 
+	</p>
+</li></ol>
+<p align="JUSTIFY">Yes. It is possible, and we will need to work with
+the customer to do this.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="10">
+	<li><p align="JUSTIFY"><strong>What lag times can we expect in different
+	parts of the globe?</strong> 
+	</p>
+</li></ol>
+<p align="JUSTIFY">This depends on the clients' deployment
+infrastructure, and where they decide to host it. We are currently
+working on support for Amazon's availability zones, so that we can
+isolate tenants to specific data centers.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="11">
+	<li><p align="JUSTIFY"><strong>Is there any speed issues reported with any
+	specific data types or streams?</strong> 
+	</p>
+</li></ol>
+<p align="JUSTIFY">No issues yet. Our architecture is 100% streaming,
+so we do not expect any issues either. EBay uses WSO2 Eneterprise
+Service Bus for 600 million messages/day and has flat line memory for
+messages ranging from 1kB to 100MB.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="12">
+	<li><p align="JUSTIFY"><strong>What are the supported cloud-providers? 
+	</strong></p>
+</li></ol>
+<p align="JUSTIFY">StratosLive is deployed on our co-lo servers over the
+ native hardware. We also have had the public cloud deployed on top of 
+Amazon’s EC2. We also have a private cloud setup that is deployed on 
+Eucalyptus. Stratos follows the open standards, and is not coded for any
+ particular cloud provider. Hence it is expected to work on any 
+Infrastructure as a Service.</p>
+    </p><p align="JUSTIFY"><a href="#faqs"><strong>	Back To Top</strong></a>
+<p align="JUSTIFY"><br><br>
+</p>
+<p align="JUSTIFY"><a name="features"></a><u><strong>StratosLive Features</strong></u></p>
+<ol>
+	<li><p align="JUSTIFY"><strong>Does Stratos support encrypted communications?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Yes, it does. Data communication from the browser to
+back-end Admin Services happens over https (encrypted), which
+provides transport-level protection. 
+</p>
+<p align="JUSTIFY">
+</p>
+<ol start="2">
+	<li><p align="JUSTIFY"><strong>Does StratosLive support metering?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Yes, it does. Tenants are metered and billed for
+their usage. Tenants can view their usage information from Stratos
+Manager. For more insights on the metering, throttling, and billing,
+refer to the article “<a href="http://wso2.org/library/articles/2011/08/metering-throttling-billing-stratoslive">Metering,
+Throttling and Billing in StratosLive</a>”.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="3">
+	<li><p align="JUSTIFY"><strong>Do you support Memcache?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Yes, we have a scalable distributed cache using
+EHCache that we expose via the Java caching API.</p>
+    </p><p align="JUSTIFY"><a href="#faqs"><strong>	Back To Top</strong></a>
+<p align="JUSTIFY"><br><br>
+</p>
+<p align="JUSTIFY"><a name="private"></a><u><strong>Stratos Private Set up</strong></u></p>
+<ol>
+	<li><p align="JUSTIFY"><strong>Can we set up our Stratos locally or as a PaaS?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Sure. StratosLive is a publicly hosted PaaS by WSO2.
+Similarly, you can deploy Stratos publicly over the cloud for your
+organization or for the public. In this case, you will be the super
+tenant. You can also deploy Stratos as a private cloud for your
+organization. Hybrid cloud set ups too are possible.</p>
+<p align="JUSTIFY">
+</p>
+<ol start="2">
+	<li><p align="JUSTIFY"><strong>Is it possible to migrate our services and data
+	from our tenant in StratosLive to our private Stratos cloud setup?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Migrating from StratosLive to your private Stratos
+cloud setup is possible, since StratosLive is the same Stratos Cloud
+Middleware platform hosted as StratosLive Platform as a Service. 
+</p>
+<p align="JUSTIFY">
+</p>
+<ol start="3">
+	<li><p align="JUSTIFY"><strong>Can we isolate specific accounts for throttling
+	or increase bandwidth?</strong></p>
+</li></ol>
+<p align="JUSTIFY">Yes, the load balancing logic and throttling logic
+are tenant aware. So if you are deploying Stratos locally, as the
+super tenant, you will be able to throttle the tenants. 
+</p>
+<p align="JUSTIFY">
+</p>
+<ol start="4">
+	<li><p align="JUSTIFY"><strong>Can we setup Stratos in a personal computer?</strong></p>
+</li></ol>
+<p align="JUSTIFY">You can setup Stratos in a computer with all the
+services, given that the computer has the required memory, processor,
+and disk space. For example, Stratos requires 4 GB memory, and at
+least 8 GB is recommended. You may also find it convenient to run
+only the services that you require at once, if you have limited
+resources.</p>
+
+    </p><p align="JUSTIFY"><a href="#faqs"><strong>	Back To Top</strong></a>
+<p align="JUSTIFY"><br><br>
+</p>
+<div class="clear"></div>
+				<div id="bottom">
+					
+					
+					
+					<div class="clear"></div>
+				</div>
+			</div>
+			<div id="footer">
+				<div class="footer-links">
+					<a target="_blank" href="http://www.wso2.com/cloud/services/terms-of-use">Terms of Use</a> | <a target="_blank" href="http://www.wso2.com/cloud/services/privacy-policy">Privacy Policy</a> | <a target="_blank" href="http://wso2.com/cloud/services/sla/">Service Level Agreement</a> | <a target="_blank" href="http://wso2.com/cloud/stratoslive/pricing/">Pricing</a> | <a target="_blank" href="http://www.wso2.com/cloud/services/support">Support</a>
+				</div>
+				<div class="powered">
+						<span>Powered by</span><img src="images/powered-logo.gif" alt="ESB">
+					</div>
+					<span class="copyright">©stratoslive.wso2.com copyright 2010-2012 WSO2, Inc. </span>
+				</div>
+			</div>
+		
+	</body></html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/bottom.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/bottom.gif b/products/stratos-controller/modules/distribution/lib/home/images/bottom.gif
new file mode 100755
index 0000000..5679266
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/bottom.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/bullet-01.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/bullet-01.gif b/products/stratos-controller/modules/distribution/lib/home/images/bullet-01.gif
new file mode 100755
index 0000000..7148f4d
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/bullet-01.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/content-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/content-bg.gif b/products/stratos-controller/modules/distribution/lib/home/images/content-bg.gif
new file mode 100755
index 0000000..6d0a579
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/content-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/favicon.ico
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/favicon.ico b/products/stratos-controller/modules/distribution/lib/home/images/favicon.ico
new file mode 100755
index 0000000..f7b2bbf
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/favicon.ico differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/feature-01-icon.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/feature-01-icon.gif b/products/stratos-controller/modules/distribution/lib/home/images/feature-01-icon.gif
new file mode 100755
index 0000000..ff3ba26
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/feature-01-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/feature-02-icon.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/feature-02-icon.gif b/products/stratos-controller/modules/distribution/lib/home/images/feature-02-icon.gif
new file mode 100755
index 0000000..ee4cb66
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/feature-02-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/feature-03-icon.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/feature-03-icon.gif b/products/stratos-controller/modules/distribution/lib/home/images/feature-03-icon.gif
new file mode 100755
index 0000000..8f3c2a1
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/feature-03-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/feature-middle-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/feature-middle-bg.gif b/products/stratos-controller/modules/distribution/lib/home/images/feature-middle-bg.gif
new file mode 100755
index 0000000..d2fb97e
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/feature-middle-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/intro-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/intro-bg.gif b/products/stratos-controller/modules/distribution/lib/home/images/intro-bg.gif
new file mode 100755
index 0000000..a38a0df
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/intro-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/intro-text.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/intro-text.gif b/products/stratos-controller/modules/distribution/lib/home/images/intro-text.gif
new file mode 100755
index 0000000..61441a2
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/intro-text.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/left-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/left-bg.gif b/products/stratos-controller/modules/distribution/lib/home/images/left-bg.gif
new file mode 100755
index 0000000..72dc051
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/left-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/logo.gif b/products/stratos-controller/modules/distribution/lib/home/images/logo.gif
new file mode 100755
index 0000000..1e7b2ce
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/powered-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/powered-logo.gif b/products/stratos-controller/modules/distribution/lib/home/images/powered-logo.gif
new file mode 100755
index 0000000..fb478bf
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/powered-logo.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/register.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/register.gif b/products/stratos-controller/modules/distribution/lib/home/images/register.gif
new file mode 100755
index 0000000..3260908
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/register.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/sign-in.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/sign-in.gif b/products/stratos-controller/modules/distribution/lib/home/images/sign-in.gif
new file mode 100755
index 0000000..ae2a4d7
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/sign-in.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/stratos-products-new.jpg
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/stratos-products-new.jpg b/products/stratos-controller/modules/distribution/lib/home/images/stratos-products-new.jpg
new file mode 100755
index 0000000..bbbdb00
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/stratos-products-new.jpg differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/title-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/title-bg.gif b/products/stratos-controller/modules/distribution/lib/home/images/title-bg.gif
new file mode 100755
index 0000000..2d539a7
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/title-bg.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/top.gif
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/top.gif b/products/stratos-controller/modules/distribution/lib/home/images/top.gif
new file mode 100755
index 0000000..9ed482c
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/top.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/webinar.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/webinar.png b/products/stratos-controller/modules/distribution/lib/home/images/webinar.png
new file mode 100755
index 0000000..434f660
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/webinar.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/images/white-paper.png
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/images/white-paper.png b/products/stratos-controller/modules/distribution/lib/home/images/white-paper.png
new file mode 100755
index 0000000..3fb643e
Binary files /dev/null and b/products/stratos-controller/modules/distribution/lib/home/images/white-paper.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/index.html
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/index.html b/products/stratos-controller/modules/distribution/lib/home/index.html
new file mode 100755
index 0000000..b186b76
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/lib/home/index.html
@@ -0,0 +1,119 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+	<head>  <script type="text/javascript" src="../../carbon/googleanalytics/js/jquery.min.js"></script>
+                <script type="text/javascript" src="../../carbon/googleanalytics/js/googleAnalyticsProcessor.js"></script>
+		<script type="text/javascript" src="../../carbon/googleanalytics/js/jquery.min.js"></script>
+                <script type="text/javascript" src="../../carbon/googleanalytics/js/googleAnalyticsProcessor.js"></script>
+		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
+		<title>WSO2 StratosLive – the most complete open PaaS powered by the multi-tenant WSO2 Stratos cloud middleware platform,  and WSO2 Carbon enterprise middleware platform</title>
+		<link href="style.css" rel="stylesheet" type="text/css" media="all" />
+		<meta name="description" content="WSO2 is the lean enterprise middleware company, delivering the only complete open source enterprise SOA middleware stack available internally and in the cloud." />
+		<meta name="keywords" content="cloud, platform-as-a-service, PaaS, multi-tenant, cloud enterprise middleware, SOA, open source PaaS" />
+	 	<link rel="stylesheet" href="js/orbit-1.2.3.css">
+		<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
+		<script type="text/javascript" src="js/jquery.orbit-1.2.3.min.js"></script>	
+		
+			<!--[if IE]>
+			     <style type="text/css">
+			         .timer { display: none !important; }
+			         div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; }
+			    </style>
+			<![endif]-->
+		
+		<script type="text/javascript">
+			$(window).load(function() {
+				$('#featured').orbit({
+					timer: false
+				});
+			});
+		</script>
+	</head>
+
+	<body>
+		<div id="main-content">
+			<div id="header">
+				<div class="top-nav">
+					<ul>
+						<li><a target="_blank" href="http://wso2.com/cloud/stratoslive/">StratosLive Home</a></li>
+						<li><a target="_blank" href="http://wso2.com/cloud/stratoslive/pricing/">Pricing</a></li>
+						<li><a target="_blank" href="http://docs.wso2.org/display/stratos/Stratos+Frequently+Asked+Questions">FAQ</a></li>
+						<li><a target="_blank" href="http://www.wso2.com/cloud/services/support">Support</a></li>
+						<li class="right"><a target="_blank" href="mailto:support+stratoslive@wso2.com">Contact</a></li>
+					</ul>
+				</div>
+				<div class="logo"><img src="images/logo.gif"/></div>
+			</div>
+			<div id="content">
+				<div id="left">
+					<div class="stratos-products">
+						<div class="title">
+							<img src="images/intro-text.gif" alt="Get instant access right now to enterprise-grade Middleware Platform-as-a-Service:"/>
+						</div>
+						<div class="products">
+							<a href="http://appserver.stratoslive.wso2.com/" class="as-new"></a>
+							<a href="http://data.stratoslive.wso2.com/" class="dss-new"></a>
+							<a href="http://identity.stratoslive.wso2.com/" class="is-new"></a>
+							<a href="http://governance.stratoslive.wso2.com/" class="greg-new"></a>
+							<a href="http://monitor.stratoslive.wso2.com/" class="bam-new"></a>
+							<a href="http://process.stratoslive.wso2.com/" class="bps-new"></a>
+							<a href="http://rule.stratoslive.wso2.com/" class="brs-new"></a>
+							<a href="http://esb.stratoslive.wso2.com/" class="esb-new"></a>
+							<a href="http://messaging.stratoslive.wso2.com/" class="mb-new"></a>
+							<a href="http://cep.stratoslive.wso2.com/" class="cep-new"></a>
+							<a href="http://cg.stratoslive.wso2.com/" class="cg-new"></a>
+							<a href="http://ss.stratoslive.wso2.com/" class="ss-new"></a>
+							<a href="http://ts.stratoslive.wso2.com/" class="ts-new"></a>
+						</div>
+					</div>
+				</div>
+				<div id="right">
+					<div class="register">
+						<a href="https://stratoslive.wso2.com/carbon/tenant-register/select_domain.jsp"><img src="images/register.gif"/></a>
+						<a href="https://stratoslive.wso2.com/carbon/sso-acs/redirect_ajaxprocessor.jsp"><img src="images/sign-in.gif"/></a>
+					</div>
+					
+					<div class="banner">
+						<div id="featured"> 
+							<div class="screencast">
+								<h2>Introducing WSO2 Stratos</h2>
+								<object height="265" width="440"><param value="https://www.youtube.com/v/hF0u6tvDoLQ?fs=1&amp;hl=en_US&amp;fs=1&amp;showinfo=0" name="movie"><param value="true" name="allowFullScreen"><param value="always" name="allowscriptaccess"><embed height="265" width="440" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" src="https://www.youtube.com/v/hF0u6tvDoLQ?fs=1&amp;hl=en_US&amp;fs=1&amp;showinfo=0&amp;rel=0"></object>
+							</div>
+							<div class="whitepaper">
+								<a target="_blank" href="http://wso2.com/casestudies/effective-cloud-enablement-with-wso2-stratos/"><img src="images/white-paper.png"/></a>
+							</div>
+							<div class="webinar">
+								<a target="_blank"href="http://wso2.org/library/webinars/2011/05/lean-cloud-platform"><img src="images/webinar.png"/></a>
+							</div>
+						</div>
+					</div>
+				</div>
+				<div class="clear"></div>
+				<div id="bottom">
+					<div class="feature">
+						Build composite applications that automatically scale
+					</div>
+					<div class="feature">
+						Pay just for the services you use
+					</div>
+					<div class="feature">
+						Freedom to move applications and data to WSO2 Stratos in your own datacenter
+					</div>
+					<div class="clear"></div>
+				</div>
+			</div>
+			<div id="footer">
+				<div class="footer-links">
+					<a target="_blank" href="http://www.wso2.com/cloud/services/terms-of-use">Terms of Use</a> | <a target="_blank" href="http://www.wso2.com/cloud/services/privacy-policy">Privacy Policy</a> | <a target="_blank" href="http://wso2.com/cloud/services/sla/">Service Level Agreement</a> | <a target="_blank" href="http://wso2.com/cloud/stratoslive/pricing/">Pricing</a> | <a target="_blank" href="http://www.wso2.com/cloud/services/support">Support</a>
+				</div>
+				<div class="powered">
+						<span>Powered by</span><img src="images/powered-logo.gif" alt="ESB"/>
+					</div>
+					<span class="copyright">&copy;stratoslive.wso2.com copyright 2010-2012 WSO2, Inc. </span>
+				</div>
+			</div>
+		</div>
+	</body>
+
+</html>


[29/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/modules/distribution/lib/home/js/jquery-1.5.1.min.js
----------------------------------------------------------------------
diff --git a/products/stratos-controller/modules/distribution/lib/home/js/jquery-1.5.1.min.js b/products/stratos-controller/modules/distribution/lib/home/js/jquery-1.5.1.min.js
new file mode 100755
index 0000000..14fd647
--- /dev/null
+++ b/products/stratos-controller/modules/distribution/lib/home/js/jquery-1.5.1.min.js
@@ -0,0 +1,16 @@
+/*!
+ * jQuery JavaScript Library v1.5.1
+ * http://jquery.com/
+ *
+ * Copyright 2011, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Wed Feb 23 13:55:29 2011 -0500
+ */
+(function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h==="string"&&(f[h.toLowerCase()]=a.converters[h]);l=k,k=e[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=f[m]||f["* "+k];if(!n){p=b;for(o in f){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=f[j[1]+" "+k];if(p){o=f[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&d.error("No con
 version from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bP(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bO(a,b,c,e){if(d.isArray(b)&&b.length)d.each(b,function(b,f){c||bq.test(a)?e(a,f):bO(a+"["+(typeof f==="object"||d.isArray(f)?b:"")+"]",f,c,e)});else if(c||b==null||typeof b!=="object")e(a,b);else if(d.isArray(b)||d.isEmptyObject(b))e(a,"");else for(var f in b)bO(a+"["+f+"]",b[f],c,e)}function bN(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bH,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l==="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bN(a,c,d,e,l,g)));(k||!l)&&!g["*"
 ]&&(l=bN(a,c,d,e,"*",g));return l}function bM(a){return function(b,c){typeof b!=="string"&&(c=b,b="*");if(d.isFunction(c)){var e=b.toLowerCase().split(bB),f=0,g=e.length,h,i,j;for(;f<g;f++)h=e[f],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bo(a,b,c){var e=b==="width"?bi:bj,f=b==="width"?a.offsetWidth:a.offsetHeight;if(c==="border")return f;d.each(e,function(){c||(f-=parseFloat(d.css(a,"padding"+this))||0),c==="margin"?f+=parseFloat(d.css(a,"margin"+this))||0:f-=parseFloat(d.css(a,"border"+this+"Width"))||0});return f}function ba(a,b){b.src?d.ajax({url:b.src,async:!1,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||""),b.parentNode&&b.parentNode.removeChild(b)}function _(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function $(a,b){if(b.nodeType===1){var c=b.nodeName.toLowerCase();b.clearAttributes(),b.mergeAttributes(a);if(c==="object")b.outerHTML=a
 .outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(d.expando)}}function Z(a,b){if(b.nodeType===1&&d.hasData(a)){var c=d.expando,e=d.data(a),f=d.data(b,e);if(e=e[c]){var g=e.events;f=f[c]=d.extend({},e);if(g){delete f.handle,f.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)d.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function Y(a,b){return d.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function O(a,b,c){if(d.isFunction(b))return d.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return d.grep(a,function(a,d){return a===b===c});if(typeof b==="string"){var e=d.grep(a,function(a){return a.nodeType===1});if(J.t
 est(b))return d.filter(b,e,!c);b=d.filter(b,e)}return d.grep(a,function(a,e){return d.inArray(a,b)>=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;i<t.length;i++)g=t[i],g.origType.replace(p,"")===a.type?r.push(g.selector):t.splice(i--,1);f=d(a.target).closest(r,a.currentTarget);for(j=0,k=f.length;j<k;j++){m=f[j];for(i=0;i<t.length;i++){g=t[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,e=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,e=d(a.relatedTarget).closest(g.selector)[0];(!e||e!==h)&&q.push({elem:h,handleObj:g,
 level:m.level})}}}for(j=0,k=q.length;j<k;j++){f=q[j];if(c&&f.level>c)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a
 ,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a)
 :this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selecto
 r+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){e=i[c],f=a[c];if(i===f)continue;l&&f&&(d.isPlainObject(f)||(g=d.isArray(f)))?(g?(g=!1,h=e&&d.isArray(e)?e:[]):h=e&&d.isPlainObject(e)?e:{},i[c]=d.extend(l,h
 ,f)):f!==b&&(i[c]=f)}return i},d.extend({noConflict:function(b){a.$=f,b&&(a.jQuery=e);return d},isReady:!1,readyWait:1,ready:function(a){a===!0&&d.readyWait--;if(!d.readyWait||a!==!0&&!d.isReady){if(!c.body)return setTimeout(d.ready,1);d.isReady=!0;if(a!==!0&&--d.readyWait>0)return;y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=!0;if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",A,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",A),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return
  a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||C.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.cre
 ateElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g<h;)if(c.apply(a[g++],e)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(var j=a[0];g<h&&c.call(j,g,j)!==!1;j=a[++g]){}return a},trim:F?function(a){return a==null?"":F.call(a)}:function(a){return a==null?"":(a+"").replace(j,"").replace(k,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var e=d.type(a);a.length==null||e==="string"||e==="function"||e==="regexp"||d.isWindow(a)?D.call(c,a):d.merge(c,a)}return c},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length==="number")for(var f=c.
 length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,b,c){var d=[],e;for(var f=0,g=a.length;f<g;f++)e=b(a[f],f,c),e!=null&&(d[d.length]=e);return d.concat.apply([],d)},guid:1,proxy:function(a,c,e){arguments.length===2&&(typeof c==="string"?(e=a,a=e[c],c=b):c&&!d.isFunction(c)&&(e=c,c=b)),!c&&a&&(c=function(){return a.apply(e||this,arguments)}),a&&(c.guid=a.guid=a.guid||c.guid||d.guid++);return c},access:function(a,c,e,f,g,h){var i=a.length;if(typeof c==="object"){for(var j in c)d.access(a,j,c[j],f,g,e);return a}if(e!==b){f=!h&&f&&d.isFunction(e);for(var k=0;k<i;k++)g(a[k],c,f?e.call(a[k],k,g(a[k],c)):e,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},_Deferred:function(){var a=[],b,c,e,f={done:function(){if(!e){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=d.type(i),j==="a
 rray"?f.done.apply(f,i):j==="function"&&a.push(i);k&&f.resolveWith(k[0],k[1])}return this},resolveWith:function(d,f){if(!e&&!b&&!c){c=1;try{while(a[0])a.shift().apply(d,f)}catch(g){throw g}finally{b=[d,f],c=0}}return this},resolve:function(){f.resolveWith(d.isFunction(this.promise)?this.promise():this,arguments);return this},isResolved:function(){return c||b},cancel:function(){e=1,a=[];return this}};return f},Deferred:function(a){var b=d._Deferred(),c=d._Deferred(),e;d.extend(b,{then:function(a,c){b.done(a).fail(c);return this},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,promise:function(a){if(a==null){if(e)return e;e=a={}}var c=z.length;while(c--)a[z[c]]=b[z[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){var b=arguments.length,c=b<=1&&a&&d.isFunction(a.promise)?a:d.Deferred(),e=c.promise();if(b>1){var f=E.call(arguments,0),g=b,h=function(a){return function(b){f[a]=arguments.length>1?E.call(
 arguments,0):b,--g||c.resolveWith(e,f)}};while(b--)a=f[b],a&&d.isFunction(a.promise)?a.promise().then(h(b),c.reject):--g;g||c.resolveWith(e,f)}else c!==a&&c.resolve(a);return e},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),y=d._Deferred(),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),G&&(d.inArray=function(a,b){return G.call(b,a)}),i.test(" ")&&(
 j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?A=function(){c.removeEventListener("DOMContentLoaded",A,!1),d.ready()}:c.attachEvent&&(A=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",A),d.ready())});return d}();(function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected
 ,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e),b=e=f=null}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cl
 oneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function"),b=null;return d
 };d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}})();var e=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!g(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,h=b.nodeType,i=h?d.cache:b,j=h?b[d.expando]:d.expando;if(!i[j])return;i
 f(c){var k=e?i[j][f]:i[j];if(k){delete k[c];if(!g(k))return}}if(e){delete i[j][f];if(!g(i[j]))return}var l=i[j][f];d.support.deleteExpando||i!=a?delete i[j]:i[j]=null,l?(i[j]={},h||(i[j].toJSON=d.noop),i[j][f]=l):h&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var g=this[0].attributes,h;for(var i=0,j=g.length;i<j;i++)h=g[i].name,h.indexOf("data-")===0&&(h=h.substr(5),f(this[0],h,e[h]))}}return e}if(typeof a==="object")return this.each(function(){d.data(this,a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(c===b){e=this.triggerHandler("getData"+k[1]+"!",[k[0]]),e===b&&this.length&&(e=d.data(this[0],a),e=f(
 this[0],a,e));return e===b&&k[1]?this.data(k[0]):e}return this.each(function(){var b=d(this),e=[k[0],c];b.triggerHandler("setData"+k[1]+"!",e),d.data(this,a,c),b.triggerHandler("changeData"+k[1]+"!",e)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}}),d.extend({queue:function(a,b,c){if(a){b=(b||"fx")+"queue";var e=d._data(a,b);if(!c)return e||[];!e||d.isArray(c)?e=d._data(a,b,d.makeArray(c)):e.push(c);return e}},dequeue:function(a,b){b=b||"fx";var c=d.queue(a,b),e=c.shift();e==="inprogress"&&(e=c.shift()),e&&(b==="fx"&&c.unshift("inprogress"),e.call(a,function(){d.dequeue(a,b)})),c.length||d.removeData(a,b+"queue",!0)}}),d.fn.extend({queue:function(a,c){typeof a!=="string"&&(c=a,a="fx");if(c===b)return d.queue(this[0],a);return this.each(function(b){var e=d.queue(this,a,c);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a,b=b||"fx";retur
 n this.queue(b,function(){var c=this;setTimeout(function(){d.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var h=/[\n\t\r]/g,i=/\s+/,j=/\r/g,k=/^(?:href|src|style)$/,l=/^(?:button|input)$/i,m=/^(?:button|input|object|select|textarea)$/i,n=/^a(?:rea)?$/i,o=/^(?:radio|checkbox)$/i;d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},d.fn.extend({attr:function(a,b){return d.access(this,a,b,!0,d.attr)},removeAttr:function(a,b){return this.each(function(){d.attr(this,a,""),this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.addClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"){var b=(a||"").split(i);for(var c=0,e=this.length;c<e;c++){var f=this[c];if(f.nodeType===1)if(f.className){var g=" "+f.className+" ",h=
 f.className;for(var j=0,k=b.length;j<k;j++)g.indexOf(" "+b[j]+" ")<0&&(h+=" "+b[j]);f.className=d.trim(h)}else f.className=a}}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.removeClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"||a===b){var c=(a||"").split(i);for(var e=0,f=this.length;e<f;e++){var g=this[e];if(g.nodeType===1&&g.className)if(a){var j=(" "+g.className+" ").replace(h," ");for(var k=0,l=c.length;k<l;k++)j=j.replace(" "+c[k]+" "," ");g.className=d.trim(j)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,e=typeof b==="boolean";if(d.isFunction(a))return this.each(function(c){var e=d(this);e.toggleClass(a.call(this,c,e.attr("class"),b),b)});return this.each(function(){if(c==="string"){var f,g=0,h=d(this),j=b,k=a.split(i);while(f=k[g++])j=e?j:!h.hasClass(f),h[j?"addClass":"removeClass"](f)}else if(c==="undefined"||c==="boolean")this.className&&d._data(this,"__className__",this.cla
 ssName),this.className=this.className||a===!1?"":d._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(h," ").indexOf(b)>-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var k=i?f:0,l=i?f+1:h.length;k<l;k++){var m=h[k];if(m.selected&&(d.support.optDisabled?!m.disabled:m.getAttribute("disabled")===null)&&(!m.parentNode.disabled||!d.nodeName(m.parentNode,"optgroup"))){a=d(m).val();if(i)return a;g.push(a)}}if(i&&!g.length&&h.length)return d(h[f]).val();return g}if(o.test(c.type)&&!d.support.checkOn)return c.getAttribute("value")===null?"on":c.value;return(c.value||"").replace(j,"")}return b}var n=d.isFunction(a);return this.each(function(b){var c=d(this),e=a;if(this
 .nodeType===1){n&&(e=a.call(this,b,c.val())),e==null?e="":typeof e==="number"?e+="":d.isArray(e)&&(e=d.map(e,function(a){return a==null?"":a+""}));if(d.isArray(e)&&o.test(this.type))this.checked=d.inArray(c.val(),e)>=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=k.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&l.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.rem
 oveAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var o=a.getAttributeNode("tabIndex");return o&&o.specified?o.value:m.test(a.nodeName)||n.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var p=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return p===null?b:p}h&&(a[c]=e);return a[c]}});var p=/\.(.*)$/,q=/^(?:textarea|input|select)$/i,r=/\./g,s=/ /g,t=/[^\w\s.|`]/g,u=function(a){return a.replace(t,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=v;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=fu
 nction(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=v);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split
 ("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))d.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=d.event.special[h]||{};for(j=f||0;j<p.length;j++){q=p[j];if(e.guid===q.guid){if(l||n.test(q.namespace))f==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(f!=null)break}}if(p.length===0||f!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&d.removeEvent(a,h,s.handle),g=null,delete t[h]}if(d.isEmptyObject(t)){var w=s.handle;w&&(w.elem=null),delete s.events,delete s.handle,d.isEmptyObject(s)&&d.removeData(a,b,!0)}}},trigger:function(a,c,e){var f=a.type||a,g=arguments[3];if(!g){a=typeof a==="object"?a[d.expando]?a:d.extend(d.Event(f),a):d.Event(f),f.indexOf("!")>=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.e
 vent.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(p,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=!0,l[m]())}catch(q){}k&&(l["on"+m]=k),d.event.triggered=!1}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new R
 egExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l<m;l++){var n=f[l];if(e||h.test(n.namespace)){c.handler=n.handler,c.data=n.data,c.handleObj=n;var o=n.handler.apply(this,k);o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[d.expando])return a;var e=a;a=d.Event(e);for(var f=this.props.length,g;f;)g=this.props[--f],a[g]=e[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.related
 Target&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=c.documentElement,i=c.body;a.pageX=a.clientX+(h&&h.scrollLeft||i&&i.scrollLeft||0)-(h&&h.clientLeft||i&&i.clientLeft||0),a.pageY=a.clientY+(h&&h.scrollTop||i&&i.scrollTop||0)-(h&&h.clientTop||i&&i.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,F(a.origType,a.selector),d.extend({},a,{handler:E,guid:a.handler.guid}))},remove:function(a){d.event.remove(this,F(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){d.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},d.removeE
 vent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},d.Event=function(a){if(!this.preventDefault)return new d.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?w:v):this.type=a,this.timeStamp=d.now(),this[d.expando]=!0},d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=w;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=w;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=w,this.stopPropagation()},isDefaultPrevented:v,isPropagationStopped:v,isImmediatePropagationStopped:v};var x=function(a){var b=a.relatedTarget;try{if(b!==c&&!b.parentNode)return;while(b&&b!==th
 is)b=b.parentNode;b!==this&&(a.type=a.data,d.event.handle.apply(this,arguments))}catch(e){}},y=function(a){a.type=a.data,d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(c){d.event.add(this,b,c&&c.selector?y:x,a)},teardown:function(a){d.event.remove(this,b,a&&a.selector?y:x)}}}),d.support.submitBubbles||(d.event.special.submit={setup:function(a,b){if(this.nodeName&&this.nodeName.toLowerCase()!=="form")d.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&d(b).closest("form").length&&C("submit",this,arguments)}),d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&d(b).closest("form").length&&a.keyCode===13&&C("submit",this,arguments)});else return!1},teardown:function(a){d.event.remove(this,".specialSubmit")}});if(!d.support.changeBubbles){var z,A=function(a){var b=a.type,c=a.value;b==="ra
 dio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},B=function B(a){var c=a.target,e,f;if(q.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=A(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:B,beforedeactivate:B,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&B.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&B.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",A(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in 
 z)d.event.add(this,c+".specialChange",z[c]);return q.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return q.test(this.nodeName)}},z=d.event.special.change.filters,z.focus=z.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){a=d.event.fix(a),a.type=b;return d.event.handle.call(this,a)}d.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i<j;i++)d.event.add(this[i],a,h,e);return this}}),d.fn.extend({unbind:function(a,b){if(typeof a!=="object"||a.preventDefault)for(var e=0,f=this.length;e<f;e++)d.event.
 remove(this[e],a,b);else for(var c in a)this.unbind(c,a[c]);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var c=d.Event(a);c.preventDefault(),c.stopPropagation(),d.event.trigger(c,b,this[0]);return c.result}},toggle:function(a){var b=arguments,c=1;while(c<b.length)d.proxy(a,b[c++]);return this.click(d.proxy(a,function(e){var f=(d._data(this,"lastToggle"+a.guid)||0)%c;d._data(this,"lastToggle"+a.guid,f+1),e.preventDefault();return b[f].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var D={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,c){d.fn[c]=function(a,e,f,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:d(this.context);if(typeof a==="ob
 ject"&&!a.preventDefault){for(var o in a)n[c](o,e,a[o],m);return this}d.isFunction(e)&&(f=e,e=b),a=(a||"").split(" ");while((h=a[i++])!=null){j=p.exec(h),k="",j&&(k=j[0],h=h.replace(p,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,h==="focus"||h==="blur"?(a.push(D[h]+k),h=h+k):h=(D[h]||h)+k;if(c==="live")for(var q=0,r=n.length;q<r;q++)d.event.add(n[q],"live."+F(h,m),{data:e,selector:m,handler:f,origType:h,origHandler:f,preType:l});else n.unbind("live."+F(h,m),f)}return this}}),d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){d.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.s
 izset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!=="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[
 x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=fun
 ction(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(f){if(f===!0)continue}else g=o=!0}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");i
 f(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b==="string",d=c&&!j.test(b),e=c&&
 !d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1){}a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute(
 "name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not"
 )if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type
 },reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!
 0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};f
 or(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(a===b){g=!0;return 0}if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i
 ;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),fu
 nction(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3
 ]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,d=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(e){d=!0}b&&(k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(d||!l.match.PSEUDO.test(c)&&!/!=/.test(c))return b.call(a,c)}catch(e){}return k(c,null,null,[a]).length>0})}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test
  e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};d.find=k,d.expr=k.selectors,d.expr[":"]=d.expr.filters,d.unique=k.uniqueSort,d.text=k.getText,d.isXM
 LDoc=k.isXML,d.contains=k.contains}();var G=/Until$/,H=/^(?:parents|prevUntil|prevAll)/,I=/,/,J=/^.[^:#\[\.,]*$/,K=Array.prototype.slice,L=d.expr.match.POS,M={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var b=this.pushStack("","find",a),c=0;for(var e=0,f=this.length;e<f;e++){c=b.length,d.find(a,this[e],b);if(e>0)for(var g=c;g<b.length;g++)for(var h=0;h<c;h++)if(b[h]===b[g]){b.splice(g--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(d.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(O(this,a,!1),"not",a)},filter:function(a){return this.pushStack(O(this,a,!0),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e<f;e++)i=a[e],j[i]||(j[i]=d.expr.match.POS.test(i)?d(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.i
 ndex(g)>-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=L.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e<f;e++){g=this[e];while(g){if(l?l.index(g)>-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(N(c[0])||N(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling
 ")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=K.call(arguments);G.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!M[a]?d.unique(f):f,(this.length>1||I.test(e))&&H.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.
 push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var P=/ jQuery\d+="(?:\d+|null)"/g,Q=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,S=/<([\w:]+)/,T=/<tbody/i,U=/<|&#?\w+;/,V=/<(?:script|object|embed|option|style)/i,W=/checked\s*(?:[^=]|=\s*.checked.)/i,X={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td,d.support.htmlSerialize||(X._default=[1,"div<div>","</div>"]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(fun
 ction(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1
 &&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"
 ));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(P,""):null;if(typeof a!=="string"||V.test(a)||!d.support.leadingWhitespace&&Q.test(a)||X[(S.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(R,"<$1></$2>");try{for(var c=0,e=this.length;c<e;c++)this[c].nodeType===1&&(d.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(f){this.empty().append(a)}}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var c=d(this),e=c.html();c.replaceWith(a.call(this,b,e))});typeof a!=="string"&&(a=d(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;d(this).remove(),b?d(b).be
 fore(a):d(c).append(a)})}return this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,e){var f,g,h,i,j=a[0],k=[];if(!d.support.checkClone&&arguments.length===3&&typeof j==="string"&&W.test(j))return this.each(function(){d(this).domManip(a,c,e,!0)});if(d.isFunction(j))return this.each(function(f){var g=d(this);a[0]=j.call(this,f,c?g.html():b),g.domManip(a,c,e)});if(this[0]){i=j&&j.parentNode,d.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?f={fragment:i}:f=d.buildFragment(a,this,k),h=f.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&d.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)e.call(c?Y(this[l],g):this[l],f.cacheable||m>1&&l<n?d.clone(h,!0,!0):h)}k.length&&d.each(k,ba)}return this}}),d.buildFragment=function(a,b,e){var f,g,h,i=b&&b[0]?b[0].ownerDocument||b[0]:c;a.length===1&&typeof a[0]==="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!
 V.test(a[0])&&(d.support.checkClone||!W.test(a[0]))&&(g=!0,h=d.fragments[a[0]],h&&(h!==1&&(f=h))),f||(f=i.createDocumentFragment(),d.clean(a,i,f,e)),g&&(d.fragments[a[0]]=h?f:1);return{fragment:f,cacheable:g}},d.fragments={},d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(c){var e=[],f=d(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&f.length===1){f[b](this[0]);return this}for(var h=0,i=f.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){$(a,e),f=_(a),g=_(e);for(h=0;f[h];++h)$(f[h],g[h])}if(b){Z(a,e);if(c){f=_(a),g=_(e);for(h=0;f[h];++h)Z(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElem
 ent==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||U.test(i)){if(typeof i==="string"){i=i.replace(R,"<$1></$2>");var j=(S.exec(i)||["",""])[1].toLowerCase(),k=X[j]||X._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=T.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]==="<table>"&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&Q.test(i)&&m.insertBefore(b.createTextNode(Q.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElement
 sByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bb=/alpha\([^)]*\)/i,bc=/opacity=([^)]*)/,bd=/-([a-z])/ig,be=/([A-Z])/g,bf=/^-?\d+(?:px)?$/i,bg=/^-?\d/,bh={position:"absolute",visibility:"hidden",display:"block"},bi=["Left","Right"],bj=["Top","Bottom"],bk,bl,bm,bn=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:
 function(a,b){if(b){var c=bk(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bk)return bk(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bd,bn)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a
 ,c,e){var f;if(c){a.offsetWidth!==0?f=bo(a,b,e):d.swap(a,bh,function(){f=bo(a,b,e)});if(f<=0){f=bk(a,b,b),f==="0px"&&bm&&(f=bm(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bf.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return bc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bb.test(f)?f.replace(bb,e):c.filter+" "+e}}),c.defaultView&&c.defaultView.getComputedStyle&&(bl=function(a,c,e){var f,g,h;e=e.replace(be,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.
 documentElement.currentStyle&&(bm=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bf.test(d)&&bg.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bk=bl||bm,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var bp=/%20/g,bq=/\[\]$/,br=/\r?\n/g,bs=/#.*$/,bt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bu=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/(?:^file|^widget|\-extension):$/,bw=/^(?:GET|HEAD)$/,bx=/^\/\//,by=/\?/,bz=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bA=/^(?:select|textarea)/i,bB=/\s+/,bC=/([?&])_=[^&]*/,bD=/(^|\-)([a-z]
 )/g,bE=function(a,b,c){return b+c.toUpperCase()},bF=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,bG=d.fn.load,bH={},bI={},bJ,bK;try{bJ=c.location.href}catch(bL){bJ=c.createElement("a"),bJ.href="",bJ=bJ.href}bK=bF.exec(bJ.toLowerCase()),d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bG)return bG.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("<div>").append(c.replace(bz,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(t
 his.checked||bA.test(this.nodeName)||bu.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(br,"\r\n")}}):{name:b.name,value:c.replace(br,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bJ,isLocal:bv.test(bK[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,asyn
 c:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bM(bH),ajaxTransport:bM(bI),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bP(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bQ(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e
 ]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bD,bE)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bt.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bs,"").replace(bx,bK[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bB),e.crossDomain||(q=bF.e
 xec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bK[1]||q[2]!=bK[2]||(q[3]||(q[1]==="http:"?80:443))!=(bK[3]||(bK[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bN(bH,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!bw.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(by.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bC,"$1_="+w);e.url=x+(x===e.url?(by.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.be
 foreSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bN(bI,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bO(g,a[g],c,f);return e.join("&").replace(bp,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bR=d.now(),bS=/(\=)\?(&|$)|()\?\?()/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bR++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==
 !1&&(bS.test(b.url)||f&&bS.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bS,l),b.url===j&&(f&&(k=k.replace(bS,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:fu
 nction(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bT=d.now(),bU,bV;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bX()||bY()}:bX,bV=d.ajaxSettings.xhr(),d.support.ajax=!!bV,d.support.cors=bV&&"withCredentials"in bV,bV=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),(!a.crossDomain||a.hasContent)&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttp
 Request");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bU[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bU||(bU={},bW()),h=bT++,g.onreadystatechange=bU[h]=c):c()},abort:function(){c&&c(0,1)}}}});var bZ={},b$=/^(?:toggle|show|hide)$/,b_=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,cb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(cc("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)e=this[g],f=e.style.displa
 y,!d._data(e,"olddisplay")&&f==="none"&&(f=e.style.display=""),f===""&&d.css(e,"display")==="none"&&d._data(e,"olddisplay",cd(e.nodeName));for(g=0;g<h;g++){e=this[g],f=e.style.display;if(f===""||f==="none")e.style.display=d._data(e,"olddisplay")||""}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cc("hide",3),a,b,c);for(var e=0,f=this.length;e<f;e++){var g=d.css(this[e],"display");g!=="none"&&!d._data(this[e],"olddisplay")&&d._data(this[e],"olddisplay",g)}for(e=0;e<f;e++)this[e].style.display="none";return this},_toggle:d.fn.toggle,toggle:function(a,b,c){var e=typeof a==="boolean";d.isFunction(a)&&d.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:d(this).is(":hidden");d(this)[b?"show":"hide"]()}):this.animate(cc("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,e){var f=d.speed(b,c,e);if(d.isEmptyObject(a))
 return this.each(f.complete);return this[f.queue===!1?"each":"queue"](function(){var b=d.extend({},f),c,e=this.nodeType===1,g=e&&d(this).is(":hidden"),h=this;for(c in a){var i=d.camelCase(c);c!==i&&(a[i]=a[c],delete a[c],c=i);if(a[c]==="hide"&&g||a[c]==="show"&&!g)return b.complete.call(this);if(e&&(c==="height"||c==="width")){b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(d.css(this,"display")==="inline"&&d.css(this,"float")==="none")if(d.support.inlineBlockNeedsLayout){var j=cd(this.nodeName);j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else this.style.display="inline-block"}d.isArray(a[c])&&((b.specialEasing=b.specialEasing||{})[c]=a[c][1],a[c]=a[c][0])}b.overflow!=null&&(this.style.overflow="hidden"),b.curAnim=d.extend({},a),d.each(a,function(c,e){var f=new d.fx(h,b,c);if(b$.test(e))f[e==="toggle"?g?"show":"hide":e](a);else{var i=b_.exec(e),j=f.cur();if(i){var k=parseFloat(i[2]),l=i[3]||(d.cssNumber
 [c]?"":"px");l!=="px"&&(d.style(h,c,(k||1)+l),j=(k||1)/f.cur()*j,d.style(h,c,j+l)),i[1]&&(k=(i[1]==="-="?-1:1)*k+j),f.custom(j,k,l)}else f.custom(j,e,"")}});return!0})},stop:function(a,b){var c=d.timers;a&&this.queue([]),this.each(function(){for(var a=c.length-1;a>=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:cc("show",1),slideUp:cc("hide",1),slideToggle:cc("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e}
 ,easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!ca&&(ca=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||t
 his.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easin
 g[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||d.fx.stop()},interval:13,stop:function(){clearInterval(ca),ca=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),d.expr&&d.expr.filters&&(d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length});var ce=/^t(?:able|d|h)$/i,cf=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?d.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);try{c=
 b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!c||!d.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=f.body,i=cg(f),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||d.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||d.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:d.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var c,e=b.offsetParent,f=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(d.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===e&&(l+=b.offsetTop,m+=b.of
 fsetLeft,d.offset.doesNotAddBorder&&(!d.offset.doesAddBorderForTableAndCells||!ce.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),f=e,e=b.offsetParent),d.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;d.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},d.offset={initialize:function(){var a=c.body,b=c.createElement("div"),e,f,g,h,i=parseFloat(d.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";d.exte
 nd(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative"
 );var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var
  f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset
 "+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window);
\ No newline at end of file


[35/51] [partial] applying patch related to JIRA STRATOS-12

Posted by la...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-cli/LICENSE.txt
----------------------------------------------------------------------
diff --git a/products/stratos-cli/LICENSE.txt b/products/stratos-cli/LICENSE.txt
new file mode 100644
index 0000000..4287729
--- /dev/null
+++ b/products/stratos-cli/LICENSE.txt
@@ -0,0 +1,46 @@
+
+This product is licensed by Apache under Apache License 2.0. The license
+can be downloaded from the following locations:
+	http://www.apache.org/licenses/LICENSE-2.0.html
+	http://www.apache.org/licenses/LICENSE-2.0.txt
+
+This product also contains software under different licenses. 
+
+Following are the dependencies for this product.
+
+Artifact                                                Version           
+----------------------------------------------------------------------
+avalon-framework:avalon-framework                       4.1.3
+com.google.code.gson:gson                               2.1
+commons-beanutils:commons-beanutils                     1.8.0
+commons-cli:commons-cli                                 1.2
+commons-codec:commons-codec                             1.2
+commons-digester:commons-digester                       1.8
+commons-httpclient:commons-httpclient                   3.0.1
+commons-io:commons-io                                   2.0
+commons-logging:commons-logging                         1.1
+commons-validator:commons-validator                     1.4.0
+javax.servlet:servlet-api                               2.3
+jaxen:jaxen                                             1.1.1
+jline:jline                                             2.11
+log4j:log4j                                             1.2.13
+logkit:logkit                                           1.0.1
+org.apache.axis2.wso2:axis2                             1.6.1.wso2v9
+org.apache.commons:commons-lang3                        3.1
+org.apache.geronimo.specs:geronimo-activation_1.1_spec  1.0.2
+org.apache.geronimo.specs:geronimo-javamail_1.4_spec    1.6
+org.apache.geronimo.specs:geronimo-stax-api_1.0_spec    1.0.1
+org.apache.httpcomponents.wso2:httpcore                 4.1.0-wso2v1
+org.apache.neethi.wso2:neethi                           2.0.4.wso2v4
+org.apache.ws.commons.axiom:axiom-api                   1.2.11-wso2v2
+org.apache.ws.commons.axiom:axiom-impl                  1.2.11-wso2v2
+org.apache.ws.commons.axiom.wso2:axiom                  1.2.11.wso2v4
+org.apache.ws.commons.schema:XmlSchema                  1.4.3
+org.apache.ws.commons.schema.wso2:XmlSchema             1.4.7.wso2v2
+org.codehaus.woodstox:wstx-asl                          3.2.9
+org.slf4j:slf4j-api                                     1.7.5
+org.slf4j:slf4j-log4j12                                 1.7.5
+org.apache.stratos:org.apache.stratos.adc.mgt.stub      4.1.3
+org.wso2.securevault:org.wso2.securevault               1.0.0-wso2v2
+wsdl4j:wsdl4j                                           1.6.2
+wsdl4j.wso2:wsdl4j                                      1.6.2.wso2v2

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-cli/README.txt
----------------------------------------------------------------------
diff --git a/products/stratos-cli/README.txt b/products/stratos-cli/README.txt
new file mode 100755
index 0000000..4750af5
--- /dev/null
+++ b/products/stratos-cli/README.txt
@@ -0,0 +1,111 @@
+================================================================================
+                        Apache Stratos CLI v1.0.1
+================================================================================
+
+Welcome to the Apache Stratos CLI release
+
+The command line interface (CLI) is a powerful tool that clients can use
+to communicate with Stratos services. 
+
+The tenant can use the CLI tool on two separate modes if needed, which 
+are namely single command line mode and interactive mode. 
+
+If the user executes with a command as an argument, the CLI tool 
+will execute that command and exit with a status code. 
+
+However, if there is no command as an argument, the CLI tool will 
+enter into an interactive mode.
+
+A user will be able to carryout all the following functions via the
+CLI, with the exception of registering tenants and viewing logs.
+
+The CLI tool also supports command history and auto-completing features 
+in the interactive mode.
+
+Help
+==================================
+usage: stratos [-debug] [-h] [-p <password>] [-trace] [-u <username>]
+ -debug                     Enable debug logging
+ -h,--help                  Display this help
+ -p,--password <password>   Password
+ -trace                     Enable trace logging
+ -u,--username <username>   Username
+
+
+Available Commands: 
+add-domain-mapping        Map domain for the subscribed cartridge
+help                      Help for commands
+subscribe                 Subscribe to a cartridge
+sync                      Synchronize GIT repository for the subscribed cartridge
+remove-domain-mapping     Remove domain mapping for the subscribed cartridge
+list                      List subscribed cartridges with details
+unsubscribe               Unsubscribe from a subscribed cartridge
+policies                  List available policies
+exit                      Exit from Stratos Client Tool
+info                      Get information about a subscribed cartridge
+cartridges                List available cartridges
+
+
+Installation & Running
+==================================
+
+1. Extract the zip and go to the extracted directory
+
+Add execute permission to the script in Linux.
+chmod +x ./stratos.sh
+
+2. Export the host and port of the SC as environment variables
+
+Linux:
+export STRATOS_URL=https://s2demo.apache.com:9445
+
+Windows:
+set STRATOS_URL=https://s2demo.apache.com:9445
+
+3. Run the stratos.sh or stratos.bat as appropriate
+
+4. Export the following environment variables.
+
+Linux: (Add to your bashrc file)
+export JAVA_HOME=/opt/jdk1.6.0_24
+export PATH=$JAVA_HOME/bin:$PATH
+
+Windows: (Set in System Properties)
+set JAVA_HOME=C:\Java\jdk1.6.0_24
+set PATH=%JAVA_HOME%\bin;%PATH%
+
+4. Use the tentant username and password to login
+
+If you wish, you can also export your username and password as environment variables.
+If you export only the username, you will be prompted to enter the password.
+
+Linux:
+export STRATOS_USERNAME=<username>
+export STRATOS_PASSWORD=<password>
+
+Windows:
+set STRATOS_USERNAME=<username>
+set STRATOS_PASSWORD=<password>
+
+
+Support
+==================================
+
+Any problem with this release can be reported to Apache Stratos mailing list
+or in the JIRA issue tracker. If you are sending an email to the mailing
+list make sure to add the [Apache Stratos] prefix to the subject.
+
+Mailing list subscription:
+    dev-subscribe@stratos.incubator.apache.org
+
+
+Issue Tracker
+==================================
+
+Jira:
+    https://issues.apache.org/jira/browse/stratos
+
+
+Thank you for using Apache Stratos!
+The Stratos Team.
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-cli/distribution/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-cli/distribution/pom.xml b/products/stratos-cli/distribution/pom.xml
new file mode 100644
index 0000000..ee37542
--- /dev/null
+++ b/products/stratos-cli/distribution/pom.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>apache-stratos-cli-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>apache-stratos-cli</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - CLI</name>
+    <url>http://apache.org/</url>
+    <description>Apache Stratos CLI Distribution</description>
+
+    <profiles>
+        <profile>
+            <id>default</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-assembly-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>1-pre_dist</id>
+                                <phase>test</phase>
+                                <goals>
+                                    <goal>attached</goal>
+                                </goals>
+                                <configuration>
+                                    <descriptors>
+                                        <descriptor>src/main/assembly/bin.xml</descriptor>
+                                    </descriptors>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-cli/distribution/src/main/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/stratos-cli/distribution/src/main/assembly/bin.xml b/products/stratos-cli/distribution/src/main/assembly/bin.xml
new file mode 100644
index 0000000..a3bf082
--- /dev/null
+++ b/products/stratos-cli/distribution/src/main/assembly/bin.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<assembly>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <includeBaseDirectory>false</includeBaseDirectory>
+
+    <fileSets>
+        <fileSet>
+            <directory>../../../components/org.apache.stratos.cli/target</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
+            <includes>
+                <include>org.apache.stratos.cli-${pom.version}-Tool.jar</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>src/main/bin</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
+            <includes>
+                <include>stratos.sh</include>
+            </includes>
+            <fileMode>0755</fileMode>
+        </fileSet>
+        <fileSet>
+            <directory>src/main/bin</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
+            <includes>
+                <include>stratos.bat</include>
+            </includes>
+        </fileSet>
+	<fileSet>
+            <directory>../</directory>
+            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
+            <includes>
+                <include>README.txt</include>
+		<include>LICENSE.txt</include>
+            </includes>
+        </fileSet>
+    </fileSets>
+</assembly>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-cli/distribution/src/main/bin/stratos.bat
----------------------------------------------------------------------
diff --git a/products/stratos-cli/distribution/src/main/bin/stratos.bat b/products/stratos-cli/distribution/src/main/bin/stratos.bat
new file mode 100644
index 0000000..9bf9523
--- /dev/null
+++ b/products/stratos-cli/distribution/src/main/bin/stratos.bat
@@ -0,0 +1,36 @@
+@echo off
+rem ---------------------------------------------------------------------------
+rem  Licensed to the Apache Software Foundation (ASF) under one
+rem  or more contributor license agreements.  See the NOTICE file
+rem  distributed with this work for additional information
+rem  regarding copyright ownership.  The ASF licenses this file
+rem  to you under the Apache License, Version 2.0 (the
+rem  "License"); you may not use this file except in compliance
+rem  with the License.  You may obtain a copy of the License at
+rem
+rem      http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem  Unless required by applicable law or agreed to in writing,
+rem  software distributed under the License is distributed on an
+rem  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+rem  KIND, either express or implied.  See the License for the
+rem  specific language governing permissions and limitations
+rem  under the License.
+rem ---------------------------------------------------------------------------
+rem  Main Script for Apache Stratos CLI
+rem
+rem  Environment Variable Prequisites
+rem
+rem   STRATOS_CLI_HOME   Home of Stratos CLI Tool
+rem
+rem   STRATOS_URL        The URL of the Stratos Controller
+rem ---------------------------------------------------------------------------
+
+rem ----- Only set STRATOS_CLI_HOME if not already set ----------------------------
+
+if "%STRATOS_CLI_HOME%"=="" set STRATOS_CLI_HOME=%CD%
+
+cd %STRATOS_CLI_HOME%
+
+java -jar "org.apache.stratos.cli-3.0.0-SNAPSHOT-Tool.jar" %*
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-cli/distribution/src/main/bin/stratos.sh
----------------------------------------------------------------------
diff --git a/products/stratos-cli/distribution/src/main/bin/stratos.sh b/products/stratos-cli/distribution/src/main/bin/stratos.sh
new file mode 100755
index 0000000..7622f40
--- /dev/null
+++ b/products/stratos-cli/distribution/src/main/bin/stratos.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+# ----------------------------------------------------------------------------
+#  Main Script for the Apache Stratos CLI Tool
+#
+#  Environment Variable Prerequisites
+#
+#   STRATOS_CLI_HOME   Home of Stratos CLI Tool
+#
+#   STRATOS_URL        The URL of the Stratos Controller
+
+if [ -z $STRATOS_CLI_HOME ] ; then
+STRATOS_CLI_HOME="$PWD"
+fi
+
+java -jar $STRATOS_CLI_HOME/org.apache.stratos.cli-3.0.0-SNAPSHOT-Tool.jar $*
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-cli/distribution/src/main/bin/version.txt
----------------------------------------------------------------------
diff --git a/products/stratos-cli/distribution/src/main/bin/version.txt b/products/stratos-cli/distribution/src/main/bin/version.txt
new file mode 100644
index 0000000..e740fa4
--- /dev/null
+++ b/products/stratos-cli/distribution/src/main/bin/version.txt
@@ -0,0 +1 @@
+Apache Stratos CLI 3.0.0-SNAPSHOT

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-cli/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos-cli/pom.xml b/products/stratos-cli/pom.xml
new file mode 100644
index 0000000..db37994
--- /dev/null
+++ b/products/stratos-cli/pom.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+     <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-products-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>apache-stratos-cli-parent</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Stratos - CLI - Distribution</name>
+    <url>http://apache.org</url>
+    <description>Apache Stratos CLI</description>
+
+   
+    <modules>
+	<module>
+	    distribution
+   	</module>
+    </modules>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/billing-script/billing-h2.sql
----------------------------------------------------------------------
diff --git a/products/stratos-controller/billing-script/billing-h2.sql b/products/stratos-controller/billing-script/billing-h2.sql
new file mode 100755
index 0000000..e70be14
--- /dev/null
+++ b/products/stratos-controller/billing-script/billing-h2.sql
@@ -0,0 +1,109 @@
+CREATE TABLE IF NOT EXISTS BC_CUSTOMER (
+             BC_ID INTEGER AUTO_INCREMENT,
+             BC_NAME VARCHAR (64),
+             BC_STARTED_DATE TIMESTAMP,
+             BC_EMAIL VARCHAR (64),
+             BC_ADDRESS VARCHAR (256),
+             CONSTRAINT PK_BC_CUSTOMER PRIMARY KEY (BC_ID)
+);
+
+CREATE HASH INDEX BC_CUSTOMER_IND_BY_BC_NAME ON BC_CUSTOMER(BC_NAME);
+CREATE HASH INDEX BC_CUSTOMER_IND_BY_BC_EMAIL ON BC_CUSTOMER(BC_EMAIL);
+
+CREATE TABLE IF NOT EXISTS BC_ITEM (
+             BC_ID INTEGER AUTO_INCREMENT,
+             BC_NAME VARCHAR (64),
+             BC_COST VARCHAR (64),
+             BC_DESCRIPTION VARCHAR(128),
+             BC_PARENT_ITEM_ID INTEGER,
+             CONSTRAINT PK_BC_ITEM PRIMARY KEY (BC_ID)
+);
+INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('Demo',NULL,NULL,NULL);
+INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('SMB',NULL,NULL,NULL);
+INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('Professional',NULL,NULL,NULL);
+INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ('Enterprise',NULL,NULL,NULL);
+
+ALTER TABLE BC_ITEM ADD CONSTRAINT IF NOT EXISTS BC_ITEM_FK_BY_PARENT_ITEM_ID FOREIGN KEY (BC_PARENT_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
+
+
+CREATE TABLE IF NOT EXISTS BC_SUBSCRIPTION (
+             BC_ID INTEGER AUTO_INCREMENT,
+             BC_FILTER VARCHAR (32),
+             BC_IS_ACTIVE INTEGER,
+             BC_ACTIVE_SINCE TIMESTAMP,
+             BC_ACTIVE_UNTIL TIMESTAMP,
+             BC_ITEM_ID INTEGER,
+             BC_TENANT_ID INTEGER,
+             CONSTRAINT PK_BC_SUBSCRIPTION PRIMARY KEY (BC_ID)
+);
+
+ALTER TABLE BC_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_SUBSCRIPTION_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
+
+CREATE TABLE IF NOT EXISTS BC_INVOICE (
+             BC_ID INTEGER AUTO_INCREMENT,
+             BC_TENANT_ID INTEGER,
+             BC_DATE TIMESTAMP,
+             BC_START_DATE TIMESTAMP,
+             BC_END_DATE TIMESTAMP,
+             BC_BOUGHT_FORWARD VARCHAR (64),
+             BC_CARRIED_FORWARD VARCHAR (64),
+             BC_TOTAL_PAYMENTS VARCHAR (64),
+             BC_TOTAL_COST VARCHAR (64),
+             CONSTRAINT PK_BC_INVOICE PRIMARY KEY (BC_ID)
+);
+
+
+CREATE TABLE IF NOT EXISTS BC_PAYMENT (
+             BC_ID INTEGER AUTO_INCREMENT,
+             BC_DATE TIMESTAMP,
+             BC_AMOUNT VARCHAR (64),
+             BC_DESCRIPTION VARCHAR (128),
+             BC_INVOICE_ID INTEGER,
+	     	 BC_TENANT_ID INTEGER,	
+             CONSTRAINT PK_BC_PAYMENT PRIMARY KEY (BC_ID)
+);
+
+ALTER TABLE BC_PAYMENT ADD CONSTRAINT IF NOT EXISTS BC_PAYMENT_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
+
+-- this is n-n relationship
+CREATE TABLE IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION (
+             BC_PAYMENT_ID INTEGER,
+             BC_SUBSCRIPTION_ID INTEGER,
+             CONSTRAINT PK_BC_SUBSCRIPTION_ORDER PRIMARY KEY (BC_PAYMENT_ID, BC_SUBSCRIPTION_ID)
+);
+
+ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION_FK_BY_PAYMENT_ID FOREIGN KEY (BC_PAYMENT_ID) REFERENCES BC_PAYMENT (BC_ID);
+ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
+
+CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION (
+             BC_ID INTEGER  AUTO_INCREMENT,
+             BC_INVOICE_ID INTEGER,
+             BC_SUBSCRIPTION_ID INTEGER,
+             CONSTRAINT PK_BC_INVOICE_ITEM PRIMARY KEY (BC_ID)
+);
+
+ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
+ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
+
+
+CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM (
+             BC_INVOICE_SUBSCRIPTION_ID INTEGER,
+             BC_ITEM_ID INTEGER,
+             BC_COST VARCHAR (64),
+	     BC_DESCRIPTION VARCHAR (64),	
+             CONSTRAINT PK_BC_INVOICE_SUBSCRIPTION_ITEM PRIMARY KEY (BC_INVOICE_SUBSCRIPTION_ID, BC_ITEM_ID)
+);
+
+ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_INVOICE_SUBSCRIPTION_ID FOREIGN KEY (BC_INVOICE_SUBSCRIPTION_ID) REFERENCES BC_INVOICE_SUBSCRIPTION (BC_ID);
+ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM(BC_ID);
+
+CREATE TABLE IF NOT EXISTS BC_DISCOUNT (
+	BC_ID INTEGER AUTO_INCREMENT,
+	BC_TENANT_ID INTEGER,
+	BC_PERCENTAGE FLOAT,
+	BC_AMOUNT FLOAT,
+	BC_START_DATE TIMESTAMP,
+	BC_END_DATE TIMESTAMP,
+	BC_PERCENTAGE_TYPE INTEGER,
+	CONSTRAINT PK_BC_DISCOUNT PRIMARY KEY (BC_ID)
+);

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/billing-script/billing-mysql.sql
----------------------------------------------------------------------
diff --git a/products/stratos-controller/billing-script/billing-mysql.sql b/products/stratos-controller/billing-script/billing-mysql.sql
new file mode 100755
index 0000000..55cab9a
--- /dev/null
+++ b/products/stratos-controller/billing-script/billing-mysql.sql
@@ -0,0 +1,120 @@
+CREATE TABLE IF NOT EXISTS BC_CUSTOMER (
+             BC_ID INTEGER AUTO_INCREMENT,
+             BC_NAME VARCHAR (64),
+             BC_STARTED_DATE TIMESTAMP,
+             BC_EMAIL VARCHAR (64),
+             BC_ADDRESS VARCHAR (256),
+             CONSTRAINT PK_BC_CUSTOMER PRIMARY KEY (BC_ID)
+)ENGINE INNODB;
+
+CREATE INDEX BC_CUSTOMER_IND_BY_BC_NAME USING HASH ON BC_CUSTOMER(BC_NAME);
+CREATE INDEX BC_CUSTOMER_IND_BY_BC_EMAIL USING HASH ON BC_CUSTOMER(BC_EMAIL);
+
+CREATE TABLE IF NOT EXISTS BC_ITEM (
+             BC_ID INTEGER AUTO_INCREMENT,
+             BC_NAME VARCHAR (64),
+             BC_COST VARCHAR (64),
+             BC_DESCRIPTION VARCHAR(128),
+             BC_PARENT_ITEM_ID INTEGER,
+             CONSTRAINT PK_BC_ITEM PRIMARY KEY (BC_ID)
+)ENGINE INNODB;
+INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("Demo",NULL,NULL,NULL);
+INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("SMB",NULL,NULL,NULL);
+INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("Professional",NULL,NULL,NULL);
+INSERT INTO BC_ITEM (BC_NAME,BC_COST,BC_DESCRIPTION,BC_PARENT_ITEM_ID) values ("Enterprise",NULL,NULL,NULL);
+
+ALTER TABLE BC_ITEM ADD CONSTRAINT BC_ITEM_FK_BY_PARENT_ITEM_ID FOREIGN KEY (BC_PARENT_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
+
+
+CREATE TABLE IF NOT EXISTS BC_SUBSCRIPTION (
+             BC_ID INTEGER AUTO_INCREMENT,
+             BC_FILTER VARCHAR (32),
+             BC_IS_ACTIVE INTEGER,
+             BC_ACTIVE_SINCE TIMESTAMP,
+             BC_ACTIVE_UNTIL TIMESTAMP,
+             BC_ITEM_ID INTEGER,
+             BC_TENANT_ID INTEGER,
+             CONSTRAINT PK_BC_SUBSCRIPTION PRIMARY KEY (BC_ID)
+)ENGINE INNODB;
+
+ALTER TABLE BC_SUBSCRIPTION ADD CONSTRAINT BC_SUBSCRIPTION_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM (BC_ID);
+
+CREATE TABLE IF NOT EXISTS BC_INVOICE (
+             BC_ID INTEGER AUTO_INCREMENT,
+             BC_TENANT_ID INTEGER,
+             BC_DATE TIMESTAMP,
+             BC_START_DATE TIMESTAMP,
+             BC_END_DATE TIMESTAMP,
+             BC_BOUGHT_FORWARD VARCHAR (64),
+             BC_CARRIED_FORWARD VARCHAR (64),
+             BC_TOTAL_PAYMENTS VARCHAR (64),
+             BC_TOTAL_COST VARCHAR (64),
+             CONSTRAINT PK_BC_INVOICE PRIMARY KEY (BC_ID)
+)ENGINE INNODB;
+
+
+CREATE TABLE IF NOT EXISTS BC_PAYMENT (
+             BC_ID INTEGER AUTO_INCREMENT,
+             BC_DATE TIMESTAMP,
+             BC_AMOUNT VARCHAR (64),
+             BC_DESCRIPTION VARCHAR (128),
+             BC_INVOICE_ID INTEGER,
+	     BC_TENANT_ID INTEGER,	
+             CONSTRAINT PK_BC_SUBSCRIPTION_ORDER PRIMARY KEY (BC_ID)
+)ENGINE INNODB;
+
+ALTER TABLE BC_PAYMENT ADD CONSTRAINT BC_PAYMENT_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
+
+CREATE TABLE IF NOT EXISTS BC_REGISTRATION_PAYMENT (
+             BC_ID INTEGER AUTO_INCREMENT,
+             BC_DATE TIMESTAMP,
+             BC_AMOUNT VARCHAR (64),
+             BC_DESCRIPTION VARCHAR (128),
+			 BC_USAGE_PLAN VARCHAR (64),
+	     	 BC_TENANT_ID INTEGER,	
+             CONSTRAINT PK_BC_REGISTRATION_PAYMENT PRIMARY KEY (BC_ID)
+)ENGINE INNODB;
+
+-- this is n-n relationship
+CREATE TABLE IF NOT EXISTS BC_PAYMENT_SUBSCRIPTION (
+             BC_PAYMENT_ID INTEGER,
+             BC_SUBSCRIPTION_ID INTEGER,
+             CONSTRAINT PK_BC_SUBSCRIPTION_ORDER PRIMARY KEY (BC_PAYMENT_ID, BC_SUBSCRIPTION_ID)
+)ENGINE INNODB;
+
+ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT BC_PAYMENT_SUBSCRIPTION_FK_BY_PAYMENT_ID FOREIGN KEY (BC_PAYMENT_ID) REFERENCES BC_PAYMENT (BC_ID);
+ALTER TABLE BC_PAYMENT_SUBSCRIPTION ADD CONSTRAINT BC_PAYMENT_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
+
+CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION (
+             BC_ID INTEGER  AUTO_INCREMENT,
+             BC_INVOICE_ID INTEGER,
+             BC_SUBSCRIPTION_ID INTEGER,
+             CONSTRAINT PK_BC_INVOICE_ITEM PRIMARY KEY (BC_ID)
+)ENGINE INNODB;
+
+ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_FK_BY_INVOICE_ID FOREIGN KEY (BC_INVOICE_ID) REFERENCES BC_INVOICE (BC_ID);
+ALTER TABLE BC_INVOICE_SUBSCRIPTION ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_FK_BY_SUBSCRIPTION_ID FOREIGN KEY (BC_SUBSCRIPTION_ID) REFERENCES BC_SUBSCRIPTION (BC_ID);
+
+
+CREATE TABLE IF NOT EXISTS BC_INVOICE_SUBSCRIPTION_ITEM (
+             BC_INVOICE_SUBSCRIPTION_ID INTEGER,
+             BC_ITEM_ID INTEGER,
+             BC_COST VARCHAR (64),
+	     BC_DESCRIPTION varchar (64),	
+             CONSTRAINT PK_BC_INVOICE_SUBSCRIPTION_ITEM PRIMARY KEY (BC_INVOICE_SUBSCRIPTION_ID, BC_ITEM_ID)
+)ENGINE INNODB;
+
+ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_INVOICE_SUBSCRIPTION_ID FOREIGN KEY (BC_INVOICE_SUBSCRIPTION_ID) REFERENCES BC_INVOICE_SUBSCRIPTION (BC_ID);
+ALTER TABLE BC_INVOICE_SUBSCRIPTION_ITEM ADD CONSTRAINT BC_INVOICE_SUBSCRIPTION_ITEM_FK_BY_ITEM_ID FOREIGN KEY (BC_ITEM_ID) REFERENCES BC_ITEM(BC_ID);
+
+CREATE TABLE IF NOT EXISTS BC_DISCOUNT (
+        BC_ID INTEGER AUTO_INCREMENT,
+        BC_TENANT_ID INTEGER,
+        BC_PERCENTAGE FLOAT,
+        BC_AMOUNT FLOAT,
+        BC_START_DATE TIMESTAMP,
+        BC_END_DATE TIMESTAMP,
+        BC_PERCENTAGE_TYPE INTEGER,
+        CONSTRAINT PK_BC_DISCOUNT PRIMARY KEY (BC_ID)
+)ENGINE INNODB;
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/billing-script/metering_h2.sql
----------------------------------------------------------------------
diff --git a/products/stratos-controller/billing-script/metering_h2.sql b/products/stratos-controller/billing-script/metering_h2.sql
new file mode 100755
index 0000000..0491b8e
--- /dev/null
+++ b/products/stratos-controller/billing-script/metering_h2.sql
@@ -0,0 +1,114 @@
+--
+-- TABLES
+--
+
+CREATE TABLE IF NOT EXISTS USAGE_HOURLY_ANALYTICS (
+        ID VARCHAR(200) NOT NULL,
+        HOUR_FACT TIMESTAMP,
+        SERVER_NAME VARCHAR(100),
+        TENANT_ID VARCHAR(50),
+        PAYLOAD_TYPE VARCHAR(50),
+        PAYLOAD_VALUE  BIGINT,
+        PRIMARY KEY (ID)
+);
+
+CREATE TABLE IF NOT EXISTS USAGE_DAILY_ANALYTICS (
+        ID VARCHAR(200) NOT NULL,
+        DAY_FACT TIMESTAMP,
+        SERVER_NAME VARCHAR(100),
+        TENANT_ID VARCHAR(50),
+        PAYLOAD_TYPE VARCHAR(50),
+        PAYLOAD_VALUE  BIGINT,
+        PRIMARY KEY (ID)
+);
+
+CREATE TABLE IF NOT EXISTS USAGE_MONTHLY_ANALYTICS (
+        ID VARCHAR(200) NOT NULL,
+        MONTH_FACT TIMESTAMP,
+        SERVER_NAME VARCHAR(100),
+        TENANT_ID VARCHAR(50),
+        PAYLOAD_TYPE VARCHAR(50),
+        PAYLOAD_VALUE  BIGINT,
+        PRIMARY KEY (ID)
+);
+
+CREATE TABLE IF NOT EXISTS USAGE_LAST_HOURLY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (ID)
+);
+	
+CREATE TABLE IF NOT EXISTS USAGE_LAST_DAILY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (ID)
+);
+
+CREATE TABLE IF NOT EXISTS USAGE_LAST_MONTHLY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (ID)
+);
+
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_HOURLY_ANALYTICS (
+	ID VARCHAR(200) NOT NULL,
+	HOUR_FACT TIMESTAMP,
+	SERVER_NAME VARCHAR(100),
+	TENANT_ID VARCHAR(50),
+	REQUEST_COUNT BIGINT,
+	RESPONSE_COUNT BIGINT,
+	FAULT_COUNT BIGINT,
+	PRIMARY KEY (ID)
+);
+
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_DAILY_ANALYTICS (
+	ID VARCHAR(200) NOT NULL,
+	DAY_FACT TIMESTAMP,
+	SERVER_NAME VARCHAR(100),
+	TENANT_ID VARCHAR(50),
+	REQUEST_COUNT BIGINT,
+	RESPONSE_COUNT BIGINT,
+	FAULT_COUNT BIGINT,
+	PRIMARY KEY (ID)
+);
+
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_MONTHLY_ANALYTICS (
+	ID VARCHAR(200) NOT NULL,
+	MONTH_FACT TIMESTAMP,
+	SERVER_NAME VARCHAR(100),
+	TENANT_ID VARCHAR(50),
+	REQUEST_COUNT BIGINT,
+	RESPONSE_COUNT BIGINT,
+	FAULT_COUNT BIGINT,
+	PRIMARY KEY (ID)
+);
+
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_HOURLY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (ID)
+);
+	
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_DAILY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (ID)
+);
+
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_MONTHLY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (ID)
+);
+
+CREATE TABLE IF NOT EXISTS REGISTRY_USAGE_HOURLY_ANALYTICS ( 
+	ID VARCHAR(50),
+	TENANT_ID VARCHAR(50),	
+	HISTORY_USAGE BIGINT,
+	CURRENT_USAGE BIGINT,
+	PRIMARY KEY (ID)
+); 
+
+
+COMMIT;
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/billing-script/metering_mysql.sql
----------------------------------------------------------------------
diff --git a/products/stratos-controller/billing-script/metering_mysql.sql b/products/stratos-controller/billing-script/metering_mysql.sql
new file mode 100755
index 0000000..3ab4ee3
--- /dev/null
+++ b/products/stratos-controller/billing-script/metering_mysql.sql
@@ -0,0 +1,149 @@
+-- WSO2 METERING DATABASE SQL FOR MySQL
+
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+
+SET AUTOCOMMIT=0;
+START TRANSACTION;
+
+--
+-- TABLES
+--
+
+CREATE TABLE IF NOT EXISTS USAGE_HOURLY_ANALYTICS (
+        ID VARCHAR(200) NOT NULL,
+        HOUR_FACT TIMESTAMP,
+        SERVER_NAME VARCHAR(100),
+        TENANT_ID VARCHAR(50),
+        PAYLOAD_TYPE VARCHAR(50),
+        PAYLOAD_VALUE  BIGINT,
+        PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS USAGE_DAILY_ANALYTICS (
+        ID VARCHAR(200) NOT NULL,
+        DAY_FACT TIMESTAMP,
+        SERVER_NAME VARCHAR(100),
+        TENANT_ID VARCHAR(50),
+        PAYLOAD_TYPE VARCHAR(50),
+        PAYLOAD_VALUE  BIGINT,
+        PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS USAGE_MONTHLY_ANALYTICS (
+        ID VARCHAR(200) NOT NULL,
+        MONTH_FACT TIMESTAMP,
+        SERVER_NAME VARCHAR(100),
+        TENANT_ID VARCHAR(50),
+        PAYLOAD_TYPE VARCHAR(50),
+        PAYLOAD_VALUE  BIGINT,
+        PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS USAGE_LAST_HOURLY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+	
+CREATE TABLE IF NOT EXISTS USAGE_LAST_DAILY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS USAGE_LAST_MONTHLY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_HOURLY_ANALYTICS (
+	ID VARCHAR(200) NOT NULL,
+	HOUR_FACT TIMESTAMP,
+	SERVER_NAME VARCHAR(100),
+	TENANT_ID VARCHAR(50),
+	REQUEST_COUNT BIGINT,
+	RESPONSE_COUNT BIGINT,
+	FAULT_COUNT BIGINT,
+	PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_DAILY_ANALYTICS (
+	ID VARCHAR(200) NOT NULL,
+	DAY_FACT TIMESTAMP,
+	SERVER_NAME VARCHAR(100),
+	TENANT_ID VARCHAR(50),
+	REQUEST_COUNT BIGINT,
+	RESPONSE_COUNT BIGINT,
+	FAULT_COUNT BIGINT,
+	PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_MONTHLY_ANALYTICS (
+	ID VARCHAR(200) NOT NULL,
+	MONTH_FACT TIMESTAMP,
+	SERVER_NAME VARCHAR(100),
+	TENANT_ID VARCHAR(50),
+	REQUEST_COUNT BIGINT,
+	RESPONSE_COUNT BIGINT,
+	FAULT_COUNT BIGINT,
+	PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_HOURLY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+	
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_DAILY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS SERVICE_STATS_LAST_MONTHLY_TS (
+	ID VARCHAR(200) NOT NULL,
+	TIMESTMP TIMESTAMP,
+	PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS REGISTRY_USAGE_HOURLY_ANALYTICS ( 
+	ID VARCHAR(50),
+	TENANT_ID VARCHAR(50),	
+	HISTORY_USAGE BIGINT,
+	CURRENT_USAGE BIGINT,
+	PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS CARTRIDGE_STATS_HOURLY_ANALYTICS (
+        HOUR_FACT TIMESTAMP,
+        TENANT_ID VARCHAR(50),
+	CARTRIDGE_TYPE VARCHAR(20),
+	IMAGE_ID VARCHAR(100),
+	NODE_ID VARCHAR(100),
+	DURATION_HOURS INT(5),
+        PRIMARY KEY (`NODE_ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS CARTRIDGE_STATS_LAST_HOURLY_TS (
+        ID VARCHAR(200) NOT NULL,
+        TIMESTMP TIMESTAMP,
+        PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS CARTRIDGE_STATS_LAST_DAILY_TS (
+        ID VARCHAR(200) NOT NULL,
+        TIMESTMP TIMESTAMP,
+        PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+
+CREATE TABLE IF NOT EXISTS CARTRIDGE_STATS_LAST_MONTHLY_TS (
+        ID VARCHAR(200) NOT NULL,
+        TIMESTMP TIMESTAMP,
+        PRIMARY KEY (`ID`)
+) ENGINE=INNODB;
+ 
+
+COMMIT;
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/billing-script/migration.sql
----------------------------------------------------------------------
diff --git a/products/stratos-controller/billing-script/migration.sql b/products/stratos-controller/billing-script/migration.sql
new file mode 100755
index 0000000..379e859
--- /dev/null
+++ b/products/stratos-controller/billing-script/migration.sql
@@ -0,0 +1,7 @@
+ALTER TABLE UM_TENANT ADD UM_CREATED_DATE TIMESTAMP NOT NULL DEFAULT '2010-06-01 00:00:01';  
+ALTER TABLE UM_TENANT ADD UNIQUE INDEX INDEX_UM_TENANT_UM_DOMAIN_NAME (UM_DOMAIN_NAME);
+
+ALTER TABLE REG_ASSOCIATION ADD INDEX REG_ASSOCIATION_INDEX_SOURCEPATH (REG_SOURCEPATH, REG_TENANT_ID);
+ALTER TABLE REG_ASSOCIATION ADD INDEX REG_ASSOCIATION_INDEX_TARGETPATH (REG_TARGETPATH, REG_TENANT_ID);
+ALTER TABLE REG_ASSOCIATION ADD INDEX REG_ASSOCIATION_INDEX_ASSOCIATION_TYPE (REG_ASSOCIATION_TYPE, REG_TENANT_ID); 
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/billing-script/s2_h2.sql
----------------------------------------------------------------------
diff --git a/products/stratos-controller/billing-script/s2_h2.sql b/products/stratos-controller/billing-script/s2_h2.sql
new file mode 100644
index 0000000..170c77b
--- /dev/null
+++ b/products/stratos-controller/billing-script/s2_h2.sql
@@ -0,0 +1,96 @@
+--
+-- Create schema s2_db
+--
+
+-- CREATE SCHEMA  IF NOT EXISTS s2_db; 
+-- SET SCHEMA s2_db;
+
+--
+-- Definition of table s2_db.CARTRIDGE_INSTANCE
+--
+
+DROP TABLE IF EXISTS CARTRIDGE_INSTANCE;
+CREATE TABLE  CARTRIDGE_INSTANCE (
+  ID int(11) NOT NULL AUTO_INCREMENT,
+  INSTANCE_IP varchar(255) NOT NULL,
+  TENANT_ID int(11) DEFAULT NULL,
+  TENANT_DOMAIN varchar(255) DEFAULT NULL,
+  CARTRIDGE_TYPE varchar(255) NOT NULL,
+  STATE varchar(255) NOT NULL,
+  CLUSTER_DOMAIN varchar(255) NOT NULL,
+  CLUSTER_SUBDOMAIN varchar(255) NOT NULL,
+  PRIMARY KEY (ID)
+);
+
+--
+-- Definition of table CARTRIDGE_SUBSCRIPTION
+--
+
+DROP TABLE IF EXISTS CARTRIDGE_SUBSCRIPTION;
+CREATE TABLE  CARTRIDGE_SUBSCRIPTION (
+  SUBSCRIPTION_ID int(11) NOT NULL AUTO_INCREMENT,
+  TENANT_ID int(11) NOT NULL,
+  CARTRIDGE varchar(30) NOT NULL,
+  PROVIDER varchar(30) NOT NULL,
+  HOSTNAME varchar(255) NOT NULL,
+  POLICY varchar(50) NULL,
+  CLUSTER_DOMAIN varchar(255) NOT NULL,
+  CLUSTER_SUBDOMAIN varchar(255) NOT NULL,
+  MGT_DOMAIN varchar(255) NOT NULL,
+  MGT_SUBDOMAIN varchar(255) NOT NULL,
+  STATE varchar(30) NOT NULL,
+  ALIAS varchar(255) NOT NULL,
+  TENANT_DOMAIN varchar(255) NOT NULL,
+  BASE_DIR varchar(255) NOT NULL,
+  REPO_ID int(11) DEFAULT NULL,
+  DATA_CARTRIDGE_ID int(11) DEFAULT NULL,
+  MAPPED_DOMAIN varchar(255),
+  PRIMARY KEY (SUBSCRIPTION_ID)
+);
+
+
+
+--
+-- Definition of table DATA_CARTRIDGE
+--
+
+DROP TABLE IF EXISTS DATA_CARTRIDGE;
+CREATE TABLE  DATA_CARTRIDGE (
+  DATA_CART_ID int(11) NOT NULL AUTO_INCREMENT,
+  TYPE varchar(30) NOT NULL,
+  USER_NAME varchar(255) NOT NULL,
+  PASSWORD varchar(255) NOT NULL,
+  STATE varchar(255) NOT NULL,
+  PRIMARY KEY (DATA_CART_ID) 
+);
+
+
+--
+-- Definition of table PORT_MAPPING
+--
+
+DROP TABLE IF EXISTS PORT_MAPPING;
+CREATE TABLE  PORT_MAPPING (
+  PORT_MAPPING_ID int(11) NOT NULL AUTO_INCREMENT,
+  SUBSCRIPTION_ID int(11) NOT NULL,
+  TYPE varchar(30) NOT NULL,
+  PRIMARY_PORT varchar(30) NOT NULL,
+  PROXY_PORT varchar(30) NOT NULL,
+  STATE varchar(30) NOT NULL,
+  PRIMARY KEY (PORT_MAPPING_ID)
+);
+
+
+--
+-- Definition of table REPOSITORY
+--
+
+DROP TABLE IF EXISTS REPOSITORY;
+CREATE TABLE  REPOSITORY (
+  REPO_ID int(11) NOT NULL AUTO_INCREMENT,
+  REPO_NAME varchar(255) NOT NULL,
+  STATE varchar(30) NOT NULL,
+  REPO_USER_NAME varchar(255) NOT NULL,
+  REPO_USER_PASSWORD varchar(255) NOT NULL,
+  PRIMARY KEY (REPO_ID)
+);

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/billing-script/wso2_rss.sql
----------------------------------------------------------------------
diff --git a/products/stratos-controller/billing-script/wso2_rss.sql b/products/stratos-controller/billing-script/wso2_rss.sql
new file mode 100755
index 0000000..411b1ce
--- /dev/null
+++ b/products/stratos-controller/billing-script/wso2_rss.sql
@@ -0,0 +1,81 @@
+
+CREATE TABLE RSS_INSTANCE (
+  rss_instance_id INTEGER AUTO_INCREMENT,
+  name VARCHAR(128) NOT NULL,
+  server_url VARCHAR(1024) NOT NULL,
+  dbms_type VARCHAR(128) NOT NULL,
+  instance_type VARCHAR(128) NOT NULL,
+  server_category VARCHAR(128) NOT NULL,
+  admin_username VARCHAR(128),
+  admin_password VARCHAR(128),
+  tenant_id INTEGER NOT NULL,
+  UNIQUE (name, tenant_id),
+  PRIMARY KEY (rss_instance_id)
+) ENGINE="InnoDB";
+
+CREATE TABLE DATABASE_INSTANCE (
+  database_instance_id INTEGER AUTO_INCREMENT,
+  name VARCHAR(128) NOT NULL,
+  rss_instance_id INTEGER,
+  tenant_id INTEGER,
+  UNIQUE (name, rss_instance_id),
+  PRIMARY KEY (database_instance_id),
+  FOREIGN KEY (rss_instance_id) REFERENCES RSS_INSTANCE (rss_instance_id)
+) ENGINE="InnoDB";
+
+CREATE TABLE DATABASE_USER (
+  user_id INTEGER AUTO_INCREMENT,
+  db_username VARCHAR(128) NOT NULL,
+  rss_instance_id INTEGER,
+  user_tenant_id INTEGER,
+  UNIQUE (db_username, rss_instance_id, user_tenant_id),
+  PRIMARY KEY (user_id),
+  FOREIGN KEY (rss_instance_id) REFERENCES RSS_INSTANCE (rss_instance_id)
+) ENGINE="InnoDB";
+
+CREATE TABLE DATABASE_INSTANCE_PROPERTY (
+  db_property_id INTEGER AUTO_INCREMENT,
+  prop_name VARCHAR(128) NOT NULL,
+  prop_value TEXT,
+  database_instance_id INTEGER,
+  UNIQUE (prop_name, database_instance_id),
+  PRIMARY KEY (db_property_id),
+  FOREIGN KEY (database_instance_id) REFERENCES DATABASE_INSTANCE (database_instance_id)
+) ENGINE="InnoDB";
+
+CREATE TABLE USER_DATABASE_ENTRY (
+  user_id INTEGER,
+  database_instance_id INTEGER,
+  PRIMARY KEY (user_id, database_instance_id),
+  FOREIGN KEY (user_id) REFERENCES DATABASE_USER (user_id),
+  FOREIGN KEY (database_instance_id) REFERENCES DATABASE_INSTANCE (database_instance_id)
+) ENGINE="InnoDB";
+
+CREATE TABLE USER_DATABASE_PERMISSION (
+  user_id INTEGER,
+  database_instance_id INTEGER,
+  perm_name VARCHAR(128) NOT NULL,
+  perm_value VARCHAR(128),
+  PRIMARY KEY (user_id, database_instance_id, perm_name),
+  FOREIGN KEY (user_id) REFERENCES DATABASE_USER (user_id),
+  FOREIGN KEY (database_instance_id) REFERENCES DATABASE_INSTANCE (database_instance_id)
+) ENGINE="InnoDB";
+
+CREATE TABLE WSO2_RSS_DATABASE_INSTANCE_COUNT (
+  instance_count INTEGER NOT NULL DEFAULT 0
+) ENGINE="InnoDB";
+
+CREATE TABLE USER_PRIVILEGE_GROUP (
+  priv_group_id INTEGER AUTO_INCREMENT,
+  priv_group_name VARCHAR(128),
+  tenant_id INTEGER,
+  PRIMARY KEY (priv_group_id, priv_group_name, tenant_id)
+) ENGINE="InnoDB";
+
+CREATE TABLE USER_PRIVILEGE_GROUP_ENTRY (
+  priv_group_id INTEGER,
+  perm_name VARCHAR(128),
+  perm_value CHAR(1),
+  PRIMARY KEY (priv_group_id, perm_name),
+  FOREIGN KEY (priv_group_id) REFERENCES USER_PRIVILEGE_GROUP (priv_group_id)
+) ENGINE="InnoDB";

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/README-STRATOS
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/README-STRATOS b/products/stratos-controller/conf/README-STRATOS
new file mode 100755
index 0000000..f41daf5
--- /dev/null
+++ b/products/stratos-controller/conf/README-STRATOS
@@ -0,0 +1,90 @@
+CARBON_HOME/repository/conf directory contains all the Stratos configuration files. 
+carbon/products/manager/conf contains all the Stratos specific configuration files,
+ in the source tree structure.
+
+1. announcement.xml
+   Originally added to customize the announcement using the announcement module. Not used as of now.
+
+2. bam.xml
+   The configuration for billing and metering.
+
+3. billing-config.xml
+   Defines the database and the Task for billing. Multi-tenancy billing rules (by default, uses 
+   multitenancy-billing-rules.drl) and email for billing notifications (by default, uses 
+   email-billing-notifications.xml) are specified here.
+
+4. cloud-services-desc.xml
+   This has the configurations for the cloud services. 
+   Label, link, icon, description, and the other similar information for each of the services are
+   given here.
+
+5. email-admin-config.xml
+   Contains the body of the mail that to be sent upon the tenant configuration request by the admin
+   of the tenant. This includes the password reset link, for the forgotten passwords.
+
+6. email-billing-notifications.xml
+   Contains the body of the mail that to be sent as the invoice of the tenant for the period.
+
+7. email-new-tenant-activation.xml
+   Contains the body of the mail that to be sent to the super admin or a given admin email address,
+    when a new tenant activates their unactivated account.
+
+8. email-new-tenant-registration.xml
+   Contains the body of the mail that to be sent to the super admin or a given admin email address,
+    when a new tenant registers for an account.
+
+9. email-password-reset.xml
+   Contains the body of the mail that to be sent when the tenant admin's password is reset, mostly
+   by a service administrator, known as the super-tenant in Stratos-world.
+
+10. email-registration.xml
+   Contains the body of the mail to be sent for the tenant registration validation. 
+   This mail has the registration validation link to validate the email too.
+
+11. email-registration-complete.xml
+    Contains the mail that to be sent upon successful registration and the successful validation 
+    of the email.
+
+12.  email-update.xml
+    Contains the body of the mail that to be sent upon receiving an email change request from the 
+    account management. The new email address will be notified of this change.
+
+13. eula.xml
+    Contains the End User License Agreement for Stratos. Will be displayed during the self-registration
+    of the tenant.
+
+14. identity.xml
+    Security, SSO store, Personal certificate stores of the user, authentication, and the other 
+    identity related parameters can be configured from here.
+
+15. metering-config-non-manager.xml
+    This file contains configuration related to the metering.
+
+16. multitenancy-billing-rules
+    This file defines the rules for the billing for multiple tenants.
+
+17. multitenancy-packages.xml
+    This contains the subscription types and the respective limits of parameters for each of the 
+    packages.
+
+18. README-STRATOS
+    This file. This has the information about the stratos specific configurations files.
+
+19. samples-desc.xml
+    This has the description of the platform sample (currently included, shopping cart sample).
+
+20. stratos.xml
+    This is the configuration file for Stratos specific constants. 
+    Feel free to add your custom parameters and constants here.
+
+21. tenant-reg-agent.xml
+    tenantRegListenerServers configuration
+
+22. throttling-config.xml
+    Configuration file for throttling.
+
+23. throttling-rules.drl
+    Defines the throttling rules.
+
+24. user-mgt.xml
+   The User Manager configuration file used for configuring user management details.

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/axis2.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/axis2.xml b/products/stratos-controller/conf/axis2.xml
new file mode 100755
index 0000000..01075e5
--- /dev/null
+++ b/products/stratos-controller/conf/axis2.xml
@@ -0,0 +1,526 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<axisconfig name="AxisJava2.0">
+    
+    <!-- ================================================= -->
+    <!--                  Parameters                       -->
+    <!-- ================================================= -->
+
+    <!-- This will give out the timout of the configuration contexts, in milliseconds -->
+    <parameter name="ConfigContextTimeoutInterval" locked="false">30000</parameter>
+
+    <!-- Synapse Configuration file location relative to CARBON_HOME -->
+    <parameter name="SynapseConfig.ConfigurationFile" locked="false">repository/deployment/server/synapse-configs</parameter>
+    <!-- Synapse Home parameter -->
+    <parameter name="SynapseConfig.HomeDirectory" locked="false">.</parameter>
+    <!-- Resolve root used to resolve synapse references like schemas inside a WSDL -->
+    <parameter name="SynapseConfig.ResolveRoot" locked="false">.</parameter>
+    <!-- Synapse Server name parameter -->
+    <parameter name="SynapseConfig.ServerName" locked="false">localhost</parameter>
+   
+
+    <!-- ================================================= -->
+    <!--                Message Formatters                 -->
+    <!-- ================================================= -->
+
+    <!-- Following content type to message formatter mapping can be used to implement support -->
+    <!-- for different message format serializations in Axis2. These message formats are -->
+    <!-- expected to be resolved based on the content type. -->
+    <messageFormatters>
+        <!--messageFormatter contentType="application/xml"
+                          class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>-->
+        <!--messageFormatter contentType="text/xml"
+                         class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>-->
+        <!--messageFormatter contentType="application/soap+xml"
+                         class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>-->
+        <!--messageFormatter contentType="application/x-www-form-urlencoded"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/-->
+        <messageFormatter contentType="multipart/related"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/txt"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/html"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/soap+xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <!--messageFormatter contentType="x-application/hessian"
+                         class="org.apache.synapse.format.hessian.HessianMessageFormatter"/-->
+        <!--messageFormatter contentType=""
+                         class="org.apache.synapse.format.hessian.HessianMessageFormatter"/-->
+
+        <messageFormatter contentType="text/css"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/javascript"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+        <messageFormatter contentType="image/gif"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="img/gif"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/jpeg"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/png"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/ico"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="image/x-icon"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+	    <messageFormatter contentType="application/x-javascript"
+                             class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/x-shockwave-flash"
+                             class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/atom+xml"
+                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/x-www-form-urlencoded"
+                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/xhtml+xml"
+                              class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+	    <messageFormatter contentType="application/octet-stream"
+                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/javascript"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+        <messageFormatter contentType="multipart/form-data"
+                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/soap+xml"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+        <!--JSON Message Formatters-->
+        <messageFormatter contentType="application/json"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="application/json/badgerfish"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+        <messageFormatter contentType="text/javascript"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+
+        <messageFormatter contentType=".*"
+                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
+
+    </messageFormatters>
+
+    <!-- ================================================= -->
+    <!--                Message Builders                   -->
+    <!-- ================================================= -->
+
+    <!-- Following content type to builder mapping can be used to implement support for -->
+    <!-- different message formats in Axis2. These message formats are expected to be -->
+    <!-- resolved based on the content type. -->
+    <messageBuilders>
+        <messageBuilder contentType="application/xml"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/txt"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <!--messageBuilder contentType="application/xml"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
+        <!--messageBuilder contentType="application/x-www-form-urlencoded"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
+        <!--messageBuilder contentType="multipart/form-data"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/-->
+        <messageBuilder contentType="multipart/related"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/soap+xml"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/plain"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/xml"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <!--messageBuilder contentType="x-application/hessian"
+                        class="org.apache.synapse.format.hessian.HessianMessageBuilder"/-->
+        <!--messageBuilder contentType=""
+                         class="org.apache.synapse.format.hessian.HessianMessageBuilder"/-->
+
+        <!--JSON Message Builders-->
+        <messageBuilder contentType="application/json"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/json/badgerfish"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/javascript"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+
+        <messageBuilder contentType="text/html"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/css"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="text/javascript"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+        <messageBuilder contentType="image/gif"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="img/gif"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/jpeg"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/png"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/ico"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="image/x-icon"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+
+	    <messageBuilder contentType="application/x-javascript"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/x-shockwave-flash"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/atom+xml"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/x-www-form-urlencoded"
+                            class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/xhtml+xml"
+                           class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+	    <messageBuilder contentType="application/octet-stream"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/javascript"
+                                 class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+        <messageBuilder contentType="multipart/form-data"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+        <messageBuilder contentType="application/soap+xml"
+                       class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+
+        <messageBuilder contentType=".*"
+                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
+
+    </messageBuilders>
+
+    <!-- ================================================= -->
+    <!--             Transport Ins (Listeners)             -->
+    <!-- ================================================= -->
+    <!--Default trasnport will be passthrough if you need to change please add it here -->
+   <transportReceiver name="http" class="org.apache.synapse.transport.passthru.PassThroughHttpListener">
+      <parameter name="port">8280</parameter>
+      <parameter name="non-blocking"> true</parameter>
+      <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor</parameter>
+   </transportReceiver>
+   <transportReceiver name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLListener">
+        <parameter name="port" locked="false">8243</parameter>
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor</parameter>
+        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
+        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
+        <parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter>
+        <!--<parameter name="SSLVerifyClient">require</parameter>
+            supports optional|require or defaults to none -->
+    </transportReceiver>
+
+    <!-- uncomment for non blocking http transport based on HttpCore + NIO extensions -->
+    <!--transportReceiver name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOListener">
+        <parameter name="port" locked="false">8280</parameter>
+        <parameter name="non-blocking" locked="false">true</parameter-->
+        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
+        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
+        <!--parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter-->
+    <!--/transportReceiver-->
+
+    <!-- the non blocking https transport based on HttpCore + SSL-NIO extensions -->
+    <!--transportReceiver name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener">
+        <parameter name="port" locked="false">8243</parameter>
+        <parameter name="non-blocking" locked="false">true</parameter-->
+        <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
+        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
+        <!--parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter-->
+        <!--parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter-->
+        <!--<parameter name="SSLVerifyClient">require</parameter>
+            supports optional|require or defaults to none -->
+    <!--/transportReceiver-->
+
+    <!-- ================================================= -->
+    <!--             Transport Outs (Senders)              -->
+    <!-- ================================================= -->
+    <!--Default trasnport will be passthrough if you need to change please add it here -->
+    <transportSender name="http"  class="org.apache.synapse.transport.passthru.PassThroughHttpSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="warnOnHTTP500" locked="false">*</parameter>
+        <!--parameter name="http.proxyHost" locked="false">localhost</parameter>
+        <parameter name="http.proxyPort" locked="false">3128</parameter>
+        <parameter name="http.nonProxyHosts" locked="false">localhost|moon|sun</parameter-->
+    </transportSender>
+    <transportSender name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter>
+        <parameter name="HostnameVerifier">AllowAll</parameter>
+            <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
+     </transportSender>
+    <!-- Uncomment for non-blocking http transport based on HttpCore + NIO extensions -->
+    <!--transportSender name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+    </transportSender>
+    <transportSender name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender">
+        <parameter name="non-blocking" locked="false">true</parameter>
+        <parameter name="keystore" locked="false">
+            <KeyStore>
+                <Location>repository/resources/security/wso2carbon.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+                <KeyPassword>wso2carbon</KeyPassword>
+            </KeyStore>
+        </parameter>
+        <parameter name="truststore" locked="false">
+            <TrustStore>
+                <Location>repository/resources/security/client-truststore.jks</Location>
+                <Type>JKS</Type>
+                <Password>wso2carbon</Password>
+            </TrustStore>
+        </parameter>
+        <parameter name="HostnameVerifier">AllowAll</parameter-->
+            <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
+    <!--/transportSender-->
+
+    <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/>
+
+    <!-- ================================================= -->
+    <!--                Clustering                         -->
+    <!-- ================================================= -->
+    <!--
+     To enable clustering for this node, set the value of "enable" attribute of the "clustering"
+     element to "true". The initialization of a node in the cluster is handled by the class
+     corresponding to the "class" attribute of the "clustering" element. It is also responsible for
+     getting this node to join the cluster.
+     -->
+    <clustering class="org.apache.axis2.clustering.tribes.TribesClusteringAgent" enable="true">
+
+        <!--
+           This parameter indicates whether the cluster has to be automatically initalized
+           when the AxisConfiguration is built. If set to "true" the initialization will not be
+           done at that stage, and some other party will have to explictly initialize the cluster.
+        -->
+        <parameter name="AvoidInitiation">true</parameter>
+
+        <!--
+           The membership scheme used in this setup. The only values supported at the moment are
+           "multicast" and "wka"
+
+           1. multicast - membership is automatically discovered using multicasting
+           2. wka - Well-Known Address based multicasting. Membership is discovered with the help
+                    of one or more nodes running at a Well-Known Address. New members joining a
+                    cluster will first connect to a well-known node, register with the well-known node
+                    and get the membership list from it. When new members join, one of the well-known
+                    nodes will notify the others in the group. When a member leaves the cluster or
+                    is deemed to have left the cluster, it will be detected by the Group Membership
+                    Service (GMS) using a TCP ping mechanism.
+        -->
+        <parameter name="membershipScheme">wka</parameter>
+
+        <!--
+         The clustering domain/group. Nodes in the same group will belong to the same multicast
+         domain. There will not be interference between nodes in different groups.
+        -->
+        <parameter name="domain">wso2.adc.domain</parameter>
+
+        <!--
+           When a Web service request is received, and processed, before the response is sent to the
+           client, should we update the states of all members in the cluster? If the value of
+           this parameter is set to "true", the response to the client will be sent only after
+           all the members have been updated. Obviously, this can be time consuming. In some cases,
+           such this overhead may not be acceptable, in which case the value of this parameter
+           should be set to "false"
+        -->
+        <parameter name="synchronizeAll">false</parameter>
+
+        <!--
+          The maximum number of times we need to retry to send a message to a particular node
+          before giving up and considering that node to be faulty
+        -->
+        <parameter name="maxRetries">10</parameter>
+
+        <!-- The multicast address to be used -->
+        <parameter name="mcastAddress">228.0.0.4</parameter>
+
+        <!-- The multicast port to be used -->
+        <parameter name="mcastPort">45564</parameter>
+
+        <!-- The frequency of sending membership multicast messages (in ms) -->
+        <parameter name="mcastFrequency">500</parameter>
+
+        <!-- The time interval within which if a member does not respond, the member will be
+         deemed to have left the group (in ms)
+         -->
+        <parameter name="memberDropTime">3000</parameter>
+
+        <!--
+           The IP address of the network interface to which the multicasting has to be bound to.
+           Multicasting would be done using this interface.
+        -->
+        <parameter name="mcastBindAddress">127.0.0.1</parameter>
+
+        <!-- The host name or IP address of this member -->
+        
+        <!--parameter name="localMemberHost">127.0.0.1</parameter-->
+        
+
+        <!--
+        The TCP port used by this member. This is the port through which other nodes will
+        contact this member
+         -->
+        <parameter name="localMemberPort">4000</parameter>
+
+        <!--
+        Preserve message ordering. This will be done according to sender order.
+        -->
+        <parameter name="preserveMessageOrder">false</parameter>
+
+        <!--
+        Maintain atmost-once message processing semantics
+        -->
+        <parameter name="atmostOnceMessageSemantics">false</parameter>
+         
+        <!--
+           This interface is responsible for handling state replication. The property changes in
+           the Axis2 context hierarchy in this node, are propagated to all other nodes in the cluster.
+
+           The "excludes" patterns can be used to specify the prefixes (e.g. local_*) or
+           suffixes (e.g. *_local) of the properties to be excluded from replication. The pattern
+           "*" indicates that all properties in a particular context should not be replicated.
+
+            The "enable" attribute indicates whether context replication has been enabled
+        -->
+        <stateManager class="org.apache.axis2.clustering.state.DefaultStateManager"
+                      enable="false">
+            <replication>
+                <defaults>
+                    <exclude name="local_*"/>
+                    <exclude name="LOCAL_*"/>
+                </defaults>
+                <context class="org.apache.axis2.context.ConfigurationContext">
+                    <exclude name="local_*"/>
+                    <exclude name="UseAsyncOperations"/>
+                    <exclude name="SequencePropertyBeanMap"/>
+                </context>
+                <context class="org.apache.axis2.context.ServiceGroupContext">
+                    <exclude name="local_*"/>
+                    <exclude name="my.sandesha.*"/>
+                </context>
+                <context class="org.apache.axis2.context.ServiceContext">
+                    <exclude name="local_*"/>
+                    <exclude name="my.sandesha.*"/>
+                </context>
+            </replication>
+        </stateManager>
+    </clustering>
+
+    <!-- ================================================= -->
+    <!--                    Phases                         -->
+    <!-- ================================================= -->
+
+    <phaseOrder type="InFlow">
+        <!--  System pre defined phases       -->
+        <phase name="Transport"/>
+        <phase name="Addressing"/>
+        <phase name="Security"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/>
+        <!--  System pre defined phases       -->
+        <phase name="RMPhase"/>
+        <phase name="OpPhase"/>
+    </phaseOrder>
+
+    <phaseOrder type="OutFlow">
+        <!-- Handlers related to unified-endpoint component are added to the UEPPhase -->
+        <phase name="UEPPhase" />
+        <!--      user can add his own phases to this area  -->
+        <phase name="RMPhase"/>
+        <phase name="MUPhase"/>
+        <phase name="OpPhase"/>
+        <phase name="OperationOutPhase"/>
+        <!--system predefined phase-->
+        <!--these phase will run irrespective of the service-->
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+        <phase name="Security"/>
+    </phaseOrder>
+
+    <phaseOrder type="InFaultFlow">
+        <phase name="Transport"/>
+        <phase name="Addressing"/>
+        <phase name="Security"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/>
+        <!--      user can add his own phases to this area  -->
+        <phase name="RMPhase"/>
+        <phase name="OpPhase"/>
+        <phase name="MUPhase"/>
+        <phase name="OperationInFaultPhase"/>
+    </phaseOrder>
+
+    <phaseOrder type="OutFaultFlow">
+        <!-- Handlers related to unified-endpoint component are added to the UEPPhase -->
+        <phase name="UEPPhase" />
+        <!--      user can add his own phases to this area  -->
+        <phase name="RMPhase"/>
+        <!-- Must Understand Header processing phase -->
+        <phase name="MUPhase"/>
+        <phase name="OperationOutFaultPhase"/>
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+        <phase name="Security"/>
+    </phaseOrder>
+
+</axisconfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/bam.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/bam.xml b/products/stratos-controller/conf/bam.xml
new file mode 100755
index 0000000..8e8822b
--- /dev/null
+++ b/products/stratos-controller/conf/bam.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<bamServer>
+
+    <!--
+        Configuration for Billing and Metering. 
+    -->
+    
+    <!--Configuration for summary generation task. 
+          1. initial-delay = Time for first summary generation after the server start. (in seconds)
+          2. interval = Periodic interval to run summary generation task. (in seconds)
+    -->
+    <summaryGeneration>
+             <initial-delay>600</initial-delay>
+             <interval>3600</interval>
+    </summaryGeneration>
+
+    <!--Configuration for data collection task for pull mode servers. 
+          1. initial-delay = Time for first data collection after the server start. (in seconds)
+          2. interval = Periodic interval to run summary generation task. (in seconds)
+    -->
+    <dataCollection>
+             <initial-delay>60</initial-delay>
+             <interval>60</interval>
+    </dataCollection>
+
+</bamServer>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/billing-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/billing-config.xml b/products/stratos-controller/conf/billing-config.xml
new file mode 100755
index 0000000..e50beb6
--- /dev/null
+++ b/products/stratos-controller/conf/billing-config.xml
@@ -0,0 +1,68 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<!-- 
+     Defines the database and the Task for billing. Multi-tenancy billing rules (by default, uses 
+     multitenancy-billing-rules.drl) and email for billing notifications (by default, uses 
+     email-billing-notifications.xml) are specified here. 
+  -->
+
+<billingConfig xmlns="http://wso2.com/carbon/multitenancy/billing/config">
+    <tasks>
+        <task id="multitenancyScheduledTask">
+            <schedule scheduleHelperClass="org.wso2.carbon.billing.core.scheduler.scheduleHelpers.MonthlyScheduleHelper">
+                <parameter name="timeZone">GMT-8:00</parameter>
+		<!--cron format: second minute hour dayOfTheMonth Month DayOfWeek-->
+                <parameter name="cron">0 0 0 1 * ?</parameter>
+            </schedule>
+            <handlers>
+                <handler service="org.wso2.carbon.billing.mgt.handlers.MultitenancySubscriptionFeedingHandler">
+                </handler>
+                <handler class="org.wso2.carbon.billing.core.handlers.SubscriptionTreeBuildingHandler">
+                </handler>
+                <handler class="org.wso2.carbon.billing.core.handlers.RuleHandler">
+                    <parameter name="file">multitenancy-billing-rules.drl</parameter>
+                </handler>
+                <handler class="org.wso2.carbon.billing.core.handlers.InvoiceCalculationHandler">
+                </handler>
+                <handler class="org.wso2.carbon.billing.core.handlers.DefaultFinalizingHandler">
+                </handler>
+                <handler class="org.wso2.carbon.billing.core.handlers.EmailSendingHandler">
+                    <parameter name="file">email-billing-notifications.xml</parameter>
+                </handler>
+            </handlers>
+        </task>
+        <task id="multitenancyViewingTask">
+            <handlers>
+                <handler service="org.wso2.carbon.billing.mgt.handlers.MultitenancySubscriptionFeedingHandler">
+                </handler>
+                <handler class="org.wso2.carbon.billing.core.handlers.SubscriptionTreeBuildingHandler">
+                </handler>
+                <handler class="org.wso2.carbon.billing.core.handlers.RuleHandler">
+                    <parameter name="file">multitenancy-billing-rules.drl</parameter>
+                </handler>
+                <handler class="org.wso2.carbon.billing.core.handlers.InvoiceCalculationHandler">
+                </handler>
+                <!--
+                <handler class="org.wso2.carbon.billing.core.handlers.DefaultFinalizingHandler">
+                </handler>-->
+            </handlers>
+        </task>
+    </tasks>
+</billingConfig>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ffe2e466/products/stratos-controller/conf/cipher-text.properties
----------------------------------------------------------------------
diff --git a/products/stratos-controller/conf/cipher-text.properties b/products/stratos-controller/conf/cipher-text.properties
new file mode 100644
index 0000000..4a1c469
--- /dev/null
+++ b/products/stratos-controller/conf/cipher-text.properties
@@ -0,0 +1,26 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#aliases=esb
+#
+## configuration  per each plaintext
+#esb.secret=M6U74dMVvRm4XFMczki2qZ6CsTvnUuRTjSditlACR5vTISSMI7F/mCTVJGOGdKJjij+VWVhBtmAOkElyvR9TwlUECnZ1o5DNsTK6l8je+9amc/ziTQLP3Q1tzm/Ex1pzHsG6jPGGrv3O0B9pZTfYFqRvlcNhM7Ve3WvA3ibs4Yk=
+#esb.secret.alias=wso2carbon
+#esb.secret.keystore=identity
+#