Change the groupid from openo to onap 87/6787/2
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Mon, 7 Aug 2017 04:30:35 +0000 (12:30 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Mon, 7 Aug 2017 04:41:11 +0000 (12:41 +0800)
Change the groupid and package paths to onap.

Change-Id: I8432e9ac2c979bbc36e10e6a702c6f04fc41446a
Issue-ID: HOLMES-7
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
48 files changed:
pom.xml
rulemgt-standalone/pom.xml
rulemgt-standalone/src/main/assembly/bin/initDB.bat
rulemgt-standalone/src/main/assembly/bin/initDB.sh
rulemgt-standalone/src/main/assembly/bin/run.bat
rulemgt-standalone/src/main/assembly/bin/run.sh
rulemgt-standalone/src/main/assembly/bin/stop.bat
rulemgt-standalone/src/main/assembly/bin/stop.sh
rulemgt-standalone/src/main/assembly/conf/rulemgt.yml
rulemgt/pom.xml
rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/RuleActiveApp.java with 81% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleAppConfig.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/RuleAppConfig.java with 98% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/request/CorrelationCheckRule4Engine.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bean/request/CorrelationCheckRule4Engine.java with 90% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/request/CorrelationDeployRule4Engine.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bean/request/CorrelationDeployRule4Engine.java with 92% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/request/CorrelationRestRequest.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bean/request/CorrelationRestRequest.java with 90% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/request/RuleCreateRequest.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bean/request/RuleCreateRequest.java with 92% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/request/RuleDeleteRequest.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bean/request/RuleDeleteRequest.java with 91% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/request/RuleQueryCondition.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bean/request/RuleQueryCondition.java with 92% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/request/RuleUpdateRequest.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bean/request/RuleUpdateRequest.java with 92% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleAddAndUpdateResponse.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bean/response/RuleAddAndUpdateResponse.java with 92% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleQueryListResponse.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bean/response/RuleQueryListResponse.java with 93% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bean/response/RuleResult4API.java with 93% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bolt/enginebolt/EngineService.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineService.java with 87% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java with 61% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/constant/RuleMgtConstant.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/constant/RuleMgtConstant.java with 85% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/db/CorrelationRuleDao.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/db/CorrelationRuleDao.java with 80% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/db/CorrelationRuleQueryDao.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/db/CorrelationRuleQueryDao.java with 86% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/db/mapper/CorrelationRuleMapper.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/db/mapper/CorrelationRuleMapper.java with 93% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/resources/RuleMgtResources.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/resources/RuleMgtResources.java with 77% similarity]
rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java [moved from rulemgt/src/main/java/org/openo/holmes/rulemgt/wrapper/RuleMgtWrapper.java with 82% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/RuleActiveAppTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java with 97% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/RuleAppConfigTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleAppConfigTest.java with 95% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bean/request/CorrelationCheckRule4EngineTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bean/request/CorrelationCheckRule4EngineTest.java with 93% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bean/request/CorrelationDeployRule4EngineTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bean/request/CorrelationDeployRule4EngineTest.java with 94% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bean/request/CorrelationRestRequestTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bean/request/CorrelationRestRequestTest.java with 93% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bean/request/RuleCreateRequestTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bean/request/RuleCreateRequestTest.java with 94% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bean/request/RuleDeleteRequestTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bean/request/RuleDeleteRequestTest.java with 92% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bean/request/RuleQueryConditionTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bean/request/RuleQueryConditionTest.java with 95% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bean/request/RuleUpdateRequestTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bean/request/RuleUpdateRequestTest.java with 94% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bean/response/RuleAddAndUpdateResponseTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bean/response/RuleAddAndUpdateResponseTest.java with 93% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bean/response/RuleQueryListResponseTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bean/response/RuleQueryListResponseTest.java with 94% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bean/response/RuleResult4APITest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bean/response/RuleResult4APITest.java with 95% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bolt/enginebolt/EngineServiceTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineServiceTest.java with 92% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/bolt/enginebolt/EngineWrapperTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapperTest.java with 85% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/db/CorrelationRuleQueryDaoTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/db/CorrelationRuleQueryDaoTest.java with 89% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/db/mapper/CorrelationRuleMapperTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/db/mapper/CorrelationRuleMapperTest.java with 95% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/resources/RuleMgtResourcesTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/resources/RuleMgtResourcesTest.java with 91% similarity]
rulemgt/src/test/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapperTest.java [moved from rulemgt/src/test/java/org/openo/holmes/rulemgt/wrapper/RuleMgtWrapperTest.java with 85% similarity]

diff --git a/pom.xml b/pom.xml
index aadc429..a1d0353 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
     <modelVersion>4.0.0</modelVersion>\r
     <parent>\r
-        <groupId>org.openo.oparent</groupId>\r
-        <artifactId>oparent</artifactId>\r
-        <version>1.1.0-SNAPSHOT</version>\r
-        <relativePath>../oparent</relativePath>\r
+        <groupId>org.onap.oparent</groupId>\r
+        <artifactId>version</artifactId>\r
+        <version>1.0.0-SNAPSHOT</version>\r
+        <relativePath>../../oparent</relativePath>\r
     </parent>\r
 \r
-    <groupId>org.openo.holmes.rule-management</groupId>\r
+    <groupId>org.onap.holmes.rule-management</groupId>\r
     <artifactId>holmes-rulemgt-parent</artifactId>\r
     <packaging>pom</packaging>\r
     <name>holmes-rulemgt-parent</name>\r
@@ -58,7 +58,7 @@
         <quartz.version>2.2.1</quartz.version>\r
 \r
 \r
-        <packagename>openo-holmes-rulemgt</packagename>\r
+        <packagename>onap-holmes-rulemgt</packagename>\r
         <linux64id>linux64</linux64id>\r
         <win64id>win64</win64id>\r
         <linux64outputdir>target/assembly/${linux64id}</linux64outputdir>\r
@@ -73,7 +73,7 @@
                 <version>3.0</version>\r
             </dependency>\r
             <dependency>\r
-                <groupId>org.openo.holmes.actions</groupId>\r
+                <groupId>org.onap.holmes.common</groupId>\r
                 <artifactId>holmes-actions</artifactId>\r
                 <version>${project.version}</version>\r
             </dependency>\r
                 <version>${stringtemplate.version}</version>\r
             </dependency>\r
 \r
-            <dependency>\r
-                <groupId>org.openo.common-services.common-utilities</groupId>\r
-                <artifactId>dropwizard-ioc-container</artifactId>\r
-                <version>${project.version}</version>\r
-            </dependency>\r
-\r
             <dependency>\r
                 <groupId>org.quartz-scheduler</groupId>\r
                 <artifactId>quartz</artifactId>\r
                 <version>1.6.5</version>\r
                 <scope>test</scope>\r
             </dependency>\r
-\r
-            <dependency>\r
-                <groupId>org.openo.client.cli</groupId>\r
-                <artifactId>swagger-sdk</artifactId>\r
-                <version>1.1.0-SNAPSHOT</version>\r
-            </dependency>\r
         </dependencies>\r
     </dependencyManagement>\r
 \r
index ea4b985..2327c11 100644 (file)
@@ -20,9 +20,9 @@
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <parent>
-    <groupId>org.openo.holmes.rule-management</groupId>
+    <groupId>org.onap.holmes.rule-management</groupId>
     <artifactId>holmes-rulemgt-parent</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.0.0-SNAPSHOT</version>
   </parent>
 
   <artifactId>holmes-rulemgt-standalone</artifactId>
