()
| 1207 | |
| 1208 | |
| 1209 | private Server getServer() { |
| 1210 | Container c = context; |
| 1211 | while (c != null && !(c instanceof Engine)) { |
| 1212 | c = c.getParent(); |
| 1213 | } |
| 1214 | |
| 1215 | if (c == null) { |
| 1216 | return null; |
| 1217 | } |
| 1218 | |
| 1219 | Service s = ((Engine) c).getService(); |
| 1220 | |
| 1221 | if (s == null) { |
| 1222 | return null; |
| 1223 | } |
| 1224 | |
| 1225 | return s.getServer(); |
| 1226 | } |
| 1227 | |
| 1228 | /** |
| 1229 | * Validate the usage of security role names in the web application deployment descriptor. If any problems are |
no test coverage detected