You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ra...@apache.org on 2015/08/11 17:24:05 UTC

[1/9] stratos git commit: Removing unnecessary features, artifacts and restructuring distribution artifacts

Repository: stratos
Updated Branches:
  refs/heads/master d61637239 -> 8d321a267


http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/p2-profile-gen/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/p2-profile-gen/pom.xml b/products/stratos/modules/p2-profile-gen/pom.xml
index 86fdc71..a5be8a7 100644
--- a/products/stratos/modules/p2-profile-gen/pom.xml
+++ b/products/stratos/modules/p2-profile-gen/pom.xml
@@ -19,7 +19,6 @@
   -->
 <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</artifactId>
@@ -291,15 +290,15 @@
                                 <featureArtifactDef>
                                     org.wso2.carbon:org.wso2.carbon.webapp.mgt.server.feature:${carbon.platform.patch.version.4.2.2}
                                 </featureArtifactDef>
-                                <featureArtifactDef>
-                                    org.wso2.carbon:org.wso2.carbon.captcha.mgt.server.feature:${carbon.version}
-                                </featureArtifactDef>
-                                <featureArtifactDef>org.wso2.carbon:org.apache.synapse.wso2.feature:2.1.1-wso2v4
+                                <featureArtifactDef>org.wso2.store:org.wso2.store.feature:${store.version}
                                 </featureArtifactDef>
                                 <featureArtifactDef>
                                     org.wso2.carbon:org.wso2.carbon.task.server.feature:${carbon.version}
                                 </featureArtifactDef>
                                 <featureArtifactDef>
+                                    org.wso2.carbon:org.wso2.carbon.captcha.mgt.server.feature:${carbon.version}
+                                </featureArtifactDef>
+                                <featureArtifactDef>
                                     org.wso2.carbon:org.wso2.carbon.datasource.server.feature:${carbon.platform.patch.version.4.2.1}
                                 </featureArtifactDef>
                                 <featureArtifactDef>
@@ -385,8 +384,7 @@
                                 <featureArtifactDef>org.jaggeryjs:org.jaggeryjs.feature:0.9.0.ALPHA4.wso2v3
                                 </featureArtifactDef>
                                 <featureArtifactDef>caramel:caramel.feature:1.0.1</featureArtifactDef>
-                                <featureArtifactDef>org.wso2.store:org.wso2.store.feature:${store.version}
-                                </featureArtifactDef>
+
                                 <featureArtifactDef>
                                     org.wso2.carbon:org.wso2.carbon.identity.application.authenticator.basicauth.server.feature:4.2.1
                                 </featureArtifactDef>