@@ -96,7 +96,7 @@
             <configuration>
               <artifactItems>
                 <artifactItem>
-                  <groupId>org.openo.holmes.rule-management</groupId>
+                  <groupId>org.onap.holmes.rule-management</groupId>
                   <artifactId>holmes-rulemgt</artifactId>
                   <type>jar</type>
                   <overWrite>true</overWrite>
             <configuration>
               <artifactItems>
                 <artifactItem>
-                  <groupId>org.openo.holmes.rule-management</groupId>
+                  <groupId>org.onap.holmes.rule-management</groupId>
                   <artifactId>holmes-rulemgt</artifactId>
                   <type>jar</type>
                   <overWrite>true</overWrite>
 
   <dependencies>
     <dependency>
-      <groupId>org.openo.holmes.rule-management</groupId>
+      <groupId>org.onap.holmes.rule-management</groupId>
       <artifactId>holmes-rulemgt</artifactId>
       <version>${project.version}</version>
     </dependency>
index f6d83af..fd60aed 100644 (file)
@@ -24,7 +24,7 @@ echo start init holmes rulemgt db
 echo HOME=%HOME%
 set main_path=%HOME%..\
 cd /d %main_path%
-mysql -u%user% -p%password% -P%port% -h%host% < %main_path%\dbscripts\mysql\openo-holmes_rulemgt-createobj.sql
+mysql -u%user% -p%password% -P%port% -h%host% < %main_path%\dbscripts\mysql\onap-holmes_rulemgt-createobj.sql
 set "err=%errorlevel%"
 if "%err%"=="0" (
    echo init rulemgt db success
index 905ad1b..a602bf9 100644 (file)
@@ -23,12 +23,12 @@ port=$3
 host=$4
 echo "start init holmes rulemgt db"
 main_path=$HOME/../
-cat $main_path/dbscripts/mysql/openo-holmes_rulemgt-createobj.sql
+cat $main_path/dbscripts/mysql/onap-holmes_rulemgt-createobj.sql
 echo "user="$user
 echo "password"$password
 echo "port="$port
 echo "host="$host
-mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/openo-holmes_rulemgt-createobj.sql
+mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/onap-holmes_rulemgt-createobj.sql
 sql_result=$?
 cat "sql_result="$sql_result
 if [ $sql_result != 0 ] ; then
index 6553c82..1ea81ab 100644 (file)
@@ -30,7 +30,7 @@ set class_path=%main_path%;%main_path%holmes-rulemgt.jar
 echo ### jvm_opts: %jvm_opts%\r
 echo ### class_path: %class_path%\r
 \r
-%JAVA% -classpath %class_path% %jvm_opts% org.openo.holmes.rulemgt.RuleActiveApp server %main_path%conf/rulemgt.yml\r
+%JAVA% -classpath %class_path% %jvm_opts% org.onap.holmes.rulemgt.RuleActiveApp server %main_path%conf/rulemgt.yml\r
 \r
 IF ERRORLEVEL 1 goto showerror\r
 exit\r
index 0519cc2..b6ab959 100644 (file)
@@ -31,5 +31,5 @@ echo @JAVA_OPTS@ $JAVA_OPTS
 class_path="$main_path/:$main_path/holmes-rulemgt.jar"
 echo @class_path@ $class_path
 
-"$JAVA" $JAVA_OPTS -classpath "$class_path" org.openo.holmes.rulemgt.RuleActiveApp server "$main_path/conf/rulemgt.yml"
+"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.rulemgt.RuleActiveApp server "$main_path/conf/rulemgt.yml"
 
index ca7b4ff..bfde362 100644 (file)
@@ -18,7 +18,7 @@
 title stopping engine-d-service\r
 \r
 set HOME=%~dp0\r
-set Main_Class="org.openo.holmes.rulemgt.RuleActiveApp"\r
+set Main_Class="org.onap.holmes.rulemgt.RuleActiveApp"\r
 \r
 echo ================== engine-d-service info =============================================\r
 echo HOME=$HOME\r
index f9e07a4..2f98e77 100644 (file)
@@ -17,7 +17,7 @@
 
 DIRNAME=`dirname $0`
 HOME=`cd $DIRNAME/; pwd`
-Main_Class="org.openo.holmes.rulemgt.RuleActiveApp"
+Main_Class="org.onap.holmes.rulemgt.RuleActiveApp"
 
 echo ================== engine-d-service info =============================================
 echo HOME=$HOME
index 8ad1f9a..fe2e18e 100644 (file)
@@ -9,7 +9,7 @@ apidescription: ZTE Holmes rule Management rest API
 
 server:
   type: simple
-  rootPath:  '/openoapi/holmes-rule-mgmt/v1/*'
+  rootPath:  '/onapapi/holmes-rule-mgmt/v1/*'
   applicationContextPath: /
   adminContextPath: /admin
   connector:
index e4af4c6..a4e1388 100644 (file)
@@ -19,9 +19,9 @@
 
     <modelVersion>4.0.0</modelVersion>
     <parent>
-        <groupId>org.openo.holmes.rule-management</groupId>
+        <groupId>org.onap.holmes.rule-management</groupId>
         <artifactId>holmes-rulemgt-parent</artifactId>
-        <version>1.1.0-SNAPSHOT</version>
+        <version>1.0.0-SNAPSHOT</version>
     </parent>
 
     <artifactId>holmes-rulemgt</artifactId>
@@ -31,8 +31,9 @@
     <dependencies>
 
         <dependency>
-            <groupId>org.openo.holmes.actions</groupId>
+            <groupId>org.onap.holmes.common</groupId>
             <artifactId>holmes-actions</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
             <exclusions>
                 <exclusion>
                     <groupId>org.glassfish.jersey.containers</groupId>
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.glassfish.jersey.containers</groupId>
-            <artifactId>jersey-container-servlet-core</artifactId>
-            <version>2.22.2</version>
-        </dependency>
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.openo.client.cli</groupId>
-            <artifactId>swagger-sdk</artifactId>
-        </dependency>
         <dependency>
             <groupId>io.swagger</groupId>
             <artifactId>swagger-jersey2-jaxrs</artifactId>
                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                                 <transformer
                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-                                    <mainClass>org.openo.holmes.rulemgt.RuleActiveApp</mainClass>
+                                    <mainClass>org.onap.holmes.rulemgt.RuleActiveApp</mainClass>
                                 </transformer>
                             </transformers>
                         </configuration>
  * limitations under the License.
  */
 
-package org.openo.holmes.rulemgt;
+package org.onap.holmes.rulemgt;
 
 import io.dropwizard.setup.Environment;
 import java.io.IOException;
 import lombok.extern.slf4j.Slf4j;
-import org.openo.dropwizard.ioc.bundle.IOCApplication;
-import org.openo.holmes.common.api.entity.ServiceRegisterEntity;
-import org.openo.holmes.common.config.MicroServiceConfig;
-import org.openo.holmes.common.utils.MSBRegisterUtil;
+import org.onap.holmes.common.dropwizard.ioc.bundle.IOCApplication;
+import org.onap.holmes.common.api.entity.ServiceRegisterEntity;
+import org.onap.holmes.common.config.MicroServiceConfig;
+import org.onap.holmes.common.utils.MSBRegisterUtil;
 
 @Slf4j
-public class RuleActiveApp extends IOCApplication < RuleAppConfig > {
+public class RuleActiveApp extends IOCApplication< RuleAppConfig > {
 
     public static void main( String[] args ) throws Exception {
        new RuleActiveApp().run( args );
@@ -53,7 +53,7 @@ public class RuleActiveApp extends IOCApplication < RuleAppConfig > {
         serviceRegisterEntity.setServiceName("holmes-rule-mgmt");
         serviceRegisterEntity.setProtocol("REST");
         serviceRegisterEntity.setVersion("v1");
-        serviceRegisterEntity.setUrl("/openoapi/holmes-rule-mgmt/v1");
+        serviceRegisterEntity.setUrl("/onapapi/holmes-rule-mgmt/v1");
         serviceRegisterEntity.setSingleNode(MicroServiceConfig.getServiceIp(), "9101", 0);
         serviceRegisterEntity.setVisualRange("1|0");
         return serviceRegisterEntity;
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.rulemgt;
+package org.onap.holmes.rulemgt;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
 import io.dropwizard.Configuration;
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.bean.request;\r
+package org.onap.holmes.rulemgt.bean.request;\r
 \r
 import com.fasterxml.jackson.annotation.JsonProperty;\r
 import lombok.Getter;\r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.bean.request;\r
+package org.onap.holmes.rulemgt.bean.request;\r
 \r
 import com.fasterxml.jackson.annotation.JsonProperty;\r
 import lombok.Getter;\r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.bean.request;\r
+package org.onap.holmes.rulemgt.bean.request;\r
 \r
 import com.fasterxml.jackson.annotation.JsonProperty;\r
 import lombok.Getter;\r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.bean.request;\r
+package org.onap.holmes.rulemgt.bean.request;\r
 \r
 import com.fasterxml.jackson.annotation.JsonProperty;\r
 import lombok.Getter;\r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.bean.request;\r
+package org.onap.holmes.rulemgt.bean.request;\r
 \r
 import com.fasterxml.jackson.annotation.JsonProperty;\r
 import lombok.Getter;\r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.bean.response;\r
+package org.onap.holmes.rulemgt.bean.response;\r
 \r
 import com.fasterxml.jackson.annotation.JsonInclude;\r
 import com.fasterxml.jackson.annotation.JsonProperty;\r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.bean.response;\r
+package org.onap.holmes.rulemgt.bean.response;\r
 \r
 import com.fasterxml.jackson.annotation.JsonInclude;\r
 import com.fasterxml.jackson.annotation.JsonProperty;\r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.bean.response;\r
+package org.onap.holmes.rulemgt.bean.response;\r
 \r
 import com.fasterxml.jackson.annotation.JsonInclude;\r
 import com.fasterxml.jackson.annotation.JsonProperty;\r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.bolt.enginebolt;\r
+package org.onap.holmes.rulemgt.bolt.enginebolt;\r
 \r
 import com.fasterxml.jackson.databind.ObjectMapper;\r
 import java.io.IOException;\r
@@ -26,10 +26,10 @@ import javax.ws.rs.core.Response;
 import lombok.extern.slf4j.Slf4j;\r
 import org.glassfish.jersey.client.ClientConfig;\r
 import org.jvnet.hk2.annotations.Service;\r
-import org.openo.holmes.common.config.MicroServiceConfig;\r
-import org.openo.holmes.rulemgt.bean.request.CorrelationCheckRule4Engine;\r
-import org.openo.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
-import org.openo.holmes.rulemgt.constant.RuleMgtConstant;\r
+import org.onap.holmes.rulemgt.bean.request.CorrelationCheckRule4Engine;\r
+import org.onap.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
+import org.onap.holmes.rulemgt.constant.RuleMgtConstant;\r
+import org.onap.holmes.common.config.MicroServiceConfig;\r
 \r
 @Slf4j\r
 @Service\r
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.bolt.enginebolt;\r
+package org.onap.holmes.rulemgt.bolt.enginebolt;\r
 \r
 import javax.inject.Inject;\r
 import javax.ws.rs.core.Response;\r
 import lombok.extern.slf4j.Slf4j;\r
 import net.sf.json.JSONObject;\r
 import org.jvnet.hk2.annotations.Service;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.common.utils.I18nProxy;\r
-import org.openo.holmes.rulemgt.bean.request.CorrelationCheckRule4Engine;\r
-import org.openo.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
-import org.openo.holmes.rulemgt.constant.RuleMgtConstant;\r
+import org.onap.holmes.rulemgt.bean.request.CorrelationCheckRule4Engine;\r
+import org.onap.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
+import org.onap.holmes.rulemgt.constant.RuleMgtConstant;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
 \r
 @Service\r
 @Slf4j\r
@@ -38,18 +37,18 @@ public class EngineWrapper {
         try {\r
             response = engineService.deploy(correlationRule);\r
         } catch (Exception e) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_CALL_DEPLOY_RULE_REST_FAILED, e);\r
+            throw new CorrelationException("Failed to call the rule deployment RESTful API.", e);\r
         }\r
         if (response.getStatus() == RuleMgtConstant.RESPONSE_STATUS_OK) {\r
-            log.info("Call deploy rule rest interface in engine successfully.");\r
+            log.info("Succeeded in calling the rule deployment RESTful API from the engine management service.");\r
             try {\r
                 JSONObject json = JSONObject.fromObject(response.readEntity(String.class));\r
                 return json.get(RuleMgtConstant.PACKAGE).toString();\r
             } catch (Exception e) {\r
-                throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_PARSE_DEPLOY_RESULT_ERROR, e);\r
+                throw new CorrelationException("Failed to parse the value returned by the engine management service.", e);\r
             }\r
         } else {\r
-            throw new CorrelationException(I18nProxy.ENGINE_DEPLOY_RULE_FAILED);\r
+            throw new CorrelationException("Failed to deploy the rule!");\r
         }\r
     }\r
 \r
@@ -58,31 +57,31 @@ public class EngineWrapper {
         try {\r
             response = engineService.delete(packageName);\r
         } catch (Exception e) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_CALL_DELETE_RULE_REST_FAILED, e);\r
+            throw new CorrelationException("Failed to call the rule deleting RESTful API.", e);\r
         }\r
         if (response.getStatus() == RuleMgtConstant.RESPONSE_STATUS_OK) {\r
-            log.info("Call delete rule rest interface in engine successfully.");\r
+            log.info("Succeeded in calling the rule deleting RESTful API from the engine management service.");\r
             return true;\r
         } else {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_DELETE_RULE_FAILED);\r
+            throw new CorrelationException("Failed to delete the rule!");\r
         }\r
     }\r
 \r
     public boolean checkRuleFromEngine(CorrelationCheckRule4Engine correlationCheckRule4Engine)\r
             throws CorrelationException {\r
-        log.info("content:" + correlationCheckRule4Engine.getContent());\r
+        log.info("Rule Contents: " + correlationCheckRule4Engine.getContent());\r
         Response response;\r
         try {\r
             response = engineService.check(correlationCheckRule4Engine);\r
         } catch (Exception e) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_CALL_CHECK_RULE_REST_FAILED, e);\r
