FELIX-5112 ClassCastException when deploying an OBR Resource already present in the runtime

Cleaned up code
Committed on behalf of @skahmann with many thanks. Contributed via https://github.com/apache/felix/pull/44


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1718669 13f79535-47bb-0310-9956-ffa450edef68
2 files changed