}
public synchronized HTMLElement getBody()
{
Element localElement1 = getDocumentElement();
HTMLElement localHTMLElement1 = getHead();
Object localObject1;
synchronized (localElement1)
{
for (localObject1 = localHTMLElement1.getNextSibling(); (localObject1 != null) && (!(localObject1 instanceof HTMLBodyElement)) && (!(localObject1 instanceof HTMLFrameSetElement)); localObject1 = ((Node)localObject1).getNextSibling());
if (localObject1 != null)
{
synchronized (localObject1)
{
Object localObject2 = localHTMLElement1.getNextSibling();
do
{
Node localNode = ((Node)localObject2).getNextSibling();
((Node)localObject1).insertBefore((Node)localObject2, ((Node)localObject1).getFirstChild());
localObject2 = localNode;
if (localObject2 == null)
break;
}
while (localObject2 != localObject1);
}
HTMLElement localHTMLElement2 = (HTMLElement)localObject1;
return localHTMLElement2;
}
localObject1 = new HTMLBodyElementImpl(this, "BODY");
localElement1.appendChild((Node)localObject1);
}