+            throw new CorrelationException("Failed to call the rule verification RESTful API.", e);\r
         }\r
         if (response.getStatus() == RuleMgtConstant.RESPONSE_STATUS_OK) {\r
-            log.info("Call check rule rest interface in engine successfully.");\r
+            log.info("Succeeded in calling the rule verification RESTful API from the engine management service.");\r
             return true;\r
         } else {\r
             log.info(response.getStatus() + " " + response.getStatusInfo() + " " + response.getEntity());\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_CHECK_NO_PASS);\r
+            throw new CorrelationException("Failed to verify the rule. The contents of the rule are invalid.");\r
         }\r
     }\r
 }\r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.constant;\r
+package org.onap.holmes.rulemgt.constant;\r
 \r
 public class RuleMgtConstant {\r
 \r
@@ -24,6 +24,6 @@ public class RuleMgtConstant {
     public static final int STATUS_RULE_CLOSE = 0;\r
     public static final int STATUS_RULE_ALL = 2;\r
     public static final String PACKAGE = "package";\r
-    public static final String ENGINE_PATH = "/openoapi/holmes-engine-mgmt/v1/rule";\r
+    public static final String ENGINE_PATH = "/onapapi/holmes-engine-mgmt/v1/rule";\r
     public static final int RESPONSE_STATUS_OK = 200;\r
 }\r
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.db;\r
+package org.onap.holmes.rulemgt.db;\r
 \r
 import java.util.List;\r
-import org.openo.holmes.common.api.entity.CorrelationRule;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.common.utils.I18nProxy;\r
-import org.openo.holmes.rulemgt.db.mapper.CorrelationRuleMapper;\r
+import org.onap.holmes.common.api.entity.CorrelationRule;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.rulemgt.db.mapper.CorrelationRuleMapper;\r
 import org.skife.jdbi.v2.sqlobject.Bind;\r
 import org.skife.jdbi.v2.sqlobject.BindBean;\r
 import org.skife.jdbi.v2.sqlobject.GetGeneratedKeys;\r
@@ -67,7 +66,7 @@ public abstract class CorrelationRuleDao {
             addRule(correlationRule);\r
             return correlationRule;\r
         } catch (Exception e) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_DB_ERROR,e);\r