@@ -405,11 +403,6 @@
                                 <featureArtifactDef>
                                     org.apache.stratos:org.apache.stratos.cloud.controller.feature:${project.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.datasource.server.feature:${carbon.version}
                                 </featureArtifactDef>
@@ -441,7 +434,8 @@
                                 </featureArtifactDef>
                                 <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.event.formatter.feature:1.0.0
                                 </featureArtifactDef>
-                                <featureArtifactDef>org.apache.stratos:org.apache.stratos.event.processor.feature:${project.version}
+                                <featureArtifactDef>
+                                    org.apache.stratos:org.apache.stratos.event.processor.feature:${project.version}
                                 </featureArtifactDef>
                                 <featureArtifactDef>org.wso2.carbon:org.wso2.carbon.event.tracer.feature:1.0.0
                                 </featureArtifactDef>
@@ -583,6 +577,10 @@
                             <deleteOldProfileFiles>true</deleteOldProfileFiles>
                             <features>
                                 <feature>
+                                    <id>org.wso2.store.feature.group</id>
+                                    <version>${store.version}</version>
+                                </feature>
+                                <feature>
                                     <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                     <version>${carbon.platform.patch.version.4.2.2}</version>
                                 </feature>
@@ -679,11 +677,9 @@
                                     <version>1.0.1</version>
                                 </feature>
                                 <feature>
-                                    <id>org.wso2.store.feature.group</id>
-                                    <version>${store.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.identity.application.authentication.framework.server.feature.group</id>
+                                    <id>
+                                        org.wso2.carbon.identity.application.authentication.framework.server.feature.group
+                                    </id>
                                     <version>4.2.2</version>
                                 </feature>
                                 <feature>
@@ -838,10 +834,6 @@
                                     <version>${project.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>
@@ -956,6 +948,10 @@
                             <deleteOldProfileFiles>true</deleteOldProfileFiles>
                             <features>
                                 <feature>
+                                    <id>org.wso2.store.feature.group</id>
+                                    <version>${store.version}</version>
+                                </feature>
+                                <feature>
                                     <id>org.wso2.carbon.logaggregator.feature.group</id>
                                     <version>1.0.0</version>
                                 </feature>
@@ -1071,15 +1067,15 @@
                                     <version>1.0.1</version>
                                 </feature>
                                 <feature>
-                                    <id>org.wso2.store.feature.group</id>
-                                    <version>${store.version}</version>
-                                </feature>
-                                <feature>
-                                    <id>org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group</id>
+                                    <id>
+                                        org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group
+                                    </id>
                                     <version>4.2.1</version>
                                 </feature>
                                 <feature>
-                                    <id>org.wso2.carbon.identity.application.authentication.framework.server.feature.group</id>
+                                    <id>
+                                        org.wso2.carbon.identity.application.authentication.framework.server.feature.group
+                                    </id>
                                     <version>4.2.2</version>
                                 </feature>
                                 <feature>
@@ -1242,9 +1238,4 @@
             </plugin>
         </plugins>
     </build>
-    <properties>
-        <synapse.version>2.1.2-wso2v3</synapse.version>
-        <store.version>1.0.1</store.version>
-    </properties>
-</project>
-
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/payload/user-data/ssl-cert-snakeoil.key
----------------------------------------------------------------------
diff --git a/products/stratos/payload/user-data/ssl-cert-snakeoil.key b/products/stratos/payload/user-data/ssl-cert-snakeoil.key
deleted file mode 100644
index 41f6064..0000000
--- a/products/stratos/payload/user-data/ssl-cert-snakeoil.key
+++ /dev/null
@@ -1,16 +0,0 @@
------BEGIN PRIVATE KEY-----
-MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAJSn+hXW9Zzz9ORB
-KIC9Oi6wzM4zhqwHaKW2vZAqjOeLlpUW7zXwyk4tkivwsydPNaWUm+9oDlEAB2ls
-QJv7jwWNsF7SGx5R03kenC+cf8Nbxlxwa+Tncjo6uruEsK/Vke244KiSCHP8BOuH
-I+r5CS0x9edFLgesoYlPPFoJxTs5AgMBAAECgYBL/6iiO7hr2mjrvMgZMSSqtCaw
-kLUcA9mjRs6ZArfwtHNymzwGZqj22ONu5WqiASPbGCO0fI09KfegFQDe/fe6wnpi
-rBWtawLoXCZmGrwC+x/3iqbiGJMd7UB3FaZkZOzV5Jhzomc8inSJWMcR+ywiUY37
-stfVDqR1sJ/jzZ1OdQJBAO8vCa2OVQBJbzjMvk8Sc0KiuVwnyqMYqVty6vYuufe9
-ILJfhwhYzE82wIa9LYg7UK2bPvKyyehuFfqI5oU5lU8CQQCfG5LA3gp3D1mS7xxz
-tqJ+cm4SPO4R6YzVybAZKqKUvTFSKNV57Kp/LL7WjtUUNr+dY+aYRlKo81Hq61y8
-tBT3AkAjJyak+2ZCxIg0MONHe8603HWhtbdygQ1jA2DFDdkHMCS+EowmDeb5PXLO
-Wr92ZkFVQpvdz6kdIBDa4YP/0JbBAkBVHLjqd1z9x7ZRBZwgwkg2gBwloXZxGpB+
-JMARFl+WVYa2vqVD7bhfA56qxAl0IL1sAm7ucl/xhQgDNRiM0YCNAkEAqySTBx2H
-O9VyzuWWbf7BYTNsxfO80GaRkZGENfqO1QgnhT1FMeK+ox7Kbi+nSaCBoPjNzyrM
-bU08M6nSnkDEGA==
------END PRIVATE KEY-----

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/payload/user-data/ssl-cert-snakeoil.pem
----------------------------------------------------------------------
diff --git a/products/stratos/payload/user-data/ssl-cert-snakeoil.pem b/products/stratos/payload/user-data/ssl-cert-snakeoil.pem
deleted file mode 100644
index f0fac8d..0000000
--- a/products/stratos/payload/user-data/ssl-cert-snakeoil.pem
+++ /dev/null
@@ -1,14 +0,0 @@
------BEGIN CERTIFICATE-----
-MIICNTCCAZ6gAwIBAgIES343gjANBgkqhkiG9w0BAQUFADBVMQswCQYDVQQGEwJV
-UzELMAkGA1UECAwCQ0ExFjAUBgNVBAcMDU1vdW50YWluIFZpZXcxDTALBgNVBAoM
-BFdTTzIxEjAQBgNVBAMMCWxvY2FsaG9zdDAeFw0xMDAyMTkwNzAyMjZaFw0zNTAy
-MTMwNzAyMjZaMFUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEWMBQGA1UEBwwN
-TW91bnRhaW4gVmlldzENMAsGA1UECgwEV1NPMjESMBAGA1UEAwwJbG9jYWxob3N0
-MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCUp/oV1vWc8/TkQSiAvTousMzO
-M4asB2iltr2QKozni5aVFu818MpOLZIr8LMnTzWllJvvaA5RAAdpbECb+48FjbBe
-0hseUdN5HpwvnH/DW8ZccGvk53I6Orq7hLCv1ZHtuOCokghz/ATrhyPq+QktMfXn
-RS4HrKGJTzxaCcU7OQIDAQABoxIwEDAOBgNVHQ8BAf8EBAMCBPAwDQYJKoZIhvcN
-AQEFBQADgYEAW5wPR7cr1LAdq+IrR44iQlRG5ITCZXY9hI0PygLP2rHANh+PYfTm
-xbuOnykNGyhM6FjFLbW2uZHQTY1jMrPprjOrmyK5sjJRO4d1DeGHT/YnIjs9JogR
-Kv4XHECwLtIVdAbIdWHEtVZJyMSktcyysFcvuhPQK8Qc/E/Wq8uHSCo=
------END CERTIFICATE-----

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Dark/admin/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Dark/admin/logo.gif b/products/stratos/resources/allthemes/Dark/admin/logo.gif
deleted file mode 100755
index 3b1e913..0000000
Binary files a/products/stratos/resources/allthemes/Dark/admin/logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Dark/admin/main.css
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Dark/admin/main.css b/products/stratos/resources/allthemes/Dark/admin/main.css
deleted file mode 100644
index 1271433..0000000
--- a/products/stratos/resources/allthemes/Dark/admin/main.css
+++ /dev/null
@@ -1,253 +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.
- *
-*/
-
-/* ---------------- 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/stratos/blob/8d321a26/products/stratos/resources/allthemes/Dark/admin/powered-stratos.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Dark/admin/powered-stratos.gif b/products/stratos/resources/allthemes/Dark/admin/powered-stratos.gif
deleted file mode 100755
index 6597d26..0000000
Binary files a/products/stratos/resources/allthemes/Dark/admin/powered-stratos.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Dark/admin/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Dark/admin/right-logo.gif b/products/stratos/resources/allthemes/Dark/admin/right-logo.gif
deleted file mode 100755
index e6c3d13..0000000
Binary files a/products/stratos/resources/allthemes/Dark/admin/right-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Dark/admin/theme-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Dark/admin/theme-header-bg.gif b/products/stratos/resources/allthemes/Dark/admin/theme-header-bg.gif
deleted file mode 100755
index 99add93..0000000
Binary files a/products/stratos/resources/allthemes/Dark/admin/theme-header-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Dark/admin/theme-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Dark/admin/theme-header-region-bg.gif b/products/stratos/resources/allthemes/Dark/admin/theme-header-region-bg.gif
deleted file mode 100755
index 7cc3f52..0000000
Binary files a/products/stratos/resources/allthemes/Dark/admin/theme-header-region-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Dark/admin/theme-menu-header.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Dark/admin/theme-menu-header.gif b/products/stratos/resources/allthemes/Dark/admin/theme-menu-header.gif
deleted file mode 100755
index 84bb42e..0000000
Binary files a/products/stratos/resources/allthemes/Dark/admin/theme-menu-header.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Dark/admin/theme-menu-panel-l-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Dark/admin/theme-menu-panel-l-bg.gif b/products/stratos/resources/allthemes/Dark/admin/theme-menu-panel-l-bg.gif
deleted file mode 100755
index a6c268f..0000000
Binary files a/products/stratos/resources/allthemes/Dark/admin/theme-menu-panel-l-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Dark/admin/theme-menu-table-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Dark/admin/theme-menu-table-bg.gif b/products/stratos/resources/allthemes/Dark/admin/theme-menu-table-bg.gif
deleted file mode 100755
index 213819a..0000000
Binary files a/products/stratos/resources/allthemes/Dark/admin/theme-menu-table-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Dark/admin/theme-right-links-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Dark/admin/theme-right-links-bg.gif b/products/stratos/resources/allthemes/Dark/admin/theme-right-links-bg.gif
deleted file mode 100755
index 0a2e51a..0000000
Binary files a/products/stratos/resources/allthemes/Dark/admin/theme-right-links-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Dark/thumb.png
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Dark/thumb.png b/products/stratos/resources/allthemes/Dark/thumb.png
deleted file mode 100755
index 7db90a6..0000000
Binary files a/products/stratos/resources/allthemes/Dark/thumb.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Default/admin/def-body-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Default/admin/def-body-bg.gif b/products/stratos/resources/allthemes/Default/admin/def-body-bg.gif
deleted file mode 100755
index 5db1464..0000000
Binary files a/products/stratos/resources/allthemes/Default/admin/def-body-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Default/admin/def-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Default/admin/def-header-bg.gif b/products/stratos/resources/allthemes/Default/admin/def-header-bg.gif
deleted file mode 100755
index 758363d..0000000
Binary files a/products/stratos/resources/allthemes/Default/admin/def-header-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Default/admin/def-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Default/admin/def-header-region-bg.gif b/products/stratos/resources/allthemes/Default/admin/def-header-region-bg.gif
deleted file mode 100755
index 935ee9e..0000000
Binary files a/products/stratos/resources/allthemes/Default/admin/def-header-region-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Default/admin/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Default/admin/logo.gif b/products/stratos/resources/allthemes/Default/admin/logo.gif
deleted file mode 100755
index 3b1e913..0000000
Binary files a/products/stratos/resources/allthemes/Default/admin/logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Default/admin/main.css
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Default/admin/main.css b/products/stratos/resources/allthemes/Default/admin/main.css
deleted file mode 100644
index 25f4dfe..0000000
--- a/products/stratos/resources/allthemes/Default/admin/main.css
+++ /dev/null
@@ -1,250 +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.
- *
-*/
-
-/* ---------------- 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/stratos/blob/8d321a26/products/stratos/resources/allthemes/Default/admin/powered-stratos.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Default/admin/powered-stratos.gif b/products/stratos/resources/allthemes/Default/admin/powered-stratos.gif
deleted file mode 100755
index 6597d26..0000000
Binary files a/products/stratos/resources/allthemes/Default/admin/powered-stratos.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Default/admin/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Default/admin/right-logo.gif b/products/stratos/resources/allthemes/Default/admin/right-logo.gif
deleted file mode 100755
index f118904..0000000
Binary files a/products/stratos/resources/allthemes/Default/admin/right-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Default/thumb.png
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Default/thumb.png b/products/stratos/resources/allthemes/Default/thumb.png
deleted file mode 100755
index 46fc8e6..0000000
Binary files a/products/stratos/resources/allthemes/Default/thumb.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/admin/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/admin/logo.gif b/products/stratos/resources/allthemes/Light/admin/logo.gif
deleted file mode 100755
index 3b1e913..0000000
Binary files a/products/stratos/resources/allthemes/Light/admin/logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/admin/main.css
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/admin/main.css b/products/stratos/resources/allthemes/Light/admin/main.css
deleted file mode 100644
index 7d8f94e..0000000
--- a/products/stratos/resources/allthemes/Light/admin/main.css
+++ /dev/null
@@ -1,250 +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.
- *
-*/
-
-/* ---------------- 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/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/admin/menu_header.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/admin/menu_header.gif b/products/stratos/resources/allthemes/Light/admin/menu_header.gif
deleted file mode 100755
index 6887ec4..0000000
Binary files a/products/stratos/resources/allthemes/Light/admin/menu_header.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/admin/powered-stratos.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/admin/powered-stratos.gif b/products/stratos/resources/allthemes/Light/admin/powered-stratos.gif
deleted file mode 100755
index 6597d26..0000000
Binary files a/products/stratos/resources/allthemes/Light/admin/powered-stratos.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/admin/right-links-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/admin/right-links-bg.gif b/products/stratos/resources/allthemes/Light/admin/right-links-bg.gif
deleted file mode 100755
index ba9d5d0..0000000
Binary files a/products/stratos/resources/allthemes/Light/admin/right-links-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/admin/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/admin/right-logo.gif b/products/stratos/resources/allthemes/Light/admin/right-logo.gif
deleted file mode 100755
index e6c3d13..0000000
Binary files a/products/stratos/resources/allthemes/Light/admin/right-logo.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/admin/theme-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/admin/theme-header-bg.gif b/products/stratos/resources/allthemes/Light/admin/theme-header-bg.gif
deleted file mode 100755
index 4d47044..0000000
Binary files a/products/stratos/resources/allthemes/Light/admin/theme-header-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/admin/theme-header-region-b-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/admin/theme-header-region-b-bg.gif b/products/stratos/resources/allthemes/Light/admin/theme-header-region-b-bg.gif
deleted file mode 100755
index 463b157..0000000
Binary files a/products/stratos/resources/allthemes/Light/admin/theme-header-region-b-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/admin/theme-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/admin/theme-header-region-bg.gif b/products/stratos/resources/allthemes/Light/admin/theme-header-region-bg.gif
deleted file mode 100755
index 57a2ec1..0000000
Binary files a/products/stratos/resources/allthemes/Light/admin/theme-header-region-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/admin/theme-menu-panel-l-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/admin/theme-menu-panel-l-bg.gif b/products/stratos/resources/allthemes/Light/admin/theme-menu-panel-l-bg.gif
deleted file mode 100755
index bafb43a..0000000
Binary files a/products/stratos/resources/allthemes/Light/admin/theme-menu-panel-l-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/admin/theme-menu-table-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/admin/theme-menu-table-bg.gif b/products/stratos/resources/allthemes/Light/admin/theme-menu-table-bg.gif
deleted file mode 100755
index 9582772..0000000
Binary files a/products/stratos/resources/allthemes/Light/admin/theme-menu-table-bg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/allthemes/Light/thumb.png
----------------------------------------------------------------------
diff --git a/products/stratos/resources/allthemes/Light/thumb.png b/products/stratos/resources/allthemes/Light/thumb.png
deleted file mode 100755
index 6dba1ff..0000000
Binary files a/products/stratos/resources/allthemes/Light/thumb.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/appserver.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/appserver.gif b/products/stratos/resources/cloud-services-icons/appserver.gif
deleted file mode 100755
index b760eb0..0000000
Binary files a/products/stratos/resources/cloud-services-icons/appserver.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/bam.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/bam.gif b/products/stratos/resources/cloud-services-icons/bam.gif
deleted file mode 100755
index 264f289..0000000
Binary files a/products/stratos/resources/cloud-services-icons/bam.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/bps.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/bps.gif b/products/stratos/resources/cloud-services-icons/bps.gif
deleted file mode 100755
index 1cd9d5e..0000000
Binary files a/products/stratos/resources/cloud-services-icons/bps.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/brs-old.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/brs-old.gif b/products/stratos/resources/cloud-services-icons/brs-old.gif
deleted file mode 100755
index c5a7dd8..0000000
Binary files a/products/stratos/resources/cloud-services-icons/brs-old.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/brs.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/brs.gif b/products/stratos/resources/cloud-services-icons/brs.gif
deleted file mode 100755
index 38f20e3..0000000
Binary files a/products/stratos/resources/cloud-services-icons/brs.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/cep.png
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/cep.png b/products/stratos/resources/cloud-services-icons/cep.png
deleted file mode 100755
index 3a481b1..0000000
Binary files a/products/stratos/resources/cloud-services-icons/cep.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/cg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/cg.gif b/products/stratos/resources/cloud-services-icons/cg.gif
deleted file mode 100755
index 1e8ad73..0000000
Binary files a/products/stratos/resources/cloud-services-icons/cg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/csg-inactive.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/csg-inactive.gif b/products/stratos/resources/cloud-services-icons/csg-inactive.gif
deleted file mode 100755
index 00d542c..0000000
Binary files a/products/stratos/resources/cloud-services-icons/csg-inactive.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/csg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/csg.gif b/products/stratos/resources/cloud-services-icons/csg.gif
deleted file mode 100755
index df9da9f..0000000
Binary files a/products/stratos/resources/cloud-services-icons/csg.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/ds.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/ds.gif b/products/stratos/resources/cloud-services-icons/ds.gif
deleted file mode 100755
index 5721908..0000000
Binary files a/products/stratos/resources/cloud-services-icons/ds.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/esb.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/esb.gif b/products/stratos/resources/cloud-services-icons/esb.gif
deleted file mode 100755
index bb43e99..0000000
Binary files a/products/stratos/resources/cloud-services-icons/esb.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/gadget.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/gadget.gif b/products/stratos/resources/cloud-services-icons/gadget.gif
deleted file mode 100755
index 55b41de..0000000
Binary files a/products/stratos/resources/cloud-services-icons/gadget.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/governance.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/governance.gif b/products/stratos/resources/cloud-services-icons/governance.gif
deleted file mode 100755
index f9dfce4..0000000
Binary files a/products/stratos/resources/cloud-services-icons/governance.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/identity.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/identity.gif b/products/stratos/resources/cloud-services-icons/identity.gif
deleted file mode 100755
index 40f1fb7..0000000
Binary files a/products/stratos/resources/cloud-services-icons/identity.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/inactive-appserver.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/inactive-appserver.gif b/products/stratos/resources/cloud-services-icons/inactive-appserver.gif
deleted file mode 100755
index 2e7b33f..0000000
Binary files a/products/stratos/resources/cloud-services-icons/inactive-appserver.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/inactive-bam.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/inactive-bam.gif b/products/stratos/resources/cloud-services-icons/inactive-bam.gif
deleted file mode 100755
index 2401c11..0000000
Binary files a/products/stratos/resources/cloud-services-icons/inactive-bam.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/inactive-brs.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/inactive-brs.gif b/products/stratos/resources/cloud-services-icons/inactive-brs.gif
deleted file mode 100755
index 3e29688..0000000
Binary files a/products/stratos/resources/cloud-services-icons/inactive-brs.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/inactive-cep.png
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/inactive-cep.png b/products/stratos/resources/cloud-services-icons/inactive-cep.png
deleted file mode 100755
index e454bab..0000000
Binary files a/products/stratos/resources/cloud-services-icons/inactive-cep.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/inactive-esb.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/inactive-esb.gif b/products/stratos/resources/cloud-services-icons/inactive-esb.gif
deleted file mode 100755
index 8ae52bc..0000000
Binary files a/products/stratos/resources/cloud-services-icons/inactive-esb.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/inactive-gadget.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/inactive-gadget.gif b/products/stratos/resources/cloud-services-icons/inactive-gadget.gif
deleted file mode 100755
index 243f893..0000000
Binary files a/products/stratos/resources/cloud-services-icons/inactive-gadget.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/inactive-governance.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/inactive-governance.gif b/products/stratos/resources/cloud-services-icons/inactive-governance.gif
deleted file mode 100755
index fba1531..0000000
Binary files a/products/stratos/resources/cloud-services-icons/inactive-governance.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/inactive-identity.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/inactive-identity.gif b/products/stratos/resources/cloud-services-icons/inactive-identity.gif
deleted file mode 100755
index 6f5e1be..0000000
Binary files a/products/stratos/resources/cloud-services-icons/inactive-identity.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/inactive-mashup.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/inactive-mashup.gif b/products/stratos/resources/cloud-services-icons/inactive-mashup.gif
deleted file mode 100755
index 17c74c4..0000000
Binary files a/products/stratos/resources/cloud-services-icons/inactive-mashup.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/inactive-mb.png
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/inactive-mb.png b/products/stratos/resources/cloud-services-icons/inactive-mb.png
deleted file mode 100755
index 275136b..0000000
Binary files a/products/stratos/resources/cloud-services-icons/inactive-mb.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/mashup.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/mashup.gif b/products/stratos/resources/cloud-services-icons/mashup.gif
deleted file mode 100755
index 58d91af..0000000
Binary files a/products/stratos/resources/cloud-services-icons/mashup.gif and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/mb.png
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/mb.png b/products/stratos/resources/cloud-services-icons/mb.png
deleted file mode 100755
index 928c95e..0000000
Binary files a/products/stratos/resources/cloud-services-icons/mb.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/pom.xml b/products/stratos/resources/cloud-services-icons/pom.xml
deleted file mode 100755
index 98902da..0000000
--- a/products/stratos/resources/cloud-services-icons/pom.xml
+++ /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.
-  -->
-<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>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-war-plugin</artifactId>
-                <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>
-
-</project>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/resources/cloud-services-icons/ss.gif
----------------------------------------------------------------------
diff --git a/products/stratos/resources/cloud-services-icons/ss.gif b/products/stratos/resources/cloud-services-icons/ss.gif
deleted file mode 100755
index f2bcc75..0000000
Binary files a/products/stratos/resources/cloud-services-icons/ss.gif and /dev/null differ

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

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

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

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

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

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

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

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

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

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

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

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


[9/9] stratos git commit: Removing unnecessary features, artifacts and restructuring distribution artifacts

Posted by ra...@apache.org.
Removing unnecessary features, artifacts and restructuring distribution artifacts


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

Branch: refs/heads/master
Commit: 8d321a267f5f0538cef745f607612f9a61ec17db
Parents: d616372
Author: Akila Perera <ra...@gmail.com>
Authored: Tue Aug 11 20:53:36 2015 +0530
Committer: Akila Perera <ra...@gmail.com>
Committed: Tue Aug 11 20:53:36 2015 +0530

----------------------------------------------------------------------
 .../main/resources/conf/cloud-controller.xml    |  62 +-
 pom.xml                                         |   1 +
 .../stratos/conf/application-authenticators.xml |  26 -
 products/stratos/conf/axis2.xml                 | 526 ----------------
 products/stratos/conf/bam.xml                   |  45 --
 products/stratos/conf/billing-config.xml        |  68 ---
 products/stratos/conf/cipher-text.properties    |  26 -
 products/stratos/conf/cloud-services-desc.xml   | 205 -------
 .../conf/data-bridge/data-bridge-config.xml     |  74 ---
 .../conf/data-bridge/thrift-agent-config.xml    |  47 --
 products/stratos/conf/datasources.properties    |  58 --
 products/stratos/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 --
 products/stratos/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 --
 products/stratos/conf/email-registration.xml    |  46 --
 products/stratos/conf/email-update.xml          |  39 --
 products/stratos/conf/embedded-ldap.xml         | 165 -----
 products/stratos/conf/event-broker.xml          |  63 --
 products/stratos/conf/features-dashboard.xml    |  66 --
 products/stratos/conf/identity.xml              | 108 ----
 products/stratos/conf/jaas.conf                 |  30 -
 products/stratos/conf/jndi.properties           |  22 -
 .../conf/metering-config-non-manager.xml        | 104 ----
 products/stratos/conf/mqtttopic.properties      |  21 -
 products/stratos/conf/nhttp.properties          |  42 --
 products/stratos/conf/passthru-http.properties  |  34 --
 products/stratos/conf/registry.xml              | 103 ----
 products/stratos/conf/rule-component.conf       |  22 -
 products/stratos/conf/samples-desc.xml          |  33 -
 products/stratos/conf/sso-idp-config.xml        |  39 --
 products/stratos/conf/status-monitor-config.xml |  53 --
 products/stratos/conf/stratos-config.xml        |  30 -
 products/stratos/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 -
 products/stratos/conf/synapse.properties        |  38 --
 .../conf/temp-artifacts/carbon/module.xml       |  69 ---
 .../carbon/scripts/registry/artifacts.js        | 595 -------------------
 .../carbon/scripts/registry/registry-osgi.js    | 466 ---------------
 .../carbon/scripts/registry/registry-ws.js      |  77 ---
 .../carbon/scripts/registry/registry.js         |  45 --
 .../carbon/scripts/server/config.js             |  53 --
 .../carbon/scripts/server/osgi.js               |  31 -
 .../carbon/scripts/server/server.js             | 115 ----
 .../carbon/scripts/server/tenant.js             |  70 ---
 .../carbon/scripts/user/registry-space.js       |  60 --
 .../temp-artifacts/carbon/scripts/user/space.js |  31 -
 .../carbon/scripts/user/user-manager.js         | 179 ------
 .../temp-artifacts/carbon/scripts/user/user.js  |  99 ---
 ...ryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar | Bin 11856 -> 0 bytes
 .../org.wso2.store.sso.common_1.0.0.jar         | Bin 13957 -> 0 bytes
 ...so2.stratos.identity.saml2.sso.mgt_2.2.0.jar | Bin 12276 -> 0 bytes
 .../stratos/conf/temp-artifacts/sso/module.xml  |  28 -
 .../temp-artifacts/sso/scripts/sso.client.js    | 193 ------
 products/stratos/conf/tenant-mgt.xml            |  42 --
 products/stratos/conf/tenant-reg-agent.xml      |  25 -
 products/stratos/conf/thrift-client-config.xml  |  27 -
 products/stratos/conf/throttling-rules.drl      | 270 ---------
 products/stratos/conf/user-mgt.xml              | 241 --------
 products/stratos/conf/zoo.cfg                   |  24 -
 .../modules/distribution/lib/home/faq.html      | 413 -------------
 .../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    | 140 -----
 .../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    | 223 -------
 .../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     | 181 ------
 .../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/src/assembly/bin.xml   | 453 +++++---------
 .../distribution/src/assembly/filter.properties |   4 +-
 .../main/conf/application-authenticators.xml    |  26 +
 .../conf/data-bridge/data-bridge-config.xml     |  74 +++
 .../conf/data-bridge/thrift-agent-config.xml    |  47 ++
 .../distribution/src/main/conf/etc/launch.ini   | 269 +++++++++
 .../distribution/src/main/conf/event-broker.xml |  63 ++
 .../distribution/src/main/conf/jndi.properties  |   6 +-
 .../src/main/conf/mqtttopic.properties          |  21 +
 .../distribution/src/main/conf/registry.xml     | 103 ++++
 .../src/main/conf/sso-idp-config.xml            |  39 ++
 .../distribution/src/main/conf/tenant-mgt.xml   |  42 ++
 .../src/main/conf/thrift-client-config.xml      |  27 +
 .../distribution/src/main/conf/user-mgt.xml     | 343 +++++++++++
 .../resources/allthemes/Dark/admin/logo.gif     | Bin 0 -> 3476 bytes
 .../resources/allthemes/Dark/admin/main.css     | 253 ++++++++
 .../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
 .../src/main/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 -> 3476 bytes
 .../resources/allthemes/Default/admin/main.css  | 250 ++++++++
 .../allthemes/Default/admin/powered-stratos.gif | Bin 0 -> 1515 bytes
 .../allthemes/Default/admin/right-logo.gif      | Bin 0 -> 3629 bytes
 .../main/resources/allthemes/Default/thumb.png  | Bin 0 -> 24432 bytes
 .../resources/allthemes/Light/admin/logo.gif    | Bin 0 -> 3476 bytes
 .../resources/allthemes/Light/admin/main.css    | 250 ++++++++
 .../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
 .../main/resources/allthemes/Light/thumb.png    | Bin 0 -> 18102 bytes
 .../distribution/src/main/resources/launch.ini  | 269 ---------
 .../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
 .../src/main/temp-artifacts/carbon/module.xml   |  69 +++
 .../carbon/scripts/registry/artifacts.js        | 595 +++++++++++++++++++
 .../carbon/scripts/registry/registry-osgi.js    | 466 +++++++++++++++
 .../carbon/scripts/registry/registry-ws.js      |  77 +++
 .../carbon/scripts/registry/registry.js         |  45 ++
 .../carbon/scripts/server/config.js             |  53 ++
 .../carbon/scripts/server/osgi.js               |  31 +
 .../carbon/scripts/server/server.js             | 115 ++++
 .../carbon/scripts/server/tenant.js             |  70 +++
 .../carbon/scripts/user/registry-space.js       |  60 ++
 .../temp-artifacts/carbon/scripts/user/space.js |  31 +
 .../carbon/scripts/user/user-manager.js         | 179 ++++++
 .../temp-artifacts/carbon/scripts/user/user.js  |  99 +++
 ...ryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar | Bin 0 -> 11856 bytes
 .../org.wso2.store.sso.common_1.0.0.jar         | Bin 0 -> 13957 bytes
 ...so2.stratos.identity.saml2.sso.mgt_2.2.0.jar | Bin 0 -> 12276 bytes
 .../src/main/temp-artifacts/sso/module.xml      |  28 +
 .../temp-artifacts/sso/scripts/sso.client.js    | 193 ++++++
 products/stratos/modules/p2-profile-gen/pom.xml |  59 +-
 .../payload/user-data/ssl-cert-snakeoil.key     |  16 -
 .../payload/user-data/ssl-cert-snakeoil.pem     |  14 -
 .../resources/allthemes/Dark/admin/logo.gif     | Bin 3476 -> 0 bytes
 .../resources/allthemes/Dark/admin/main.css     | 253 --------
 .../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
 .../stratos/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 3476 -> 0 bytes
 .../resources/allthemes/Default/admin/main.css  | 250 --------
 .../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 3476 -> 0 bytes
 .../resources/allthemes/Light/admin/main.css    | 250 --------
 .../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
 .../stratos/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      |  58 --
 .../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
 255 files changed, 4120 insertions(+), 8332 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/features/cloud-controller/org.apache.stratos.cloud.controller.feature/src/main/resources/conf/cloud-controller.xml
----------------------------------------------------------------------
diff --git a/features/cloud-controller/org.apache.stratos.cloud.controller.feature/src/main/resources/conf/cloud-controller.xml b/features/cloud-controller/org.apache.stratos.cloud.controller.feature/src/main/resources/conf/cloud-controller.xml
index dc0ea72..78f7f6a 100644
--- a/features/cloud-controller/org.apache.stratos.cloud.controller.feature/src/main/resources/conf/cloud-controller.xml
+++ b/features/cloud-controller/org.apache.stratos.cloud.controller.feature/src/main/resources/conf/cloud-controller.xml
@@ -16,43 +16,43 @@
   #  KIND, either express or implied.  See the License for the
   #  specific language governing permissions and limitations
   #  under the License.
-  --> 
+  -->
 <cloudController xmlns:svns="http://org.wso2.securevault/configuration">
-	<svns:secureVault provider="org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler" />
+    <svns:secureVault provider="org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler"/>
 
     <!-- BAM data publisher configuration -->
     <dataPublisher enable="false">
-		<bamServer>
+        <bamServer>
             <!-- BAM server URL should be specified in carbon.xml -->
-			<adminUserName>admin</adminUserName>
-			<adminPassword svns:secretAlias="cloud.controller.bam.server.admin.password">admin</adminPassword>
-		</bamServer>
-		<!-- Default cron expression is '1 * * * * ? *' meaning 'first second of every minute'.
-			 Optional element. -->
-		<cron>1 * * * * ? *</cron>
-	</dataPublisher>
+            <adminUserName>admin</adminUserName>
+            <adminPassword svns:secretAlias="cloud.controller.bam.server.admin.password">admin</adminPassword>
+        </bamServer>
+        <!-- Default cron expression is '1 * * * * ? *' meaning 'first second of every minute'.
+             Optional element. -->
+        <cron>1 * * * * ? *</cron>
+    </dataPublisher>
 
     <!-- Complete topology event publisher cron configuration -->
     <topologySync enable="true">
-		<property name="cron" value="1 * * * * ? *" />
-	</topologySync>	
+        <property name="cron" value="1 * * * * ? *"/>
+    </topologySync>
 
-	<!-- Specify the properties that are common to an IaaS here. This element 
-		is not necessary [0..1]. But you can use this section to avoid specifying 
-		same property over and over again. -->
-	<iaasProviders>
-		<!-- iaasProvider type="openstack" name="Openstack">
+    <!-- Specify the properties that are common to an IaaS here. This element
+        is not necessary [0..1]. But you can use this section to avoid specifying
+        same property over and over again. -->
+    <iaasProviders>
+        <!-- iaasProvider type="openstack" name="Openstack">
             <className>org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas</className>
-			<provider>openstack-nova</provider>
-			<identity svns:secretAlias="cloud.controller.openstack.identity">demo:demo</identity>
-			<credential svns:secretAlias="cloud.controller.openstack.credential">openstack</credential>
-			<property name="jclouds.endpoint" value="http://192.168.16.20:5000/" />
-           	<property name="jclouds.openstack-nova.auto-create-floating-ips" value="false"/>
-			<property name="jclouds.api-version" value="2.0/" />
-			<property name="openstack.networking.provider" value="nova" />
-			<property name="X" value="x" />
-			<property name="Y" value="y" />
-		</iaasProvider -->
+            <provider>openstack-nova</provider>
+            <identity svns:secretAlias="cloud.controller.openstack.identity">project:username</identity>
+            <credential svns:secretAlias="cloud.controller.openstack.credential">credential</credential>
+            <property name="jclouds.endpoint" value="http://192.168.16.99:5000/v2.0" />
+            <property name="jclouds.openstack-nova.auto-create-floating-ips" value="false"/>
+            <property name="jclouds.api-version" value="2.0/" />
+            <property name="openstack.networking.provider" value="nova" />
+            <property name="keyPair" value="keypair-name" />
+            <property name="securityGroups" value="default" />
+        </iaasProvider -->
         <!-- iaasProvider type="ec2" name="Amazon EC2">
             <className>org.apache.stratos.cloud.controller.iaases.ec2.EC2Iaas</className>
             <provider>aws-ec2</provider>
@@ -60,7 +60,7 @@
             <credential svns:secretAlias="cloud.controller.ec2.credential">credential</credential>
             <property name="jclouds.ec2.ami-query" value="owner-id=owner-id;state=available;image-type=machine"/>
             <property name="availabilityZone" value="ap-southeast-1b"/>
-            <property name="securityGroups" value="security-group"/>
+            <property name="securityGroups" value="default"/>
             <property name="autoAssignIp" value="true" />
             <property name="keyPair" value="keypair-name"/>
         </iaasProvider -->
@@ -75,7 +75,7 @@
             <provider>mock</provider>
             <identity svns:secretAlias="cloud.controller.mock.identity">identity</identity>
             <credential svns:secretAlias="cloud.controller.mock.credential">credential</credential>
-            <property name="api.endpoint" value="https://localhost:9443/mock-iaas/api" />
+            <property name="api.endpoint" value="https://localhost:9443/mock-iaas/api"/>
         </iaasProvider>
-	</iaasProviders>
-</cloudController>
+    </iaasProviders>
+</cloudController>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 993194a..1b46728 100644
--- a/pom.xml
+++ b/pom.xml
@@ -555,5 +555,6 @@
         <jclouds.version>1.8.1</jclouds.version>
         <project.jclouds.stratos.version>1.8.1-stratosv1</project.jclouds.stratos.version>
         <kubernetes.api.version>2.2.16</kubernetes.api.version>
+        <store.version>1.0.1</store.version>
     </properties>
 </project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/application-authenticators.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/application-authenticators.xml b/products/stratos/conf/application-authenticators.xml
deleted file mode 100644
index 5a12e34..0000000
--- a/products/stratos/conf/application-authenticators.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.
-  -->
-
-<Authenticators>
-	<Authenticator name="BasicAuthenticator" disabled="false" factor="1">
-		<Status value="10" loginPage="/sso/login" />
-	</Authenticator>
-</Authenticators>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/axis2.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/axis2.xml b/products/stratos/conf/axis2.xml
deleted file mode 100755
index 01075e5..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/bam.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/bam.xml b/products/stratos/conf/bam.xml
deleted file mode 100755
index 8e8822b..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/billing-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/billing-config.xml b/products/stratos/conf/billing-config.xml
deleted file mode 100755
index e50beb6..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/cipher-text.properties
----------------------------------------------------------------------
diff --git a/products/stratos/conf/cipher-text.properties b/products/stratos/conf/cipher-text.properties
deleted file mode 100644
index 4a1c469..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/cloud-services-desc.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/cloud-services-desc.xml b/products/stratos/conf/cloud-services-desc.xml
deleted file mode 100644
index 110624f..0000000
--- a/products/stratos/conf/cloud-services-desc.xml
+++ /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.
-  -->
-
-<!--
-     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="Apache Stratos" default="true">
-        <key>STRATOS</key>
-        <label>Apache Stratos</label>
-        <link>https://stratos.cloud.wso2.com</link>
-        <!--icon>
-            https://localhost:9443/cloud-services-icons/esb.gif
-        </icon-->
-        <productPageURL>http://wso2.com/cloud/stratos</productPageURL>
-        <description>Apache stratos</description>
-    </cloudService>
-     <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/stratos/blob/8d321a26/products/stratos/conf/data-bridge/data-bridge-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/data-bridge/data-bridge-config.xml b/products/stratos/conf/data-bridge/data-bridge-config.xml
deleted file mode 100644
index 33f9905..0000000
--- a/products/stratos/conf/data-bridge/data-bridge-config.xml
+++ /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.
-  -->
-
-<dataBridgeConfiguration xmlns="http://wso2.org/carbon/databridge">
-
-    <!--<StreamDefinitionStore>org.wso2.carbon.databridge.streamdefn.cassandra.datastore.CassandraStreamDefinitionStore</StreamDefinitionStore>-->
-    <StreamDefinitionStore>org.wso2.carbon.databridge.streamdefn.registry.datastore.RegistryStreamDefinitionStore</StreamDefinitionStore>
-
-    <workerThreads>10</workerThreads>
-    <eventBufferCapacity>10000</eventBufferCapacity>
-    <clientTimeoutMS>30000</clientTimeoutMS>
-    <keySpaceName>EVENT_KS</keySpaceName>
-
-    <!-- Default configuration for thriftDataReceiver -->
-    <thriftDataReceiver>
-        <hostName>0.0.0.0</hostName>
-        <port>7611</port>
-        <securePort>7711</securePort>
-    </thriftDataReceiver>
-
-    <!--<streamDefinitions>
-        <streamDefinition>
-            {
-             'name':'org.wso2.esb.MediatorStatistics',
-             'version':'1.3.0',
-             'nickName': 'Stock Quote Information',
-             'description': 'Some Desc',
-             'metaData':[
-             {'name':'ipAdd','type':'STRING'}
-             ],
-             'payloadData':[
-             {'name':'symbol','type':'STRING'},
-             {'name':'price','type':'DOUBLE'},
-             {'name':'volume','type':'INT'},
-             {'name':'max','type':'DOUBLE'},
-             {'name':'min','type':'Double'}
-             ]
-            }
-        </streamDefinition>
-        <streamDefinition domainName="wso2">
-            {
-             'name':'org.wso2.esb.MediatorStatistics',
-             'version':'1.3.4',
-             'nickName': 'Stock Quote Information',
-             'description': 'Some Other Desc',
-             'metaData':[
-             {'name':'ipAdd','type':'STRING'}
-             ],
-             'payloadData':[
-             {'name':'symbol','type':'STRING'},
-             {'name':'price','type':'DOUBLE'},
-             {'name':'volume','type':'INT'}
-             ]
-            }
-        </streamDefinition>
-    </streamDefinitions>-->
-
-</dataBridgeConfiguration>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/data-bridge/thrift-agent-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/data-bridge/thrift-agent-config.xml b/products/stratos/conf/data-bridge/thrift-agent-config.xml
deleted file mode 100644
index 628909f..0000000
--- a/products/stratos/conf/data-bridge/thrift-agent-config.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.
-  -->
-
-
-
-<thriftAgentConfiguration xmlns="http://wso2.org/carbon/databridge/agent/thrift">
-
-    <bufferedEventsSize>20000</bufferedEventsSize>
-
-    <poolSize>50</poolSize>
-    <maxPoolSize>50</maxPoolSize>
-
-    <maxTransportPoolSize>250</maxTransportPoolSize>
-    <maxIdleConnections>250</maxIdleConnections>
-    <evictionTimePeriod>5500</evictionTimePeriod>
-    <minIdleTimeInPool>5000</minIdleTimeInPool>
-
-    <secureMaxTransportPoolSize>250</secureMaxTransportPoolSize>
-    <secureMaxIdleConnections>250</secureMaxIdleConnections>
-    <secureEvictionTimePeriod>5500</secureEvictionTimePeriod>
-    <secureMinIdleTimeInPool>5000</secureMinIdleTimeInPool>
-
-    <maxMessageBundleSize>100</maxMessageBundleSize>
-    <asyncDataPublisherBufferedEventSize>10000</asyncDataPublisherBufferedEventSize>
-    <loadBalancingReconnectionInterval>30</loadBalancingReconnectionInterval>
-    <!--<trustStore>
-        .../wso2cep-1.0.0/repository/resources/security/client-truststore.jks
-    </trustStore>
-    <trustStorePassword>wso2carbon</trustStorePassword>-->
-
-</thriftAgentConfiguration>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/datasources.properties
----------------------------------------------------------------------
diff --git a/products/stratos/conf/datasources.properties b/products/stratos/conf/datasources.properties
deleted file mode 100644
index 0cf8cdb..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/email-bill-generated.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-bill-generated.xml b/products/stratos/conf/email-bill-generated.xml
deleted file mode 100755
index 2310fa4..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/email-billing-notifications.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-billing-notifications.xml b/products/stratos/conf/email-billing-notifications.xml
deleted file mode 100755
index afc2807..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/email-new-tenant-activation.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-new-tenant-activation.xml b/products/stratos/conf/email-new-tenant-activation.xml
deleted file mode 100755
index e24b0cb..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/email-new-tenant-registration.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-new-tenant-registration.xml b/products/stratos/conf/email-new-tenant-registration.xml
deleted file mode 100755
index 8423625..0000000
--- a/products/stratos/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>


[5/9] stratos git commit: Removing unnecessary features, artifacts and restructuring distribution artifacts

Posted by ra...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/lib/home/js/jquery-1.5.1.min.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/lib/home/js/jquery-1.5.1.min.js b/products/stratos/modules/distribution/lib/home/js/jquery-1.5.1.min.js
deleted file mode 100755
index 14fd647..0000000
--- a/products/stratos/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


[7/9] stratos git commit: Removing unnecessary features, artifacts and restructuring distribution artifacts

Posted by ra...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/registry/artifacts.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/registry/artifacts.js b/products/stratos/conf/temp-artifacts/carbon/scripts/registry/artifacts.js
deleted file mode 100644
index a05e567..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/registry/artifacts.js
+++ /dev/null
@@ -1,595 +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.
- *
-*/
-
-(function (server, registry) {
-
-    var log = new Log();
-
-    var GenericArtifactManager = Packages.org.wso2.carbon.governance.api.generic.GenericArtifactManager;
-    var GenericArtifactFilter = Packages.org.wso2.carbon.governance.api.generic.GenericArtifactFilter;
-    var ByteArrayInputStream = Packages.java.io.ByteArrayInputStream;
-    var QName = Packages.javax.xml.namespace.QName;
-    var IOUtils = Packages.org.apache.commons.io.IOUtils;
-    var PrivilegedCarbonContext = Packages.org.wso2.carbon.context.PrivilegedCarbonContext; //Used regard tenant details
-    var CarbonContext = Packages.org.wso2.carbon.context.CarbonContext;
-    var MultitenantConstants = Packages.org.wso2.carbon.utils.multitenancy.MultitenantConstants;
-    var List = java.util.List;
-    var Map = java.util.Map;
-    var ArrayList = java.util.ArrayList;
-    var HashMap = java.util.HashMap;
-
-    var GovernanceUtils = Packages.org.wso2.carbon.governance.api.util.GovernanceUtils;//Used to obtain Asset Types
-    var DEFAULT_MEDIA_TYPE = 'application/vnd.wso2.registry-ext-type+xml';//Used to obtain Asset types
-    var PaginationContext = Packages.org.wso2.carbon.registry.core.pagination.PaginationContext;//Used for pagination on register
-
-    var REGISTRY_ABSOLUTE_PATH = "/_system/governance";
-
-    var HISTORY_PATH_SEPERATOR = '_';
-    var ASSET_PATH_SEPERATOR = '/';
-    var lcHistoryRegExpression = new RegExp(ASSET_PATH_SEPERATOR, 'g');
-    var HISTORY_PATH = '/_system/governance/_system/governance/repository/components/org.wso2.carbon.governance/lifecycles/history/';
-
-
-    var buildArtifact = function (manager, artifact) {
-        return {
-            id: String(artifact.id),
-            type: String(manager.type),
-            path: "/_system/governance" + String(artifact.getPath()),
-            lifecycle: artifact.getLifecycleName(),
-            lifecycleState: artifact.getLifecycleState(),
-            mediaType: String(artifact.getMediaType()),
-            attributes: (function () {
-                var i, name,
-                    names = artifact.getAttributeKeys(),
-                    length = names.length,
-                    attributes = {};
-                for (i = 0; i < length; i++) {
-                    name = names[i];
-
-                    var data = artifact.getAttributes(name);
-
-                    //Check if there is only one element
-                    if (data.length == 1) {
-                        attributes[name] = String(artifact.getAttribute(name));
-                    }
-                    else {
-                        attributes[name] = data;
-                    }
-                }
-                return attributes;
-            }()),
-            content: function () {
-                return new Stream(new ByteArrayInputStream(artifact.getContent()));
-            }
-        };
-    };
-
-    var createArtifact = function (manager, options) {
-        var name, attribute, i, length, lc,
-            artifact = manager.newGovernanceArtifact(new QName(options.name)),
-            attributes = options.attributes;
-        for (name in attributes) {
-            if (attributes.hasOwnProperty(name)) {
-                attribute = attributes[name];
-                if (attribute instanceof Array) {
-                    /*length = attribute.length;
-                     for (i = 0; i < length; i++) {
-                     artifact.addAttribute(name, attribute[i]);
-                     }*/
-                    artifact.setAttributes(name, attribute);
-                } else {
-                    artifact.setAttribute(name, attribute);
-                }
-            }
-        }
-        if (options.id) {
-            artifact.id = options.id;
-        }
-        if (options.content) {
-            if (options.content instanceof Stream) {
-                artifact.setContent(IOUtils.toByteArray(options.content.getStream()));
-            } else {
-                artifact.setContent(new java.lang.String(options.content).getBytes());
-            }
-        }
-        lc = options.lifecycles;
-        if (lc) {
-            length = lc.length;
-            for (i = 0; i < length; i++) {
-                artifact.attachLifeCycle(lc[i]);
-            }
-        }
-        return artifact;
-    };
-
-    var ArtifactManager = function (registry, type) {
-        this.registry = registry;
-        this.manager = new GenericArtifactManager(registry.registry.getChrootedRegistry("/_system/governance"), type);
-        this.type = type;
-    };
-    registry.ArtifactManager = ArtifactManager;
-
-    ArtifactManager.prototype.find = function (fn, paging) {
-        var i, length, artifacts,
-            artifactz = [];
-        artifacts = this.manager.findGenericArtifacts(new GenericArtifactFilter({
-            matches: function (artifact) {
-                return fn(buildArtifact(this, artifact));
-            }
-        }));
-        length = artifacts.length;
-        for (i = 0; i < length; i++) {
-            artifactz.push(buildArtifact(this, artifacts[i]));
-        }
-        return artifactz;
-    };
-
-
-    /*
-     * this funtion is used ArtifactManager find with map for query for solr basicly
-     * query - for maping attribute of resource
-     * pagin - pagination details
-     * return - list of artifacts under the seach request
-     *
-     */
-    ArtifactManager.prototype.search = function (query, paging) {
-
-        var list, map, key, artifacts, pagination, value, that,
-            artifactz = [];
-        pagination = generatePaginationForm(paging);
-        try {
-            PaginationContext.init(pagination.start, pagination.count, pagination.sortOrder,
-                pagination.sortBy, pagination.paginationLimit);
-            map = HashMap();
-            //case senstive search as it using greg with solr 1.4.1
-            if (!query) {
-                //listing for sorting
-                map = java.util.Collections.emptyMap();
-            } else if (query instanceof String || typeof query === 'string') {
-                list = new ArrayList();
-                list.add('*' + query + '*');
-                map.put('overview_name', list);
-            } else {
-                //support for only on name of attribut -
-                for (key in query) {
-                    // if attribute is string values
-                    if (query.hasOwnProperty(key)) {
-                        value = query[key];
-                        list = new ArrayList();
-                        if (value instanceof Array) {
-                            value.forEach(function (val) {
-                                //solr config update need have '*' as first char in below line
-                                //check life_cycle state
-                                list.add(key == 'lcState' ? val : '*' + val + '*');
-                            });
-                        } else {
-                            //solr config update need have '*' as first char in below line
-                            list.add(key == 'lcState' ? value : '*' + value + '*');
-                        }
-                        map.put(key, list);
-                    }
-                }//end of attribut looping (all attributes)
-            }
-            artifacts = this.manager.findGenericArtifacts(map);
-            that = this;
-            artifacts.forEach(function (artifact) {
-                artifactz.push(buildArtifact(that, artifact));
-            });
-        } finally {
-            PaginationContext.destroy();
-        }
-        return artifactz;
-    };
-
-    ArtifactManager.prototype.get = function (id) {
-        return buildArtifact(this, this.manager.getGenericArtifact(id))
-    };
-
-    ArtifactManager.prototype.count = function () {
-        return this.manager.getAllGenericArtifactIds().length;
-    };
-
-    /**
-     * @deprecated Please use search method instead
-     * @param paging
-     * @return {*}
-     */
-    ArtifactManager.prototype.list = function (paging) {
-        return this.search(null, paging);
-    };
-
-    /*
-     The function returns an array of asset types
-     @mediaType - The media type of the assets
-     @return An array of strings containing the asset paths
-     */
-    ArtifactManager.prototype.getAssetTypePaths = function (mediaType) {
-
-        //Use the default media type if one is not provided
-        if (!mediaType) {
-            mediaType = DEFAULT_MEDIA_TYPE;
-        }
-
-        //var assetArray=GovernanceUtils.findGovernanceArtifacts(mediaType,this.registry);
-        var result = Packages.org.wso2.carbon.governance.api.util.GovernanceUtils.findGovernanceArtifacts(mediaType, registry.registry);
-
-        return result;
-        //Create an empty array if no asset types are found
-        //return (!assetArray)?[]:assetArray;
-    };
-
-    /*
-     {
-     name: 'AndroidApp1',
-     attributes: {
-     overview_status: "CREATED",
-     overview_name: 'AndroidApp1',
-     overview_version: '1.0.0',
-     overview_url: 'http://overview.com',
-     overview_provider: 'admin',
-     images_thumbnail: 'http://localhost:9763/portal/gadgets/co2-emission/thumbnail.jpg',
-     images_banner: 'http://localhost:9763/portal/gadgets/electric-power/banner.jpg'
-     },
-     lifecycles : ['lc1', 'lc2'],
-     content : '<?xml ....>'
-     }
-     */
-    ArtifactManager.prototype.add = function (options) {
-        this.manager.addGenericArtifact(createArtifact(this.manager, options));
-    };
-
-    ArtifactManager.prototype.update = function (options) {
-        this.manager.updateGenericArtifact(createArtifact(this.manager, options));
-    };
-
-    ArtifactManager.prototype.remove = function (id) {
-        this.manager.removeGenericArtifact(id);
-    };
-
-    /*
-     Attaches the provided lifecycle name to the artifact
-     @lifecycleName: The name of a valid lifecycle.The lifecycle should be visible to the
-     registry.
-     @options: The artifact to which the life cycle must be attached.
-     */
-    ArtifactManager.prototype.attachLifecycle = function (lifecycleName, options) {
-        var artifact = getArtifactFromImage(this.manager, options);
-        if (!artifact) {
-            throw new Error('Specified artifact cannot be found : ' + JSON.stringify(options));
-        }
-        artifact.attachLifecycle(lifecycleName);
-    };
-
-    /*
-     Removes the attached lifecycle from the artifact
-     @options: The artifact from which the life cycle must be removed
-     */
-    ArtifactManager.prototype.detachLifecycle = function (options) {
-        var artifact = getArtifactFromImage(this.manager, options);
-        if (!artifact) {
-            throw new Error('Specified artifact cannot be found : ' + JSON.stringify(options));
-        }
-        artifact.detachLifecycle();
-    };
-
-    /*
-     Promotes the artifact to the next stage in its life cycle
-     @options: An artifact image (Not a real artifact)
-     */
-    ArtifactManager.prototype.promoteLifecycleState = function (state, options) {
-        var checkListItems,
-            artifact = getArtifactFromImage(this.manager, options);
-        if (!artifact) {
-            throw new Error('Specified artifact cannot be found : ' + JSON.stringify(options));
-        }
-        //checkListItems = artifact.getAllCheckListItemNames();
-        artifact.invokeAction(state);
-    };
-
-    /*
-     Gets the current lifecycle state
-     @options: An artifact object
-     @returns: The life cycle state
-     */
-    ArtifactManager.prototype.getLifecycleState = function (options) {
-        var artifact = getArtifactFromImage(this.manager, options);
-        if (!artifact) {
-            throw new Error('Specified artifact cannot be found : ' + JSON.stringify(options));
-        }
-        return artifact.getLifecycleState();
-    };
-
-    /*
-     The function returns the list of check list items for a given state
-     @options: The artifact
-     @returns: A String array containing the check list items.(Can be empty if no check list items are present)
-     */
-    ArtifactManager.prototype.getCheckListItemNames = function (options) {
-        var artifact = getArtifactFromImage(this.manager, options);
-
-        var checkListItems = artifact.getAllCheckListItemNames() || [];
-
-        var checkListItemArray = [];
-
-        //Go through each check list item
-        for (var index in checkListItems) {
-            //Get whether the check list item is checked
-            var state = artifact.isLCItemChecked(index);
-            checkListItemArray.push({ 'name': checkListItems[index], 'checked': state });
-        }
-
-        return checkListItemArray;
-    };
-
-    /*
-     The function checks whether a given check list item at the provided index is checked for the current state
-     @index: The index of the check list item.This must be a value between 0 and the maximum check list item
-     that appears in the lifecycle definition
-     @options: An artifact object
-     @throws Exception: If the index is not within 0 and the max check list item or if there is an issue ticking the item
-     */
-    ArtifactManager.prototype.isItemChecked = function (index, options) {
-
-        var artifact = getArtifactFromImage(this.manager, options);
-
-        var checkListItems = artifact.getAllCheckListItemNames();
-
-        var checkListLength = checkListItems.length;
-
-        if ((index < 0) || (index > checkListLength)) {
-            throw "The index value: " + index + " must be between 0 and " + checkListLength + ".Please refer to the lifecycle definition in the registry.xml for the number of check list items.";
-        }
-
-        var result = artifact.isLCItemChecked(index);
-
-        return result;
-    };
-
-    /*
-     The method enables the check list item and the given index
-     @index: The index of the check list item.This must be a value between 0 and the maximum check list item
-     that appears in the lifecycle definition.
-     @options: An artifact object
-     @throws Exception: If the index is not within 0 and max check list item or if there is an issue ticking the item.
-     */
-    ArtifactManager.prototype.checkItem = function (index, options) {
-
-        var artifact = getArtifactFromImage(this.manager, options);
-
-        var checkListItems = artifact.getAllCheckListItemNames();
-
-        var checkListLength = checkListItems.length;
-
-        if ((index < 0) || (index > checkListLength)) {
-            throw "The index value: " + index + " must be between 0 and " + checkListLength + ".Please refer to the lifecycle definition in the registry.xml for the number of check list items.";
-        }
-
-        artifact.checkLCItem(index);
-    };
-
-    /*
-     The method disables the check list item at the given index
-     @index: The index of the check list item.This must be a value between 0 and the maximum check list item
-     that appears in the lifecycle definition
-     @options: An artifact object
-     @throws Exception: If the index is not within 0 and max check list item or if there is an issue ticking the item
-     */
-    ArtifactManager.prototype.uncheckItem = function (index, options) {
-
-        var artifact = getArtifactFromImage(this.manager, options);
-
-        var checkListItems = artifact.getAllCheckListItemNames();
-
-        var checkListLength = checkListItems.length;
-
-        if ((index < 0) || (index > checkListLength)) {
-            throw "The index value: " + index + " must be between 0 and " + checkListLength + ".Please refer to the lifecycle definition in the registry.xml for the number of check list items.";
-        }
-
-        artifact.uncheckLCItem(index);
-    };
-
-    /*
-     The method obtains the list of all available actions for the current state of the asset
-     @options: An artifact object
-     @returns: The list of available actions for the current state,else false
-     */
-    ArtifactManager.prototype.availableActions = function (options) {
-        var artifact = getArtifactFromImage(this.manager, options);
-        if (!artifact) {
-            throw new Error('Specified artifact cannot be found : ' + JSON.stringify(options));
-        }
-        return artifact.getAllLifecycleActions() || [];
-    };
-
-    /*
-     The function returns the life-cycle history path using
-     the provided asset.
-     @options: An asset.
-     @return: A string path of the life-cycle history.
-     */
-    ArtifactManager.prototype.getLifecycleHistoryPath = function (options) {
-
-        return getHistoryPath(options.path);
-    };
-
-    /*
-    The function obtains the lifecycle history for the provided asset
-    @options: An asset with a valid path.(A path which exists in the registry
-    @return: A resource object containing the history as an xml
-     */
-    ArtifactManager.prototype.getLifecycleHistory=function(options){
-        var historyPath=getHistoryPath(options.path);
-        return this.registry.get(historyPath);
-    };
-
-    /*
-     The function returns the life-cycle attached to the provided artifact
-     @options: An asset as returned by the ArtifactManager get method
-     @return: A string indicating the lifecycle name.If the artifact does not
-     have a life-cycle then an empty string is returned.
-     */
-    ArtifactManager.prototype.getLifeCycleName = function (options) {
-
-        var artifact = getArtifactFromImage(this.manager, options);
-
-        var lifecycleName = '';
-
-        if (artifact != null) {
-            lifecycleName = artifact.getLifecycleName();
-        }
-
-        return lifecycleName;
-    };
-
-    /*
-     The function returns all versions of the provided artifact
-     @options: The artifact to be checked
-     @return: A list of all the different versions of the provided asset
-     */
-    ArtifactManager.prototype.getAllAssetVersions = function (assetName) {
-
-        var matchingArtifacts = [];
-
-        var pred = {
-            overview_name: assetName || ''
-        };
-
-        this.find(function (artifact) {
-
-            //Add to the matches if the artifact exists
-            if (assert(artifact.attributes, pred)) {
-
-                //We only need the id and version
-                matchingArtifacts.push({id: artifact.id, version: artifact.attributes.overview_version});
-            }
-        });
-
-        return matchingArtifacts;
-    };
-
-    /*
-     The function checks if the two objects a and b are equal.If a property in b is not
-     in a, then both objects are assumed to be different.
-     @a: The object to be compared
-     @b: The object containing properties that must match in a
-     @return: True if the objects are equal,else false.
-     */
-    var assert = function (a, b) {
-
-        //Assume the objects will be same
-        var equal = true;
-
-        for (var key in b) {
-
-
-            if (a.hasOwnProperty(key)) {
-
-                //If the two keys are not equal
-                if (a[key] != b[key]) {
-                    return false;
-                }
-            }
-            else {
-                return false;
-            }
-        }
-
-        return equal;
-    };
-
-    /*
-     The function generates the history path of a given asset
-     using its path
-     @assetPath:The path of the asset to be retrieved.
-     @return: The path of lifecycle history information
-     */
-    var getHistoryPath = function (assetPath) {
-
-        //Replace the / in the assetPath
-        var partialHistoryPath = assetPath.replace(lcHistoryRegExpression, HISTORY_PATH_SEPERATOR);
-
-        var fullPath = HISTORY_PATH + partialHistoryPath;
-
-        return fullPath;
-    };
-
-    /*
-     generatePaginationForm will genrate json for registry pagination context, (pagination consistent handling)
-     @pagin:The pagination details from UI
-     @
-     */
-    var generatePaginationForm = function (pagin) {
-
-        //pagination context for default
-        var paginationLimit = 300;
-        var paginationForm = {
-            'start': 0,
-            'count': 12,
-            'sortOrder': 'ASC',
-            'sortBy': 'overview_name',
-            'paginationLimit': 2147483647
-        };
-
-        if (!pagin) {
-            return paginationForm;
-        }
-
-        if (pagin.count != null) {
-            paginationForm.count = pagin.count;
-        }
-        if (pagin.start != null) {
-            paginationForm.start = pagin.start;
-        }
-        if (pagin.paginationLimit != null) {
-            paginationForm.paginationLimit = pagin.paginationLimit;
-        }
-        if (pagin.sortBy != null) {
-            paginationForm.sortBy = pagin.sortBy;
-        }
-        if (paginationForm.sortOrder != null) {
-            paginationForm.sortOrder = pagin.sortOrder;
-        }
-        return paginationForm;
-
-    };
-
-    /*
-     Helper function to create an artifact instance from a set of options (an image).
-     */
-    var getArtifactFromImage = function (manager, options) {
-
-        var path = options.path || '';
-        var lcName = options.lifecycle || '';
-        var artifact = createArtifact(manager, {
-            id: options.id,
-            attributes: options.attributes
-        });
-
-        path = path.replace(REGISTRY_ABSOLUTE_PATH, '');
-
-        artifact.setArtifactPath(path);
-        artifact.setLcName(lcName);
-
-        return artifact;
-    };
-
-}(server, registry));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry-osgi.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry-osgi.js b/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry-osgi.js
deleted file mode 100644
index eefbaad..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry-osgi.js
+++ /dev/null
@@ -1,466 +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.
- *
-*/
-
-var registry = registry || {};
-
-(function (server, registry) {
-    var log = new Log();
-
-    var Resource = Packages.org.wso2.carbon.registry.core.Resource;
-
-    var Collection = Packages.org.wso2.carbon.registry.core.Collection;
-
-    var Comment = Packages.org.wso2.carbon.registry.core.Comment;
-
-    var StaticConfiguration = Packages.org.wso2.carbon.registry.core.config.StaticConfiguration;
-
-    var queryPath = '/_system/config/repository/components/org.wso2.carbon.registry/queries/';
-
-    var content = function (registry, resource, paging) {
-        if (resource instanceof Collection) {
-            // #1 : this always sort children by name, so sorting cannot be done for the chunk
-            return children(registry, resource, paging);
-        }
-        if (resource instanceof Comment) {
-            return String(resource.getText());
-        }
-        var stream = resource.getContentStream();
-        if (stream) {
-            return new Stream(stream);
-        }
-        return String(resource.content);
-    };
-
-    var resourceSorter = function (key) {
-        var nameAsc = function (l, r) {
-            var lname, rname;
-            if (l instanceof Collection) {
-                lname = l.getName();
-                lname = lname.substring(lname.lastIndexOf('/') + 1);
-            } else {
-                lname = l.name;
-            }
-            if (r instanceof Collection) {
-                rname = r.getName();
-                rname = rname.substring(rname.lastIndexOf('/') + 1);
-            } else {
-                rname = r.name;
-            }
-            return lname === rname ? 0 : (lname > rname ? 1 : -1);
-        };
-        switch (key) {
-            case 'time-created-asc' :
-                return function (l, r) {
-                    return l.getCreatedTime().getTime() - r.getCreatedTime().getTime();
-                };
-            case 'time-created-des' :
-                return function (l, r) {
-                    return r.getCreatedTime().getTime() - l.getCreatedTime().getTime();
-                };
-            case 'name-asc' :
-                return nameAsc;
-            case 'name-des' :
-                return function (l, r) {
-                    return -nameAsc(l, r);
-                };
-            default:
-                return resourceSorter('time-created-des');
-        }
-    };
-
-    var children = function (registry, resource, paging) {
-        var resources = resource.getChildren();
-        //we have to manually sort this due to the bug in registry.getChildren() (#1 above)
-        //resources.sort(resourceSorter(paging.sort));
-        return resources.slice(paging.start, paging.start + paging.count);
-    };
-
-    var resource = function (registry, resource) {
-        var path = String(resource.path),
-            o = {
-                created: {
-                    author: String(resource.authorUserName),
-                    time: resource.createdTime.time
-                },
-                content: content(registry, resource, {
-                    start: 0,
-                    count: 10
-                }),
-                id: String(resource.id),
-                version: resource.versionNumber
-            };
-        if (resource instanceof Comment) {
-            return o;
-        }
-        if (resource instanceof Collection) {
-            o.collection = (resource instanceof Collection);
-        }
-        o.uuid = String(resource.UUID);
-        o.path = String(path);
-        o.name = String(resource.name) || resolveName(path);
-        o.description = String(resource.description);
-        o.updated = {
-            author: String(resource.lastUpdaterUserName),
-            time: resource.lastModified.time
-        };
-        o.mediaType = String(resource.mediaType);
-        o.properties = function () {
-            return properties(resource);
-        };
-        o.aspects = function () {
-            return aspects(resource);
-        };
-        return o;
-    };
-
-    var properties = function (resource) {
-        var prop,
-            properties = resource.properties,
-            props = properties.keySet().toArray(),
-            length = props.length,
-            o = {};
-        for (var i = 0; i < length; i++) {
-            prop = props[i];
-            o[prop] = resource.getPropertyValues(prop).toArray();
-        }
-        return o;
-    };
-
-    var aspects = function (resource) {
-        var aspects = resource.getAspects();
-        return aspects ? aspects.toArray() : [];
-    };
-
-    var resolveName = function (path) {
-        path = path.charAt(path.length - 1) === '/' ? path.substring(0, path.length - 1) : path;
-        return path.substring(path.lastIndexOf('/') + 1);
-    };
-
-    var merge = function (def, options) {
-        if (options) {
-            for (var op in def) {
-                if (def.hasOwnProperty(op)) {
-                    def[op] = options[op] || def[op];
-                }
-            }
-        }
-        return def;
-    };
-
-    var Registry = function (serv, options) {
-        var registryService = server.osgiService('org.wso2.carbon.registry.core.service.RegistryService'),
-            carbon = require('carbon');
-        if (options) {
-            this.server = serv;
-        } else {
-            this.server = new server.Server();
-            options = serv || {};
-        }
-
-        if (options.tenantId) {
-            this.tenantId = options.tenantId;
-        } else if (options.username || options.domain) {
-            this.tenantId = server.tenantId({
-                domain: options.domain,
-                username: options.username
-            });
-        } else {
-            this.tenantId = server.tenantId();
-        }
-
-        if (options.username) {
-            this.username = options.username;
-        } else if (options.system) {
-            this.username = carbon.user.systemUser;
-        } else {
-            this.username = carbon.user.anonUser;
-        }
-
-        this.registry = registryService.getRegistry(this.username, this.tenantId);
-        this.versioning = {
-            comments: StaticConfiguration.isVersioningComments()
-        };
-    };
-
-    registry.Registry = Registry;
-
-    Registry.prototype.put = function (path, resource) {
-        var res;
-        if (resource.collection) {
-            res = this.registry.newCollection();
-        } else {
-            res = this.registry.newResource();
-            if (resource.content instanceof Stream) {
-                res.contentStream = resource.content.getStream();
-            } else {
-                res.content = resource.content || null;
-            }
-            res.mediaType = resource.mediaType || null;
-        }
-        res.name = resource.name;
-        res.description = resource.description || null;
-        res.UUID = resource.uuid || null;
-
-        var values, length, i, ArrayList,
-            properties = resource.properties;
-        if (properties) {
-            ArrayList = java.util.ArrayList;
-            for (var name in properties) {
-                var list = new ArrayList();
-                if (properties.hasOwnProperty(name)) {
-                    values = properties[name];
-                    values = values instanceof Array ? values : [values];
-                    length = values.length;
-                    for (i = 0; i < length; i++) {
-                        list.add(values[i]);
-                    }
-                    res.setProperty(name, list);
-                }
-            }
-        }
-
-        var aspects = resource.aspects;
-        if (aspects) {
-            length = aspects.length;
-            for (i = 0; i < length; i++) {
-                res.addAspect(aspects[i]);
-            }
-        }
-
-        this.registry.put(path, res);
-    };
-
-    Registry.prototype.remove = function (path) {
-        this.registry.delete(path);
-    };
-
-    Registry.prototype.move = function (src, dest) {
-        this.registry.move(src, dest);
-    };
-
-    Registry.prototype.rename = function (current, newer) {
-        this.registry.rename(current, newer);
-    };
-
-    Registry.prototype.copy = function (src, dest) {
-        this.registry.copy(src, dest);
-    };
-
-    Registry.prototype.restore = function (path) {
-        this.registry.restoreVersion(path);
-    };
-
-    Registry.prototype.get = function (path) {
-        if (!this.exists(path)) {
-            return null;
-        }
-        var res = this.registry.get(path);
-        return resource(this, res);
-    };
-
-    Registry.prototype.exists = function (path) {
-        return this.registry.resourceExists(path);
-    };
-
-    Registry.prototype.content = function (path, paging) {
-        if (!this.exists(path)) {
-            return null;
-        }
-        var resource = this.registry.get(path);
-        paging = merge({
-            start: 0,
-            count: 10,
-            sort: 'recent'
-        }, paging);
-        return content(this, resource, paging);
-    };
-
-    Registry.prototype.tags = function (path) {
-        var tags, i, length,
-            tagz = [];
-        tags = this.registry.getTags(path);
-        length = tags.length;
-        for (i = 0; i < length; i++) {
-            tagz.push(String(tags[i].tagName));
-        }
-        return tagz;
-    };
-
-    Registry.prototype.tag = function (path, tags) {
-        var i, length;
-        tags = tags instanceof Array ? tags : [tags];
-        length = tags.length;
-        for (i = 0; i < length; i++) {
-            this.registry.applyTag(path, tags[i]);
-        }
-    };
-
-    Registry.prototype.untag = function (path, tags) {
-        var i, length;
-        tags = tags instanceof Array ? tags : [tags];
-        length = tags.length;
-        for (i = 0; i < length; i++) {
-            this.registry.removeTag(path, tags[i]);
-        }
-    };
-
-    Registry.prototype.associate = function (src, dest, type) {
-        this.registry.addAssociation(src, dest, type);
-    };
-
-    Registry.prototype.dissociate = function (src, dest, type) {
-        this.registry.removeAssociation(src, dest, type);
-    };
-
-    Registry.prototype.associations = function (path, type) {
-        var i, asso,
-            assos = type ? this.registry.getAssociations(path, type) : this.registry.getAllAssociations(path),
-            length = assos.length,
-            associations = [];
-        for (i = 0; i < length; i++) {
-            asso = assos[i];
-            associations.push({
-                type: String(asso.associationType),
-                src: String(asso.sourcePath),
-                dest: String(asso.destinationPath)
-            });
-        }
-        return associations;
-    };
-
-    Registry.prototype.addProperty = function (path, name, value) {
-        var resource = this.registry.get(path);
-        resource.addProperty(name, value);
-    };
-
-    Registry.prototype.removeProperty = function (path, name, value) {
-        var resource = this.registry.get(path);
-        (value ? resource.removePropertyValue(name, value) : resource.removeProperty(name));
-    };
-
-    Registry.prototype.properties = function (path) {
-        var resource = this.registry.get(path);
-        return properties(resource);
-    };
-
-    Registry.prototype.version = function (path) {
-        this.registry.createVersion(path);
-    };
-
-    Registry.prototype.versions = function (path) {
-        return this.registry.getVersions(path);
-    };
-
-    Registry.prototype.unversion = function (path, snapshot) {
-        this.registry.removeVersionHistory(path, snapshot);
-    };
-
-    Registry.prototype.comment = function (path, comment) {
-        this.registry.addComment(path, new Comment(comment));
-    };
-
-    Registry.prototype.comments = function (path, paging) {
-        var i, length, comments, comment, key,
-            commentz = [];
-        paging = merge({
-            start: 0,
-            count: 25,
-            sort: 'recent'
-        }, paging);
-
-        comments = this.registry.getComments(path);
-        //we have to manually sort this due to the bug in registry.getChildren() (#1 above)
-        key = paging.sort;
-        key = (key === 'time-created-des' || key === 'time-created-asc') ? key : 'time-created-des';
-        comments = comments.sort(resourceSorter(key));
-        comments = comments.slice(paging.start, paging.start + paging.count);
-        length = comments.length;
-        for (i = 0; i < length; i++) {
-            comment = comments[i];
-            commentz.push({
-                content: comment.getText(),
-                created: {
-                    author: comment.getUser(),
-                    time: comment.getCreatedTime().getTime()
-                },
-                path: comment.getCommentPath()
-            });
-        }
-        return commentz;
-    };
-
-    Registry.prototype.commentCount = function (path) {
-        return this.registry.getComments(path).length;
-    };
-
-    Registry.prototype.uncomment = function (path) {
-        this.registry.removeComment(path);
-    };
-
-    Registry.prototype.rate = function (path, rating) {
-        this.registry.rateResource(path, rating);
-    };
-
-    Registry.prototype.unrate = function (path) {
-        this.registry.rateResource(path, 0);
-    };
-
-    Registry.prototype.rating = function (path, username) {
-        var rating = {
-            average: this.registry.getAverageRating(path)
-        };
-        if (username) {
-            rating.user = this.registry.getRating(path, username);
-        }
-        return rating;
-    };
-
-    Registry.prototype.link = function (path, target) {
-        return this.registry.createLink(path, target);
-    };
-
-    Registry.prototype.unlink = function (path) {
-        return this.registry.removeLink(path);
-    };
-
-    Registry.prototype.search = function (query, paging) {
-        var res = this.registry.searchContent(query);
-        paging = merge({
-            start: 0,
-            count: 10,
-            sort: 'recent'
-        }, paging);
-        return res ? content(this, res, paging) : [];
-    };
-
-    Registry.prototype.query = function (path, params) {
-        var res, name,
-            map = new java.util.HashMap();
-        for (name in params) {
-            if (params.hasOwnProperty(name)) {
-                map.put(name, params[name]);
-            }
-        }
-        res = this.registry.executeQuery(path, map);
-        return res.getChildren();
-    };
-
-}(server, registry));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry-ws.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry-ws.js b/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry-ws.js
deleted file mode 100644
index 014a75c..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry-ws.js
+++ /dev/null
@@ -1,77 +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.
- *
-*/
-
-var log = new Log();
-
-var Registry = function (server) {
-    this.server = server;
-};
-
-var Resource = function (name) {
-
-};
-
-var Collection = function (name) {
-
-};
-
-Registry.prototype.invoke = function (action, payload) {
-    var options,
-        ws = require('ws'),
-        client = new ws.WSRequest(),
-        server = this.server;
-
-    options = {
-        useSOAP: 1.2,
-        useWSA: 1.0,
-        action: action,
-        HTTPHeaders: [
-            { name: 'Cookie', value: server.cookie }
-        ]
-    };
-
-    try {
-        client.open(options, server.url + '/services/WSRegistryService', false);
-        client.send(payload);
-        return client.responseXML;
-    } catch (e) {
-        log.error(e.toString());
-        throw new Error('Error while invoking action in WSRegistryService : ' +
-            action + ', user : ' + server.user.username);
-    }
-};
-
-Registry.prototype.putResource = function (path, resource) {
-
-};
-
-Registry.prototype.getResource = function (path) {
-    var res, payload,
-        base64 = require('/modules/base64.js');
-
-    payload =
-        <api:getContent xmlns:api="http://api.ws.registry.carbon.wso2.org">
-            <api:path>{path}</api:path>
-        </api:getContent>;
-
-    res = this.invoke('urn:getContent', payload);
-    return base64.decode(String(res.*::['return'].text()));
-};

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry.js b/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry.js
deleted file mode 100644
index 43467bc..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/registry/registry.js
+++ /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.
- *
-*/
-
-var registry = {};
-
-(function (registry) {
-    var ActionConstants = Packages.org.wso2.carbon.registry.core.ActionConstants,
-        AccessControlConstants = Packages.org.wso2.carbon.registry.core.utils.AccessControlConstants;
-
-    registry.Registry = function (server, auth) {
-        var osgi = require('registry-osgi.js').registry,
-            o = new osgi.Registry(server, auth);
-        o.prototype = this;
-        return o;
-    };
-
-    registry.actions = {};
-
-    registry.actions.GET = ActionConstants.GET;
-
-    registry.actions.PUT = ActionConstants.PUT;
-
-    registry.actions.DELETE = ActionConstants.DELETE;
-
-    registry.actions.AUTHORIZE = AccessControlConstants.AUTHORIZE;
-
-}(registry));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/server/config.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/server/config.js b/products/stratos/conf/temp-artifacts/carbon/scripts/server/config.js
deleted file mode 100644
index fe5078f..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/server/config.js
+++ /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.
- *
-*/
-
-(function (server) {
-    var process = require('process'),
-        configDir = 'file:///' + process.getProperty('carbon.config.dir.path').replace(/[\\]/g, '/').replace(/^[\/]/g, '') + '/';
-    server.loadConfig = function (path) {
-        var content,
-            index = path.lastIndexOf('.'),
-            ext = (index !== -1 && index < path.length) ? path.substring(index + 1) : '',
-            file = new File(configDir + path);
-        if (!file.isExists()) {
-            throw new Error('Specified config file does not exists : ' + path);
-        }
-        if (file.isDirectory()) {
-            throw new Error('Specified config file is a directory : ' + path);
-        }
-        file.open('r');
-        content = file.readAll();
-        file.close();
-        switch (ext) {
-            case 'xml' :
-                return new XML(content);
-            case 'json' :
-                return parse(content);
-            case 'properties' :
-            default :
-                return content;
-
-        }
-    };
-
-    server.home = 'file:///' + require('process').getProperty('carbon.home').replace(/[\\]/g, '/').replace(/^[\/]/g, '');
-
-}(server));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/server/osgi.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/server/osgi.js b/products/stratos/conf/temp-artifacts/carbon/scripts/server/osgi.js
deleted file mode 100644
index 2175c23..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/server/osgi.js
+++ /dev/null
@@ -1,31 +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.
- *
-*/
-
-var server = {};
-
-(function (server) {
-    var PrivilegedCarbonContext = Packages.org.wso2.carbon.context.PrivilegedCarbonContext,
-        Class = java.lang.Class;
-
-    server.osgiService = function (clazz) {
-        return PrivilegedCarbonContext.getThreadLocalCarbonContext().getOSGiService(Class.forName(clazz));
-    };
-}(server));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/server/server.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/server/server.js b/products/stratos/conf/temp-artifacts/carbon/scripts/server/server.js
deleted file mode 100644
index ba6300d..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/server/server.js
+++ /dev/null
@@ -1,115 +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.
- *
-*/
-
-(function (server) {
-    var log = new Log();
-
-    var login = function (url, username, password) {
-        var res, options, payload,
-            ws = require('ws'),
-            client = new ws.WSRequest(),
-            host = url.match(/.*:\/\/([^:\/]*)/)[1];
-
-        options = {
-            useSOAP: 1.2,
-            useWSA: 1.0,
-            action: 'urn:login'
-        };
-
-        payload =
-            <aut:login xmlns:aut="http://authentication.services.core.carbon.wso2.org">
-                <aut:username>{username}</aut:username>
-                <aut:password>{password}</aut:password>
-                <aut:remoteAddress>{host}</aut:remoteAddress>
-            </aut:login>;
-
-        try {
-            client.open(options, url + '/services/AuthenticationAdmin', false);
-            client.send(payload);
-            res = client.responseXML;
-            if (res.*::["return"].text() != 'true') {
-                return false;
-            }
-            return client.getResponseHeader('Set-Cookie');
-        } catch (e) {
-            log.error(e.toString());
-            throw new Error('Error while login to the server : ' + url + ', user : ' + username);
-        }
-    };
-
-    var logout = function (url, cookie) {
-        var options,
-            ws = require('ws'),
-            client = new ws.WSRequest();
-
-        options = {
-            useSOAP: 1.2,
-            useWSA: 1.0,
-            action: 'urn:logout',
-            mep: 'in-only',
-            HTTPHeaders: [
-                { name: 'Cookie', value: cookie }
-            ]
-        };
-
-        try {
-            client.open(options, url + '/services/AuthenticationAdmin', false);
-            client.send(null);
-            return true;
-        } catch (e) {
-            log.error(e.toString());
-            throw new Error('Error while logging out in server : ' + url + ', cookie : ' + cookie);
-        }
-    };
-
-    var Cookie = function (cookie) {
-        this.cookie = cookie;
-    };
-
-    server.Cookie = Cookie;
-
-    var Server = function (options) {
-        this.url = (options && options.url) ? options.url : 'local:/';
-    };
-    server.Server = Server;
-
-    Server.prototype.authenticate = function (username, password) {
-        var realm, user,
-            carbon = require('carbon'),
-            realmService = server.osgiService('org.wso2.carbon.user.core.service.RealmService');
-        user = carbon.server.tenantUser(username);
-        realm = realmService.getTenantUserRealm(user.tenantId);
-	if(realm == null){
-		throw new Error("Invalid domain or unactivated tenant login");
-	}else{
-		return realm.getUserStoreManager().authenticate(user.username, password);
-	}
-    };
-
-    Server.prototype.login = function (username, password) {
-        var cookie = login(this.url, username, password);
-        return new Cookie(cookie);
-    };
-
-    Server.prototype.logout = function (cookie) {
-        return logout(this.url, cookie.cookie);
-    };
-}(server));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/server/tenant.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/server/tenant.js b/products/stratos/conf/temp-artifacts/carbon/scripts/server/tenant.js
deleted file mode 100644
index 255e7d7..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/server/tenant.js
+++ /dev/null
@@ -1,70 +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.
- *
-*/
-
-(function (server) {
-    var PrivilegedCarbonContext = Packages.org.wso2.carbon.context.PrivilegedCarbonContext,
-        MultitenantConstants = Packages.org.wso2.carbon.utils.multitenancy.MultitenantConstants,
-        MultitenantUtils = Packages.org.wso2.carbon.utils.multitenancy.MultitenantUtils,
-        realmService = server.osgiService('org.wso2.carbon.user.core.service.RealmService'),
-        tenantManager = realmService.getTenantManager();
-
-    server.tenantDomain = function (options) {
-        if (!options) {
-            return PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain();
-        }
-        if(options.tenantId) {
-            return tenantManager.getDomain(options.tenantId);
-        }
-        if (options.username) {
-            return MultitenantUtils.getTenantDomain(options.username);
-        }
-        if (options.url) {
-            return MultitenantUtils.getTenantDomainFromRequestURL(options.url);
-        }
-        return null;
-    };
-
-    server.tenantId = function (options) {
-        var domain = options ? (options.domain || server.tenantDomain(options)) : server.tenantDomain();
-        return domain ? tenantManager.getTenantId(domain) : null;
-    };
-
-    server.tenantUser = function (username) {
-        var domain = server.tenantDomain({
-                username: username
-            }),
-            id = server.tenantId({
-                domain: domain
-            });
-        username = MultitenantUtils.getTenantAwareUsername(username);
-        return {
-            domain: domain,
-            username: username,
-            tenantId: id
-        };
-    };
-
-    server.superTenant = {
-        tenantId: MultitenantConstants.SUPER_TENANT_ID,
-        domain: MultitenantConstants.SUPER_TENANT_DOMAIN_NAME
-    };
-
-}(server));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/user/registry-space.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/user/registry-space.js b/products/stratos/conf/temp-artifacts/carbon/scripts/user/registry-space.js
deleted file mode 100644
index 9536fb4..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/user/registry-space.js
+++ /dev/null
@@ -1,60 +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.
- *
-*/
-
-(function (server, registry, user) {
-
-    var Space = function (user, space, options) {
-        var serv = new server.Server(options.serverUrl);
-        this.registry = new registry.Registry(serv, {
-            username: options.username || user,
-            domain: options.domain || server.tenantDomain()
-        });
-        this.prefix = options.path + '/' + user + '/' + space;
-        if (!this.registry.exists(this.prefix)) {
-            this.registry.put(this.prefix, {
-                collection: true
-            });
-        }
-    };
-    user.Space = Space;
-
-    Space.prototype.put = function (key, value) {
-        value = (!(value instanceof String) && typeof value !== "string") ? stringify(value) : value;
-        this.registry.put(this.prefix + '/' + key, {
-            content: value
-        });
-    };
-
-    Space.prototype.get = function (key) {
-        var o = this.registry.content(this.prefix + '/' + key);
-        return o ? o.toString() : null;
-    };
-
-    Space.prototype.remove = function (key) {
-        this.registry.remove(this.prefix + '/' + key);
-    };
-
-    Space.prototype.find = function (filter) {
-
-    };
-
-
-}(server, registry, user));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/user/space.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/user/space.js b/products/stratos/conf/temp-artifacts/carbon/scripts/user/space.js
deleted file mode 100644
index c895cc1..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/user/space.js
+++ /dev/null
@@ -1,31 +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.
- *
-*/
-
-(function (server, user) {
-
-    user.Space = function (user, space, options) {
-        var reg = require('registry-space.js').user,
-            o = new reg.Space(user, space, options);
-        o.prototype = this;
-        return o;
-    };
-
-}(server, user));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/user/user-manager.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/user/user-manager.js b/products/stratos/conf/temp-artifacts/carbon/scripts/user/user-manager.js
deleted file mode 100644
index 56833b9..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/user/user-manager.js
+++ /dev/null
@@ -1,179 +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.
- *
-*/
-
-(function (server, user) {
-
-    var log = new Log();
-
-    var processPerms = function (perms, fn) {
-        var perm, actions, i, length;
-        for (perm in perms) {
-            if (perms.hasOwnProperty(perm)) {
-                actions = perms[perm];
-                length = actions.length;
-                for (i = 0; i < length; i++) {
-                    fn(perm, actions[i]);
-                }
-            }
-        }
-    };
-
-    var UserManager = function (serv, tenantId) {
-        this.server = serv;
-        this.tenantId = tenantId || server.superTenant.tenantId;
-        var realmService = server.osgiService('org.wso2.carbon.user.core.service.RealmService'),
-            realm = realmService.getTenantUserRealm(this.tenantId);
-        this.manager = realm.getUserStoreManager();
-        this.authorizer = realm.getAuthorizationManager();
-    };
-    user.UserManager = UserManager;
-
-    UserManager.prototype.getUser = function (username) {
-        if (!this.manager.isExistingUser(username)) {
-            return null;
-        }
-        return new user.User(this, username);
-    };
-    UserManager.prototype.getRoleListOfUser = function (username) {
-	        return this.manager.getRoleListOfUser(username);
-	    };
-    UserManager.prototype.addUser = function (username, password, roles, claims, profile) {
-        this.manager.addUser(username, password, roles || [], claims || null, profile);
-    };
-
-    UserManager.prototype.removeUser = function (username) {
-        this.manager.deleteUser(username);
-    };
-
-    UserManager.prototype.userExists = function (username) {
-        return this.manager.isExistingUser(username);
-    };
-
-    UserManager.prototype.roleExists = function (role) {
-        return this.manager.isExistingRole(role);
-    };
-	UserManager.prototype.updateRole = function (previousRoleName, newRoleName) {
-        return this.manager.updateRoleName(previousRoleName, newRoleName);
-    };
-    UserManager.prototype.getClaims = function (username, profile) {
-        return this.manager.getUserClaimValues(username, profile);
-    };
-	UserManager.prototype.getClaimsForSet = function (username,claims, profile) {
-        return this.manager.getUserClaimValues(username,claims, profile);
-    };
-    UserManager.prototype.getClaim = function (username, claim, profile) {
-        return this.manager.getUserClaimValue(username, claim, profile);
-    };
-
-    UserManager.prototype.setClaims = function (username, claims, profile) {
-        return this.manager.setUserClaimValues(username, claims, profile);
-    };
-
-    UserManager.prototype.setClaim = function (username, claim, value, profile) {
-        return this.manager.setUserClaimValue(username, claim, value, profile);
-    };
-
-    UserManager.prototype.isAuthorized = function (role, permission, action) {
-        return this.authorizer.isRoleAuthorized(role, permission, action);
-    };
- 	UserManager.prototype.updateRoleListOfUser = function(name, deletedRoles, newRoles){
-    return this.manager.updateRoleListOfUser(name, deletedRoles, newRoles);
-    };
-    UserManager.prototype.updateUserListOfRole = function(name, deletedUsers, newUsers){
-    return this.manager.updateUserListOfRole(name, deletedUsers, newUsers);
-    };
-	UserManager.prototype.listUsers = function () {
-        return this.manager.listUsers("*", -1);
-    };
-    UserManager.prototype.addRole = function (role, users, permissions) {
-        var perms = [],
-            Permission = Packages.org.wso2.carbon.user.api.Permission;
-        processPerms(permissions, function (id, action) {
-            perms.push(new Permission(id, action));
-        });
-        this.manager['addRole(java.lang.String,java.lang.String[],org.wso2.carbon.user.api.Permission[])']
-            (role, users, perms);
-    };
-
-    UserManager.prototype.removeRole = function (role) {
-        this.manager.deleteRole(role);
-    };
-
-    UserManager.prototype.allRoles = function () {
-        return this.manager.getRoleNames();
-    };
-	UserManager.prototype.getUserListOfRole = function (role) {
-        return this.manager.getUserListOfRole(role);
-    };
-    /**
-     * um.authorizeRole('store-admin', '/permissions/mypermission', 'ui-execute');
-     *
-     * um.authorizeRole('store-admin', {
-     *      '/permissions/myperm1' : ['read', 'write'],
-     *      '/permissions/myperm2' : ['read', 'write']
-     * });
-     *
-     * @param role
-     * @param permission
-     * @param action
-     */
-    UserManager.prototype.authorizeRole = function (role, permission, action) {
-        var that = this;
-        if (permission instanceof String || typeof permission === 'string') {
-            if (!that.isAuthorized(role, permission, action)) {
-                that.authorizer.authorizeRole(role, permission, action);
-            }
-        } else {
-            processPerms(permission, function (id, action) {
-                if (!that.isAuthorized(role, id, action)) {
-                    that.authorizer.authorizeRole(role, id, action);
-                    if (log.isDebugEnabled()) {
-                        log.debug('permission added(role:permission:action) - ' + role + ':' + id + ':' + action);
-                    }
-                }
-            });
-        }
-    };
-
-    /**
-     * um.denyRole('store-admin', '/permissions/mypermission', 'ui-execute');
-     *
-     * um.denyRole('store-admin', {
-     *      '/permissions/myperm1' : ['read', 'write'],
-     *      '/permissions/myperm2' : ['read', 'write']
-     * });
-     *
-     * @param role
-     * @param permission
-     * @param action
-     */
-    UserManager.prototype.denyRole = function (role, permission, action) {
-        var deny = this.authorizer.denyRole;
-        if (permission instanceof String || typeof permission === 'string') {
-            deny(role, permission, action);
-        } else {
-            processPerms(permission, function (id, action) {
-                deny(role, id, action);
-            });
-        }
-    };
-
-}(server, user));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/scripts/user/user.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/scripts/user/user.js b/products/stratos/conf/temp-artifacts/carbon/scripts/user/user.js
deleted file mode 100644
index 66b253d..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/scripts/user/user.js
+++ /dev/null
@@ -1,99 +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.
- *
-*/
-
-var user = {};
-
-(function (user) {
-
-    var CarbonConstants = Packages.org.wso2.carbon.CarbonConstants;
-
-    user.systemUser = CarbonConstants.REGISTRY_SYSTEM_USERNAME;
-
-    user.anonUser = CarbonConstants.REGISTRY_ANONNYMOUS_USERNAME;
-
-    user.anonRole = CarbonConstants.REGISTRY_ANONNYMOUS_ROLE_NAME;
-
-    var User = function (manager, username) {
-        this.um = manager;
-        this.tenantId = manager.tenantId;
-        this.username = username;
-    };
-    user.User = User;
-
-    User.prototype.getClaims = function (profile) {
-        return this.um.getClaims(this.username, profile);
-    };
- 	User.prototype.getClaimsForSet = function (claims,profile) {
-        return this.um.getClaimsForSet(this.username, claims, profile);
-    };
-
-    User.prototype.setClaims = function (claims, profile) {
-        this.um.setClaims(this.username, claims, profile);
-    };
-
-    User.prototype.getRoles = function () {
-        return this.um.manager.getRoleListOfUser(this.username);
-    };
-
-    User.prototype.hasRoles = function (roles) {
-        var i, j, role,
-            rs = this.getRoles(),
-            length1 = roles.length,
-            length2 = rs.length;
-        L1:
-            for (i = 0; i < length1; i++) {
-                //Array.indexOf() fails due to Java String vs JS String difference
-                role = roles[i];
-                for (j = 0; j < length2; j++) {
-                    if (role == rs[j]) {
-                        continue L1;
-                    }
-                }
-                return false;
-            }
-        return true;
-    };
-
-    User.prototype.addRoles = function (roles) {
-        return this.um.manager.updateRoleListOfUser(this.username, [], roles);
-    };
-
-    User.prototype.removeRoles = function (roles) {
-        return this.um.manager.updateRoleListOfUser(this.username, roles, []);
-    };
-
-    User.prototype.updateRoles = function (remove, add) {
-        return this.um.manager.updateRoleListOfUser(this.username, remove, add);
-    };
-
-    User.prototype.isAuthorized = function (permission, action) {
-        var i,
-            roles = this.getRoles(),
-            length = roles.length;
-        for (i = 0; i < length; i++) {
-            if (this.um.authorizer.isRoleAuthorized(roles[i], permission, action)) {
-                return true;
-            }
-        }
-        return false;
-    };
-
-}(user));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar b/products/stratos/conf/temp-artifacts/org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar
deleted file mode 100644
index 60f6f07..0000000
Binary files a/products/stratos/conf/temp-artifacts/org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/org.wso2.store.sso.common_1.0.0.jar
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/org.wso2.store.sso.common_1.0.0.jar b/products/stratos/conf/temp-artifacts/org.wso2.store.sso.common_1.0.0.jar
deleted file mode 100644
index 4a74e5b..0000000
Binary files a/products/stratos/conf/temp-artifacts/org.wso2.store.sso.common_1.0.0.jar and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/org.wso2.stratos.identity.saml2.sso.mgt_2.2.0.jar
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/org.wso2.stratos.identity.saml2.sso.mgt_2.2.0.jar b/products/stratos/conf/temp-artifacts/org.wso2.stratos.identity.saml2.sso.mgt_2.2.0.jar
deleted file mode 100644
index 29a9fb7..0000000
Binary files a/products/stratos/conf/temp-artifacts/org.wso2.stratos.identity.saml2.sso.mgt_2.2.0.jar and /dev/null differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/sso/module.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/sso/module.xml b/products/stratos/conf/temp-artifacts/sso/module.xml
deleted file mode 100644
index 159203b..0000000
--- a/products/stratos/conf/temp-artifacts/sso/module.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version='1.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.
-
--->
-
-<module name="sso" xmlns="http://wso2.org/projects/jaggery/module.xml">
-    <script>
-        <name>client</name>
-        <path>scripts/sso.client.js</path>
-    </script>
-</module>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/sso/scripts/sso.client.js
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/sso/scripts/sso.client.js b/products/stratos/conf/temp-artifacts/sso/scripts/sso.client.js
deleted file mode 100644
index 9553220..0000000
--- a/products/stratos/conf/temp-artifacts/sso/scripts/sso.client.js
+++ /dev/null
@@ -1,193 +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.
- *
-*/
-
-/**
- * Following module act as a client to create a saml request and also to
- * unwrap and return attributes of a returning saml response
- * @type {{}}
- */
-
-var client = {};
-
-(function (client) {
-
-    var Util = Packages.org.wso2.store.sso.common.util.Util,
-        carbon = require('carbon'),
-        log = new Log();
-
-    /**
-     * obtains an encoded saml response and return a decoded/unmarshalled saml obj
-     * @param samlResp
-     * @return {*}
-     */
-    client.getSamlObject = function (samlResp) {
-        var decodedResp = Util.decode(samlResp);
-        return Util.unmarshall(decodedResp);
-    };
-
-    /**
-     * validating the signature of the response saml object
-     */
-    client.validateSignature = function (samlObj, config) {
-        var tDomain = Util.getDomainName(samlObj);
-        var tId = carbon.server.tenantId({domain: tDomain});
-
-        return Util.validateSignature(samlObj,
-            config.KEY_STORE_NAME, config.KEY_STORE_PASSWORD, config.IDP_ALIAS, tId, tDomain);
-    };
-
-    /**
-     * Checking if the request is a logout call
-     */
-    client.isLogoutRequest = function (samlObj) {
-        return samlObj instanceof Packages.org.opensaml.saml2.core.LogoutRequest;
-    };
-
-    /**
-     * Checking if the request is a logout call
-     */
-    client.isLogoutResponse = function (samlObj) {
-        return samlObj instanceof Packages.org.opensaml.saml2.core.LogoutResponse;
-    };
-
-    /**
-     * getting url encoded saml authentication request
-     * @param issuerId
-     */
-    client.getEncodedSAMLAuthRequest = function (issuerId) {
-        return Util.encode(
-            Util.marshall(
-                new Packages.org.wso2.store.sso.common.builders.AuthReqBuilder().buildAuthenticationRequest(issuerId)
-            ));
-    };
-
-    /**
-     * get url encoded saml logout request
-     */
-    client.getEncodedSAMLLogoutRequest = function (user, sessionIndex, issuerId) {
-        return Util.encode(
-            Util.marshall(
-                new Packages.org.wso2.store.sso.common.builders.LogoutRequestBuilder().buildLogoutRequest(user, sessionIndex,
-                    Packages.org.wso2.store.sso.common.constants.SSOConstants.LOGOUT_USER,
-                    issuerId)));
-    };
-
-    /**
-     * Reads the returning SAML login response and populates a session info object
-     */
-    client.decodeSAMLLoginResponse = function (samlObj, samlResp, sessionId) {
-        var samlSessionObj = {
-            // sessionId, loggedInUser, sessionIndex, samlToken
-        };
-
-        if (samlObj instanceof Packages.org.opensaml.saml2.core.Response) {
-
-            var assertions = samlObj.getAssertions();
-
-            // extract the session index
-            if (assertions != null && assertions.size() > 0) {
-                var authenticationStatements = assertions.get(0).getAuthnStatements();
-                var authnStatement = authenticationStatements.get(0);
-                if (authnStatement != null) {
-                    if (authnStatement.getSessionIndex() != null) {
-                        samlSessionObj.sessionIndex = authnStatement.getSessionIndex();
-                    }
-                }
-            }
-
-            // extract the username
-            if (assertions != null && assertions.size() > 0) {
-                var subject = assertions.get(0).getSubject();
-                var samlAssertion = assertions.get(0);
-                if (subject != null) {
-                    if (subject.getNameID() != null) {
-                        samlSessionObj.loggedInUser = subject.getNameID().getValue();
-                    }
-                }
-            }
-            samlSessionObj.sessionId = sessionId;
-            samlSessionObj.samlToken = samlResp;
-        }
-
-        return samlSessionObj;
-    };
-
-    client.getURLencodedB64EncodedSAML2Token = function(samlObj){
-          var saml2Token = {
-              // URLEncodedB64
-          };
-        if (samlObj instanceof Packages.org.opensaml.saml2.core.Response) {
-            saml2Token.URLEncodedB64 = Util.getURLEncodedB64SAML2Token(samlObj);
-        }
-        return saml2Token;
-    };
-
-    client.getB64EncodedtSAMLAssertion = function(samlObj){
-        var saml2Token = {
-            // URLEncodedB64
-        };
-        if (samlObj instanceof Packages.org.opensaml.saml2.core.Response) {
-            saml2Token.b64Encoded = Util.getB64EncodedtSAMLAssertion(samlObj);
-        }
-        return saml2Token;
-    };
-
-
-    client.b64encode = function(str){
-       return Util.encode(str);
-    };
-
-    /**
-     * This method is to get the session index when a single logout happens
-     * The IDP sends a logout request to the ACS with the session index, so that
-     * the app can invalidate the associated HTTP Session
-     */
-    client.decodeSAMLLogoutRequest = function (samlObj) {
-        var sessionIndex = null;
-
-        if (samlObj instanceof org.opensaml.saml2.core.LogoutRequest) {
-            var sessionIndexes = samlObj.getSessionIndexes();
-            if (sessionIndexes != null && sessionIndexes.size() > 0) {
-                sessionIndex = sessionIndexes.get(0).getSessionIndex();
-            }
-        }
-
-        return sessionIndex;
-
-    };
-
-    client.getTenantDomain = function (samlObj) {
-        var tDomain = Util.getDomainName(samlObj);
-        return tDomain;
-    };
-
-    client.getRoleList = function(samlObj) {
-        var roleObj = [];
-        var roleString = Util.getRoles(samlObj);
-        log.info("role string : " + roleString);
-        var roleSplit = roleString.split(",");
-        for(var i=0; i < roleSplit.length;i++){
-            roleObj.push(roleSplit[i].trim());
-        }
-        return roleObj;
-    };
-
-}(client));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/tenant-mgt.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/tenant-mgt.xml b/products/stratos/conf/tenant-mgt.xml
deleted file mode 100644
index ddfe83a..0000000
--- a/products/stratos/conf/tenant-mgt.xml
+++ /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.
- -->
-<TenantManagers>
-    <TenantManager class="org.wso2.carbon.user.core.tenant.JDBCTenantManager">
-        <Property name="MultiTenantRealmConfigBuilder">org.wso2.carbon.user.core.config.multitenancy.SimpleRealmConfigBuilder</Property>
-    </TenantManager>
-</TenantManagers>
-
-<!--If the product is using LDAP user store in MT mode, use following tenant manager.-->
-<!--TenantManager class="org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager">
-    <Property name="RootPartition">dc=wso2,dc=com</Property>
-    <Property name="OrganizationalObjectClass">organizationalUnit</Property>
-    <Property name="OrganizationalAttribute">ou</Property>
-    <Property name="OrganizationalSubContextObjectClass">organizationalUnit</Property>
-    <Property name="OrganizationalSubContextAttribute">ou</Property>
-</TenantManager-->
-<!--Following tenant manager is used by Identity Server (IS) as its default tenant manager.
-    IS will do token replacement when building the product. Therefore do not change the syntax.-->
-<!--TenantManager class="org.wso2.carbon.user.core.tenant.JDBCTenantManager">
-    <Property name="RootPartition">dc=wso2,dc=org</Property>
-    <Property name="OrganizationalObjectClass">organizationalUnit</Property>
-    <Property name="OrganizationalAttribute">ou</Property>
-    <Property name="OrganizationalSubContextObjectClass">organizationalUnit</Property>
-    <Property name="OrganizationalSubContextAttribute">ou</Property>
-</TenantManager-->
-

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/tenant-reg-agent.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/tenant-reg-agent.xml b/products/stratos/conf/tenant-reg-agent.xml
deleted file mode 100755
index c39e189..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/thrift-client-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/thrift-client-config.xml b/products/stratos/conf/thrift-client-config.xml
deleted file mode 100644
index 5cacada..0000000
--- a/products/stratos/conf/thrift-client-config.xml
+++ /dev/null
@@ -1,27 +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.
-  -->
-
-<!-- Apache thrift client configuration for publishing statistics to WSO2 CEP -->
-<thriftClientConfiguration>
-    <username>admin</username>
-    <password>admin</password>
-    <ip>localhost</ip>
-    <port>7611</port>
-</thriftClientConfiguration>
\ No newline at end of file


[2/9] stratos git commit: Removing unnecessary features, artifacts and restructuring distribution artifacts

Posted by ra...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/powerded-by-logos/esb-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/powerded-by-logos/esb-logo.gif b/products/stratos/modules/distribution/src/main/resources/powerded-by-logos/esb-logo.gif
new file mode 100755
index 0000000..95cb5b3
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/powerded-by-logos/esb-logo.gif differ

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

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

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

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

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/module.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/module.xml b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/module.xml
new file mode 100644
index 0000000..2cb5634
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/module.xml
@@ -0,0 +1,69 @@
+<?xml version='1.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.
+
+-->
+
+<module name="carbon" xmlns="http://wso2.org/projects/jaggery/module.xml">
+    <!-- scripts -->
+    <script>
+        <name>osgi</name>
+        <path>scripts/server/osgi.js</path>
+    </script>
+    <script>
+        <name>tenant</name>
+        <path>scripts/server/tenant.js</path>
+    </script>
+    <script>
+        <name>server</name>
+        <path>scripts/server/server.js</path>
+    </script>
+    <script>
+        <name>config</name>
+        <path>scripts/server/config.js</path>
+    </script>
+    <script>
+        <name>user</name>
+        <path>scripts/user/user.js</path>
+    </script>
+    <script>
+        <name>registry</name>
+        <path>scripts/registry/registry.js</path>
+    </script>
+    <script>
+        <name>registry-osgi</name>
+        <path>scripts/registry/registry-osgi.js</path>
+    </script>
+    <script>
+        <name>artifacts</name>
+        <path>scripts/registry/artifacts.js</path>
+    </script>
+    <script>
+        <name>space</name>
+        <path>scripts/user/space.js</path>
+    </script>
+    <script>
+        <name>registry-space</name>
+        <path>scripts/user/registry-space.js</path>
+    </script>
+    <script>
+        <name>user-manager</name>
+        <path>scripts/user/user-manager.js</path>
+    </script>
+</module>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/artifacts.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/artifacts.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/artifacts.js
new file mode 100644
index 0000000..a05e567
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/artifacts.js
@@ -0,0 +1,595 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+(function (server, registry) {
+
+    var log = new Log();
+
+    var GenericArtifactManager = Packages.org.wso2.carbon.governance.api.generic.GenericArtifactManager;
+    var GenericArtifactFilter = Packages.org.wso2.carbon.governance.api.generic.GenericArtifactFilter;
+    var ByteArrayInputStream = Packages.java.io.ByteArrayInputStream;
+    var QName = Packages.javax.xml.namespace.QName;
+    var IOUtils = Packages.org.apache.commons.io.IOUtils;
+    var PrivilegedCarbonContext = Packages.org.wso2.carbon.context.PrivilegedCarbonContext; //Used regard tenant details
+    var CarbonContext = Packages.org.wso2.carbon.context.CarbonContext;
+    var MultitenantConstants = Packages.org.wso2.carbon.utils.multitenancy.MultitenantConstants;
+    var List = java.util.List;
+    var Map = java.util.Map;
+    var ArrayList = java.util.ArrayList;
+    var HashMap = java.util.HashMap;
+
+    var GovernanceUtils = Packages.org.wso2.carbon.governance.api.util.GovernanceUtils;//Used to obtain Asset Types
+    var DEFAULT_MEDIA_TYPE = 'application/vnd.wso2.registry-ext-type+xml';//Used to obtain Asset types
+    var PaginationContext = Packages.org.wso2.carbon.registry.core.pagination.PaginationContext;//Used for pagination on register
+
+    var REGISTRY_ABSOLUTE_PATH = "/_system/governance";
+
+    var HISTORY_PATH_SEPERATOR = '_';
+    var ASSET_PATH_SEPERATOR = '/';
+    var lcHistoryRegExpression = new RegExp(ASSET_PATH_SEPERATOR, 'g');
+    var HISTORY_PATH = '/_system/governance/_system/governance/repository/components/org.wso2.carbon.governance/lifecycles/history/';
+
+
+    var buildArtifact = function (manager, artifact) {
+        return {
+            id: String(artifact.id),
+            type: String(manager.type),
+            path: "/_system/governance" + String(artifact.getPath()),
+            lifecycle: artifact.getLifecycleName(),
+            lifecycleState: artifact.getLifecycleState(),
+            mediaType: String(artifact.getMediaType()),
+            attributes: (function () {
+                var i, name,
+                    names = artifact.getAttributeKeys(),
+                    length = names.length,
+                    attributes = {};
+                for (i = 0; i < length; i++) {
+                    name = names[i];
+
+                    var data = artifact.getAttributes(name);
+
+                    //Check if there is only one element
+                    if (data.length == 1) {
+                        attributes[name] = String(artifact.getAttribute(name));
+                    }
+                    else {
+                        attributes[name] = data;
+                    }
+                }
+                return attributes;
+            }()),
+            content: function () {
+                return new Stream(new ByteArrayInputStream(artifact.getContent()));
+            }
+        };
+    };
+
+    var createArtifact = function (manager, options) {
+        var name, attribute, i, length, lc,
+            artifact = manager.newGovernanceArtifact(new QName(options.name)),
+            attributes = options.attributes;
+        for (name in attributes) {
+            if (attributes.hasOwnProperty(name)) {
+                attribute = attributes[name];
+                if (attribute instanceof Array) {
+                    /*length = attribute.length;
+                     for (i = 0; i < length; i++) {
+                     artifact.addAttribute(name, attribute[i]);
+                     }*/
+                    artifact.setAttributes(name, attribute);
+                } else {
+                    artifact.setAttribute(name, attribute);
+                }
+            }
+        }
+        if (options.id) {
+            artifact.id = options.id;
+        }
+        if (options.content) {
+            if (options.content instanceof Stream) {
+                artifact.setContent(IOUtils.toByteArray(options.content.getStream()));
+            } else {
+                artifact.setContent(new java.lang.String(options.content).getBytes());
+            }
+        }
+        lc = options.lifecycles;
+        if (lc) {
+            length = lc.length;
+            for (i = 0; i < length; i++) {
+                artifact.attachLifeCycle(lc[i]);
+            }
+        }
+        return artifact;
+    };
+
+    var ArtifactManager = function (registry, type) {
+        this.registry = registry;
+        this.manager = new GenericArtifactManager(registry.registry.getChrootedRegistry("/_system/governance"), type);
+        this.type = type;
+    };
+    registry.ArtifactManager = ArtifactManager;
+
+    ArtifactManager.prototype.find = function (fn, paging) {
+        var i, length, artifacts,
+            artifactz = [];
+        artifacts = this.manager.findGenericArtifacts(new GenericArtifactFilter({
+            matches: function (artifact) {
+                return fn(buildArtifact(this, artifact));
+            }
+        }));
+        length = artifacts.length;
+        for (i = 0; i < length; i++) {
+            artifactz.push(buildArtifact(this, artifacts[i]));
+        }
+        return artifactz;
+    };
+
+
+    /*
+     * this funtion is used ArtifactManager find with map for query for solr basicly
+     * query - for maping attribute of resource
+     * pagin - pagination details
+     * return - list of artifacts under the seach request
+     *
+     */
+    ArtifactManager.prototype.search = function (query, paging) {
+
+        var list, map, key, artifacts, pagination, value, that,
+            artifactz = [];
+        pagination = generatePaginationForm(paging);
+        try {
+            PaginationContext.init(pagination.start, pagination.count, pagination.sortOrder,
+                pagination.sortBy, pagination.paginationLimit);
+            map = HashMap();
+            //case senstive search as it using greg with solr 1.4.1
+            if (!query) {
+                //listing for sorting
+                map = java.util.Collections.emptyMap();
+            } else if (query instanceof String || typeof query === 'string') {
+                list = new ArrayList();
+                list.add('*' + query + '*');
+                map.put('overview_name', list);
+            } else {
+                //support for only on name of attribut -
+                for (key in query) {
+                    // if attribute is string values
+                    if (query.hasOwnProperty(key)) {
+                        value = query[key];
+                        list = new ArrayList();
+                        if (value instanceof Array) {
+                            value.forEach(function (val) {
+                                //solr config update need have '*' as first char in below line
+                                //check life_cycle state
+                                list.add(key == 'lcState' ? val : '*' + val + '*');
+                            });
+                        } else {
+                            //solr config update need have '*' as first char in below line
+                            list.add(key == 'lcState' ? value : '*' + value + '*');
+                        }
+                        map.put(key, list);
+                    }
+                }//end of attribut looping (all attributes)
+            }
+            artifacts = this.manager.findGenericArtifacts(map);
+            that = this;
+            artifacts.forEach(function (artifact) {
+                artifactz.push(buildArtifact(that, artifact));
+            });
+        } finally {
+            PaginationContext.destroy();
+        }
+        return artifactz;
+    };
+
+    ArtifactManager.prototype.get = function (id) {
+        return buildArtifact(this, this.manager.getGenericArtifact(id))
+    };
+
+    ArtifactManager.prototype.count = function () {
+        return this.manager.getAllGenericArtifactIds().length;
+    };
+
+    /**
+     * @deprecated Please use search method instead
+     * @param paging
+     * @return {*}
+     */
+    ArtifactManager.prototype.list = function (paging) {
+        return this.search(null, paging);
+    };
+
+    /*
+     The function returns an array of asset types
+     @mediaType - The media type of the assets
+     @return An array of strings containing the asset paths
+     */
+    ArtifactManager.prototype.getAssetTypePaths = function (mediaType) {
+
+        //Use the default media type if one is not provided
+        if (!mediaType) {
+            mediaType = DEFAULT_MEDIA_TYPE;
+        }
+
+        //var assetArray=GovernanceUtils.findGovernanceArtifacts(mediaType,this.registry);
+        var result = Packages.org.wso2.carbon.governance.api.util.GovernanceUtils.findGovernanceArtifacts(mediaType, registry.registry);
+
+        return result;
+        //Create an empty array if no asset types are found
+        //return (!assetArray)?[]:assetArray;
+    };
+
+    /*
+     {
+     name: 'AndroidApp1',
+     attributes: {
+     overview_status: "CREATED",
+     overview_name: 'AndroidApp1',
+     overview_version: '1.0.0',
+     overview_url: 'http://overview.com',
+     overview_provider: 'admin',
+     images_thumbnail: 'http://localhost:9763/portal/gadgets/co2-emission/thumbnail.jpg',
+     images_banner: 'http://localhost:9763/portal/gadgets/electric-power/banner.jpg'
+     },
+     lifecycles : ['lc1', 'lc2'],
+     content : '<?xml ....>'
+     }
+     */
+    ArtifactManager.prototype.add = function (options) {
+        this.manager.addGenericArtifact(createArtifact(this.manager, options));
+    };
+
+    ArtifactManager.prototype.update = function (options) {
+        this.manager.updateGenericArtifact(createArtifact(this.manager, options));
+    };
+
+    ArtifactManager.prototype.remove = function (id) {
+        this.manager.removeGenericArtifact(id);
+    };
+
+    /*
+     Attaches the provided lifecycle name to the artifact
+     @lifecycleName: The name of a valid lifecycle.The lifecycle should be visible to the
+     registry.
+     @options: The artifact to which the life cycle must be attached.
+     */
+    ArtifactManager.prototype.attachLifecycle = function (lifecycleName, options) {
+        var artifact = getArtifactFromImage(this.manager, options);
+        if (!artifact) {
+            throw new Error('Specified artifact cannot be found : ' + JSON.stringify(options));
+        }
+        artifact.attachLifecycle(lifecycleName);
+    };
+
+    /*
+     Removes the attached lifecycle from the artifact
+     @options: The artifact from which the life cycle must be removed
+     */
+    ArtifactManager.prototype.detachLifecycle = function (options) {
+        var artifact = getArtifactFromImage(this.manager, options);
+        if (!artifact) {
+            throw new Error('Specified artifact cannot be found : ' + JSON.stringify(options));
+        }
+        artifact.detachLifecycle();
+    };
+
+    /*
+     Promotes the artifact to the next stage in its life cycle
+     @options: An artifact image (Not a real artifact)
+     */
+    ArtifactManager.prototype.promoteLifecycleState = function (state, options) {
+        var checkListItems,
+            artifact = getArtifactFromImage(this.manager, options);
+        if (!artifact) {
+            throw new Error('Specified artifact cannot be found : ' + JSON.stringify(options));
+        }
+        //checkListItems = artifact.getAllCheckListItemNames();
+        artifact.invokeAction(state);
+    };
+
+    /*
+     Gets the current lifecycle state
+     @options: An artifact object
+     @returns: The life cycle state
+     */
+    ArtifactManager.prototype.getLifecycleState = function (options) {
+        var artifact = getArtifactFromImage(this.manager, options);
+        if (!artifact) {
+            throw new Error('Specified artifact cannot be found : ' + JSON.stringify(options));
+        }
+        return artifact.getLifecycleState();
+    };
+
+    /*
+     The function returns the list of check list items for a given state
+     @options: The artifact
+     @returns: A String array containing the check list items.(Can be empty if no check list items are present)
+     */
+    ArtifactManager.prototype.getCheckListItemNames = function (options) {
+        var artifact = getArtifactFromImage(this.manager, options);
+
+        var checkListItems = artifact.getAllCheckListItemNames() || [];
+
+        var checkListItemArray = [];
+
+        //Go through each check list item
+        for (var index in checkListItems) {
+            //Get whether the check list item is checked
+            var state = artifact.isLCItemChecked(index);
+            checkListItemArray.push({ 'name': checkListItems[index], 'checked': state });
+        }
+
+        return checkListItemArray;
+    };
+
+    /*
+     The function checks whether a given check list item at the provided index is checked for the current state
+     @index: The index of the check list item.This must be a value between 0 and the maximum check list item
+     that appears in the lifecycle definition
+     @options: An artifact object
+     @throws Exception: If the index is not within 0 and the max check list item or if there is an issue ticking the item
+     */
+    ArtifactManager.prototype.isItemChecked = function (index, options) {
+
+        var artifact = getArtifactFromImage(this.manager, options);
+
+        var checkListItems = artifact.getAllCheckListItemNames();
+
+        var checkListLength = checkListItems.length;
+
+        if ((index < 0) || (index > checkListLength)) {
+            throw "The index value: " + index + " must be between 0 and " + checkListLength + ".Please refer to the lifecycle definition in the registry.xml for the number of check list items.";
+        }
+
+        var result = artifact.isLCItemChecked(index);
+
+        return result;
+    };
+
+    /*
+     The method enables the check list item and the given index
+     @index: The index of the check list item.This must be a value between 0 and the maximum check list item
+     that appears in the lifecycle definition.
+     @options: An artifact object
+     @throws Exception: If the index is not within 0 and max check list item or if there is an issue ticking the item.
+     */
+    ArtifactManager.prototype.checkItem = function (index, options) {
+
+        var artifact = getArtifactFromImage(this.manager, options);
+
+        var checkListItems = artifact.getAllCheckListItemNames();
+
+        var checkListLength = checkListItems.length;
+
+        if ((index < 0) || (index > checkListLength)) {
+            throw "The index value: " + index + " must be between 0 and " + checkListLength + ".Please refer to the lifecycle definition in the registry.xml for the number of check list items.";
+        }
+
+        artifact.checkLCItem(index);
+    };
+
+    /*
+     The method disables the check list item at the given index
+     @index: The index of the check list item.This must be a value between 0 and the maximum check list item
+     that appears in the lifecycle definition
+     @options: An artifact object
+     @throws Exception: If the index is not within 0 and max check list item or if there is an issue ticking the item
+     */
+    ArtifactManager.prototype.uncheckItem = function (index, options) {
+
+        var artifact = getArtifactFromImage(this.manager, options);
+
+        var checkListItems = artifact.getAllCheckListItemNames();
+
+        var checkListLength = checkListItems.length;
+
+        if ((index < 0) || (index > checkListLength)) {
+            throw "The index value: " + index + " must be between 0 and " + checkListLength + ".Please refer to the lifecycle definition in the registry.xml for the number of check list items.";
+        }
+
+        artifact.uncheckLCItem(index);
+    };
+
+    /*
+     The method obtains the list of all available actions for the current state of the asset
+     @options: An artifact object
+     @returns: The list of available actions for the current state,else false
+     */
+    ArtifactManager.prototype.availableActions = function (options) {
+        var artifact = getArtifactFromImage(this.manager, options);
+        if (!artifact) {
+            throw new Error('Specified artifact cannot be found : ' + JSON.stringify(options));
+        }
+        return artifact.getAllLifecycleActions() || [];
+    };
+
+    /*
+     The function returns the life-cycle history path using
+     the provided asset.
+     @options: An asset.
+     @return: A string path of the life-cycle history.
+     */
+    ArtifactManager.prototype.getLifecycleHistoryPath = function (options) {
+
+        return getHistoryPath(options.path);
+    };
+
+    /*
+    The function obtains the lifecycle history for the provided asset
+    @options: An asset with a valid path.(A path which exists in the registry
+    @return: A resource object containing the history as an xml
+     */
+    ArtifactManager.prototype.getLifecycleHistory=function(options){
+        var historyPath=getHistoryPath(options.path);
+        return this.registry.get(historyPath);
+    };
+
+    /*
+     The function returns the life-cycle attached to the provided artifact
+     @options: An asset as returned by the ArtifactManager get method
+     @return: A string indicating the lifecycle name.If the artifact does not
+     have a life-cycle then an empty string is returned.
+     */
+    ArtifactManager.prototype.getLifeCycleName = function (options) {
+
+        var artifact = getArtifactFromImage(this.manager, options);
+
+        var lifecycleName = '';
+
+        if (artifact != null) {
+            lifecycleName = artifact.getLifecycleName();
+        }
+
+        return lifecycleName;
+    };
+
+    /*
+     The function returns all versions of the provided artifact
+     @options: The artifact to be checked
+     @return: A list of all the different versions of the provided asset
+     */
+    ArtifactManager.prototype.getAllAssetVersions = function (assetName) {
+
+        var matchingArtifacts = [];
+
+        var pred = {
+            overview_name: assetName || ''
+        };
+
+        this.find(function (artifact) {
+
+            //Add to the matches if the artifact exists
+            if (assert(artifact.attributes, pred)) {
+
+                //We only need the id and version
+                matchingArtifacts.push({id: artifact.id, version: artifact.attributes.overview_version});
+            }
+        });
+
+        return matchingArtifacts;
+    };
+
+    /*
+     The function checks if the two objects a and b are equal.If a property in b is not
+     in a, then both objects are assumed to be different.
+     @a: The object to be compared
+     @b: The object containing properties that must match in a
+     @return: True if the objects are equal,else false.
+     */
+    var assert = function (a, b) {
+
+        //Assume the objects will be same
+        var equal = true;
+
+        for (var key in b) {
+
+
+            if (a.hasOwnProperty(key)) {
+
+                //If the two keys are not equal
+                if (a[key] != b[key]) {
+                    return false;
+                }
+            }
+            else {
+                return false;
+            }
+        }
+
+        return equal;
+    };
+
+    /*
+     The function generates the history path of a given asset
+     using its path
+     @assetPath:The path of the asset to be retrieved.
+     @return: The path of lifecycle history information
+     */
+    var getHistoryPath = function (assetPath) {
+
+        //Replace the / in the assetPath
+        var partialHistoryPath = assetPath.replace(lcHistoryRegExpression, HISTORY_PATH_SEPERATOR);
+
+        var fullPath = HISTORY_PATH + partialHistoryPath;
+
+        return fullPath;
+    };
+
+    /*
+     generatePaginationForm will genrate json for registry pagination context, (pagination consistent handling)
+     @pagin:The pagination details from UI
+     @
+     */
+    var generatePaginationForm = function (pagin) {
+
+        //pagination context for default
+        var paginationLimit = 300;
+        var paginationForm = {
+            'start': 0,
+            'count': 12,
+            'sortOrder': 'ASC',
+            'sortBy': 'overview_name',
+            'paginationLimit': 2147483647
+        };
+
+        if (!pagin) {
+            return paginationForm;
+        }
+
+        if (pagin.count != null) {
+            paginationForm.count = pagin.count;
+        }
+        if (pagin.start != null) {
+            paginationForm.start = pagin.start;
+        }
+        if (pagin.paginationLimit != null) {
+            paginationForm.paginationLimit = pagin.paginationLimit;
+        }
+        if (pagin.sortBy != null) {
+            paginationForm.sortBy = pagin.sortBy;
+        }
+        if (paginationForm.sortOrder != null) {
+            paginationForm.sortOrder = pagin.sortOrder;
+        }
+        return paginationForm;
+
+    };
+
+    /*
+     Helper function to create an artifact instance from a set of options (an image).
+     */
+    var getArtifactFromImage = function (manager, options) {
+
+        var path = options.path || '';
+        var lcName = options.lifecycle || '';
+        var artifact = createArtifact(manager, {
+            id: options.id,
+            attributes: options.attributes
+        });
+
+        path = path.replace(REGISTRY_ABSOLUTE_PATH, '');
+
+        artifact.setArtifactPath(path);
+        artifact.setLcName(lcName);
+
+        return artifact;
+    };
+
+}(server, registry));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry-osgi.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry-osgi.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry-osgi.js
new file mode 100644
index 0000000..eefbaad
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry-osgi.js
@@ -0,0 +1,466 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+var registry = registry || {};
+
+(function (server, registry) {
+    var log = new Log();
+
+    var Resource = Packages.org.wso2.carbon.registry.core.Resource;
+
+    var Collection = Packages.org.wso2.carbon.registry.core.Collection;
+
+    var Comment = Packages.org.wso2.carbon.registry.core.Comment;
+
+    var StaticConfiguration = Packages.org.wso2.carbon.registry.core.config.StaticConfiguration;
+
+    var queryPath = '/_system/config/repository/components/org.wso2.carbon.registry/queries/';
+
+    var content = function (registry, resource, paging) {
+        if (resource instanceof Collection) {
+            // #1 : this always sort children by name, so sorting cannot be done for the chunk
+            return children(registry, resource, paging);
+        }
+        if (resource instanceof Comment) {
+            return String(resource.getText());
+        }
+        var stream = resource.getContentStream();
+        if (stream) {
+            return new Stream(stream);
+        }
+        return String(resource.content);
+    };
+
+    var resourceSorter = function (key) {
+        var nameAsc = function (l, r) {
+            var lname, rname;
+            if (l instanceof Collection) {
+                lname = l.getName();
+                lname = lname.substring(lname.lastIndexOf('/') + 1);
+            } else {
+                lname = l.name;
+            }
+            if (r instanceof Collection) {
+                rname = r.getName();
+                rname = rname.substring(rname.lastIndexOf('/') + 1);
+            } else {
+                rname = r.name;
+            }
+            return lname === rname ? 0 : (lname > rname ? 1 : -1);
+        };
+        switch (key) {
+            case 'time-created-asc' :
+                return function (l, r) {
+                    return l.getCreatedTime().getTime() - r.getCreatedTime().getTime();
+                };
+            case 'time-created-des' :
+                return function (l, r) {
+                    return r.getCreatedTime().getTime() - l.getCreatedTime().getTime();
+                };
+            case 'name-asc' :
+                return nameAsc;
+            case 'name-des' :
+                return function (l, r) {
+                    return -nameAsc(l, r);
+                };
+            default:
+                return resourceSorter('time-created-des');
+        }
+    };
+
+    var children = function (registry, resource, paging) {
+        var resources = resource.getChildren();
+        //we have to manually sort this due to the bug in registry.getChildren() (#1 above)
+        //resources.sort(resourceSorter(paging.sort));
+        return resources.slice(paging.start, paging.start + paging.count);
+    };
+
+    var resource = function (registry, resource) {
+        var path = String(resource.path),
+            o = {
+                created: {
+                    author: String(resource.authorUserName),
+                    time: resource.createdTime.time
+                },
+                content: content(registry, resource, {
+                    start: 0,
+                    count: 10
+                }),
+                id: String(resource.id),
+                version: resource.versionNumber
+            };
+        if (resource instanceof Comment) {
+            return o;
+        }
+        if (resource instanceof Collection) {
+            o.collection = (resource instanceof Collection);
+        }
+        o.uuid = String(resource.UUID);
+        o.path = String(path);
+        o.name = String(resource.name) || resolveName(path);
+        o.description = String(resource.description);
+        o.updated = {
+            author: String(resource.lastUpdaterUserName),
+            time: resource.lastModified.time
+        };
+        o.mediaType = String(resource.mediaType);
+        o.properties = function () {
+            return properties(resource);
+        };
+        o.aspects = function () {
+            return aspects(resource);
+        };
+        return o;
+    };
+
+    var properties = function (resource) {
+        var prop,
+            properties = resource.properties,
+            props = properties.keySet().toArray(),
+            length = props.length,
+            o = {};
+        for (var i = 0; i < length; i++) {
+            prop = props[i];
+            o[prop] = resource.getPropertyValues(prop).toArray();
+        }
+        return o;
+    };
+
+    var aspects = function (resource) {
+        var aspects = resource.getAspects();
+        return aspects ? aspects.toArray() : [];
+    };
+
+    var resolveName = function (path) {
+        path = path.charAt(path.length - 1) === '/' ? path.substring(0, path.length - 1) : path;
+        return path.substring(path.lastIndexOf('/') + 1);
+    };
+
+    var merge = function (def, options) {
+        if (options) {
+            for (var op in def) {
+                if (def.hasOwnProperty(op)) {
+                    def[op] = options[op] || def[op];
+                }
+            }
+        }
+        return def;
+    };
+
+    var Registry = function (serv, options) {
+        var registryService = server.osgiService('org.wso2.carbon.registry.core.service.RegistryService'),
+            carbon = require('carbon');
+        if (options) {
+            this.server = serv;
+        } else {
+            this.server = new server.Server();
+            options = serv || {};
+        }
+
+        if (options.tenantId) {
+            this.tenantId = options.tenantId;
+        } else if (options.username || options.domain) {
+            this.tenantId = server.tenantId({
+                domain: options.domain,
+                username: options.username
+            });
+        } else {
+            this.tenantId = server.tenantId();
+        }
+
+        if (options.username) {
+            this.username = options.username;
+        } else if (options.system) {
+            this.username = carbon.user.systemUser;
+        } else {
+            this.username = carbon.user.anonUser;
+        }
+
+        this.registry = registryService.getRegistry(this.username, this.tenantId);
+        this.versioning = {
+            comments: StaticConfiguration.isVersioningComments()
+        };
+    };
+
+    registry.Registry = Registry;
+
+    Registry.prototype.put = function (path, resource) {
+        var res;
+        if (resource.collection) {
+            res = this.registry.newCollection();
+        } else {
+            res = this.registry.newResource();
+            if (resource.content instanceof Stream) {
+                res.contentStream = resource.content.getStream();
+            } else {
+                res.content = resource.content || null;
+            }
+            res.mediaType = resource.mediaType || null;
+        }
+        res.name = resource.name;
+        res.description = resource.description || null;
+        res.UUID = resource.uuid || null;
+
+        var values, length, i, ArrayList,
+            properties = resource.properties;
+        if (properties) {
+            ArrayList = java.util.ArrayList;
+            for (var name in properties) {
+                var list = new ArrayList();
+                if (properties.hasOwnProperty(name)) {
+                    values = properties[name];
+                    values = values instanceof Array ? values : [values];
+                    length = values.length;
+                    for (i = 0; i < length; i++) {
+                        list.add(values[i]);
+                    }
+                    res.setProperty(name, list);
+                }
+            }
+        }
+
+        var aspects = resource.aspects;
+        if (aspects) {
+            length = aspects.length;
+            for (i = 0; i < length; i++) {
+                res.addAspect(aspects[i]);
+            }
+        }
+
+        this.registry.put(path, res);
+    };
+
+    Registry.prototype.remove = function (path) {
+        this.registry.delete(path);
+    };
+
+    Registry.prototype.move = function (src, dest) {
+        this.registry.move(src, dest);
+    };
+
+    Registry.prototype.rename = function (current, newer) {
+        this.registry.rename(current, newer);
+    };
+
+    Registry.prototype.copy = function (src, dest) {
+        this.registry.copy(src, dest);
+    };
+
+    Registry.prototype.restore = function (path) {
+        this.registry.restoreVersion(path);
+    };
+
+    Registry.prototype.get = function (path) {
+        if (!this.exists(path)) {
+            return null;
+        }
+        var res = this.registry.get(path);
+        return resource(this, res);
+    };
+
+    Registry.prototype.exists = function (path) {
+        return this.registry.resourceExists(path);
+    };
+
+    Registry.prototype.content = function (path, paging) {
+        if (!this.exists(path)) {
+            return null;
+        }
+        var resource = this.registry.get(path);
+        paging = merge({
+            start: 0,
+            count: 10,
+            sort: 'recent'
+        }, paging);
+        return content(this, resource, paging);
+    };
+
+    Registry.prototype.tags = function (path) {
+        var tags, i, length,
+            tagz = [];
+        tags = this.registry.getTags(path);
+        length = tags.length;
+        for (i = 0; i < length; i++) {
+            tagz.push(String(tags[i].tagName));
+        }
+        return tagz;
+    };
+
+    Registry.prototype.tag = function (path, tags) {
+        var i, length;
+        tags = tags instanceof Array ? tags : [tags];
+        length = tags.length;
+        for (i = 0; i < length; i++) {
+            this.registry.applyTag(path, tags[i]);
+        }
+    };
+
+    Registry.prototype.untag = function (path, tags) {
+        var i, length;
+        tags = tags instanceof Array ? tags : [tags];
+        length = tags.length;
+        for (i = 0; i < length; i++) {
+            this.registry.removeTag(path, tags[i]);
+        }
+    };
+
+    Registry.prototype.associate = function (src, dest, type) {
+        this.registry.addAssociation(src, dest, type);
+    };
+
+    Registry.prototype.dissociate = function (src, dest, type) {
+        this.registry.removeAssociation(src, dest, type);
+    };
+
+    Registry.prototype.associations = function (path, type) {
+        var i, asso,
+            assos = type ? this.registry.getAssociations(path, type) : this.registry.getAllAssociations(path),
+            length = assos.length,
+            associations = [];
+        for (i = 0; i < length; i++) {
+            asso = assos[i];
+            associations.push({
+                type: String(asso.associationType),
+                src: String(asso.sourcePath),
+                dest: String(asso.destinationPath)
+            });
+        }
+        return associations;
+    };
+
+    Registry.prototype.addProperty = function (path, name, value) {
+        var resource = this.registry.get(path);
+        resource.addProperty(name, value);
+    };
+
+    Registry.prototype.removeProperty = function (path, name, value) {
+        var resource = this.registry.get(path);
+        (value ? resource.removePropertyValue(name, value) : resource.removeProperty(name));
+    };
+
+    Registry.prototype.properties = function (path) {
+        var resource = this.registry.get(path);
+        return properties(resource);
+    };
+
+    Registry.prototype.version = function (path) {
+        this.registry.createVersion(path);
+    };
+
+    Registry.prototype.versions = function (path) {
+        return this.registry.getVersions(path);
+    };
+
+    Registry.prototype.unversion = function (path, snapshot) {
+        this.registry.removeVersionHistory(path, snapshot);
+    };
+
+    Registry.prototype.comment = function (path, comment) {
+        this.registry.addComment(path, new Comment(comment));
+    };
+
+    Registry.prototype.comments = function (path, paging) {
+        var i, length, comments, comment, key,
+            commentz = [];
+        paging = merge({
+            start: 0,
+            count: 25,
+            sort: 'recent'
+        }, paging);
+
+        comments = this.registry.getComments(path);
+        //we have to manually sort this due to the bug in registry.getChildren() (#1 above)
+        key = paging.sort;
+        key = (key === 'time-created-des' || key === 'time-created-asc') ? key : 'time-created-des';
+        comments = comments.sort(resourceSorter(key));
+        comments = comments.slice(paging.start, paging.start + paging.count);
+        length = comments.length;
+        for (i = 0; i < length; i++) {
+            comment = comments[i];
+            commentz.push({
+                content: comment.getText(),
+                created: {
+                    author: comment.getUser(),
+                    time: comment.getCreatedTime().getTime()
+                },
+                path: comment.getCommentPath()
+            });
+        }
+        return commentz;
+    };
+
+    Registry.prototype.commentCount = function (path) {
+        return this.registry.getComments(path).length;
+    };
+
+    Registry.prototype.uncomment = function (path) {
+        this.registry.removeComment(path);
+    };
+
+    Registry.prototype.rate = function (path, rating) {
+        this.registry.rateResource(path, rating);
+    };
+
+    Registry.prototype.unrate = function (path) {
+        this.registry.rateResource(path, 0);
+    };
+
+    Registry.prototype.rating = function (path, username) {
+        var rating = {
+            average: this.registry.getAverageRating(path)
+        };
+        if (username) {
+            rating.user = this.registry.getRating(path, username);
+        }
+        return rating;
+    };
+
+    Registry.prototype.link = function (path, target) {
+        return this.registry.createLink(path, target);
+    };
+
+    Registry.prototype.unlink = function (path) {
+        return this.registry.removeLink(path);
+    };
+
+    Registry.prototype.search = function (query, paging) {
+        var res = this.registry.searchContent(query);
+        paging = merge({
+            start: 0,
+            count: 10,
+            sort: 'recent'
+        }, paging);
+        return res ? content(this, res, paging) : [];
+    };
+
+    Registry.prototype.query = function (path, params) {
+        var res, name,
+            map = new java.util.HashMap();
+        for (name in params) {
+            if (params.hasOwnProperty(name)) {
+                map.put(name, params[name]);
+            }
+        }
+        res = this.registry.executeQuery(path, map);
+        return res.getChildren();
+    };
+
+}(server, registry));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry-ws.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry-ws.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry-ws.js
new file mode 100644
index 0000000..014a75c
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry-ws.js
@@ -0,0 +1,77 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+var log = new Log();
+
+var Registry = function (server) {
+    this.server = server;
+};
+
+var Resource = function (name) {
+
+};
+
+var Collection = function (name) {
+
+};
+
+Registry.prototype.invoke = function (action, payload) {
+    var options,
+        ws = require('ws'),
+        client = new ws.WSRequest(),
+        server = this.server;
+
+    options = {
+        useSOAP: 1.2,
+        useWSA: 1.0,
+        action: action,
+        HTTPHeaders: [
+            { name: 'Cookie', value: server.cookie }
+        ]
+    };
+
+    try {
+        client.open(options, server.url + '/services/WSRegistryService', false);
+        client.send(payload);
+        return client.responseXML;
+    } catch (e) {
+        log.error(e.toString());
+        throw new Error('Error while invoking action in WSRegistryService : ' +
+            action + ', user : ' + server.user.username);
+    }
+};
+
+Registry.prototype.putResource = function (path, resource) {
+
+};
+
+Registry.prototype.getResource = function (path) {
+    var res, payload,
+        base64 = require('/modules/base64.js');
+
+    payload =
+        <api:getContent xmlns:api="http://api.ws.registry.carbon.wso2.org">
+            <api:path>{path}</api:path>
+        </api:getContent>;
+
+    res = this.invoke('urn:getContent', payload);
+    return base64.decode(String(res.*::['return'].text()));
+};

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry.js
new file mode 100644
index 0000000..43467bc
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/registry/registry.js
@@ -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.
+ *
+*/
+
+var registry = {};
+
+(function (registry) {
+    var ActionConstants = Packages.org.wso2.carbon.registry.core.ActionConstants,
+        AccessControlConstants = Packages.org.wso2.carbon.registry.core.utils.AccessControlConstants;
+
+    registry.Registry = function (server, auth) {
+        var osgi = require('registry-osgi.js').registry,
+            o = new osgi.Registry(server, auth);
+        o.prototype = this;
+        return o;
+    };
+
+    registry.actions = {};
+
+    registry.actions.GET = ActionConstants.GET;
+
+    registry.actions.PUT = ActionConstants.PUT;
+
+    registry.actions.DELETE = ActionConstants.DELETE;
+
+    registry.actions.AUTHORIZE = AccessControlConstants.AUTHORIZE;
+
+}(registry));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/config.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/config.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/config.js
new file mode 100644
index 0000000..fe5078f
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/config.js
@@ -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.
+ *
+*/
+
+(function (server) {
+    var process = require('process'),
+        configDir = 'file:///' + process.getProperty('carbon.config.dir.path').replace(/[\\]/g, '/').replace(/^[\/]/g, '') + '/';
+    server.loadConfig = function (path) {
+        var content,
+            index = path.lastIndexOf('.'),
+            ext = (index !== -1 && index < path.length) ? path.substring(index + 1) : '',
+            file = new File(configDir + path);
+        if (!file.isExists()) {
+            throw new Error('Specified config file does not exists : ' + path);
+        }
+        if (file.isDirectory()) {
+            throw new Error('Specified config file is a directory : ' + path);
+        }
+        file.open('r');
+        content = file.readAll();
+        file.close();
+        switch (ext) {
+            case 'xml' :
+                return new XML(content);
+            case 'json' :
+                return parse(content);
+            case 'properties' :
+            default :
+                return content;
+
+        }
+    };
+
+    server.home = 'file:///' + require('process').getProperty('carbon.home').replace(/[\\]/g, '/').replace(/^[\/]/g, '');
+
+}(server));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/osgi.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/osgi.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/osgi.js
new file mode 100644
index 0000000..2175c23
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/osgi.js
@@ -0,0 +1,31 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+var server = {};
+
+(function (server) {
+    var PrivilegedCarbonContext = Packages.org.wso2.carbon.context.PrivilegedCarbonContext,
+        Class = java.lang.Class;
+
+    server.osgiService = function (clazz) {
+        return PrivilegedCarbonContext.getThreadLocalCarbonContext().getOSGiService(Class.forName(clazz));
+    };
+}(server));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/server.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/server.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/server.js
new file mode 100644
index 0000000..ba6300d
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/server.js
@@ -0,0 +1,115 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+(function (server) {
+    var log = new Log();
+
+    var login = function (url, username, password) {
+        var res, options, payload,
+            ws = require('ws'),
+            client = new ws.WSRequest(),
+            host = url.match(/.*:\/\/([^:\/]*)/)[1];
+
+        options = {
+            useSOAP: 1.2,
+            useWSA: 1.0,
+            action: 'urn:login'
+        };
+
+        payload =
+            <aut:login xmlns:aut="http://authentication.services.core.carbon.wso2.org">
+                <aut:username>{username}</aut:username>
+                <aut:password>{password}</aut:password>
+                <aut:remoteAddress>{host}</aut:remoteAddress>
+            </aut:login>;
+
+        try {
+            client.open(options, url + '/services/AuthenticationAdmin', false);
+            client.send(payload);
+            res = client.responseXML;
+            if (res.*::["return"].text() != 'true') {
+                return false;
+            }
+            return client.getResponseHeader('Set-Cookie');
+        } catch (e) {
+            log.error(e.toString());
+            throw new Error('Error while login to the server : ' + url + ', user : ' + username);
+        }
+    };
+
+    var logout = function (url, cookie) {
+        var options,
+            ws = require('ws'),
+            client = new ws.WSRequest();
+
+        options = {
+            useSOAP: 1.2,
+            useWSA: 1.0,
+            action: 'urn:logout',
+            mep: 'in-only',
+            HTTPHeaders: [
+                { name: 'Cookie', value: cookie }
+            ]
+        };
+
+        try {
+            client.open(options, url + '/services/AuthenticationAdmin', false);
+            client.send(null);
+            return true;
+        } catch (e) {
+            log.error(e.toString());
+            throw new Error('Error while logging out in server : ' + url + ', cookie : ' + cookie);
+        }
+    };
+
+    var Cookie = function (cookie) {
+        this.cookie = cookie;
+    };
+
+    server.Cookie = Cookie;
+
+    var Server = function (options) {
+        this.url = (options && options.url) ? options.url : 'local:/';
+    };
+    server.Server = Server;
+
+    Server.prototype.authenticate = function (username, password) {
+        var realm, user,
+            carbon = require('carbon'),
+            realmService = server.osgiService('org.wso2.carbon.user.core.service.RealmService');
+        user = carbon.server.tenantUser(username);
+        realm = realmService.getTenantUserRealm(user.tenantId);
+	if(realm == null){
+		throw new Error("Invalid domain or unactivated tenant login");
+	}else{
+		return realm.getUserStoreManager().authenticate(user.username, password);
+	}
+    };
+
+    Server.prototype.login = function (username, password) {
+        var cookie = login(this.url, username, password);
+        return new Cookie(cookie);
+    };
+
+    Server.prototype.logout = function (cookie) {
+        return logout(this.url, cookie.cookie);
+    };
+}(server));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/tenant.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/tenant.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/tenant.js
new file mode 100644
index 0000000..255e7d7
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/server/tenant.js
@@ -0,0 +1,70 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+(function (server) {
+    var PrivilegedCarbonContext = Packages.org.wso2.carbon.context.PrivilegedCarbonContext,
+        MultitenantConstants = Packages.org.wso2.carbon.utils.multitenancy.MultitenantConstants,
+        MultitenantUtils = Packages.org.wso2.carbon.utils.multitenancy.MultitenantUtils,
+        realmService = server.osgiService('org.wso2.carbon.user.core.service.RealmService'),
+        tenantManager = realmService.getTenantManager();
+
+    server.tenantDomain = function (options) {
+        if (!options) {
+            return PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain();
+        }
+        if(options.tenantId) {
+            return tenantManager.getDomain(options.tenantId);
+        }
+        if (options.username) {
+            return MultitenantUtils.getTenantDomain(options.username);
+        }
+        if (options.url) {
+            return MultitenantUtils.getTenantDomainFromRequestURL(options.url);
+        }
+        return null;
+    };
+
+    server.tenantId = function (options) {
+        var domain = options ? (options.domain || server.tenantDomain(options)) : server.tenantDomain();
+        return domain ? tenantManager.getTenantId(domain) : null;
+    };
+
+    server.tenantUser = function (username) {
+        var domain = server.tenantDomain({
+                username: username
+            }),
+            id = server.tenantId({
+                domain: domain
+            });
+        username = MultitenantUtils.getTenantAwareUsername(username);
+        return {
+            domain: domain,
+            username: username,
+            tenantId: id
+        };
+    };
+
+    server.superTenant = {
+        tenantId: MultitenantConstants.SUPER_TENANT_ID,
+        domain: MultitenantConstants.SUPER_TENANT_DOMAIN_NAME
+    };
+
+}(server));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/registry-space.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/registry-space.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/registry-space.js
new file mode 100644
index 0000000..9536fb4
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/registry-space.js
@@ -0,0 +1,60 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+(function (server, registry, user) {
+
+    var Space = function (user, space, options) {
+        var serv = new server.Server(options.serverUrl);
+        this.registry = new registry.Registry(serv, {
+            username: options.username || user,
+            domain: options.domain || server.tenantDomain()
+        });
+        this.prefix = options.path + '/' + user + '/' + space;
+        if (!this.registry.exists(this.prefix)) {
+            this.registry.put(this.prefix, {
+                collection: true
+            });
+        }
+    };
+    user.Space = Space;
+
+    Space.prototype.put = function (key, value) {
+        value = (!(value instanceof String) && typeof value !== "string") ? stringify(value) : value;
+        this.registry.put(this.prefix + '/' + key, {
+            content: value
+        });
+    };
+
+    Space.prototype.get = function (key) {
+        var o = this.registry.content(this.prefix + '/' + key);
+        return o ? o.toString() : null;
+    };
+
+    Space.prototype.remove = function (key) {
+        this.registry.remove(this.prefix + '/' + key);
+    };
+
+    Space.prototype.find = function (filter) {
+
+    };
+
+
+}(server, registry, user));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/space.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/space.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/space.js
new file mode 100644
index 0000000..c895cc1
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/space.js
@@ -0,0 +1,31 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+(function (server, user) {
+
+    user.Space = function (user, space, options) {
+        var reg = require('registry-space.js').user,
+            o = new reg.Space(user, space, options);
+        o.prototype = this;
+        return o;
+    };
+
+}(server, user));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/user-manager.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/user-manager.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/user-manager.js
new file mode 100644
index 0000000..56833b9
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/user-manager.js
@@ -0,0 +1,179 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+(function (server, user) {
+
+    var log = new Log();
+
+    var processPerms = function (perms, fn) {
+        var perm, actions, i, length;
+        for (perm in perms) {
+            if (perms.hasOwnProperty(perm)) {
+                actions = perms[perm];
+                length = actions.length;
+                for (i = 0; i < length; i++) {
+                    fn(perm, actions[i]);
+                }
+            }
+        }
+    };
+
+    var UserManager = function (serv, tenantId) {
+        this.server = serv;
+        this.tenantId = tenantId || server.superTenant.tenantId;
+        var realmService = server.osgiService('org.wso2.carbon.user.core.service.RealmService'),
+            realm = realmService.getTenantUserRealm(this.tenantId);
+        this.manager = realm.getUserStoreManager();
+        this.authorizer = realm.getAuthorizationManager();
+    };
+    user.UserManager = UserManager;
+
+    UserManager.prototype.getUser = function (username) {
+        if (!this.manager.isExistingUser(username)) {
+            return null;
+        }
+        return new user.User(this, username);
+    };
+    UserManager.prototype.getRoleListOfUser = function (username) {
+	        return this.manager.getRoleListOfUser(username);
+	    };
+    UserManager.prototype.addUser = function (username, password, roles, claims, profile) {
+        this.manager.addUser(username, password, roles || [], claims || null, profile);
+    };
+
+    UserManager.prototype.removeUser = function (username) {
+        this.manager.deleteUser(username);
+    };
+
+    UserManager.prototype.userExists = function (username) {
+        return this.manager.isExistingUser(username);
+    };
+
+    UserManager.prototype.roleExists = function (role) {
+        return this.manager.isExistingRole(role);
+    };
+	UserManager.prototype.updateRole = function (previousRoleName, newRoleName) {
+        return this.manager.updateRoleName(previousRoleName, newRoleName);
+    };
+    UserManager.prototype.getClaims = function (username, profile) {
+        return this.manager.getUserClaimValues(username, profile);
+    };
+	UserManager.prototype.getClaimsForSet = function (username,claims, profile) {
+        return this.manager.getUserClaimValues(username,claims, profile);
+    };
+    UserManager.prototype.getClaim = function (username, claim, profile) {
+        return this.manager.getUserClaimValue(username, claim, profile);
+    };
+
+    UserManager.prototype.setClaims = function (username, claims, profile) {
+        return this.manager.setUserClaimValues(username, claims, profile);
+    };
+
+    UserManager.prototype.setClaim = function (username, claim, value, profile) {
+        return this.manager.setUserClaimValue(username, claim, value, profile);
+    };
+
+    UserManager.prototype.isAuthorized = function (role, permission, action) {
+        return this.authorizer.isRoleAuthorized(role, permission, action);
+    };
+ 	UserManager.prototype.updateRoleListOfUser = function(name, deletedRoles, newRoles){
+    return this.manager.updateRoleListOfUser(name, deletedRoles, newRoles);
+    };
+    UserManager.prototype.updateUserListOfRole = function(name, deletedUsers, newUsers){
+    return this.manager.updateUserListOfRole(name, deletedUsers, newUsers);
+    };
+	UserManager.prototype.listUsers = function () {
+        return this.manager.listUsers("*", -1);
+    };
+    UserManager.prototype.addRole = function (role, users, permissions) {
+        var perms = [],
+            Permission = Packages.org.wso2.carbon.user.api.Permission;
+        processPerms(permissions, function (id, action) {
+            perms.push(new Permission(id, action));
+        });
+        this.manager['addRole(java.lang.String,java.lang.String[],org.wso2.carbon.user.api.Permission[])']
+            (role, users, perms);
+    };
+
+    UserManager.prototype.removeRole = function (role) {
+        this.manager.deleteRole(role);
+    };
+
+    UserManager.prototype.allRoles = function () {
+        return this.manager.getRoleNames();
+    };
+	UserManager.prototype.getUserListOfRole = function (role) {
+        return this.manager.getUserListOfRole(role);
+    };
+    /**
+     * um.authorizeRole('store-admin', '/permissions/mypermission', 'ui-execute');
+     *
+     * um.authorizeRole('store-admin', {
+     *      '/permissions/myperm1' : ['read', 'write'],
+     *      '/permissions/myperm2' : ['read', 'write']
+     * });
+     *
+     * @param role
+     * @param permission
+     * @param action
+     */
+    UserManager.prototype.authorizeRole = function (role, permission, action) {
+        var that = this;
+        if (permission instanceof String || typeof permission === 'string') {
+            if (!that.isAuthorized(role, permission, action)) {
+                that.authorizer.authorizeRole(role, permission, action);
+            }
+        } else {
+            processPerms(permission, function (id, action) {
+                if (!that.isAuthorized(role, id, action)) {
+                    that.authorizer.authorizeRole(role, id, action);
+                    if (log.isDebugEnabled()) {
+                        log.debug('permission added(role:permission:action) - ' + role + ':' + id + ':' + action);
+                    }
+                }
+            });
+        }
+    };
+
+    /**
+     * um.denyRole('store-admin', '/permissions/mypermission', 'ui-execute');
+     *
+     * um.denyRole('store-admin', {
+     *      '/permissions/myperm1' : ['read', 'write'],
+     *      '/permissions/myperm2' : ['read', 'write']
+     * });
+     *
+     * @param role
+     * @param permission
+     * @param action
+     */
+    UserManager.prototype.denyRole = function (role, permission, action) {
+        var deny = this.authorizer.denyRole;
+        if (permission instanceof String || typeof permission === 'string') {
+            deny(role, permission, action);
+        } else {
+            processPerms(permission, function (id, action) {
+                deny(role, id, action);
+            });
+        }
+    };
+
+}(server, user));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/user.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/user.js b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/user.js
new file mode 100644
index 0000000..66b253d
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/carbon/scripts/user/user.js
@@ -0,0 +1,99 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+var user = {};
+
+(function (user) {
+
+    var CarbonConstants = Packages.org.wso2.carbon.CarbonConstants;
+
+    user.systemUser = CarbonConstants.REGISTRY_SYSTEM_USERNAME;
+
+    user.anonUser = CarbonConstants.REGISTRY_ANONNYMOUS_USERNAME;
+
+    user.anonRole = CarbonConstants.REGISTRY_ANONNYMOUS_ROLE_NAME;
+
+    var User = function (manager, username) {
+        this.um = manager;
+        this.tenantId = manager.tenantId;
+        this.username = username;
+    };
+    user.User = User;
+
+    User.prototype.getClaims = function (profile) {
+        return this.um.getClaims(this.username, profile);
+    };
+ 	User.prototype.getClaimsForSet = function (claims,profile) {
+        return this.um.getClaimsForSet(this.username, claims, profile);
+    };
+
+    User.prototype.setClaims = function (claims, profile) {
+        this.um.setClaims(this.username, claims, profile);
+    };
+
+    User.prototype.getRoles = function () {
+        return this.um.manager.getRoleListOfUser(this.username);
+    };
+
+    User.prototype.hasRoles = function (roles) {
+        var i, j, role,
+            rs = this.getRoles(),
+            length1 = roles.length,
+            length2 = rs.length;
+        L1:
+            for (i = 0; i < length1; i++) {
+                //Array.indexOf() fails due to Java String vs JS String difference
+                role = roles[i];
+                for (j = 0; j < length2; j++) {
+                    if (role == rs[j]) {
+                        continue L1;
+                    }
+                }
+                return false;
+            }
+        return true;
+    };
+
+    User.prototype.addRoles = function (roles) {
+        return this.um.manager.updateRoleListOfUser(this.username, [], roles);
+    };
+
+    User.prototype.removeRoles = function (roles) {
+        return this.um.manager.updateRoleListOfUser(this.username, roles, []);
+    };
+
+    User.prototype.updateRoles = function (remove, add) {
+        return this.um.manager.updateRoleListOfUser(this.username, remove, add);
+    };
+
+    User.prototype.isAuthorized = function (permission, action) {
+        var i,
+            roles = this.getRoles(),
+            length = roles.length;
+        for (i = 0; i < length; i++) {
+            if (this.um.authorizer.isRoleAuthorized(roles[i], permission, action)) {
+                return true;
+            }
+        }
+        return false;
+    };
+
+}(user));

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar b/products/stratos/modules/distribution/src/main/temp-artifacts/org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar
new file mode 100644
index 0000000..60f6f07
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/temp-artifacts/org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/org.wso2.store.sso.common_1.0.0.jar
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/org.wso2.store.sso.common_1.0.0.jar b/products/stratos/modules/distribution/src/main/temp-artifacts/org.wso2.store.sso.common_1.0.0.jar
new file mode 100644
index 0000000..4a74e5b
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/temp-artifacts/org.wso2.store.sso.common_1.0.0.jar differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/org.wso2.stratos.identity.saml2.sso.mgt_2.2.0.jar
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/org.wso2.stratos.identity.saml2.sso.mgt_2.2.0.jar b/products/stratos/modules/distribution/src/main/temp-artifacts/org.wso2.stratos.identity.saml2.sso.mgt_2.2.0.jar
new file mode 100644
index 0000000..29a9fb7
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/temp-artifacts/org.wso2.stratos.identity.saml2.sso.mgt_2.2.0.jar differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/sso/module.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/sso/module.xml b/products/stratos/modules/distribution/src/main/temp-artifacts/sso/module.xml
new file mode 100644
index 0000000..159203b
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/sso/module.xml
@@ -0,0 +1,28 @@
+<?xml version='1.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.
+
+-->
+
+<module name="sso" xmlns="http://wso2.org/projects/jaggery/module.xml">
+    <script>
+        <name>client</name>
+        <path>scripts/sso.client.js</path>
+    </script>
+</module>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/temp-artifacts/sso/scripts/sso.client.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/temp-artifacts/sso/scripts/sso.client.js b/products/stratos/modules/distribution/src/main/temp-artifacts/sso/scripts/sso.client.js
new file mode 100644
index 0000000..9553220
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/temp-artifacts/sso/scripts/sso.client.js
@@ -0,0 +1,193 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+/**
+ * Following module act as a client to create a saml request and also to
+ * unwrap and return attributes of a returning saml response
+ * @type {{}}
+ */
+
+var client = {};
+
+(function (client) {
+
+    var Util = Packages.org.wso2.store.sso.common.util.Util,
+        carbon = require('carbon'),
+        log = new Log();
+
+    /**
+     * obtains an encoded saml response and return a decoded/unmarshalled saml obj
+     * @param samlResp
+     * @return {*}
+     */
+    client.getSamlObject = function (samlResp) {
+        var decodedResp = Util.decode(samlResp);
+        return Util.unmarshall(decodedResp);
+    };
+
+    /**
+     * validating the signature of the response saml object
+     */
+    client.validateSignature = function (samlObj, config) {
+        var tDomain = Util.getDomainName(samlObj);
+        var tId = carbon.server.tenantId({domain: tDomain});
+
+        return Util.validateSignature(samlObj,
+            config.KEY_STORE_NAME, config.KEY_STORE_PASSWORD, config.IDP_ALIAS, tId, tDomain);
+    };
+
+    /**
+     * Checking if the request is a logout call
+     */
+    client.isLogoutRequest = function (samlObj) {
+        return samlObj instanceof Packages.org.opensaml.saml2.core.LogoutRequest;
+    };
+
+    /**
+     * Checking if the request is a logout call
+     */
+    client.isLogoutResponse = function (samlObj) {
+        return samlObj instanceof Packages.org.opensaml.saml2.core.LogoutResponse;
+    };
+
+    /**
+     * getting url encoded saml authentication request
+     * @param issuerId
+     */
+    client.getEncodedSAMLAuthRequest = function (issuerId) {
+        return Util.encode(
+            Util.marshall(
+                new Packages.org.wso2.store.sso.common.builders.AuthReqBuilder().buildAuthenticationRequest(issuerId)
+            ));
+    };
+
+    /**
+     * get url encoded saml logout request
+     */
+    client.getEncodedSAMLLogoutRequest = function (user, sessionIndex, issuerId) {
+        return Util.encode(
+            Util.marshall(
+                new Packages.org.wso2.store.sso.common.builders.LogoutRequestBuilder().buildLogoutRequest(user, sessionIndex,
+                    Packages.org.wso2.store.sso.common.constants.SSOConstants.LOGOUT_USER,
+                    issuerId)));
+    };
+
+    /**
+     * Reads the returning SAML login response and populates a session info object
+     */
+    client.decodeSAMLLoginResponse = function (samlObj, samlResp, sessionId) {
+        var samlSessionObj = {
+            // sessionId, loggedInUser, sessionIndex, samlToken
+        };
+
+        if (samlObj instanceof Packages.org.opensaml.saml2.core.Response) {
+
+            var assertions = samlObj.getAssertions();
+
+            // extract the session index
+            if (assertions != null && assertions.size() > 0) {
+                var authenticationStatements = assertions.get(0).getAuthnStatements();
+                var authnStatement = authenticationStatements.get(0);
+                if (authnStatement != null) {
+                    if (authnStatement.getSessionIndex() != null) {
+                        samlSessionObj.sessionIndex = authnStatement.getSessionIndex();
+                    }
+                }
+            }
+
+            // extract the username
+            if (assertions != null && assertions.size() > 0) {
+                var subject = assertions.get(0).getSubject();
+                var samlAssertion = assertions.get(0);
+                if (subject != null) {
+                    if (subject.getNameID() != null) {
+                        samlSessionObj.loggedInUser = subject.getNameID().getValue();
+                    }
+                }
+            }
+            samlSessionObj.sessionId = sessionId;
+            samlSessionObj.samlToken = samlResp;
+        }
+
+        return samlSessionObj;
+    };
+
+    client.getURLencodedB64EncodedSAML2Token = function(samlObj){
+          var saml2Token = {
+              // URLEncodedB64
+          };
+        if (samlObj instanceof Packages.org.opensaml.saml2.core.Response) {
+            saml2Token.URLEncodedB64 = Util.getURLEncodedB64SAML2Token(samlObj);
+        }
+        return saml2Token;
+    };
+
+    client.getB64EncodedtSAMLAssertion = function(samlObj){
+        var saml2Token = {
+            // URLEncodedB64
+        };
+        if (samlObj instanceof Packages.org.opensaml.saml2.core.Response) {
+            saml2Token.b64Encoded = Util.getB64EncodedtSAMLAssertion(samlObj);
+        }
+        return saml2Token;
+    };
+
+
+    client.b64encode = function(str){
+       return Util.encode(str);
+    };
+
+    /**
+     * This method is to get the session index when a single logout happens
+     * The IDP sends a logout request to the ACS with the session index, so that
+     * the app can invalidate the associated HTTP Session
+     */
+    client.decodeSAMLLogoutRequest = function (samlObj) {
+        var sessionIndex = null;
+
+        if (samlObj instanceof org.opensaml.saml2.core.LogoutRequest) {
+            var sessionIndexes = samlObj.getSessionIndexes();
+            if (sessionIndexes != null && sessionIndexes.size() > 0) {
+                sessionIndex = sessionIndexes.get(0).getSessionIndex();
+            }
+        }
+
+        return sessionIndex;
+
+    };
+
+    client.getTenantDomain = function (samlObj) {
+        var tDomain = Util.getDomainName(samlObj);
+        return tDomain;
+    };
+
+    client.getRoleList = function(samlObj) {
+        var roleObj = [];
+        var roleString = Util.getRoles(samlObj);
+        log.info("role string : " + roleString);
+        var roleSplit = roleString.split(",");
+        for(var i=0; i < roleSplit.length;i++){
+            roleObj.push(roleSplit[i].trim());
+        }
+        return roleObj;
+    };
+
+}(client));


[4/9] stratos git commit: Removing unnecessary features, artifacts and restructuring distribution artifacts

Posted by ra...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/lib/home/js/jquery.orbit-1.2.3.min.js
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/lib/home/js/jquery.orbit-1.2.3.min.js b/products/stratos/modules/distribution/lib/home/js/jquery.orbit-1.2.3.min.js
deleted file mode 100755
index 13acb8d..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/modules/distribution/lib/home/js/orbit-1.2.3.css
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/lib/home/js/orbit-1.2.3.css b/products/stratos/modules/distribution/lib/home/js/orbit-1.2.3.css
deleted file mode 100644
index 90ecd2d..0000000
--- a/products/stratos/modules/distribution/lib/home/js/orbit-1.2.3.css
+++ /dev/null
@@ -1,223 +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.
- *
-*/
-
-/* 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; }

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

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

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

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

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

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

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/lib/home/style.css
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/lib/home/style.css b/products/stratos/modules/distribution/lib/home/style.css
deleted file mode 100644
index c98a894..0000000
--- a/products/stratos/modules/distribution/lib/home/style.css
+++ /dev/null
@@ -1,181 +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.
- *
-*/
-
-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/stratos/blob/8d321a26/products/stratos/modules/distribution/qpid-resources/etc/config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/qpid-resources/etc/config.xml b/products/stratos/modules/distribution/qpid-resources/etc/config.xml
deleted file mode 100755
index a54dd98..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/modules/distribution/qpid-resources/etc/jmxremote.access
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/qpid-resources/etc/jmxremote.access b/products/stratos/modules/distribution/qpid-resources/etc/jmxremote.access
deleted file mode 100755
index f496e92..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/modules/distribution/qpid-resources/etc/virtualhosts.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/qpid-resources/etc/virtualhosts.xml b/products/stratos/modules/distribution/qpid-resources/etc/virtualhosts.xml
deleted file mode 100755
index f55e8c8..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/modules/distribution/qpid-resources/qpid.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/qpid-resources/qpid.xml b/products/stratos/modules/distribution/qpid-resources/qpid.xml
deleted file mode 100755
index 086fb08..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/modules/distribution/src/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/assembly/bin.xml b/products/stratos/modules/distribution/src/assembly/bin.xml
index 08de3f9..623e49b 100755
--- a/products/stratos/modules/distribution/src/assembly/bin.xml
+++ b/products/stratos/modules/distribution/src/assembly/bin.xml
@@ -57,7 +57,8 @@
         </fileSet>
         <!-- Copying p2 profile and osgi bundles-->
         <fileSet>
-            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/components</directory>
+            <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>
@@ -85,7 +86,9 @@
             </excludes>
         </fileSet>
         <fileSet>
-            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/jaggeryapps</directory>
+            <directory>
+                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/jaggeryapps
+            </directory>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps</outputDirectory>
             <excludes>
                 <exclude>**/publisher/**</exclude>
@@ -106,14 +109,16 @@
         </fileSet>
         <fileSet>
             <directory>../../../../components/org.apache.stratos.manager.console/console</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps/console</outputDirectory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps/console
+            </outputDirectory>
             <excludes>
                 <exclude>**/README</exclude>
             </excludes>
         </fileSet>
         <fileSet>
             <directory>../../../../components/org.apache.stratos.manager.console/sso</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps/sso</outputDirectory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps/sso
+            </outputDirectory>
         </fileSet>
         <fileSet>
             <directory>../../../../components/org.apache.stratos.manager.console/modules/console</directory>
@@ -135,140 +140,20 @@
             </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>**/temp-artifacts/**</exclude>
-                <exclude>tenant-mgt.xml</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>
-                <exclude>**/data-bridge/**</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>
+
         <!-- Copying themes, cloud icons-->
         <fileSet>
-            <directory>../../resources</directory>
+            <directory>src/main/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>
+
+        <!-- ADC management related files -->
         <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>**/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-->
             <directory>src/main/conf/</directory>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
             <includes>
@@ -283,7 +168,7 @@
                 <include>policies.xsd</include>
             </includes>
         </fileSet>
-        <!-- end of adc.mgt related files -->
+
         <!-- axis2.xml -->
         <fileSet>
             <directory>src/main/conf/</directory>
@@ -307,32 +192,13 @@
             </includes>
         </fileSet>
         <fileSet>
-            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/multitenancy/</directory>
+            <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>**/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>
@@ -381,11 +247,13 @@
                 <include>*/**</include>
             </includes>
         </fileSet>
+
         <!-- copy the billing h2 db -->
         <fileSet>
             <directory>target/database</directory>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/database</outputDirectory>
         </fileSet>
+
         <!-- Kernel Patches-->
         <fileSet>
             <directory>../p2-profile-gen/target/WSO2-CARBON-PATCH-4.2.0-0001</directory>
@@ -449,40 +317,25 @@
                 <include>**/patch0008/*.*</include>
             </includes>
         </fileSet>
-        <!--
-		<fileSet>
-                   <directory>../../dbscripts/</directory>
-                   <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts</outputDirectory>
-                </fileSet>
--->
+
+        <!-- Jaggery modules -->
         <fileSet>
-            <directory>../../payload</directory>
-            <includes>
-                <include>user-data</include>
-            </includes>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources</outputDirectory>
-        </fileSet>
-        <fileSet>
-            <directory>../../payload/user-data/</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/user-data</outputDirectory>
-        </fileSet>
-        <fileSet>
-            <directory>../../conf/temp-artifacts/sso</directory>
+            <directory>src/main/temp-artifacts/sso</directory>
             <outputDirectory>${pom.artifactId}-${pom.version}/modules/sso</outputDirectory>
         </fileSet>
         <fileSet>
-            <directory>../../conf/temp-artifacts/carbon</directory>
+            <directory>src/main/temp-artifacts/carbon</directory>
             <outputDirectory>${pom.artifactId}-${pom.version}/modules/carbon</outputDirectory>
         </fileSet>
         <fileSet>
-            <directory>../../conf/temp-artifacts</directory>
+            <directory>src/main/temp-artifacts</directory>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/plugins</outputDirectory>
             <includes>
                 <include>org.wso2.store.sso.common_1.0.0.jar</include>
             </includes>
         </fileSet>
         <fileSet>
-            <directory>../../conf/temp-artifacts</directory>
+            <directory>src/main/temp-artifacts</directory>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/plugins</outputDirectory>
             <includes>
                 <include>org.wso2.stratos.identity.saml2.sso.mgt_2.2.0.jar</include>
@@ -490,44 +343,52 @@
         </fileSet>
         <!-- autoscaler -->
         <fileSet>
-            <directory>../../conf/temp-artifacts</directory>
+            <directory>src/main/temp-artifacts</directory>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/plugins</outputDirectory>
             <includes>
                 <include>org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar</include>
             </includes>
         </fileSet>
+
         <!-- cep -->
         <!--creating an empty input event adaptors directory-->
         <fileSet>
             <directory>../../../../extensions/cep/artifacts/inputeventadaptors</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/inputeventadaptors</outputDirectory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/inputeventadaptors
+            </outputDirectory>
         </fileSet>
         <!--creating an empty output event adaptors directory-->
         <fileSet>
             <directory>../../../../extensions/cep/artifacts/outputeventadaptors</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/outputeventadaptors</outputDirectory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/outputeventadaptors
+            </outputDirectory>
         </fileSet>
         <!--creating an empty event builders directory-->
         <fileSet>
             <directory>../../../../extensions/cep/artifacts/eventbuilders</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/eventbuilders</outputDirectory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/eventbuilders
+            </outputDirectory>
         </fileSet>
         <!--creating an empty event formatters directory-->
         <fileSet>
             <directory>../../../../extensions/cep/artifacts/eventformatters</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/eventformatters</outputDirectory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/eventformatters
+            </outputDirectory>
         </fileSet>
         <!--creating an empty execution plans directory-->
         <fileSet>
             <directory>../../../../extensions/cep/artifacts/executionplans</directory>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/executionplans</outputDirectory>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/executionplans
+            </outputDirectory>
         </fileSet>
         <!--customization scripts-->
         <fileSet>
-            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/scripts</directory>
+            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/scripts
+            </directory>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/scripts</outputDirectory>
         </fileSet>
     </fileSets>
+
     <dependencySets>
         <dependencySet>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/lib</outputDirectory>
@@ -583,6 +444,7 @@
             </includes>
         </dependencySet>
     </dependencySets>
+
     <files>
         <file>
             <source>src/main/conf/log4j.properties</source>
@@ -590,6 +452,48 @@
             <filtered>true</filtered>
             <fileMode>600</fileMode>
         </file>
+        <file>
+            <source>src/main/conf/jndi.properties</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>600</fileMode>
+        </file>
+        <file>
+            <source>src/main/conf/tenant-mgt.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>600</fileMode>
+        </file>
+        <file>
+            <source>src/main/conf/registry.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>600</fileMode>
+        </file>
+        <file>
+            <source>src/main/conf/user-mgt.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>600</fileMode>
+        </file>
+        <file>
+            <source>src/main/conf/mqtttopic.properties</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>600</fileMode>
+        </file>
+        <file>
+            <source>src/main/conf/event-broker.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>600</fileMode>
+        </file>
+        <file>
+            <source>src/main/conf/sso-idp-config.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>600</fileMode>
+        </file>
         <!-- cep -->
         <file>
             <source>src/main/conf/siddhi/siddhi.extension</source>
@@ -603,7 +507,9 @@
         </file>
         <!-- cloud-controller -->
         <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cloud-controller.xml</source>
+            <source>
+                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cloud-controller.xml
+            </source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
         </file>
         <!-- cloud-controller -->
@@ -620,7 +526,7 @@
             <filtered>true</filtered>
             <fileMode>600</fileMode>
         </file>
-        <!--iindentity.xml and application-authentication.xml for oAuth feature -->
+        <!-- identity.xml and application-authentication.xml for oAuth feature -->
         <file>
             <source>src/main/conf/identity.xml</source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
@@ -634,6 +540,12 @@
             <fileMode>600</fileMode>
         </file>
         <file>
+            <source>src/main/conf/application-authenticators.xml</source>
+            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
+            <filtered>true</filtered>
+            <fileMode>600</fileMode>
+        </file>
+        <file>
             <source>src/main/conf/security/client-truststore.jks</source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/security/</outputDirectory>
             <filtered>false</filtered>
@@ -689,13 +601,7 @@
             <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>src/main/resources/launch.ini</source>
+            <source>src/main/conf/etc/launch.ini</source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
             <filtered>true</filtered>
             <fileMode>644</fileMode>
@@ -712,55 +618,37 @@
             <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>
         <!-- copy custome webapp classLoading files -->
         <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/webapp-classloading.xml</source>
+            <source>
+                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/webapp-classloading.xml
+            </source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/tomcat</outputDirectory>
             <filtered>true</filtered>
             <fileMode>644</fileMode>
         </file>
         <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/webapp-classloading-environments.xml</source>
+            <source>
+                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/webapp-classloading-environments.xml
+            </source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/tomcat</outputDirectory>
             <filtered>true</filtered>
             <fileMode>644</fileMode>
         </file>
         <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/context.xml</source>
+            <source>
+                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/context.xml
+            </source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/tomcat</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>${project.basedir}/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>target/wso2carbon-core-${carbon.kernel.version}/bin/README.txt</source>
             <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
@@ -773,32 +661,18 @@
             <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>
+            <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>
+            <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>
@@ -814,134 +688,87 @@
             <fileMode>755</fileMode>
         </file>
         <file>
-            <source>src/bin/git-folder-structure.sh</source>
-            <outputDirectory>apache-stratos-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-        <file>
-            <source>src/bin/manage-git-repo.sh</source>
-            <outputDirectory>apache-stratos-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-        <file>
-            <source>src/bin/set-mysql-password.sh</source>
-            <outputDirectory>apache-stratos-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-        <file>
-            <source>src/bin/add_entry_zone_file.sh</source>
-            <outputDirectory>apache-stratos-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-        <file>
-            <source>src/bin/remove_entry_zone_file.sh</source>
-            <outputDirectory>apache-stratos-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-        <file>
-            <source>src/bin/update-instance.sh</source>
-            <outputDirectory>apache-stratos-${pom.version}/bin/</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>755</fileMode>
-        </file>
-        <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/claim-config.xml</source>
+            <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/etc/tasks-config.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
-        </file>
-        <file>
-            <source>../../conf/zoo.cfg</source>
+            <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/jaas.conf</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/security</outputDirectory>
-            <destName>jaas.conf</destName>
-            <filtered>true</filtered>
-        </file>
-        <file>
-            <source>../../conf/tenant-mgt.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
-            <filtered>true</filtered>
-            <fileMode>644</fileMode>
-        </file>
-        <!--Application authenticators -->
-        <file>
-            <source>../../conf/application-authenticators.xml</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/security/</outputDirectory>
-            <fileMode>644</fileMode>
-        </file>
         <!-- REST endpoint webapp -->
         <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/api.war</source>
+            <source>
+                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/api.war
+            </source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/</outputDirectory>
             <fileMode>644</fileMode>
         </file>
         <!-- Mock iaas webapp -->
         <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/mock-iaas.war</source>
+            <source>
+                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/mock-iaas.war
+            </source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/</outputDirectory>
             <fileMode>644</fileMode>
         </file>
         <!--oauth2.war and authenticationendpoint.war is related to oAuth feature  -->
         <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/oauth2.war</source>
+            <source>
+                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/oauth2.war
+            </source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/</outputDirectory>
             <fileMode>644</fileMode>
         </file>
         <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/authenticationendpoint.war</source>
+            <source>
+                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/authenticationendpoint.war
+            </source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/</outputDirectory>
             <fileMode>644</fileMode>
         </file>
         <!-- End of REST endpoint webapp -->
         <!-- Meta data service webapp -->
         <file>
-            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/metadata.war</source>
+            <source>
+                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/metadata.war
+            </source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/</outputDirectory>
             <fileMode>644</fileMode>
         </file>
         <!-- End of Meta data service webapp -->
         <file>
-            <source>../../conf/data-bridge/data-bridge-config.xml</source>
+            <source>src/main/conf/data-bridge/data-bridge-config.xml</source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/data-bridge/</outputDirectory>
             <fileMode>644</fileMode>
         </file>
         <file>
-            <source>../../conf/data-bridge/thrift-agent-config.xml</source>
+            <source>src/main/conf/data-bridge/thrift-agent-config.xml</source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/data-bridge/</outputDirectory>
             <fileMode>644</fileMode>
         </file>
         <file>
-            <source>../../conf/thrift-client-config.xml</source>
+            <source>src/main/conf/thrift-client-config.xml</source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
             <fileMode>644</fileMode>
         </file>
-        <!--Copying config files from kernel patches -->
-        <!--
-        <file>
-            <source>../p2-profile-gen/target/WSO2-CARBON-PATCH-4.2.0-0001/dbscripts/mysql.sql</source>
-            <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts/registry</outputDirectory>
-            <filtered>true</filtered>
-        </file>
--->
+
+        <!-- Kernel patches configuration -->
         <file>
-            <source>../p2-profile-gen/target/WSO2-CARBON-PATCH-4.2.0-0002/repository/conf/security/cipher-text.properties</source>
+            <source>
+                ../p2-profile-gen/target/WSO2-CARBON-PATCH-4.2.0-0002/repository/conf/security/cipher-text.properties
+            </source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/security/</outputDirectory>
             <filtered>true</filtered>
         </file>
         <file>
-            <source>../p2-profile-gen/target/WSO2-CARBON-PATCH-4.2.0-0002/repository/conf/security/cipher-tool.properties</source>
+            <source>
+                ../p2-profile-gen/target/WSO2-CARBON-PATCH-4.2.0-0002/repository/conf/security/cipher-tool.properties
+            </source>
             <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/security/</outputDirectory>
             <filtered>true</filtered>
         </file>
@@ -951,4 +778,4 @@
             <filtered>true</filtered>
         </file>
     </files>
-</assembly>
+</assembly>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/assembly/filter.properties
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/assembly/filter.properties b/products/stratos/modules/distribution/src/assembly/filter.properties
index 7748c21..866e34e 100755
--- a/products/stratos/modules/distribution/src/assembly/filter.properties
+++ b/products/stratos/modules/distribution/src/assembly/filter.properties
@@ -19,8 +19,8 @@
 
 product.name=Apache Stratos
 product.key=STRATOS
-product.version=4.1.1
+product.version=4.1.2
 hotdeployment=true
 hotupdate=false
 carbon.version=4.2.0
-default.server.role=Stratos
+default.server.role=Stratos
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/application-authenticators.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/application-authenticators.xml b/products/stratos/modules/distribution/src/main/conf/application-authenticators.xml
new file mode 100644
index 0000000..5a12e34
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/conf/application-authenticators.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.
+  -->
+
+<Authenticators>
+	<Authenticator name="BasicAuthenticator" disabled="false" factor="1">
+		<Status value="10" loginPage="/sso/login" />
+	</Authenticator>
+</Authenticators>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/data-bridge/data-bridge-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/data-bridge/data-bridge-config.xml b/products/stratos/modules/distribution/src/main/conf/data-bridge/data-bridge-config.xml
new file mode 100644
index 0000000..33f9905
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/conf/data-bridge/data-bridge-config.xml
@@ -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.
+  -->
+
+<dataBridgeConfiguration xmlns="http://wso2.org/carbon/databridge">
+
+    <!--<StreamDefinitionStore>org.wso2.carbon.databridge.streamdefn.cassandra.datastore.CassandraStreamDefinitionStore</StreamDefinitionStore>-->
+    <StreamDefinitionStore>org.wso2.carbon.databridge.streamdefn.registry.datastore.RegistryStreamDefinitionStore</StreamDefinitionStore>
+
+    <workerThreads>10</workerThreads>
+    <eventBufferCapacity>10000</eventBufferCapacity>
+    <clientTimeoutMS>30000</clientTimeoutMS>
+    <keySpaceName>EVENT_KS</keySpaceName>
+
+    <!-- Default configuration for thriftDataReceiver -->
+    <thriftDataReceiver>
+        <hostName>0.0.0.0</hostName>
+        <port>7611</port>
+        <securePort>7711</securePort>
+    </thriftDataReceiver>
+
+    <!--<streamDefinitions>
+        <streamDefinition>
+            {
+             'name':'org.wso2.esb.MediatorStatistics',
+             'version':'1.3.0',
+             'nickName': 'Stock Quote Information',
+             'description': 'Some Desc',
+             'metaData':[
+             {'name':'ipAdd','type':'STRING'}
+             ],
+             'payloadData':[
+             {'name':'symbol','type':'STRING'},
+             {'name':'price','type':'DOUBLE'},
+             {'name':'volume','type':'INT'},
+             {'name':'max','type':'DOUBLE'},
+             {'name':'min','type':'Double'}
+             ]
+            }
+        </streamDefinition>
+        <streamDefinition domainName="wso2">
+            {
+             'name':'org.wso2.esb.MediatorStatistics',
+             'version':'1.3.4',
+             'nickName': 'Stock Quote Information',
+             'description': 'Some Other Desc',
+             'metaData':[
+             {'name':'ipAdd','type':'STRING'}
+             ],
+             'payloadData':[
+             {'name':'symbol','type':'STRING'},
+             {'name':'price','type':'DOUBLE'},
+             {'name':'volume','type':'INT'}
+             ]
+            }
+        </streamDefinition>
+    </streamDefinitions>-->
+
+</dataBridgeConfiguration>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/data-bridge/thrift-agent-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/data-bridge/thrift-agent-config.xml b/products/stratos/modules/distribution/src/main/conf/data-bridge/thrift-agent-config.xml
new file mode 100644
index 0000000..628909f
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/conf/data-bridge/thrift-agent-config.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.
+  -->
+
+
+
+<thriftAgentConfiguration xmlns="http://wso2.org/carbon/databridge/agent/thrift">
+
+    <bufferedEventsSize>20000</bufferedEventsSize>
+
+    <poolSize>50</poolSize>
+    <maxPoolSize>50</maxPoolSize>
+
+    <maxTransportPoolSize>250</maxTransportPoolSize>
+    <maxIdleConnections>250</maxIdleConnections>
+    <evictionTimePeriod>5500</evictionTimePeriod>
+    <minIdleTimeInPool>5000</minIdleTimeInPool>
+
+    <secureMaxTransportPoolSize>250</secureMaxTransportPoolSize>
+    <secureMaxIdleConnections>250</secureMaxIdleConnections>
+    <secureEvictionTimePeriod>5500</secureEvictionTimePeriod>
+    <secureMinIdleTimeInPool>5000</secureMinIdleTimeInPool>
+
+    <maxMessageBundleSize>100</maxMessageBundleSize>
+    <asyncDataPublisherBufferedEventSize>10000</asyncDataPublisherBufferedEventSize>
+    <loadBalancingReconnectionInterval>30</loadBalancingReconnectionInterval>
+    <!--<trustStore>
+        .../wso2cep-1.0.0/repository/resources/security/client-truststore.jks
+    </trustStore>
+    <trustStorePassword>wso2carbon</trustStorePassword>-->
+
+</thriftAgentConfiguration>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/etc/launch.ini
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/etc/launch.ini b/products/stratos/modules/distribution/src/main/conf/etc/launch.ini
new file mode 100644
index 0000000..53dbec5
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/conf/etc/launch.ini
@@ -0,0 +1,269 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# 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=app
+osgi.contextClassLoaderParent=app
+
+# 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.lang.model.type, \
+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.wso2.carbon.bootstrap
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/event-broker.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/event-broker.xml b/products/stratos/modules/distribution/src/main/conf/event-broker.xml
new file mode 100644
index 0000000..296c7cd
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/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>


[8/9] stratos git commit: Removing unnecessary features, artifacts and restructuring distribution artifacts

Posted by ra...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/email-password-reset.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-password-reset.xml b/products/stratos/conf/email-password-reset.xml
deleted file mode 100755
index d5a0937..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/email-payment-received-customer.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-payment-received-customer.xml b/products/stratos/conf/email-payment-received-customer.xml
deleted file mode 100755
index dff13bc..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/email-payment-received-wso2.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-payment-received-wso2.xml b/products/stratos/conf/email-payment-received-wso2.xml
deleted file mode 100755
index c81b5f4..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/email-registration-complete.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-registration-complete.xml b/products/stratos/conf/email-registration-complete.xml
deleted file mode 100755
index 02565ec..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/email-registration-moderation.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-registration-moderation.xml b/products/stratos/conf/email-registration-moderation.xml
deleted file mode 100755
index 73fb689..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/email-registration-payment-received-customer.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-registration-payment-received-customer.xml b/products/stratos/conf/email-registration-payment-received-customer.xml
deleted file mode 100755
index 8e1951e..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/email-registration.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-registration.xml b/products/stratos/conf/email-registration.xml
deleted file mode 100755
index c789bc0..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/email-update.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/email-update.xml b/products/stratos/conf/email-update.xml
deleted file mode 100755
index 4036900..0000000
--- a/products/stratos/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>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/embedded-ldap.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/embedded-ldap.xml b/products/stratos/conf/embedded-ldap.xml
deleted file mode 100644
index 144628e..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/event-broker.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/event-broker.xml b/products/stratos/conf/event-broker.xml
deleted file mode 100644
index 296c7cd..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/features-dashboard.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/features-dashboard.xml b/products/stratos/conf/features-dashboard.xml
deleted file mode 100755
index df1118b..0000000
--- a/products/stratos/conf/features-dashboard.xml
+++ /dev/null
@@ -1,66 +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="" key="manager">
-		<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>
-	</service>
-</data>
-

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/identity.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/identity.xml b/products/stratos/conf/identity.xml
deleted file mode 100755
index 1a20f09..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/jaas.conf
----------------------------------------------------------------------
diff --git a/products/stratos/conf/jaas.conf b/products/stratos/conf/jaas.conf
deleted file mode 100644
index b560cba..0000000
--- a/products/stratos/conf/jaas.conf
+++ /dev/null
@@ -1,30 +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.
-#
-
-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/stratos/blob/8d321a26/products/stratos/conf/jndi.properties
----------------------------------------------------------------------
diff --git a/products/stratos/conf/jndi.properties b/products/stratos/conf/jndi.properties
deleted file mode 100644
index 5a20434..0000000
--- a/products/stratos/conf/jndi.properties
+++ /dev/null
@@ -1,22 +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.
-#
-
-connectionfactoryName=TopicConnectionFactory
-java.naming.provider.url=tcp://localhost:61616
-java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/metering-config-non-manager.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/metering-config-non-manager.xml b/products/stratos/conf/metering-config-non-manager.xml
deleted file mode 100755
index 6f642a3..0000000
--- a/products/stratos/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.apache.stratos.metering.agent.task.PerRegistryRequestTask">
-            <preHandlers>
-                <handler service="org.apache.stratos.metering.agent.handlers.ValidationInfoRetriever">
-                </handler>
-                <handler service="org.apache.stratos.metering.agent.handlers.RegistryActionValidator">
-                </handler>
-            </preHandlers>
-            <postHandlers>
-                <handler service="org.apache.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.apache.stratos.metering.manager.task.PerRegistryRequestRemoteTask</parameter>
-                </handler>
-            </postHandlers>
-        </task>
-        <task service="org.apache.stratos.metering.agent.task.PerUserAddRequestTask">
-            <preHandlers>
-                <handler service="org.apache.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.apache.stratos.metering.manager.task.PerUserAddRequestRemoteTask</parameter>
-                </handler>
-                <handler service="org.apache.stratos.metering.agent.handlers.ValidationInfoRetriever">
-                </handler>
-                <handler service="org.apache.stratos.metering.agent.handlers.AddUserActionValidator">
-                </handler>
-            </preHandlers>
-        </task>
-        <task service="org.apache.stratos.metering.manager.task.PerRegistryRequestRemoteTask">
-            <postHandlers>
-                <handler service="org.apache.stratos.metering.agent.handlers.ValidationInfoRetriever">
-                </handler>
-                <handler service="org.apache.stratos.metering.manager.handlers.DBContentVolumeRetriever"><!-- trigger per each registry request-->
-                </handler>
-                <handler service="org.apache.stratos.metering.manager.handlers.BandwidthDataRetriever" async="true" frequency="5"><!-- trigger per 5 registry request-->
-                </handler>
-                <handler service="org.apache.stratos.metering.manager.handlers.BandwidthDataStorer">
-                </handler>
-                <handler service="org.apache.stratos.metering.manager.handlers.BillingDataRetriever"><!-- trigger per each registry request-->
-                </handler>
-                <handler service="org.apache.stratos.metering.manager.handlers.RuleInvoker">
-                    <parameter name="rule-file">restriction-rules.drl</parameter>
-                </handler>
-                <handler service="org.apache.stratos.metering.agent.handlers.ValidationInfoStorer">
-                </handler>
-            </postHandlers>
-        </task>
-        <task service="org.apache.stratos.metering.manager.task.PerUserAddRequestRemoteTask">
-            <postHandlers>
-                <handler service="org.apache.stratos.metering.manager.handlers.UsersCountRetriever"><!-- trigger per each user add request-->
-                </handler>
-                <handler service="org.apache.stratos.metering.agent.handlers.ValidationInfoRetriever">
-                </handler>
-                <handler service="org.apache.stratos.metering.manager.handlers.BillingDataRetriever"><!-- trigger per each user add request-->
-                </handler>
-                <handler service="org.apache.stratos.metering.manager.handlers.RuleInvoker">
-                    <parameter name="rule-file">restriction-rules.drl</parameter>
-                </handler>
-                <handler service="org.apache.stratos.metering.agent.handlers.ValidationInfoStorer">
-                </handler>
-            </postHandlers>
-        </task>
-        <!-- to be implemented -->
-        <!--
-        <task service="org.apache.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.apache.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/stratos/blob/8d321a26/products/stratos/conf/mqtttopic.properties
----------------------------------------------------------------------
diff --git a/products/stratos/conf/mqtttopic.properties b/products/stratos/conf/mqtttopic.properties
deleted file mode 100644
index 823c1a9..0000000
--- a/products/stratos/conf/mqtttopic.properties
+++ /dev/null
@@ -1,21 +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.
-#
-
-mqtturl=tcp://localhost:1883
-clientID=stratos
-tempfilelocation=/tmp

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/nhttp.properties
----------------------------------------------------------------------
diff --git a/products/stratos/conf/nhttp.properties b/products/stratos/conf/nhttp.properties
deleted file mode 100644
index 40c3bfc..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/passthru-http.properties
----------------------------------------------------------------------
diff --git a/products/stratos/conf/passthru-http.properties b/products/stratos/conf/passthru-http.properties
deleted file mode 100644
index 21cd1ab..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/registry.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/registry.xml b/products/stratos/conf/registry.xml
deleted file mode 100644
index a395610..0000000
--- a/products/stratos/conf/registry.xml
+++ /dev/null
@@ -1,103 +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.
-  -->
-<wso2registry>
-
-    <!--
-    For details on configuring different config & governance registries see;
-    http://wso2.org/library/tutorials/2010/04/sharing-registry-space-across-multiple-product-instances
-    -->
-
-    <currentDBConfig>wso2registry</currentDBConfig>
-    <readOnly>false</readOnly>
-    <enableCache>true</enableCache>
-    <registryRoot>/</registryRoot>
-
-    <dbConfig name="wso2registry">
-        <dataSource>jdbc/WSO2CarbonDB</dataSource>
-    </dbConfig>
-
-   <!--<handler class="org.wso2.carbon.registry.extensions.handlers.SynapseRepositoryHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/vnd.apache.synapse</property>
-        </filter>
-    </handler>
-
-    <handler class="org.wso2.carbon.registry.extensions.handlers.SynapseRepositoryHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/vnd.apache.esb</property>
-        </filter>
-    </handler>
-
-    <handler class="org.wso2.carbon.registry.extensions.handlers.Axis2RepositoryHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/vnd.apache.axis2</property>
-        </filter>
-    </handler>
-
-    <handler class="org.wso2.carbon.registry.extensions.handlers.Axis2RepositoryHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/vnd.apache.wsas</property>
-        </filter>
-    </handler>
-
-    <handler class="org.wso2.carbon.registry.extensions.handlers.WSDLMediaTypeHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/wsdl+xml</property>
-        </filter>
-    </handler>
-
-    <handler class="org.wso2.carbon.registry.extensions.handlers.XSDMediaTypeHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/x-xsd+xml</property>
-        </filter>
-    </handler> -->
-
-    <!--remoteInstance url="https://localhost:9443/registry">
-        <id>instanceid</id>
-        <username>username</username>
-        <password>password</password>
-    </remoteInstance-->
-
-    <!--remoteInstance url="https://localhost:9443/registry">
-        <id>instanceid</id>
-        <dbConfig>wso2registry</dbConfig>
-        <readOnly>false</readOnly>
-        <enableCache>true</enableCache>
-        <registryRoot>/</registryRoot>
-    </remoteInstance-->
-
-    <!--mount path="/_system/config" overwrite="true|false|virtual">
-        <instanceId>instanceid</instanceId>
-        <targetPath>/_system/nodes</targetPath>
-    </mount-->
-
-    
-    <versionResourcesOnChange>false</versionResourcesOnChange>
-
-    <!-- NOTE: You can edit the options under "StaticConfiguration" only before the
-     startup. -->
-    <staticConfiguration>
-        <versioningProperties>true</versioningProperties>
-        <versioningComments>true</versioningComments>
-        <versioningTags>true</versioningTags>
-        <versioningRatings>true</versioningRatings>
-    </staticConfiguration>
-</wso2registry>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/rule-component.conf
----------------------------------------------------------------------
diff --git a/products/stratos/conf/rule-component.conf b/products/stratos/conf/rule-component.conf
deleted file mode 100644
index 7ee068e..0000000
--- a/products/stratos/conf/rule-component.conf
+++ /dev/null
@@ -1,22 +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.
--->
-
-<RuleServer>
-    <RuleEngineProvider class="org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory"/>
-</RuleServer>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/samples-desc.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/samples-desc.xml b/products/stratos/conf/samples-desc.xml
deleted file mode 100755
index 580f9b0..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/sso-idp-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/sso-idp-config.xml b/products/stratos/conf/sso-idp-config.xml
deleted file mode 100644
index 902c8fa..0000000
--- a/products/stratos/conf/sso-idp-config.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.
-  -->
-<SSOIdentityProviderConfig>
-    <ServiceProviders>
-        <ServiceProvider>
-            <Issuer>console</Issuer>
-            <AssertionConsumerService>https://localhost:9443/console/controllers/acs.jag</AssertionConsumerService>
-            <UseFullyQualifiedUsernameInNameID>true</UseFullyQualifiedUsernameInNameID>
-            <SignResponse>true</SignResponse>
-            <SignAssertion>true</SignAssertion>
-            <EnableAttributeProfile>true</EnableAttributeProfile>
-            <IncludeAttributeByDefault>true</IncludeAttributeByDefault>
-            <Claims>
-                <Claim>http://wso2.org/claims/role</Claim>
-            </Claims>
-            <EnableAudienceRestriction>true</EnableAudienceRestriction>
-            <AudiencesList>
-                <Audience>https://localhost:9445/oauth2/token</Audience>
-            </AudiencesList>
-            <ConsumingServiceIndex>123456</ConsumingServiceIndex>
-        </ServiceProvider>
-    </ServiceProviders>
-</SSOIdentityProviderConfig>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/status-monitor-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/status-monitor-config.xml b/products/stratos/conf/status-monitor-config.xml
deleted file mode 100755
index 91bf5a3..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/stratos-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/stratos-config.xml b/products/stratos/conf/stratos-config.xml
deleted file mode 100644
index 47b84ce..0000000
--- a/products/stratos/conf/stratos-config.xml
+++ /dev/null
@@ -1,30 +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.
-  ~  */
-  -->
-<configuration>
-    <threadPool>
-        <autoscaler>
-            <identifier>Autoscaler</identifier>
-            <threadPoolSize>10</threadPoolSize>
-        </autoscaler>
-    </threadPool>
-</configuration>
-
-

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/stratos-datasources.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/stratos-datasources.xml b/products/stratos/conf/stratos-datasources.xml
deleted file mode 100755
index 4969870..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/synapse-configs/default/registry.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/synapse-configs/default/registry.xml b/products/stratos/conf/synapse-configs/default/registry.xml
deleted file mode 100644
index f259c7a..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/synapse-configs/default/sequences/errorHandler.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/synapse-configs/default/sequences/errorHandler.xml b/products/stratos/conf/synapse-configs/default/sequences/errorHandler.xml
deleted file mode 100644
index 8621bee..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/synapse-configs/default/sequences/fault.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/synapse-configs/default/sequences/fault.xml b/products/stratos/conf/synapse-configs/default/sequences/fault.xml
deleted file mode 100644
index 9d2d8f7..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/synapse-configs/default/sequences/main.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/synapse-configs/default/sequences/main.xml b/products/stratos/conf/synapse-configs/default/sequences/main.xml
deleted file mode 100644
index c4dbf5b..0000000
--- a/products/stratos/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>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/synapse-configs/default/synapse.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/synapse-configs/default/synapse.xml b/products/stratos/conf/synapse-configs/default/synapse.xml
deleted file mode 100755
index d8ad52d..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/synapse.properties
----------------------------------------------------------------------
diff --git a/products/stratos/conf/synapse.properties b/products/stratos/conf/synapse.properties
deleted file mode 100755
index c3cbdb4..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/temp-artifacts/carbon/module.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/temp-artifacts/carbon/module.xml b/products/stratos/conf/temp-artifacts/carbon/module.xml
deleted file mode 100644
index 2cb5634..0000000
--- a/products/stratos/conf/temp-artifacts/carbon/module.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version='1.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.
-
--->
-
-<module name="carbon" xmlns="http://wso2.org/projects/jaggery/module.xml">
-    <!-- scripts -->
-    <script>
-        <name>osgi</name>
-        <path>scripts/server/osgi.js</path>
-    </script>
-    <script>
-        <name>tenant</name>
-        <path>scripts/server/tenant.js</path>
-    </script>
-    <script>
-        <name>server</name>
-        <path>scripts/server/server.js</path>
-    </script>
-    <script>
-        <name>config</name>
-        <path>scripts/server/config.js</path>
-    </script>
-    <script>
-        <name>user</name>
-        <path>scripts/user/user.js</path>
-    </script>
-    <script>
-        <name>registry</name>
-        <path>scripts/registry/registry.js</path>
-    </script>
-    <script>
-        <name>registry-osgi</name>
-        <path>scripts/registry/registry-osgi.js</path>
-    </script>
-    <script>
-        <name>artifacts</name>
-        <path>scripts/registry/artifacts.js</path>
-    </script>
-    <script>
-        <name>space</name>
-        <path>scripts/user/space.js</path>
-    </script>
-    <script>
-        <name>registry-space</name>
-        <path>scripts/user/registry-space.js</path>
-    </script>
-    <script>
-        <name>user-manager</name>
-        <path>scripts/user/user-manager.js</path>
-    </script>
-</module>


[3/9] stratos git commit: Removing unnecessary features, artifacts and restructuring distribution artifacts

Posted by ra...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/jndi.properties
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/jndi.properties b/products/stratos/modules/distribution/src/main/conf/jndi.properties
index f5246ca..60b7f48 100644
--- a/products/stratos/modules/distribution/src/main/conf/jndi.properties
+++ b/products/stratos/modules/distribution/src/main/conf/jndi.properties
@@ -17,6 +17,6 @@
 # under the License.
 #
 
-java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory
-connectionfactoryName=topicConnectionfactory
-connectionfactory.topicConnectionfactory=amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5677'&reconnect='true'
+connectionfactoryName=TopicConnectionFactory
+java.naming.provider.url=tcp://localhost:61616
+java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/mqtttopic.properties
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/mqtttopic.properties b/products/stratos/modules/distribution/src/main/conf/mqtttopic.properties
new file mode 100644
index 0000000..823c1a9
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/conf/mqtttopic.properties
@@ -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.
+#
+
+mqtturl=tcp://localhost:1883
+clientID=stratos
+tempfilelocation=/tmp

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/registry.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/registry.xml b/products/stratos/modules/distribution/src/main/conf/registry.xml
new file mode 100755
index 0000000..a395610
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/conf/registry.xml
@@ -0,0 +1,103 @@
+<?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.
+  -->
+<wso2registry>
+
+    <!--
+    For details on configuring different config & governance registries see;
+    http://wso2.org/library/tutorials/2010/04/sharing-registry-space-across-multiple-product-instances
+    -->
+
+    <currentDBConfig>wso2registry</currentDBConfig>
+    <readOnly>false</readOnly>
+    <enableCache>true</enableCache>
+    <registryRoot>/</registryRoot>
+
+    <dbConfig name="wso2registry">
+        <dataSource>jdbc/WSO2CarbonDB</dataSource>
+    </dbConfig>
+
+   <!--<handler class="org.wso2.carbon.registry.extensions.handlers.SynapseRepositoryHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/vnd.apache.synapse</property>
+        </filter>
+    </handler>
+
+    <handler class="org.wso2.carbon.registry.extensions.handlers.SynapseRepositoryHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/vnd.apache.esb</property>
+        </filter>
+    </handler>
+
+    <handler class="org.wso2.carbon.registry.extensions.handlers.Axis2RepositoryHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/vnd.apache.axis2</property>
+        </filter>
+    </handler>
+
+    <handler class="org.wso2.carbon.registry.extensions.handlers.Axis2RepositoryHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/vnd.apache.wsas</property>
+        </filter>
+    </handler>
+
+    <handler class="org.wso2.carbon.registry.extensions.handlers.WSDLMediaTypeHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/wsdl+xml</property>
+        </filter>
+    </handler>
+
+    <handler class="org.wso2.carbon.registry.extensions.handlers.XSDMediaTypeHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/x-xsd+xml</property>
+        </filter>
+    </handler> -->
+
+    <!--remoteInstance url="https://localhost:9443/registry">
+        <id>instanceid</id>
+        <username>username</username>
+        <password>password</password>
+    </remoteInstance-->
+
+    <!--remoteInstance url="https://localhost:9443/registry">
+        <id>instanceid</id>
+        <dbConfig>wso2registry</dbConfig>
+        <readOnly>false</readOnly>
+        <enableCache>true</enableCache>
+        <registryRoot>/</registryRoot>
+    </remoteInstance-->
+
+    <!--mount path="/_system/config" overwrite="true|false|virtual">
+        <instanceId>instanceid</instanceId>
+        <targetPath>/_system/nodes</targetPath>
+    </mount-->
+
+    
+    <versionResourcesOnChange>false</versionResourcesOnChange>
+
+    <!-- NOTE: You can edit the options under "StaticConfiguration" only before the
+     startup. -->
+    <staticConfiguration>
+        <versioningProperties>true</versioningProperties>
+        <versioningComments>true</versioningComments>
+        <versioningTags>true</versioningTags>
+        <versioningRatings>true</versioningRatings>
+    </staticConfiguration>
+</wso2registry>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/sso-idp-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/sso-idp-config.xml b/products/stratos/modules/distribution/src/main/conf/sso-idp-config.xml
new file mode 100644
index 0000000..902c8fa
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/conf/sso-idp-config.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.
+  -->
+<SSOIdentityProviderConfig>
+    <ServiceProviders>
+        <ServiceProvider>
+            <Issuer>console</Issuer>
+            <AssertionConsumerService>https://localhost:9443/console/controllers/acs.jag</AssertionConsumerService>
+            <UseFullyQualifiedUsernameInNameID>true</UseFullyQualifiedUsernameInNameID>
+            <SignResponse>true</SignResponse>
+            <SignAssertion>true</SignAssertion>
+            <EnableAttributeProfile>true</EnableAttributeProfile>
+            <IncludeAttributeByDefault>true</IncludeAttributeByDefault>
+            <Claims>
+                <Claim>http://wso2.org/claims/role</Claim>
+            </Claims>
+            <EnableAudienceRestriction>true</EnableAudienceRestriction>
+            <AudiencesList>
+                <Audience>https://localhost:9445/oauth2/token</Audience>
+            </AudiencesList>
+            <ConsumingServiceIndex>123456</ConsumingServiceIndex>
+        </ServiceProvider>
+    </ServiceProviders>
+</SSOIdentityProviderConfig>

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/tenant-mgt.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/tenant-mgt.xml b/products/stratos/modules/distribution/src/main/conf/tenant-mgt.xml
new file mode 100644
index 0000000..ddfe83a
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/conf/tenant-mgt.xml
@@ -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.
+ -->
+<TenantManagers>
+    <TenantManager class="org.wso2.carbon.user.core.tenant.JDBCTenantManager">
+        <Property name="MultiTenantRealmConfigBuilder">org.wso2.carbon.user.core.config.multitenancy.SimpleRealmConfigBuilder</Property>
+    </TenantManager>
+</TenantManagers>
+
+<!--If the product is using LDAP user store in MT mode, use following tenant manager.-->
+<!--TenantManager class="org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager">
+    <Property name="RootPartition">dc=wso2,dc=com</Property>
+    <Property name="OrganizationalObjectClass">organizationalUnit</Property>
+    <Property name="OrganizationalAttribute">ou</Property>
+    <Property name="OrganizationalSubContextObjectClass">organizationalUnit</Property>
+    <Property name="OrganizationalSubContextAttribute">ou</Property>
+</TenantManager-->
+<!--Following tenant manager is used by Identity Server (IS) as its default tenant manager.
+    IS will do token replacement when building the product. Therefore do not change the syntax.-->
+<!--TenantManager class="org.wso2.carbon.user.core.tenant.JDBCTenantManager">
+    <Property name="RootPartition">dc=wso2,dc=org</Property>
+    <Property name="OrganizationalObjectClass">organizationalUnit</Property>
+    <Property name="OrganizationalAttribute">ou</Property>
+    <Property name="OrganizationalSubContextObjectClass">organizationalUnit</Property>
+    <Property name="OrganizationalSubContextAttribute">ou</Property>
+</TenantManager-->
+

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/thrift-client-config.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/thrift-client-config.xml b/products/stratos/modules/distribution/src/main/conf/thrift-client-config.xml
new file mode 100644
index 0000000..5cacada
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/conf/thrift-client-config.xml
@@ -0,0 +1,27 @@
+<?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.
+  -->
+
+<!-- Apache thrift client configuration for publishing statistics to WSO2 CEP -->
+<thriftClientConfiguration>
+    <username>admin</username>
+    <password>admin</password>
+    <ip>localhost</ip>
+    <port>7611</port>
+</thriftClientConfiguration>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/conf/user-mgt.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/conf/user-mgt.xml b/products/stratos/modules/distribution/src/main/conf/user-mgt.xml
new file mode 100644
index 0000000..9bf1c88
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/conf/user-mgt.xml
@@ -0,0 +1,343 @@
+<!--
+  ~ Copyright WSO2, Inc. (http://wso2.com)
+  ~
+  ~ 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.
+  -->
+
+<UserManager>
+    <Realm>
+        <Configuration>
+            <AddAdmin>true</AddAdmin>
+            <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>
+        </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="TenantManager">org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager</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="Disabled">false</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">[a-zA-Z0-9._-|//]{3,30}$</Property>
+                <Property name="RolenameJavaScriptRegEx">^[\S]{3,30}$</Property>
+                <Property name="RolenameJavaRegEx">[a-zA-Z0-9._-|//]{3,30}$</Property>
+                <Property name="ReadGroups">true</Property>
+            <Property name="WriteGroups">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="SharedGroupNameAttribute">cn</Property>
+                <Property name="SharedGroupSearchBase">ou=SharedGroups,dc=wso2,dc=org</Property>
+                <Property name="SharedGroupEntryObjectClass">groupOfNames</Property>
+                <Property name="SharedGroupNameListFilter">(objectClass=groupOfNames)</Property>
+                <Property name="SharedGroupNameSearchFilter">(&amp;(objectClass=groupOfNames)(cn=?))</Property>
+                <Property name="SharedTenantNameListFilter">(objectClass=organizationalUnit)</Property>
+                <Property name="SharedTenantNameAttribute">ou</Property>
+                <Property name="SharedTenantObjectClass">organizationalUnit</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="MaxRoleNameListLength">100</Property>
+                <Property name="MaxUserNameListLength">100</Property>
+                <Property name="SCIMEnabled">false</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="TenantManager">org.wso2.carbon.user.core.tenant.JDBCTenantManager</Property>
+            <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="ReadGroups">true</Property>
+            <Property name="WriteGroups">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>
+            <Property name="MaxRoleNameListLength">100</Property>
+            <Property name="MaxUserNameListLength">100</Property>
+            <Property name="SharedGroupEnabled">false</Property>
+            <Property name="SCIMEnabled">false</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="TenantManager">org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager</Property>
+            <Property name="ReadOnly">true</Property>
+            <Property name="Disabled">false</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="passwordHashMethod">PLAIN_TEXT</Property>
+            <Property name="UserSearchBase">ou=system</Property>
+            <Property name="UserNameListFilter">(objectClass=person)</Property>
+	    <Property name="UserNameSearchFilter">(&amp;(objectClass=person)(uid=?))</Property>
+            <Property name="UserNameAttribute">uid</Property>
+	    <Property name="ReadGroups">true</Property>
+            <Property name="GroupSearchBase">ou=system</Property>
+            <Property name="GroupNameListFilter">(objectClass=groupOfNames)</Property>
+	    <Property name="GroupNameSearchFilter">(&amp;(objectClass=groupOfNames)(cn=?))</Property>
+            <Property name="GroupNameAttribute">cn</Property>
+            <Property name="SharedGroupNameAttribute">cn</Property>
+            <Property name="SharedGroupSearchBase">ou=SharedGroups,dc=wso2,dc=org</Property>
+            <Property name="SharedGroupNameListFilter">(objectClass=groupOfNames)</Property>
+            <Property name="SharedTenantNameListFilter">(objectClass=organizationalUnit)</Property>
+            <Property name="SharedTenantNameAttribute">ou</Property>
+            <Property name="SharedTenantObjectClass">organizationalUnit</Property>
+	    <Property name="MembershipAttribute">member</Property>
+            <Property name="UserRolesCacheEnabled">true</Property>
+	    <Property name="ReplaceEscapeCharactersAtUserLogin">true</Property>
+            <Property name="MaxRoleNameListLength">100</Property>
+            <Property name="MaxUserNameListLength">100</Property>
+            <Property name="SCIMEnabled">false</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="TenantManager">org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager</Property>
+                <Property name="defaultRealmName">WSO2.ORG</Property>
+                <Property name="Disabled">false</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">PLAIN_TEXT</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">[a-zA-Z0-9._-|//]{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">[a-zA-Z0-9._-|//]{3,30}$</Property>
+            <Property name="ReadGroups">true</Property>
+            <Property name="WriteGroups">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="SharedGroupNameAttribute">cn</Property>
+                <Property name="SharedGroupSearchBase">ou=SharedGroups,dc=wso2,dc=org</Property>
+                <Property name="SharedGroupEntryObjectClass">groups</Property>
+                <Property name="SharedTenantNameListFilter">(object=organizationalUnit)</Property>
+                <Property name="SharedTenantNameAttribute">ou</Property>
+                <Property name="SharedTenantObjectClass">organizationalUnit</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>
+                <Property name="MaxRoleNameListLength">100</Property>
+                <Property name="MaxUserNameListLength">100</Property>
+                <Property name="SCIMEnabled">false</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="TenantManager">org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager</Property>
+                <Property name="ConnectionURL">ldap://localhost:10389</Property>
+                <Property name="Disabled">false</Property>
+                <Property name="ConnectionName">uid=admin,ou=system</Property>
+                <Property name="ConnectionPassword">secret</Property>
+                <Property name="passwordHashMethod">PLAIN_TEXT</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">[a-zA-Z0-9._-|//]{3,30}$</Property>
+                <Property name="UsernameJavaScriptRegEx">^[\S]{3,30}$</Property>
+            <Property name="RolenameJavaScriptRegEx">^[\S]{3,30}$</Property>
+                <Property name="RolenameJavaRegEx">[a-zA-Z0-9._-|//]{3,30}$</Property>
+                <Property name="PasswordJavaScriptRegEx">^[\S]{5,30}$</Property>
+            <Property name="ReadGroups">true</Property>
+            <Property name="WriteGroups">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="SharedGroupNameAttribute">cn</Property>
+                <Property name="SharedGroupSearchBase">ou=SharedGroups,dc=wso2,dc=org</Property>
+                <Property name="SharedGroupEntryObjectClass">groupOfNames</Property>
+                <Property name="SharedGroupNameListFilter">(objectClass=groupOfNames)</Property>
+                <Property name="SharedGroupNameSearchFilter">(&amp;(objectClass=groupOfNames)(cn=?))</Property>
+                <Property name="SharedTenantNameListFilter">(objectClass=organizationalUnit)</Property>
+                <Property name="SharedTenantNameAttribute">ou</Property>
+                <Property name="SharedTenantObjectClass">organizationalUnit</Property>
+                <Property name="MembershipAttribute">member</Property>
+                <Property name="UserRolesCacheEnabled">true</Property>
+            <Property name="ReplaceEscapeCharactersAtUserLogin">true</Property>
+                <Property name="MaxRoleNameListLength">100</Property>
+                <Property name="MaxUserNameListLength">100</Property>
+                <Property name="SCIMEnabled">false</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="TenantManager">org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager</Property>
+                <Property name="defaultRealmName">WSO2.ORG</Property>
+                <Property name="kdcEnabled">false</Property>
+                <Property name="Disabled">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">identityPerson</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">[a-zA-Z0-9._-|//]{3,30}$</Property>
+                <Property name="RolenameJavaScriptRegEx">^[\S]{3,30}$</Property>
+                <Property name="RolenameJavaRegEx">[a-zA-Z0-9._-|//]{3,30}$</Property>
+            <Property name="ReadGroups">true</Property>
+            <Property name="WriteGroups">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="SharedGroupNameAttribute">cn</Property>
+                <Property name="SharedGroupSearchBase">ou=SharedGroups,dc=wso2,dc=org</Property>
+                <Property name="SharedGroupEntryObjectClass">groupOfNames</Property>
+                <Property name="SharedGroupNameListFilter">(objectClass=groupOfNames)</Property>
+                <Property name="SharedGroupNameSearchFilter">(&amp;(objectClass=groupOfNames)(cn=?))</Property>
+                <Property name="SharedTenantNameListFilter">(objectClass=organizationalUnit)</Property>
+                <Property name="SharedTenantNameAttribute">ou</Property>
+                <Property name="SharedTenantObjectClass">organizationalUnit</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="RoleDNPattern">cn={0},ou=Groups,dc=wso2,dc=org</Property>
+            <Property name="SCIMEnabled">true</Property>
+                <Property name="MaxRoleNameListLength">100</Property>
+                <Property name="MaxUserNameListLength">100</Property>
+            </ISUserStoreManager-->
+
+        <!--	Following configuration is for the CassandraUserStoreManager. The CassandraUserStoreManager is capable of using a Cassandra
+            database as a user store. This user manager supports multiple credentials for authentication. Credential types can be defined
+            and configured in the following configuration. The CassandraUserStoreManager does not ships with the any of the WSO2 Carbon
+            Servers by default, therefor Cassandra user manager component needs to be installed to the Carbon Server befor using.
+
+            And if this CassandraUserStoreManager is used as the primary user store with multi tenants, it should also implement a
+            compatible TenantManager and set property <Property name="TenantManager">FULL_QUALIFIED_TENANT_MANAGER_CLASS_NAME</Property>.
+        -->
+        <!--UserStoreManager class="org.wso2.carbon.user.cassandra.CassandraUserStoreManager">
+            <Property name="Keyspace">User_KS3</Property>
+            <Property name="Host">localhost</Property>
+            <Property name="Port">9160</Property>
+            <Property name="PasswordDigest">SHA-256</Property>
+            <Property name="StoreSaltedPassword">true</Property>
+            <Property name="AuthenticateWithAnyCredential">true</Property>
+            <Property name="DomainName">multipleCredentialUserStoreDomain</Property>
+                <MultipleCredentials>
+                <Credential type="Default">org.wso2.carbon.user.cassandra.credentialtypes.EmailCredential</Credential>
+                <Credential type="Email">org.wso2.carbon.user.cassandra.credentialtypes.EmailCredential</Credential>
+                <Credential type="PhoneNumber">org.wso2.carbon.user.cassandra.credentialtypes.PhoneNumberCredential</Credential>
+                <Credential type="Device">org.wso2.carbon.user.cassandra.credentialtypes.DeviceCredential</Credential>
+                <Credential type="External">org.wso2.carbon.user.cassandra.credentialtypes.ExternalProviderCredential</Credential>
+                </MultipleCredentials>
+        </UserStoreManager-->
+
+        <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*********************************
+
+        DomainName - This property must be used by all secondary user store managers in multiple user store configuration.
+                 DomainName is a unique identifier given to the user store. Users must provide both the domain name and
+                 username at log-in as "DomainName\Username"
+
+        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.
+
+        RoleDNPattern - This property will be used when checking whether user has been assigned to a given role. Rather than searching the role in search base, by
+                        using this property direct search can be done.
+
+        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.
+
+        DisplayNameAttribute - this is to have a dedicated LDAP attribute to display an entity(User/Role) in UI, in addition to the UserNameAttribute which is used for IS-UserStore interactions.
+        -->
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/logo.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/logo.gif
new file mode 100755
index 0000000..3b1e913
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/logo.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/main.css
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/main.css b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/main.css
new file mode 100644
index 0000000..1271433
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/main.css
@@ -0,0 +1,253 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+/* ---------------- 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/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/powered-stratos.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/powered-stratos.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/powered-stratos.gif
new file mode 100755
index 0000000..6597d26
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/powered-stratos.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/right-logo.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/right-logo.gif
new file mode 100755
index 0000000..e6c3d13
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/right-logo.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-header-bg.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-header-bg.gif
new file mode 100755
index 0000000..99add93
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-header-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-header-region-bg.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-header-region-bg.gif
new file mode 100755
index 0000000..7cc3f52
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-header-region-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-menu-header.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-menu-header.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-menu-header.gif
new file mode 100755
index 0000000..84bb42e
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-menu-header.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-menu-panel-l-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-menu-panel-l-bg.gif b/products/stratos/modules/distribution/src/main/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/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-menu-panel-l-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-menu-table-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-menu-table-bg.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-menu-table-bg.gif
new file mode 100755
index 0000000..213819a
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-menu-table-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-right-links-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-right-links-bg.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-right-links-bg.gif
new file mode 100755
index 0000000..0a2e51a
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/admin/theme-right-links-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/thumb.png
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/thumb.png b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/thumb.png
new file mode 100755
index 0000000..7db90a6
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Dark/thumb.png differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-body-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-body-bg.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-body-bg.gif
new file mode 100755
index 0000000..5db1464
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-body-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-header-bg.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-header-bg.gif
new file mode 100755
index 0000000..758363d
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-header-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-header-region-bg.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-header-region-bg.gif
new file mode 100755
index 0000000..935ee9e
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/def-header-region-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/logo.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/logo.gif
new file mode 100755
index 0000000..3b1e913
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/logo.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/main.css
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/main.css b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/main.css
new file mode 100644
index 0000000..25f4dfe
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/main.css
@@ -0,0 +1,250 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+/* ---------------- 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/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/powered-stratos.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/powered-stratos.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/powered-stratos.gif
new file mode 100755
index 0000000..6597d26
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/powered-stratos.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/right-logo.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/right-logo.gif
new file mode 100755
index 0000000..f118904
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/admin/right-logo.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Default/thumb.png
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Default/thumb.png b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/thumb.png
new file mode 100755
index 0000000..46fc8e6
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Default/thumb.png differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/logo.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/logo.gif
new file mode 100755
index 0000000..3b1e913
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/logo.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/main.css
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/main.css b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/main.css
new file mode 100644
index 0000000..7d8f94e
--- /dev/null
+++ b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/main.css
@@ -0,0 +1,250 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+/* ---------------- 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/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/menu_header.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/menu_header.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/menu_header.gif
new file mode 100755
index 0000000..6887ec4
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/menu_header.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/powered-stratos.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/powered-stratos.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/powered-stratos.gif
new file mode 100755
index 0000000..6597d26
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/powered-stratos.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/right-links-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/right-links-bg.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/right-links-bg.gif
new file mode 100755
index 0000000..ba9d5d0
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/right-links-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/right-logo.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/right-logo.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/right-logo.gif
new file mode 100755
index 0000000..e6c3d13
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/right-logo.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-header-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-header-bg.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-header-bg.gif
new file mode 100755
index 0000000..4d47044
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-header-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-header-region-b-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-header-region-b-bg.gif b/products/stratos/modules/distribution/src/main/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/modules/distribution/src/main/resources/allthemes/Light/admin/theme-header-region-b-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-header-region-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-header-region-bg.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-header-region-bg.gif
new file mode 100755
index 0000000..57a2ec1
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-header-region-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-menu-panel-l-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-menu-panel-l-bg.gif b/products/stratos/modules/distribution/src/main/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/modules/distribution/src/main/resources/allthemes/Light/admin/theme-menu-panel-l-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-menu-table-bg.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-menu-table-bg.gif b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-menu-table-bg.gif
new file mode 100755
index 0000000..9582772
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/admin/theme-menu-table-bg.gif differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/allthemes/Light/thumb.png
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/allthemes/Light/thumb.png b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/thumb.png
new file mode 100755
index 0000000..6dba1ff
Binary files /dev/null and b/products/stratos/modules/distribution/src/main/resources/allthemes/Light/thumb.png differ

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/src/main/resources/launch.ini
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/src/main/resources/launch.ini b/products/stratos/modules/distribution/src/main/resources/launch.ini
deleted file mode 100644
index 53dbec5..0000000
--- a/products/stratos/modules/distribution/src/main/resources/launch.ini
+++ /dev/null
@@ -1,269 +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.
-#
-
-# 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=app
-osgi.contextClassLoaderParent=app
-
-# 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.lang.model.type, \
-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.wso2.carbon.bootstrap
-

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

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

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

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

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

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


[6/9] stratos git commit: Removing unnecessary features, artifacts and restructuring distribution artifacts

Posted by ra...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/conf/throttling-rules.drl
----------------------------------------------------------------------
diff --git a/products/stratos/conf/throttling-rules.drl b/products/stratos/conf/throttling-rules.drl
deleted file mode 100755
index cf62ae4..0000000
--- a/products/stratos/conf/throttling-rules.drl
+++ /dev/null
@@ -1,270 +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.
- */
-
-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/stratos/blob/8d321a26/products/stratos/conf/user-mgt.xml
----------------------------------------------------------------------
diff --git a/products/stratos/conf/user-mgt.xml b/products/stratos/conf/user-mgt.xml
deleted file mode 100644
index c6cdb74..0000000
--- a/products/stratos/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/stratos/blob/8d321a26/products/stratos/conf/zoo.cfg
----------------------------------------------------------------------
diff --git a/products/stratos/conf/zoo.cfg b/products/stratos/conf/zoo.cfg
deleted file mode 100644
index 5c54037..0000000
--- a/products/stratos/conf/zoo.cfg
+++ /dev/null
@@ -1,24 +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.
-#
-
-tickTime=2000
-dataDir=repository/data/zookeeper
-clientPort=2181
-start_zk_server=false

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/lib/home/faq.html
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/lib/home/faq.html b/products/stratos/modules/distribution/lib/home/faq.html
deleted file mode 100644
index b8cd476..0000000
--- a/products/stratos/modules/distribution/lib/home/faq.html
+++ /dev/null
@@ -1,413 +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 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/stratos/blob/8d321a26/products/stratos/modules/distribution/lib/home/images/bottom.gif
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/lib/home/images/bottom.gif b/products/stratos/modules/distribution/lib/home/images/bottom.gif
deleted file mode 100755
index 5679266..0000000
Binary files a/products/stratos/modules/distribution/lib/home/images/bottom.gif and /dev/null differ

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

http://git-wip-us.apache.org/repos/asf/stratos/blob/8d321a26/products/stratos/modules/distribution/lib/home/index.html
----------------------------------------------------------------------
diff --git a/products/stratos/modules/distribution/lib/home/index.html b/products/stratos/modules/distribution/lib/home/index.html
deleted file mode 100644
index 8021d22..0000000
--- a/products/stratos/modules/distribution/lib/home/index.html
+++ /dev/null
@@ -1,140 +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 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>