public static final Vector getDifference(Vector some, Vector all)
{
Vector clone = (Vector) all.clone();
for (Enumeration e = some.elements(); e.hasMoreElements();)
{
Permission tmp = (Permission) e.nextElement();
for (Enumeration f = clone.elements(); f.hasMoreElements();)
{
Permission tmp2 = (Permission) f.nextElement();
if (((BaseObject) tmp).getPrimaryKey()
== ((BaseObject) tmp2).getPrimaryKey())
{
clone.removeElement(tmp2);
break;