+            throw new CorrelationException("Can not access the database. Please contact the administrator for help.", e);\r
         }\r
     }\r
 \r
@@ -75,7 +74,7 @@ public abstract class CorrelationRuleDao {
         try {\r
             updateRuleByRid(correlationRule);\r
         } catch (Exception e) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_DB_ERROR,e);\r
+            throw new CorrelationException("Can not access the database. Please contact the administrator for help.", e);\r
         }\r
     }\r
 \r
@@ -83,7 +82,7 @@ public abstract class CorrelationRuleDao {
         try {\r
             deleteRule2DbInner(correlationRule);\r
         } catch (Exception e) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_DB_ERROR,e);\r
+            throw new CorrelationException("Can not access the database. Please contact the administrator for help.", e);\r
         }\r
     }\r
 \r
@@ -92,7 +91,7 @@ public abstract class CorrelationRuleDao {
         try {\r
             return queryRuleById(rid);\r
         } catch (Exception e) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_DB_ERROR,e);\r
+            throw new CorrelationException("Can not access the database. Please contact the administrator for help.", e);\r
         }\r
     }\r
 \r
@@ -100,7 +99,7 @@ public abstract class CorrelationRuleDao {
         try {\r
             return queryRuleByName(name);\r
         } catch (Exception e) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_DB_ERROR,e);\r
+            throw new CorrelationException("Can not access the database. Please contact the administrator for help.", e);\r
         }\r
     }\r
 }\r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.db;\r
+package org.onap.holmes.rulemgt.db;\r
 \r
 import java.beans.PropertyDescriptor;\r
 import java.lang.reflect.Field;\r
@@ -26,12 +26,11 @@ import java.util.Properties;
 import javax.inject.Inject;\r
 import lombok.extern.slf4j.Slf4j;\r
 import org.jvnet.hk2.annotations.Service;\r
-import org.openo.holmes.common.api.entity.CorrelationRule;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.common.utils.DbDaoUtil;\r
-import org.openo.holmes.common.utils.I18nProxy;\r
-import org.openo.holmes.rulemgt.bean.request.RuleQueryCondition;\r
-import org.openo.holmes.rulemgt.constant.RuleMgtConstant;\r
+import org.onap.holmes.rulemgt.bean.request.RuleQueryCondition;\r
+import org.onap.holmes.rulemgt.constant.RuleMgtConstant;\r
+import org.onap.holmes.common.api.entity.CorrelationRule;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.common.utils.DbDaoUtil;\r
 import org.skife.jdbi.v2.Handle;\r
 import org.skife.jdbi.v2.Query;\r
 \r
@@ -57,8 +56,8 @@ public class CorrelationRuleQueryDao {
             }\r
             return correlationRules;\r
         } catch (Exception e) {\r
-            log.warn("Query rule: rule id =" + ruleQueryCondition.getRid() + " failed");\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_QUERY_RULE_FAILED, e);\r
+            log.warn("Failed to query the rule: id =" + ruleQueryCondition.getRid() + ".");\r
+            throw new CorrelationException("Failed to query the rule.", e);\r
         } finally {\r
             dbDaoUtil.close(handle);\r
         }\r
@@ -123,7 +122,7 @@ public class CorrelationRuleQueryDao {
             }\r
             return "";\r
         } catch (Exception e) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_CREATE_QUERY_SQL_FAILED, e);\r
+            throw new CorrelationException("An error occurred while building the query SQL.", e);\r
         }\r
     }\r
 }\r
@@ -13,9 +13,9 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.db.mapper;\r
+package org.onap.holmes.rulemgt.db.mapper;\r
 \r
-import org.openo.holmes.common.api.entity.CorrelationRule;\r
+import org.onap.holmes.common.api.entity.CorrelationRule;\r
 import org.skife.jdbi.v2.StatementContext;\r
 import org.skife.jdbi.v2.tweak.ResultSetMapper;\r
 \r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.resources;\r
+package org.onap.holmes.rulemgt.resources;\r
 \r
 import com.codahale.metrics.annotation.Timed;\r
 import io.swagger.annotations.Api;\r
@@ -22,7 +22,6 @@ import io.swagger.annotations.ApiParam;
 import io.swagger.annotations.SwaggerDefinition;\r
 import java.io.IOException;\r
 import java.util.Locale;\r
-import javax.annotation.PostConstruct;\r
 import javax.inject.Inject;\r
 import javax.servlet.http.HttpServletRequest;\r
 import javax.ws.rs.DELETE;\r
@@ -37,23 +36,22 @@ import javax.ws.rs.core.MediaType;
 import lombok.extern.slf4j.Slf4j;\r
 import net.sf.json.JSONObject;\r
 import org.jvnet.hk2.annotations.Service;\r
