//Handling Native Component//
/** Sets the prolog of the specified native component.
*/
private static final
void setProlog(CreateInfo ci, Component comp, NativeInfo compInfo) {
final Native nc = (Native)comp;
final Native.Helper helper = nc.getHelper();
StringBuffer sb = null;
final List prokids = compInfo.getPrologChildren();
if (!prokids.isEmpty()) {
sb = new StringBuffer(256);
getNativeContent(ci, sb, comp, prokids, helper);
}
final NativeInfo splitInfo = compInfo.getSplitChild();
if (splitInfo != null && splitInfo.isEffective(comp)) {
if (sb == null) sb = new StringBuffer(256);
getNativeFirstHalf(ci, sb, comp, splitInfo, helper);
}
if (sb != null && sb.length() > 0)
nc.setPrologContent(
sb.insert(0, (String)nc.getPrologContent()).toString());
}