@@ -55,7 +55,7 @@ private static void fillJeeTags(SortedMap<String, String> tags) {
55
55
fillWebsphereTags (tags );
56
56
}
57
57
58
- private static void insertSysPropIfPresent (
58
+ private static void insertTagFromSysPropIfPresent (
59
59
Map <String , String > tags , String propKey , String tagKey ) {
60
60
String value = maybeGetSystemProperty (propKey );
61
61
if (value != null ) {
@@ -71,7 +71,7 @@ private static String maybeGetSystemProperty(String propKey) {
71
71
return null ;
72
72
}
73
73
74
- private static boolean insertEnvIfPresent (
74
+ private static boolean insertTagFromEnvIfPresent (
75
75
Map <String , String > tags , String envKey , String tagKey ) {
76
76
try {
77
77
String value = envGetter .apply (envKey );
@@ -128,16 +128,16 @@ private static void fillBaseTags(Map<String, String> tags) {
128
128
private static boolean fillJbossTags (Map <String , String > tags ) {
129
129
if (insertLastPathSegmentIfPresent (
130
130
tags , maybeGetSystemProperty ("jboss.home.dir" ), "jboss.home" )) {
131
- insertSysPropIfPresent (tags , "jboss.server.name" , SERVER_NAME );
131
+ insertTagFromSysPropIfPresent (tags , "jboss.server.name" , SERVER_NAME );
132
132
tags .put ("jboss.mode" , hasSystemProperty ("[Standalone]" ) ? "standalone" : "domain" );
133
133
return true ;
134
134
}
135
135
return false ;
136
136
}
137
137
138
138
private static boolean fillWebsphereTags (Map <String , String > tags ) {
139
- if (insertEnvIfPresent (tags , "WAS_CELL" , CLUSTER_NAME )) {
140
- insertEnvIfPresent (tags , "SERVER_NAME" , SERVER_NAME );
139
+ if (insertTagFromEnvIfPresent (tags , "WAS_CELL" , CLUSTER_NAME )) {
140
+ insertTagFromEnvIfPresent (tags , "SERVER_NAME" , SERVER_NAME );
141
141
return true ;
142
142
}
143
143
return false ;
0 commit comments