-import org.openo.holmes.common.api.entity.ServiceRegisterEntity;\r
-import org.openo.holmes.common.config.MicroServiceConfig;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.common.utils.ExceptionUtil;\r
-import org.openo.holmes.common.utils.I18nProxy;\r
-import org.openo.holmes.common.utils.JacksonUtil;\r
-import org.openo.holmes.common.utils.LanguageUtil;\r
-import org.openo.holmes.common.utils.MSBRegisterUtil;\r
-import org.openo.holmes.common.utils.UserUtil;\r
-import org.openo.holmes.rulemgt.bean.request.RuleCreateRequest;\r
-import org.openo.holmes.rulemgt.bean.request.RuleDeleteRequest;\r
-import org.openo.holmes.rulemgt.bean.request.RuleQueryCondition;\r
-import org.openo.holmes.rulemgt.bean.request.RuleUpdateRequest;\r
-import org.openo.holmes.rulemgt.bean.response.RuleAddAndUpdateResponse;\r
-import org.openo.holmes.rulemgt.bean.response.RuleQueryListResponse;\r
-import org.openo.holmes.rulemgt.constant.RuleMgtConstant;\r
-import org.openo.holmes.rulemgt.wrapper.RuleMgtWrapper;\r
+import org.onap.holmes.common.api.entity.ServiceRegisterEntity;\r
+import org.onap.holmes.common.config.MicroServiceConfig;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.common.utils.ExceptionUtil;\r
+import org.onap.holmes.common.utils.JacksonUtil;\r
+import org.onap.holmes.common.utils.LanguageUtil;\r
+import org.onap.holmes.common.utils.MSBRegisterUtil;\r
+import org.onap.holmes.common.utils.UserUtil;\r
+import org.onap.holmes.rulemgt.bean.request.RuleCreateRequest;\r
+import org.onap.holmes.rulemgt.bean.request.RuleDeleteRequest;\r
+import org.onap.holmes.rulemgt.bean.request.RuleQueryCondition;\r
+import org.onap.holmes.rulemgt.bean.request.RuleUpdateRequest;\r
+import org.onap.holmes.rulemgt.bean.response.RuleAddAndUpdateResponse;\r
+import org.onap.holmes.rulemgt.bean.response.RuleQueryListResponse;\r
+import org.onap.holmes.rulemgt.constant.RuleMgtConstant;\r
+import org.onap.holmes.rulemgt.wrapper.RuleMgtWrapper;\r
 \r
 @Service\r
 @SwaggerDefinition\r
@@ -81,8 +79,7 @@ public class RuleMgtResources {
             return ruleChangeResponse;\r
         } catch (CorrelationException e) {\r
             log.error("create rule:" + ruleCreateRequest.getRuleName() + " failed", e);\r
-            throw ExceptionUtil.buildExceptionResponse(I18nProxy.getInstance().getValue(locale,\r
-                    e.getMessage()));\r
+            throw ExceptionUtil.buildExceptionResponse(e.getMessage());\r
         }\r
     }\r
 \r
@@ -100,8 +97,7 @@ public class RuleMgtResources {
             return ruleChangeResponse;\r
         } catch (CorrelationException e) {\r
             log.error("update rule:" + ruleUpdateRequest.getContent() + " failed", e);\r
-            throw ExceptionUtil.buildExceptionResponse(I18nProxy.getInstance().getValue(locale,\r
-                    e.getMessage()));\r
+            throw ExceptionUtil.buildExceptionResponse(e.getMessage());\r
         }\r
     }\r
 \r
@@ -118,8 +114,7 @@ public class RuleMgtResources {
             return true;\r
         } catch (CorrelationException e) {\r
             log.error("delete rule:" + ruleDeleteRequest.getRuleId() + " failed", e);\r
-            throw ExceptionUtil.buildExceptionResponse(I18nProxy.getInstance().getValue(locale,\r
-                    e.getMessage()));\r
+            throw ExceptionUtil.buildExceptionResponse(e.getMessage());\r
         }\r
     }\r
 \r
@@ -142,8 +137,7 @@ public class RuleMgtResources {
             return ruleQueryListResponse;\r
         } catch (CorrelationException e) {\r
             log.error("query rule failed,cause query condition conversion failure", e);\r
-            throw ExceptionUtil.buildExceptionResponse(I18nProxy.getInstance().getValue(locale,\r
-                    e.getMessage()));\r
+            throw ExceptionUtil.buildExceptionResponse(e.getMessage());\r
         }\r
     }\r
 \r
@@ -161,8 +155,7 @@ public class RuleMgtResources {
             return ruleQueryCondition;\r
         } catch (IOException e) {\r
             log.warn("queryRequest convert to json failed", e);\r
-            throw ExceptionUtil.buildExceptionResponse(I18nProxy.getInstance().getValue(locale,\r
-                    I18nProxy.RULE_MANAGEMENT_DATA_FORMAT_ERROR));\r
+            throw ExceptionUtil.buildExceptionResponse("The request format is invalid!");\r
         }\r
     }\r
 }\r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.rulemgt.wrapper;\r
+package org.onap.holmes.rulemgt.wrapper;\r
 \r
 import java.util.ArrayList;\r
 import java.util.Date;\r
@@ -23,23 +23,22 @@ import javax.inject.Inject;
 import javax.inject.Singleton;\r
 import lombok.extern.slf4j.Slf4j;\r
 import org.jvnet.hk2.annotations.Service;\r
-import org.openo.holmes.common.api.entity.CorrelationRule;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.common.utils.DbDaoUtil;\r
-import org.openo.holmes.common.utils.I18nProxy;\r
-import org.openo.holmes.rulemgt.bean.request.CorrelationCheckRule4Engine;\r
-import org.openo.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
-import org.openo.holmes.rulemgt.bean.request.RuleCreateRequest;\r
-import org.openo.holmes.rulemgt.bean.request.RuleDeleteRequest;\r
-import org.openo.holmes.rulemgt.bean.request.RuleQueryCondition;\r
-import org.openo.holmes.rulemgt.bean.request.RuleUpdateRequest;\r
-import org.openo.holmes.rulemgt.bean.response.RuleAddAndUpdateResponse;\r
-import org.openo.holmes.rulemgt.bean.response.RuleQueryListResponse;\r
-import org.openo.holmes.rulemgt.bean.response.RuleResult4API;\r
-import org.openo.holmes.rulemgt.bolt.enginebolt.EngineWrapper;\r
-import org.openo.holmes.rulemgt.constant.RuleMgtConstant;\r
-import org.openo.holmes.rulemgt.db.CorrelationRuleDao;\r
-import org.openo.holmes.rulemgt.db.CorrelationRuleQueryDao;\r
+import org.onap.holmes.rulemgt.bean.request.CorrelationCheckRule4Engine;\r
+import org.onap.holmes.rulemgt.bean.response.RuleResult4API;\r
+import org.onap.holmes.rulemgt.constant.RuleMgtConstant;\r
+import org.onap.holmes.rulemgt.db.CorrelationRuleDao;\r
+import org.onap.holmes.common.api.entity.CorrelationRule;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.common.utils.DbDaoUtil;\r
+import org.onap.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
+import org.onap.holmes.rulemgt.bean.request.RuleCreateRequest;\r
+import org.onap.holmes.rulemgt.bean.request.RuleDeleteRequest;\r
+import org.onap.holmes.rulemgt.bean.request.RuleQueryCondition;\r
+import org.onap.holmes.rulemgt.bean.request.RuleUpdateRequest;\r
+import org.onap.holmes.rulemgt.bean.response.RuleAddAndUpdateResponse;\r
+import org.onap.holmes.rulemgt.bean.response.RuleQueryListResponse;\r
+import org.onap.holmes.rulemgt.bolt.enginebolt.EngineWrapper;\r
+import org.onap.holmes.rulemgt.db.CorrelationRuleQueryDao;\r
 \r
 \r
 @Service\r
@@ -64,14 +63,14 @@ public class RuleMgtWrapper {
     public RuleAddAndUpdateResponse addCorrelationRule(String creator, RuleCreateRequest ruleCreateRequest)\r
             throws CorrelationException {\r
         if (ruleCreateRequest == null) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_REQUEST_OBJECT_IS_EMPTY);\r
+            throw new CorrelationException("The request object can not be empty!");\r
         }\r
         CorrelationRule correlationRule = convertCreateRequest2Rule(creator,\r
                 ruleCreateRequest);\r
         checkCorrelation(correlationRule);\r
         CorrelationRule ruleTemp = correlationRuleDao.queryRuleByRuleName(correlationRule.getName());\r
         if (ruleTemp != null) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_REPEAT_RULE_NAME);\r
+            throw new CorrelationException("A rule with the same name already exists.");\r
         }\r
         correlationRule.setPackageName(deployRule2Engine(correlationRule));\r
         CorrelationRule result = correlationRuleDao.saveRule(correlationRule);\r
@@ -83,11 +82,11 @@ public class RuleMgtWrapper {
     public RuleAddAndUpdateResponse updateCorrelationRule(String modifier, RuleUpdateRequest ruleUpdateRequest)\r
             throws CorrelationException {\r
         if (ruleUpdateRequest == null) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_REQUEST_OBJECT_IS_EMPTY);\r
+            throw new CorrelationException("The request object can not be empty!");\r
         }\r
         CorrelationRule oldCorrelationRule = correlationRuleDao.queryRuleByRid(ruleUpdateRequest.getRuleId());\r
         if (oldCorrelationRule == null) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_RULE_NOT_EXIST_DATABASE);\r
+            throw new CorrelationException("You're trying to update a rule which does not exist in the system.");\r
         }\r
         CorrelationRule newCorrelationRule = convertRuleUpdateRequest2CorrelationRule(modifier,\r
                 ruleUpdateRequest, oldCorrelationRule.getName());\r
@@ -110,14 +109,14 @@ public class RuleMgtWrapper {
         String ruleName = correlationRule.getName() == null ? "" : correlationRule.getName().trim();\r
         String content = correlationRule.getContent() == null ? "" : correlationRule.getContent().trim();\r
         if ("".equals(content)) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_CONTENT_CANNOT_BE_EMPTY);\r
+            throw new CorrelationException("The contents of the rule can not be empty!");\r
         }\r
         if (enabled != RuleMgtConstant.STATUS_RULE_CLOSE\r
                 && enabled != RuleMgtConstant.STATUS_RULE_OPEN) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_PARAMETER_ENABLED_ERROR);\r
+            throw new CorrelationException("Invalid rule status. Only 0 (disabled) and 1 (enabled) are allowed.");\r
         }\r
         if ("".equals(ruleName)) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_RULE_NAME_CANNOT_BE_EMPTY);\r
+            throw new CorrelationException("The name of the rule can not be empty.");\r
         }\r
     }\r
 \r
@@ -137,12 +136,12 @@ public class RuleMgtWrapper {
     public void deleteCorrelationRule(RuleDeleteRequest ruleDeleteRequest)\r
             throws CorrelationException {\r
         if (ruleDeleteRequest == null) {\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_REQUEST_OBJECT_IS_EMPTY);\r
+            throw new CorrelationException("The request object can not be empty!");\r
         }\r
         CorrelationRule correlationRule = correlationRuleDao.queryRuleByRid(ruleDeleteRequest.getRuleId());\r
         if (correlationRule == null) {\r
             log.warn("the rule:rule id=" + ruleDeleteRequest.getRuleId() + " does not exist the database.");\r
-            throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_RULE_NOT_EXIST_DATABASE);\r
+            throw new CorrelationException("You're trying to delete a rule which does not exist in the system.");\r
         }\r
         if (correlationRule.getEnabled() == RuleMgtConstant.STATUS_RULE_OPEN) {\r
             engineWarpper.deleteRuleFromEngine(correlationRule.getPackageName());\r
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package org.openo.holmes.rulemgt;
+package org.onap.holmes.rulemgt;
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.core.IsEqual.equalTo;
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.rulemgt;\r
+package org.onap.holmes.rulemgt;\r
 \r
 import static org.hamcrest.core.IsEqual.equalTo;\r
 import static org.hamcrest.core.IsNull.notNullValue;\r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.rulemgt.bean.request;\r
+package org.onap.holmes.rulemgt.bean.request;\r
 \r
 import static org.hamcrest.core.Is.is;\r
 import static org.hamcrest.core.IsEqual.equalTo;\r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.rulemgt.bean.request;\r
+package org.onap.holmes.rulemgt.bean.request;\r
 \r
 import static org.hamcrest.core.IsEqual.equalTo;\r
 import static org.junit.Assert.*;\r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.rulemgt.bean.request;\r
+package org.onap.holmes.rulemgt.bean.request;\r
 \r
 import static org.hamcrest.core.Is.is;\r
 import static org.hamcrest.core.IsEqual.equalTo;\r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.rulemgt.bean.request;\r
+package org.onap.holmes.rulemgt.bean.request;\r
 \r
 import static org.hamcrest.core.Is.is;\r
 import static org.hamcrest.core.IsEqual.equalTo;\r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.rulemgt.bean.response;\r
+package org.onap.holmes.rulemgt.bean.response;\r
 \r
 import static org.hamcrest.core.Is.is;\r
 import static org.hamcrest.core.IsEqual.equalTo;\r
@@ -15,7 +15,7 @@
  */\r
 \r
 \r
-package org.openo.holmes.rulemgt.bolt.enginebolt;\r
+package org.onap.holmes.rulemgt.bolt.enginebolt;\r
 \r
 \r
 import org.apache.http.HttpResponse;\r
@@ -25,7 +25,7 @@ import org.apache.http.impl.client.HttpClients;
 import org.junit.Before;\r
 import org.junit.Rule;\r
 import org.junit.rules.ExpectedException;\r
-import org.openo.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
+import org.onap.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
 import org.powermock.api.easymock.PowerMock;\r
 import org.powermock.core.classloader.annotations.PrepareForTest;\r
 import org.powermock.modules.junit4.rule.PowerMockRule;\r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.rulemgt.bolt.enginebolt;\r
+package org.onap.holmes.rulemgt.bolt.enginebolt;\r
 \r
 \r
 import static org.hamcrest.MatcherAssert.assertThat;\r
@@ -27,10 +27,9 @@ import org.junit.Before;
 import org.junit.Rule;\r
 import org.junit.Test;\r
 import org.junit.rules.ExpectedException;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.common.utils.I18nProxy;\r
-import org.openo.holmes.rulemgt.bean.request.CorrelationCheckRule4Engine;\r
-import org.openo.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
+import org.onap.holmes.rulemgt.bean.request.CorrelationCheckRule4Engine;\r
+import org.onap.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
 import org.powermock.api.easymock.PowerMock;\r
 import org.powermock.reflect.Whitebox;\r
 \r
@@ -54,7 +53,7 @@ public class EngineWrapperTest {
     @Test\r
     public void deployEngine_invoke_rule_deploy_exception() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_CALL_DEPLOY_RULE_REST_FAILED);\r
+        thrown.expectMessage("Failed to call the rule deployment RESTful API.");\r
 \r
         EasyMock.expect(engineServiceMock.deploy(EasyMock.anyObject(CorrelationDeployRule4Engine.class))).andThrow(\r
                 new RuntimeException(""));\r
@@ -68,7 +67,7 @@ public class EngineWrapperTest {
     @Test\r
     public void deployEngine_http_status_not_ok() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.ENGINE_DEPLOY_RULE_FAILED);\r
+        thrown.expectMessage("Failed to deploy the rule!");\r
 \r
         EasyMock.expect(engineServiceMock.deploy(EasyMock.anyObject(CorrelationDeployRule4Engine.class)))\r
                 .andReturn(response);\r
@@ -85,7 +84,7 @@ public class EngineWrapperTest {
         String content = "";\r
 \r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_PARSE_DEPLOY_RESULT_ERROR);\r
+        thrown.expectMessage("Failed to parse the value returned by the engine management service.");\r
         EasyMock.expect(engineServiceMock.deploy(EasyMock.anyObject(CorrelationDeployRule4Engine.class)))\r
                 .andReturn(response);\r
         EasyMock.expect(response.getStatus()).andReturn(200);\r
@@ -115,7 +114,7 @@ public class EngineWrapperTest {
     @Test\r
     public void deleteRuleFromEngine_invoke_rule_delete_exception() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_CALL_DELETE_RULE_REST_FAILED);\r
+        thrown.expectMessage("Failed to call the rule deleting RESTful API.");\r
 \r
         EasyMock.expect(engineServiceMock.delete(EasyMock.anyObject(String.class))).andThrow(\r
                 new RuntimeException(""));\r
@@ -129,7 +128,7 @@ public class EngineWrapperTest {
     @Test\r
     public void deleteRuleFromEngine_http_status_not_ok() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_DELETE_RULE_FAILED);\r
+        thrown.expectMessage("Failed to delete the rule!");\r
 \r
         EasyMock.expect(engineServiceMock.delete(EasyMock.anyObject(String.class)))\r
                 .andReturn(response);\r
@@ -158,7 +157,7 @@ public class EngineWrapperTest {
     @Test\r
     public void checkRuleFromEngine_rule_delete_exception() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_CALL_CHECK_RULE_REST_FAILED);\r
+        thrown.expectMessage("Failed to call the rule verification RESTful API.");\r
 \r
         EasyMock.expect(engineServiceMock.check(EasyMock.anyObject(CorrelationCheckRule4Engine.class))).andThrow(\r
                 new RuntimeException(""));\r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.rulemgt.db;\r
+package org.onap.holmes.rulemgt.db;\r
 \r
 import static org.hamcrest.MatcherAssert.assertThat;\r
 import static org.hamcrest.Matchers.is;\r
@@ -30,11 +30,10 @@ import org.junit.Before;
 import org.junit.Rule;\r
 import org.junit.Test;\r
 import org.junit.rules.ExpectedException;\r
-import org.openo.holmes.common.api.entity.CorrelationRule;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.common.utils.DbDaoUtil;\r
-import org.openo.holmes.common.utils.I18nProxy;\r
-import org.openo.holmes.rulemgt.bean.request.RuleQueryCondition;\r
+import org.onap.holmes.common.api.entity.CorrelationRule;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.common.utils.DbDaoUtil;\r
+import org.onap.holmes.rulemgt.bean.request.RuleQueryCondition;\r
 import org.powermock.api.easymock.PowerMock;\r
 import org.powermock.modules.junit4.rule.PowerMockRule;\r
 import org.powermock.reflect.Whitebox;\r
@@ -76,7 +75,7 @@ public class CorrelationRuleQueryDaoTest {
     public void getCorrelationRulesByCondition_db_exception() throws Exception {\r
 \r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_QUERY_RULE_FAILED);\r
+        thrown.expectMessage("Failed to query the rule.");\r
 \r
         EasyMock.expect(dbDaoUtil.getHandle()).andReturn(handle);\r
         EasyMock.expect(handle.createQuery(EasyMock.anyObject(String.class))).andReturn(query);\r
@@ -110,7 +109,7 @@ public class CorrelationRuleQueryDaoTest {
     @Test\r
     public void getCorrelationRulesByCondition_get_where_sql_exception() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_CREATE_QUERY_SQL_FAILED);\r
+        thrown.expectMessage("An error occurred while building the query SQL.");\r
 \r
         EasyMock.expect(dbDaoUtil.getHandle()).andReturn(handle);\r
         EasyMock.expect(handle.createQuery(EasyMock.anyObject(String.class))).andReturn(query);\r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.rulemgt.resources;\r
+package org.onap.holmes.rulemgt.resources;\r
 \r
 import javax.servlet.http.HttpServletRequest;\r
 import javax.ws.rs.WebApplicationException;\r
@@ -24,14 +24,14 @@ import org.junit.Before;
 import org.junit.Rule;\r
 import org.junit.Test;\r
 import org.junit.rules.ExpectedException;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.rulemgt.bean.request.RuleCreateRequest;\r
-import org.openo.holmes.rulemgt.bean.request.RuleDeleteRequest;\r
-import org.openo.holmes.rulemgt.bean.request.RuleQueryCondition;\r
-import org.openo.holmes.rulemgt.bean.request.RuleUpdateRequest;\r
-import org.openo.holmes.rulemgt.bean.response.RuleAddAndUpdateResponse;\r
-import org.openo.holmes.rulemgt.bean.response.RuleQueryListResponse;\r
-import org.openo.holmes.rulemgt.wrapper.RuleMgtWrapper;\r
+import org.onap.holmes.rulemgt.bean.request.RuleCreateRequest;\r
+import org.onap.holmes.rulemgt.bean.request.RuleDeleteRequest;\r
+import org.onap.holmes.rulemgt.wrapper.RuleMgtWrapper;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.rulemgt.bean.request.RuleQueryCondition;\r
+import org.onap.holmes.rulemgt.bean.request.RuleUpdateRequest;\r
+import org.onap.holmes.rulemgt.bean.response.RuleAddAndUpdateResponse;\r
+import org.onap.holmes.rulemgt.bean.response.RuleQueryListResponse;\r
 import org.powermock.api.easymock.PowerMock;\r
 import org.powermock.reflect.Whitebox;\r
 \r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.rulemgt.wrapper;\r
+package org.onap.holmes.rulemgt.wrapper;\r
 \r
 import static org.hamcrest.MatcherAssert.assertThat;\r
 import static org.hamcrest.Matchers.equalTo;\r
@@ -29,21 +29,20 @@ import org.junit.Rule;
 import org.junit.Test;\r
 import org.junit.rules.ExpectedException;\r
 import org.junit.runner.RunWith;\r
-import org.openo.holmes.common.api.entity.CorrelationRule;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.common.utils.DbDaoUtil;\r
-import org.openo.holmes.common.utils.I18nProxy;\r
-import org.openo.holmes.rulemgt.bean.request.CorrelationCheckRule4Engine;\r
-import org.openo.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
-import org.openo.holmes.rulemgt.bean.request.RuleCreateRequest;\r
-import org.openo.holmes.rulemgt.bean.request.RuleDeleteRequest;\r
-import org.openo.holmes.rulemgt.bean.request.RuleQueryCondition;\r
-import org.openo.holmes.rulemgt.bean.request.RuleUpdateRequest;\r
-import org.openo.holmes.rulemgt.bean.response.RuleAddAndUpdateResponse;\r
-import org.openo.holmes.rulemgt.bean.response.RuleQueryListResponse;\r
-import org.openo.holmes.rulemgt.bolt.enginebolt.EngineWrapper;\r
-import org.openo.holmes.rulemgt.db.CorrelationRuleDao;\r
-import org.openo.holmes.rulemgt.db.CorrelationRuleQueryDao;\r
+import org.onap.holmes.rulemgt.bean.request.CorrelationCheckRule4Engine;\r
+import org.onap.holmes.rulemgt.db.CorrelationRuleDao;\r
+import org.onap.holmes.common.api.entity.CorrelationRule;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.common.utils.DbDaoUtil;\r
+import org.onap.holmes.rulemgt.bean.request.CorrelationDeployRule4Engine;\r
+import org.onap.holmes.rulemgt.bean.request.RuleCreateRequest;\r
+import org.onap.holmes.rulemgt.bean.request.RuleDeleteRequest;\r
+import org.onap.holmes.rulemgt.bean.request.RuleQueryCondition;\r
+import org.onap.holmes.rulemgt.bean.request.RuleUpdateRequest;\r
+import org.onap.holmes.rulemgt.bean.response.RuleAddAndUpdateResponse;\r
+import org.onap.holmes.rulemgt.bean.response.RuleQueryListResponse;\r
+import org.onap.holmes.rulemgt.bolt.enginebolt.EngineWrapper;\r
+import org.onap.holmes.rulemgt.db.CorrelationRuleQueryDao;\r
 import org.powermock.api.easymock.PowerMock;\r
 import org.powermock.modules.junit4.rule.PowerMockRule;\r
 import org.powermock.reflect.Whitebox;\r
@@ -93,7 +92,7 @@ public class RuleMgtWrapperTest {
     @Test\r
     public void addCorrelationRule_name_is_null() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_RULE_NAME_CANNOT_BE_EMPTY);\r
+        thrown.expectMessage("The name of the rule can not be empty.");\r
 \r
         ruleMgtWrapper.addCorrelationRule(USER_NAME, createRuleCreateRequest(null, "This is a rule for testing.",\r
                 "Mocked contents.", 0));\r
@@ -102,7 +101,7 @@ public class RuleMgtWrapperTest {
     @Test\r
     public void addCorrelationRule_request_null() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage((I18nProxy.RULE_MANAGEMENT_REQUEST_OBJECT_IS_EMPTY));\r
+        thrown.expectMessage("The request object can not be empty!");\r
 \r
         ruleMgtWrapper.addCorrelationRule(USER_NAME, null);\r
     }\r
@@ -110,7 +109,7 @@ public class RuleMgtWrapperTest {
     @Test\r
     public void addCorrelationRule_name_is_empty() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_RULE_NAME_CANNOT_BE_EMPTY);\r
+        thrown.expectMessage("The name of the rule can not be empty.");\r
 \r
         ruleMgtWrapper.addCorrelationRule("admin", createRuleCreateRequest("", "This is a rule for testing.",\r
                 "Mocked contents.", 0));\r
@@ -119,7 +118,7 @@ public class RuleMgtWrapperTest {
     @Test\r
     public void addCorrelationRule_content_is_empty() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_CONTENT_CANNOT_BE_EMPTY);\r
+        thrown.expectMessage("The contents of the rule can not be empty!");\r
 \r
         ruleMgtWrapper.addCorrelationRule("admin", createRuleCreateRequest("test", "This is a rule for testing.",\r
                 "", 0));\r
@@ -128,7 +127,7 @@ public class RuleMgtWrapperTest {
     @Test\r
     public void addCorrelationRule_enabled_is_off_limit() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_PARAMETER_ENABLED_ERROR);\r
+        thrown.expectMessage("Invalid rule status. Only 0 (disabled) and 1 (enabled) are allowed.");\r
 \r
         ruleMgtWrapper.addCorrelationRule("admin", createRuleCreateRequest("test", "This is a rule for testing.",\r
                 "Mocked contents.", 3));\r
@@ -144,7 +143,7 @@ public class RuleMgtWrapperTest {
         CorrelationRule correlationRule = convertCreateRequest2CorrelationRule(ruleCreateRequest);\r
 \r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_REPEAT_RULE_NAME);\r
+        thrown.expectMessage("A rule with the same name already exists.");\r
 \r
         EasyMock.expect(correlationRuleDaoMock.queryRuleByRuleName(ruleName)).andReturn(correlationRule);\r
         PowerMock.replayAll();\r
@@ -183,7 +182,7 @@ public class RuleMgtWrapperTest {
     @Test\r
     public void updateCorrelationRule_param_null() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_REQUEST_OBJECT_IS_EMPTY);\r
+        thrown.expectMessage("The request object can not be empty!");\r
 \r
         ruleMgtWrapper.updateCorrelationRule(USER_NAME, null);\r
     }\r
@@ -241,7 +240,7 @@ public class RuleMgtWrapperTest {
     @Test\r
     public void updateCorrelationRule_rule_not_exist() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_RULE_NOT_EXIST_DATABASE);\r
+        thrown.expectMessage("You're trying to update a rule which does not exist in the system.");\r
 \r
         EasyMock.expect(correlationRuleDaoMock.queryRuleByRid(EasyMock.anyObject(String.class))).andReturn(null);\r
 \r
@@ -255,7 +254,7 @@ public class RuleMgtWrapperTest {
     @Test\r
     public void deleteCorrelationRule_request_null() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage((I18nProxy.RULE_MANAGEMENT_REQUEST_OBJECT_IS_EMPTY));\r
+        thrown.expectMessage("The request object can not be empty!");\r
 \r
         ruleMgtWrapper.deleteCorrelationRule(null);\r
     }\r
@@ -263,7 +262,7 @@ public class RuleMgtWrapperTest {
     @Test\r
     public void deleteCorrelationRule_rule_not_exit() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage((I18nProxy.RULE_MANAGEMENT_RULE_NOT_EXIST_DATABASE));\r
+        thrown.expectMessage("You're trying to delete a rule which does not exist in the system.");\r
 \r
         RuleDeleteRequest ruleDeleteRequest = createRuleDeleteRequest("rule_" + System.currentTimeMillis());\r
 \r
@@ -299,11 +298,11 @@ public class RuleMgtWrapperTest {
     @Test\r
     public void getCorrelationRuleByCondition_data_format_exception() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage((I18nProxy.RULE_MANAGEMENT_CREATE_QUERY_SQL_FAILED));\r
+        thrown.expectMessage("An error occurred while building the query SQL.");\r
 \r
         EasyMock.expect(correlationRuleQueryDaoMock.getCorrelationRulesByCondition(EasyMock.anyObject(\r
                 RuleQueryCondition.class)))\r
-                .andThrow(new CorrelationException(I18nProxy.RULE_MANAGEMENT_CREATE_QUERY_SQL_FAILED));\r
+                .andThrow(new CorrelationException("An error occurred while building the query SQL."));\r
 \r
         PowerMock.replay(correlationRuleQueryDaoMock, CorrelationRuleQueryDao.class);\r
 \r
@@ -315,11 +314,11 @@ public class RuleMgtWrapperTest {
     @Test\r
     public void getCorrelationRuleByCondition_db_exception() throws Exception {\r
         thrown.expect(CorrelationException.class);\r
-        thrown.expectMessage((I18nProxy.RULE_MANAGEMENT_QUERY_RULE_FAILED));\r
+        thrown.expectMessage("Failed to query the rule.");\r
 \r
         EasyMock.expect(correlationRuleQueryDaoMock.getCorrelationRulesByCondition(EasyMock.anyObject(\r
                 RuleQueryCondition.class)))\r
-                .andThrow(new CorrelationException(I18nProxy.RULE_MANAGEMENT_QUERY_RULE_FAILED));\r
+                .andThrow(new CorrelationException("Failed to query the rule."));\r
 \r
         PowerMock.replay(correlationRuleQueryDaoMock, CorrelationRuleQueryDao.class);\r
 \r